public void RefreshConfig(ReversalInfoEditor editor)
 {
     if (editor.Result == System.Windows.Forms.DialogResult.Yes)
     {
         viewmodel.LoadReversalConfigs();
     }
 }
        public void EditConfig()
        {
            ReversalInfoEditor editor = new ReversalInfoEditor(viewmodel.SelectedReversalConfig);

            editor.ShowDialog();
            RefreshConfig(editor);
        }
        public void AddConfig()
        {
            ReversalInfoEditor editor = new ReversalInfoEditor(null);

            editor.ShowDialog();
            RefreshConfig(editor);
        }