Example #1
0
        private void ShowPreferencesWindow()
        {
            PreferencesWindow window = new PreferencesWindow();

            window.Owner = this;

            try
            {
                canOpenDemo = false;
                window.ShowDialog();
            }
            catch (Exception ex)
            {
                window.Close();
                Common.Message(this, "Preferences window error.", ex, MessageWindow.Flags.Error);
            }
            finally
            {
                canOpenDemo = true;
            }
        }
        private void ShowPreferencesWindow()
        {
            PreferencesWindow window = new PreferencesWindow();
            window.Owner = this;

            try
            {
                canOpenDemo = false;
                window.ShowDialog();
            }
            catch (Exception ex)
            {
                window.Close();
                Common.Message(this, "Preferences window error.", ex, MessageWindow.Flags.Error);
            }
            finally
            {
                canOpenDemo = true;
            }
        }