public static void UpdateMenuStartup(StartupView sender) { if (CheckIfProfileIsSelectedStarup(sender)) { GuiStateProfileSelected(sender); } else { GuiStateNoProfileSelected(sender); } }
public static void UpdateListBoxProfileStartup(StartupView sender) { sender.ListBoxProfiles.Items.Clear(); try { List <string> ListOfProfileNames = new List <string>(); ListOfProfileNames = DataOperations.GetNamesOfAvaibleProfiles(); foreach (string name in ListOfProfileNames) { sender.ListBoxProfiles.Items.Add(name); } } catch (Exception e) { MessageBox.Show("Exception while refreshing Profilelist " + e); } }
public static void UpdateListBoxProfileStartup(StartupView sender) { sender.ListBoxProfiles.Items.Clear(); try { List<string> ListOfProfileNames = new List<string>(); ListOfProfileNames = DataOperations.GetNamesOfAvaibleProfiles(); foreach (string name in ListOfProfileNames) { sender.ListBoxProfiles.Items.Add(name); } } catch(Exception e) { MessageBox.Show("Exception while refreshing Profilelist " + e); } }
public static bool CheckIfProfileIsSelectedStarup(StartupView sender) { return(sender.ListBoxProfiles.SelectedIndex != -1); }
private static void GuiStateProfileSelected(StartupView sender) { sender.MenuItemLoadProfile.IsEnabled = true; sender.MenuItemDeleteProfile.IsEnabled = true; }
public static bool CheckIfProfileIsSelectedStarup(StartupView sender) { return sender.ListBoxProfiles.SelectedIndex != -1; }