#pragma checksum "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\Pages\Counter.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5154f1aabbb0d03f64e8eda07f942b705f5cddd5"
// <auto-generated/>
#pragma warning disable 1591
#pragma warning disable 0414
#pragma warning disable 0649
#pragma warning disable 0169

namespace SP_MJ.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.AspNetCore.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.AspNetCore.Components.Web;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using Microsoft.JSInterop;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using SP_MJ;

#line default
#line hidden
#nullable disable
#nullable restore
#line 9 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using SP_MJ.Shared;

#line default
#line hidden
#nullable disable
#nullable restore
#line 10 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using MatBlazor;

#line default
#line hidden
#nullable disable
#nullable restore
#line 11 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\_Imports.razor"
using BlazorInputFile;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\Pages\Counter.razor"
using System.IO;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\Pages\Counter.razor"
using System.Net.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 9 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\Pages\Counter.razor"
using Microsoft.AspNetCore.Identity;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/users")]
    [Microsoft.AspNetCore.Components.RouteAttribute("/uploadfile")]
    public partial class Counter : Microsoft.AspNetCore.Components.ComponentBase
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
        }
        #pragma warning restore 1998
#nullable restore
#line 53 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-MJ\Pages\Counter.razor"
      

    string status;
    IFileListEntry file1;
    string st;
    List<IdentityUser> ColUsers = new List<IdentityUser>();

    void HandleFileSelected(IFileListEntry[] files)
    {
        file1 = files.FirstOrDefault();
        
    }

    async Task CountLines()
    {
        st = "";
        ColUsers = new List<IdentityUser>();

        using (var reader = new System.IO.StreamReader(file1.Data))
        {

            st = await reader.ReadToEndAsync();
            foreach (string dataLine in st.Split('\n'))
            {
            
                string[] values = dataLine.Split(',');
                //System.Diagnostics.Debug.WriteLine("value 0 = " + values[0]);
                //System.Diagnostics.Debug.WriteLine("value 1 = " + values[1]);
               // System.Diagnostics.Debug.WriteLine("value ");
                var NewUser = new IdentityUser{
                              UserName = values[0],
                              Email = values[1]
                                               };
           
                ColUsers.Add(NewUser);

            }
        }
    }

#line default
#line hidden
#nullable disable
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private NavigationManager UriHelper { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private HttpClient Http { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private UserManager<IdentityUser> _UserManager { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private IJSRuntime JSrn { get; set; }
    }
}
#pragma warning restore 1591
