public FormModifyProj() { InitializeComponent(); CenterToScreen(); projRepo = new FakeProjectRepository(); prefRepo = new FakePreferencceRepository(); }
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)); } }