Пример #1
0
        /// <summary>
        /// Reset values in view
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ColorOverride_Button(object sender, RoutedEventArgs e)
        {
            ConfirmDelete confirmDeleteForm = new ConfirmDelete("Are you sure you want to reset" + Environment.NewLine + "all color override?");

            confirmDeleteForm.Topmost = true;
            confirmDeleteForm.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            var result = confirmDeleteForm.ShowDialog();

            if ((bool)result)
            {
                ResetColors.reset();
            }
        }
 /// <summary>
 /// Reset values in view
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ResetColors.reset();
 }