Esempio n. 1
0
        private void Window_Closed(object sender, EventArgs e)
        {
            SettingsClosed?.Invoke(_current, EventArgs.Empty);

            if (ReferenceEquals(_current, this))
            {
                _current = null;
            }
        }
Esempio n. 2
0
        private async void btnSettings_Click(object sender, EventArgs e)
        {
            CloseMenu?.Invoke();
            await Task.Delay(0);

            SettingsDialog settings = new SettingsDialog();

            settings.ShowDialog();
            SettingsClosed?.Invoke(this, 0);
            CloseMenu?.Invoke();
        }
Esempio n. 3
0
        private void Window_Closed(object sender, EventArgs e)
        {
            SettingsClosed?.Invoke(_current, EventArgs.Empty);

            Settings.Current.SettingsWindowLastLocation = new WindowPosition((int)this.Left, (int)this.Top);
            Settings.Current.Save();

            if (ReferenceEquals(_current, this))
            {
                _current = null;
            }

            this.SetMouseHook(false);
        }
Esempio n. 4
0
 public void Exit(object sender, RoutedEventArgs e)
 {
     SettingsClosed?.Invoke(this, EventArgs.Empty);
 }