Пример #1
0
        //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);
        }
Пример #2
0
        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);
                }
            }
        }
Пример #3
0
 public MDForm AddandUpdateMDForm(MDForm mdForm)
 {
     return(_MDFormService.AddandUpdateMDForm(mdForm));
 }