Beispiel #1
0
        public void ShowChangeSettings()
        {
            foreach (var form in FormUtil.OpenForms.OfType <GroupComparisonSettingsForm>())
            {
                if (ReferenceEquals(form.GroupComparisonModel, FoldChangeBindingSource.GroupComparisonModel))
                {
                    form.Activate();
                    return;
                }
            }
            var foldChangeSettings = new GroupComparisonSettingsForm(FoldChangeBindingSource);

            foldChangeSettings.Show(this);
        }
Beispiel #2
0
 public void ShowChangeSettings()
 {
     foreach (var form in Application.OpenForms.OfType<GroupComparisonSettingsForm>())
     {
         if (ReferenceEquals(form.GroupComparisonModel, FoldChangeBindingSource.GroupComparisonModel))
         {
             form.Activate();
             return;
         }
     }
     var foldChangeSettings = new GroupComparisonSettingsForm(FoldChangeBindingSource);
     foldChangeSettings.Show(this);
 }