示例#1
0
        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);
                }
            }
        }
示例#2
0
		public virtual OperationResult UpdateEntity(ErrorCodeSeasonGroup ecsg,bool isSave=true)
		{
			return ecsgRepository.Update(ecsg,isSave);
		}
示例#3
0
		public virtual OperationResult AddEntity(ErrorCodeSeasonGroup ecsg,bool isSave=true)
		{
			return ecsgRepository.Insert(ecsg,isSave);
		}
示例#4
0
 public virtual OperationResult UpdateEntity(ErrorCodeSeasonGroup ecsg, bool isSave = true)
 {
     return(ecsgRepository.Update(ecsg, isSave));
 }
示例#5
0
 public virtual OperationResult AddEntity(ErrorCodeSeasonGroup ecsg, bool isSave = true)
 {
     return(ecsgRepository.Insert(ecsg, isSave));
 }