Exemple #1
0
 public FormModifyProj()
 {
     InitializeComponent();
     CenterToScreen();
     projRepo = new FakeProjectRepository();
     prefRepo = new FakePreferencceRepository();
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormLogin loginCheck = new FormLogin();

            Application.Run(loginCheck);
            if (loginCheck.UserAuthed)
            {
                FormProjSelect selectproj = new FormProjSelect();
                Application.Run(selectproj);

                if (FakePreferencceRepository.GetPreference(loginCheck.UserN, selectproj.selectedName) == null)
                {
                    ;
                }
                FakePreferencceRepository.SetPreference(loginCheck.UserN, selectproj.selectedName, selectproj.Id);
                Application.Run(new FormMain(selectproj.selectedName));
            }
        }