public MainWindow(WelcomeWindow pCallerWindow, CoordinatorConnection pConnection, StartMode pMode, string pPath) { InitializeComponent(); callerWindow = pCallerWindow; switch (pMode) { case StartMode.New: { presentationHandler = new PresentationHandling(pConnection, pMode, pPath, this); connectPresentationWithUI(); break; } case StartMode.Open: { presentationHandler = new PresentationHandling(pConnection, pMode, pPath, this); connectPresentationWithUI(); break; } default: { presentationHandler = new PresentationHandling(pConnection, this); connectPresentationWithUI(); break; } } //set initial stage selection to first stage if (presentationHandler.openPresentation.stages.Count > 0) { presentationHandler.SelectedStage = presentationHandler.openPresentation.stages[0]; } }
public WelcomeWindow() { InitializeComponent(); if (Properties.Settings.Default.userEmail != string.Empty && Properties.Settings.Default.userPassword != string.Empty) { inputEmail.Text = Properties.Settings.Default.userEmail; inputPassword.Password = Properties.Settings.Default.userPassword; inputRemember.IsChecked = Properties.Settings.Default.userRemember; } loggedIn = false; connection = new CoordinatorConnection(); }