Exemplo n.º 1
0
 void dashboardEdit_Execute(object sender, SimpleActionExecuteEventArgs e) {
     using (var form = new DashboardDesignerForm()) {
         new XPObjectSpaceAwareControlInitializer(form, Application);
         form.LoadTemplate(View.CurrentObject as IDashboardDefinition);
         form.ShowDialog();
     }
 }
 void dashboardEdit_Execute(object sender, SimpleActionExecuteEventArgs e) {
     using (var form = new DashboardDesignerForm { ObjectSpace = ObjectSpace }) {
         form.LoadTemplate(((IDashboardDefinition)View.CurrentObject), Application);
         form.ShowDialog();
         if (View is ListView)
             ObjectSpace.CommitChanges();
     }
 }