// ctor public FinancialDataList() { _timer = new C1.Util.Timer(); _timer.Tick += _timer_Tick; UpdateInterval = 100; BatchSize = 100; }
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; } }
private void SearchBoxInit() { timer = new C1.Util.Timer(); timer.Interval = TimeSpan.FromMilliseconds(200); timer.Tick += TimeTickExecute; }