コード例 #1
0
ファイル: Form_Year.cs プロジェクト: retlav/GesAMFCrepo
 /// <versions>01-12-2017(GesAMFC-v0.0.4.41)</versions>
 private void ComboBoxEdit_Year_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         ComboboxItem objItemYear = (ComboBoxEdit_Year.SelectedItem as ComboboxItem);
         this.YearSelected = new AMFCYear(Convert.ToInt32(objItemYear.GetValue()), objItemYear.GetText());
         if (!Program.IsValidYear(this.YearSelected.Value))
         {
             this.YearSelected = new AMFCYear(DateTime.Today.Year);
         }
     }
     catch (Exception ex)
     {
         Program.HandleError(ex.TargetSite.Name, ex.Message, Program.ErroType.EXCEPTION, true, false);
     }
 }
コード例 #2
0
 /// <versions>01-12-2017(GesAMFC-v0.0.4.41)</versions>
 private void ComboBoxEdit_Lote_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         ComboboxItem objItemLote = (ComboBoxEdit_Lote.SelectedItem as ComboboxItem);
         this.LoteSelected = new AMFCLote(Convert.ToInt32(objItemLote.GetValue()), objItemLote.GetText());
     }
     catch (Exception ex)
     {
         Program.HandleError(ex.TargetSite.Name, ex.Message, Program.ErroType.EXCEPTION, true, false);
     }
 }