示例#1
0
 /// <summary>
 /// Initializes an asyncroneous load operation from the specified source
 /// </summary>
 /// <param name="source">Data accessor for our request list</param>
 public void LoadRequests(ITrafficViewerDataAccessor source)
 {
     _dataSource          = source;
     _stopRequested       = false;
     _stopLink.Visible    = true;
     _progressBar.Visible = true;
     _timer          = new System.Windows.Forms.Timer();
     _timer.Tick    += new EventHandler(LoadTick);
     _timer.Interval = LOAD_DELAY;
     _timer.Start();
 }
示例#2
0
 /// <summary>
 /// Search control constructor
 /// </summary>
 /// <param name="dataSource">Data source of the search</param>
 public SearchForm(ITrafficViewerDataAccessor dataSource)
 {
     InitializeComponent();
     _dataSource             = dataSource;
     _dropType.SelectedIndex = 3;
 }