コード例 #1
0
 private void SaveProducer()
 {
     controller.InsertOrUpdate(EditProducer.GetProducer());
     InitViewModels();
     EditProducer = null;
 }
コード例 #2
0
 private void DeleteProducer()
 {
     controller.RemoveProducerById(EditProducer.GetProducer().Id);
     InitViewModels();
     EditProducer = null;
 }
コード例 #3
0
 private void CreateNewProducer()
 {
     EditProducer               = new ProducerViewModel(new Producer());
     EditProducer.Name          = "";
     EditProducer.CountryOrigin = "";
 }