Esempio n. 1
0
 private void BExitClick(object sender, MouseButtonEventArgs e)
 {
     e.Handled = true;
     if (!(bool)Message.Show((string)Application.Current.Resources["Dialogid2"], (string)Application.Current.Resources["Dialogid4"], true))
     {
         return;
     }
     Controller.Close();
 }
Esempio n. 2
0
 public MainWindow()
 {
     Application.Current.Exit += (s, e) => { Settings.Save(); };
     Closed += (s, e) => { Controller.Close(); };
     InitializeComponent();
     GNew.MouseDown  += Drag;
     GList.MouseDown += Drag;
     BExit.Click     += (s, e) => { Controller.Close(); };
     Settings.Load();
     Accounts.ItemsSource = Settings.AccountsSettings;
     Instance             = this;
     label4.Content       = typeof(Model).Assembly.GetName().Version;
 }
Esempio n. 3
0
 private void Window_Closed(object sender, EventArgs e)
 {
     Controller.Close();
 }