예제 #1
0
 public AddDataEntityCommand()
 {
     ExcuteHandler = () =>
     {
         using (DataEntityEditView view = new DataEntityEditView())
         {
             view.ShowDialog();
         }
     };
 }
예제 #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();
         }
     };
 }