//Add and Update MDForm public MDForm AddandUpdateMDForm(MDForm form) { MDForm mdForm = new MDForm(); if (form.Id == 0) { mdForm = _MDForm.AddData(form); } else { mdForm = _MDForm.UpdateData(form); } return(mdForm); }
private void mnuHelp_Click(object sender, RoutedEventArgs e) { ContextMenu Menu = ((MenuItem)sender).Parent as ContextMenu; if (Menu == null) { return; } MDForm form = Menu.Tag as MDForm; if (form != null && !form.Help.IsEmpty) { try { String Path = form.Help.Location; System.Diagnostics.Process.Start(Path); } catch (Exception exc) { DefaultErrHandling(exc); } } }
public MDForm AddandUpdateMDForm(MDForm mdForm) { return(_MDFormService.AddandUpdateMDForm(mdForm)); }