public static void ShowReorderSettingsDialog() { ReorderSettingsDialog dialog = new ReorderSettingsDialog(IsSwapByClickOrder, SwapReferencePoint); dialog.DialogConfirmedHandler += OnReorderSettingsDialogConfirmed; dialog.ShowThematicDialog(); }
private void ReorderSettingsButton_Click(object sender, RoutedEventArgs e) { if (_reorderSettingsDialog == null || !_reorderSettingsDialog.IsOpen) { _reorderSettingsDialog = new ReorderSettingsDialog(); _reorderSettingsDialog.ShowDialog(); } else { _reorderSettingsDialog.Activate(); } }