Ejemplo n.º 1
0
 private void OnSettingsButtonClick(object sender, MouseButtonEventArgs e)
 {
     if (this.AbnormalityWidgetSettings == null || this.AbnormalityWidgetSettings.IsClosed)
     {
         AbnormalityWidgetSettings = new AbnormalityTraySettings(this, this.AbnormalityTrayIndex);
         AbnormalityWidgetSettings.Show();
     }
 }
Ejemplo n.º 2
0
        private void OnSettingsButtonClick(object sender, MouseButtonEventArgs e)
        {
            bool settingsWindowIsOpen = Application.Current.Windows
                                        .Cast <Window>().Any(w => w.Title == "Abnormality Tray Settings");

            if (settingsWindowIsOpen)
            {
                return;
            }

            AbnormalityTraySettings traySettingsWindow = new AbnormalityTraySettings(AbnormalityTrayIndex);

            traySettingsWindow.Show();
        }
Ejemplo n.º 3
0
        private void OnSettingsButtonClick(object sender, MouseButtonEventArgs e)
        {
            bool SettingsWindowIsOpen = App.Current.Windows.Cast <Window>()
                                        .Where(w => w.Title == "Abnormality Tray Settings")
                                        .Count() > 0;

            if (SettingsWindowIsOpen)
            {
                return;
            }

            AbnormalityTraySettings traySettingsWindow = new AbnormalityTraySettings(AbnormalityTrayIndex);

            traySettingsWindow.Show();
        }