示例#1
0
 // ctor
 public FinancialDataList()
 {
     _timer         = new C1.Util.Timer();
     _timer.Tick   += _timer_Tick;
     UpdateInterval = 100;
     BatchSize      = 100;
 }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            this.c1FlexGrid1.ItemsSource = ItemsPool= new ObservableCollection<ProjInfoData>();

            Timer timer = new Timer();
            timer.Interval = new TimeSpan(1000);
            timer.Tick += TimerOnTick;

            timer.Start();
        }
 void UpdateTimer()
 {
     if (AutoUpdate)
     {
         if (_timer == null)
         {
             _timer       = new C1.Util.Timer();
             _timer.Tick += _timer_Tick;
         }
         _timer.Interval  = TimeSpan.FromMilliseconds(UpdateInterval);
         _timer.IsEnabled = true;
     }
     else if (_timer != null)
     {
         _timer.IsEnabled = false;
         _timer.Tick     -= _timer_Tick;
         _timer           = null;
     }
 }
示例#4
0
 private void SearchBoxInit()
 {
     timer = new C1.Util.Timer();
     timer.Interval = TimeSpan.FromMilliseconds(200);
     timer.Tick += TimeTickExecute;
 }