/// <summary>
 /// Login Method to open SetCredentials if not logged in
 /// </summary>
 /// <param name="callback"></param>
 public static void Login(Action success)
 {
     if (Logged)
     {
         success();
     }
     else
     {
         FormLogin setCredentials = new FormLogin();
         setCredentials.SetCallBacks(success);
         setCredentials.StartPosition = FormStartPosition.CenterScreen;
         setCredentials.Show();
     }
 }
 /// <summary>
 /// Set a callback and show the login form.
 /// </summary>
 /// <param name="callback"></param>
 public void ShowLogin(Action callback)
 {
     FormLogin form = new FormLogin();
     form.SetCallBacks(callback);
     form.Show();
 }
 /// <summary>
 /// Login Method to open SetCredentials if not logged in
 /// </summary>
 /// <param name="callback"></param>
 public static void Login(Action success)
 {
     if (Logged)
     {
         success();
     }
     else
     {
         FormLogin setCredentials = new FormLogin();
         setCredentials.SetCallBacks(success);
         setCredentials.StartPosition = FormStartPosition.CenterScreen;
         setCredentials.Show();
     }
 }
 /// <summary>
 /// Show password form, save credentials to file
 /// </summary>
 public static void ShowSaveCredentials()
 {
     FormLogin setCredentials = new FormLogin();
     setCredentials.StartPosition = FormStartPosition.CenterScreen;
     setCredentials.Show();
 }