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

namespace SP_VIP.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-VIP\_Imports.razor"
using System.Net.Http;

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

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-VIP\_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-VIP\_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-VIP\_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-VIP\_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-VIP\_Imports.razor"
using Microsoft.JSInterop;

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

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

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

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-VIP\Pages\Projects.razor"
using SP_VIP.Data;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-VIP\Pages\Projects.razor"
using System.Data.SqlClient;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/projects")]
    public partial class Projects : 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 74 "C:\Users\jayt7\Source\Repos\Senior-Project\SP-VIP\Pages\Projects.razor"
       
    [Parameter]
    public string Title { get; set; } = "Test Project 1";

    [Parameter]
    public string Semester { get; set; } = "Fall 2019";

    [Parameter]
    public string Description { get; set; } = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";

    [Parameter]
    public string reqSkills { get; set; } = "Test Skill 1, Test Skill 2";

    public const int maxStudents = 2;

    [Parameter]
    public string Members { get; set; } = "John Doe, Jane Doe";

    bool dialogIsOpen = false;

    bool proposalDialogIsOpen = false;

    Project[] projects;

    List<Project> listings;

    Project selectedProj = new Project
    {
        title = "Placeholder",
        semester = "Placeholder",
        description = "Placeholder",
        reqSkills = "Placeholder",
        members = "John Doe, Jane Doe"
    };

    protected override async Task OnInitializedAsync()
    {
        projects = await ProjectService.GetProjectAsync();
        listings = ProjectService.GetProjectListings();
    }

    /*void GetProjectListings()
    {
        listings = ProjectService.GetProjectListings();
    }*/

    void OpenDialog(Project thatProject)
    {
        selectedProj = thatProject;
        dialogIsOpen = true;
    }

    void OpenProposalDialog()
    {
        proposalDialogIsOpen = true;
    }

    string thatTitle = "Didn't get anything";

    void testCall()
    {
        thatTitle = ProjectService.testFunct();
    }

    void testSendCall()
    {
        ProjectService.testSendProject();
    }


#line default
#line hidden
#nullable disable
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private ProjectService ProjectService { get; set; }
    }
}
#pragma warning restore 1591
