Ejemplo n.º 1
0
 public AddDataEntityCommand()
 {
     ExcuteHandler = () =>
     {
         using (DataEntityEditView view = new DataEntityEditView())
         {
             view.ShowDialog();
         }
     };
 }
Ejemplo n.º 2
0
 public EditDataEntityCommand()
 {
     ExcuteHandler = () =>
     {
         DataEntityDev entity = GetArgument();
         if (entity == null)
         {
             return;
         }
         if (entity.Sys)
         {
             MessageBox.Show(CommonLanguage.Current.SystemItemNoEditAllowed,
                             CommonLanguage.Current.MessageCaption_Notice,
                             MessageBoxButtons.OK, MessageBoxIcon.Information);
             return;
         }
         using (DataEntityEditView view = new DataEntityEditView())
         {
             view.DataEntity = entity;
             view.ShowDialog();
         }
     };
 }