Exemple #1
0
 private void lnkName_ClickOverride()
 {
     var v = new DataEntryEdit(new ProcessBaseVm(source, sae, null));
     ViewForm form = new ViewForm(v);
     v.OnClose = () =>
     {
         form.Close();
     };
     form.Show();
 }
Exemple #2
0
 private void LoadForm(IView v)
 {
     ViewForm form = new ViewForm(v);
     v.OnClose = () =>
     {
         form.Close();
     };
     form.Show();
 }
 void customIndicatorControl1_OnAddRemove()
 {
     viewModel.DoSave(indicatorControl1.GetValues(), tbNotes.Text, false);
     IndicatorTypeEdit editor = new IndicatorTypeEdit(viewModel);
     editor.OnSave += editType_OnSave;
     ViewForm form = new ViewForm(editor);
     form.ShowDialog();
 }