Ejemplo n.º 1
0
        public FormMain()
        {
            InitializeComponent();



            FakeAppUserRepository userDatabase  = new FakeAppUserRepository();
            FormLogin             formLogin     = new FormLogin();
            SelectProject         selectProject = new SelectProject(projectDatabase);
            AppUser user = new AppUser();

            formLogin.ShowDialog();
            while (!user.IsAuthenticated && formLogin.IsOpen)
            {
                formLogin.ShowDialog();
                user = formLogin.user;
            }
            if (!formLogin.IsAuthenticated)
            {
                Environment.Exit(0);
            }

            selectProject.ShowDialog();
            projectTest = selectProject.projectTest;
            this.Text   = "Main - " + projectTest.name;
        }
Ejemplo n.º 2
0
        private void removeProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectProject removeProject = new SelectProject(projectDatabase);

            removeProject.ShowDialog();

            projectTest = removeProject.projectTest;
        }
Ejemplo n.º 3
0
        private void selectProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectProject selectProject = new SelectProject(projectDatabase);

            selectProject.ShowDialog();
            projectTest = selectProject.projectTest;
            this.Text   = "Main - " + projectTest.name;
        }