private void listBox2_SelectedIndexChanged(object sender, EventArgs e) { ErrorCodeSeasonGroup errorCodeSeasonGroup = (ErrorCodeSeasonGroup)listBox2.SelectedItem; if (errorCodeSeasonGroup != null) { listBox3.DataSource = errorCodeSeasonGroup.ecses.ToList(); } listBox3.SelectedItem = null; //OperationResult operationResult = Program.programContainer.GetExportedValue<FrmTsInputEdit>().tsCompositionContainer.GetExportedValue<IFrmTsInputEditService>().GetErrorCodeSeasonByGroup(errorCodeSeasonGroup.ecsgcode); //List<ErrorCodeSeason> list = (List<ErrorCodeSeason>)operationResult.AppendData; //listBox3.DataSource = list; TsErrorCause tec = Program.programContainer.GetExportedValue <FrmTsInputEdit>().currentTsErrorCause; if (tec != null) { int index_listBoxe3 = listBox3.FindString(tec.errorCodeSeason.ecsdesc); if (index_listBoxe3 == -1) { MessageBox.Show("Item is not available in ListBox2"); } else { listBox3.SetSelected(index_listBoxe3, true); } } }
public virtual OperationResult UpdateEntity(ErrorCodeSeasonGroup ecsg,bool isSave=true) { return ecsgRepository.Update(ecsg,isSave); }
public virtual OperationResult AddEntity(ErrorCodeSeasonGroup ecsg,bool isSave=true) { return ecsgRepository.Insert(ecsg,isSave); }
public virtual OperationResult UpdateEntity(ErrorCodeSeasonGroup ecsg, bool isSave = true) { return(ecsgRepository.Update(ecsg, isSave)); }
public virtual OperationResult AddEntity(ErrorCodeSeasonGroup ecsg, bool isSave = true) { return(ecsgRepository.Insert(ecsg, isSave)); }