public ConnectionItemCopyMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.cremaAppHost.Opened += this.InvokeCanExecuteChangedEvent; this.cremaAppHost.Closed += this.InvokeCanExecuteChangedEvent; this.DisplayName = Resources.MenuItem_Copy; }
public ConnectionItemLoginMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.cremaAppHost.Opened += this.InvokeCanExecuteChangedEvent; this.cremaAppHost.Closed += this.InvokeCanExecuteChangedEvent; this.cremaAppHost.PropertyChanged += CremaAppHost_PropertyChanged; this.DisplayName = Resources.MenuItem_Login; }
public LeaveDataBaseMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.cremaAppHost.Loaded += this.InvokeCanExecuteChangedEvent; this.cremaAppHost.Unloaded += this.InvokeCanExecuteChangedEvent; this.cremaAppHost.PropertyChanged += CremaAppHost_PropertyChanged; this.DisplayName = Resources.MenuItem_LeaveDataBase; }
public ConnectionItemEditViewModel(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.connectionItemInfo = new ConnectionItemViewModel(cremaAppHost); this.connectionItemInfo.PropertyChanged += ConnectionItemInfo_PropertyChanged; this.IsNew = true; this.DisplayName = Resources.Title_AddConnectionItem; }
public ConnectionItemEditViewModel(CremaAppHostViewModel cremaAppHost, ConnectionItemViewModel connectionItemInfo) { this.cremaAppHost = cremaAppHost; this.connectionItemInfo = connectionItemInfo ?? throw new ArgumentNullException(nameof(connectionItemInfo)); if (this.connectionItemInfo.IsTemporary == true) { throw new ArgumentException(); } this.connectionItemInfo.PropertyChanged += ConnectionItemInfo_PropertyChanged; this.DisplayName = Resources.Title_EditConnectionItem; }
public MovoToWikiToolBarItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.Icon = "/Ntreev.Crema.Client.Base;component/Images/wiki.png"; this.DisplayName = Resources.Label_MoveToWiki; }
public ConnectionItemDeleteMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.DisplayName = Resources.MenuItem_Delete; }
public LogoutMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.cremaAppHost.PropertyChanged += CremaAppHost_PropertyChanged; this.DisplayName = Resources.MenuItem_Logout; }
public ConnectionItemEditMenuItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.DisplayName = Resources.MenuItem_Edit; }
public MovoToWikiToolBarItem(CremaAppHostViewModel cremaAppHost) { this.cremaAppHost = cremaAppHost; this.Icon = "Images/wiki.png"; this.DisplayName = Resources.Label_MoveToWiki; }