private void ShowLoginForm() { if (_buzzleLoginForm == null) { _buzzleLoginForm = new BuzzleLoginForm(); _buzzleLoginForm.CredetialsSubmitted += LoginDetailsReceived; } _buzzleLoginForm.ResetFields(); _buzzleLoginForm.Show(); }
public BuzzleSessionManager(BuzzleLoginForm loginForm) { _buzzleLoginForm = loginForm; _buzzleLoginForm.CredetialsSubmitted += LoginDetailsReceived; ShowLoginForm(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Check if database exists, if not, attach a new one before continuing if (DataBaseNotExists()) { if (BuzzleFunctions.AskQuestion("Can't find the database. Do you want to initialize a new one?")) { LoadDatabase(); } else { return; } } BuzzleFunctions.ShowSplashScreen(); BuzzleFunctions.ShowWaitForm(); var loginForm = new BuzzleLoginForm(); var buzzleManager = new BuzzleSessionManager(loginForm); Application.Run(loginForm); }