Esempio n. 1
0
 public UCSearchCondition()
 {
     InitializeComponent();
     _searchCondition             = new SearchConditionClass();
     ucStatTimeRegion1.ArgChanged = new UCStatTimeRegion.ArgChangedDelegate(ArgChanged);
     ucStatTimeFrame1.ArgChanged  = new UCStatTimeFrame.ArgChangedDelegate(ArgChanged);
     dbBegin.Value = DateTime.Now.AddYears(-5);
 }
Esempio n. 2
0
 public object GetArgumentValue()
 {
     if (_searchCondition == null)
     {
         _searchCondition = new SearchConditionClass();
     }
     _searchCondition.BeginDate      = dbBegin.Value;
     _searchCondition.EndDate        = dbEnd.Value;
     _searchCondition.RegionIdentify = GetIdentifyByName();
     _searchCondition.RegionName     = cbLake.Text;
     _searchCondition.Resolution     = GetResultByCb();
     _searchCondition.TimeQuantum    = rbTimeFrame.Checked ? ucStatTimeFrame1.TimeFrame : null;
     _searchCondition.TimeRegion     = rbTimeRegion.Checked ? ucStatTimeRegion1.TimeRegion : null;
     return(_searchCondition);
 }