Exemple #1
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     SqlQueryConfig = null;
     SqlQueryConfig = ((SQLQuery)collector).SqlQueryConfig;
     LoadList();
     RefreshList();
     //ShowDetails_Resize(null, null);
 }
Exemple #2
0
 public void RefreshConfig(ICollector collector)
 {
     SqlQueryConfig = null;
     SqlQueryConfig = ((SQLQuery)collector).SqlQueryConfig;
     LoadList();
     RefreshList();
     if (this.WindowState == FormWindowState.Minimized)
     {
         this.WindowState = FormWindowState.Normal;
     }
     this.Show();
 }
Exemple #3
0
 private void cmdOK_Click(object sender, EventArgs e)
 {
     if (CheckOKEnabled())
     {
         SqlQueryConfig = new SQLQueryConfig();
         foreach (ListViewItem lvi in lvwQueries.Items)
         {
             QueryInstance queryInstance = (QueryInstance)lvi.Tag;
             SqlQueryConfig.Queries.Add(queryInstance);
         }
         DialogResult = System.Windows.Forms.DialogResult.OK;
         Close();
     }
 }