Beispiel #1
0
 public static void UpdateMenuStartup(StartupView sender)
 {
     if (CheckIfProfileIsSelectedStarup(sender))
     {
         GuiStateProfileSelected(sender);
     }
     else
     {
         GuiStateNoProfileSelected(sender);
     }
 }
Beispiel #2
0
 public static void UpdateMenuStartup(StartupView sender)
 {
     if (CheckIfProfileIsSelectedStarup(sender))
     {
         GuiStateProfileSelected(sender);
     }
     else
     {
         GuiStateNoProfileSelected(sender);
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 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);
     }
 }
Beispiel #5
0
 public static bool CheckIfProfileIsSelectedStarup(StartupView sender)
 {
     return(sender.ListBoxProfiles.SelectedIndex != -1);
 }
Beispiel #6
0
 private static void GuiStateProfileSelected(StartupView sender)
 {
     sender.MenuItemLoadProfile.IsEnabled   = true;
     sender.MenuItemDeleteProfile.IsEnabled = true;
 }
Beispiel #7
0
 private static void GuiStateProfileSelected(StartupView sender)
 {
     sender.MenuItemLoadProfile.IsEnabled = true;
     sender.MenuItemDeleteProfile.IsEnabled = true;
 }
Beispiel #8
0
 public static bool CheckIfProfileIsSelectedStarup(StartupView sender)
 {
     return sender.ListBoxProfiles.SelectedIndex != -1;
 }