コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 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;
     }
 }