Ejemplo n.º 1
0
        private void MainForm_Load(object sender, System.EventArgs e)
        {
            MainFormSettings mainFormSettings = new MainFormSettings();
            this._settings = mainFormSettings.Load(this, "Settings.dgp");

            this.Location = Settings.desktopLocation;
            this.Size = Settings.size;
            //logginDialog = new LogginDialog();//Settings.logginDialog;

            //Automatisk loggin
            //Loggin();
        }
Ejemplo n.º 2
0
 private void MainForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if(forcedClosed == true) // Exit from the menu
     {
         // Save Settins
         Settings.desktopLocation = this.DesktopLocation;
         Settings.size = this.Size;
         //Settings.logginDialog = logginDialog;
         MainFormSettings mainFormSettings = new MainFormSettings();
         mainFormSettings.Save(this, "Settings.dgp");
     }
     else
     {	// Close only window and show in taskbar
         e.Cancel = true;
         this.ShowInTaskbar = false;
         this.Hide();
         NotifyIcon.Visible = true;
     }
 }