private void EconomyEditorClicked(object param) { this.ProductMemento = new ProductMemento(this.SelectedProduct); Dialogs.DialogService.DialogResult result = this.dialogFacade.ShowEconomyEditorDetail("Product Editor Detail", param as Window, this.SelectedProduct); if (result == Dialogs.DialogService.DialogResult.No) { CloneUtil.CopyProperties(ProductMemento.Product, this.SelectedProduct); } }
private void JobEditorClicked(object param) { this.jobMemento = new JobMemento(this.SelectedJob); Dialogs.DialogService.DialogResult result = this.dialogFacade.ShowJobEditorDetail("Job Editor Detail", param as Window, this.SelectedJob); if (result == Dialogs.DialogService.DialogResult.No) { CloneUtil.CopyProperties(jobMemento.Job, this.SelectedJob); } }
private void EconomyEditorCopyClicked(object param) { if (this.SelectedProduct != null) { Product newProduct = new Product(); CloneUtil.CopyProperties(this.SelectedProduct, newProduct); newProduct.Id = newProduct.Id + "_copy"; this.Galaxy.Products.Add(newProduct); this.SelectedProduct = newProduct; } }
private void JobEditorCopyClicked(object param) { if (this.SelectedJob != null) { Job newJob = new Job(); CloneUtil.CopyProperties(this.SelectedJob, newJob); newJob.Id = newJob.Id + "_copy"; this.Galaxy.Jobs.Add(newJob); this.SelectedJob = newJob; } }