コード例 #1
0
 public NewDataObjectCommand(IViewModelDependencies appCtx, Func <IZetboxContext> ctxFactory,
                             IZetboxContext dataCtx, ViewModel parent, ObjectClass type, ControlKind reqWorkspaceKind, ControlKind reqEditorKind, IRefreshCommandListener listener)
     : base(appCtx, dataCtx, parent, CommonCommandsResources.NewDataObjectCommand_Name, CommonCommandsResources.NewDataObjectCommand_Tooltip)
 {
     this.Type       = type;
     this.ctxFactory = ctxFactory;
     this._requestedWorkspaceKind = reqWorkspaceKind;
     this._requestedEditorKind    = reqEditorKind;
     this.Listener = listener;
 }
コード例 #2
0
 public RefreshCommand(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, IRefreshCommandListener listener)
     : base(appCtx, dataCtx, parent, CommonCommandsResources.RefreshCommand_Name, CommonCommandsResources.RefreshCommand_Tooltip)
 {
     this.Listener = listener;
 }
コード例 #3
0
 public DeleteDataObjectCommand(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, IRefreshCommandListener listener, bool submitChanges)
     : base(appCtx, dataCtx, parent, CommonCommandsResources.DeleteDataObjectCommand_Name, CommonCommandsResources.DeleteDataObjectCommand_Tooltip)
 {
     this.Listener      = listener;
     this.SubmitChanges = submitChanges;
     this.Icon          = Zetbox.NamedObjects.Gui.Icons.ZetboxBase.delete_png.Find(FrozenContext);
 }