Exemple #1
0
        // BLUR EFFECTS


        private void clearSetting_Click(object sender, RoutedEventArgs e)
        {
            var popup = new PopupDialog();

            popup.Owner = this;
            ApplyEffect(this);
            bool?dialogResult = popup.ShowDialog();

            ClearEffect(this);

            if (dialogResult == true)
            {
                try
                {
                    var popupReset = new PopupDialogReset();
                    popupReset.Owner = this;
                    ApplyEffect(this);
                    bool?dialogResultRestart = popupReset.ShowDialog();
                    ClearEffect(this);

                    if (dialogResultRestart == true)
                    {
                        Close();
                    }
                }
                catch
                {
                    Logger.Current.AppendText("Возникла ошибка при сохранении файла конфигурации");
                }

                Close();
            }
        }