Ejemplo n.º 1
0
 public void ShowCollectorDetails(ICollector collector)
 {
     base.Show();
     SqlQueryConfig = null;
     SqlQueryConfig = ((SQLQuery)collector).SqlQueryConfig;
     LoadList();
     RefreshList();
     //ShowDetails_Resize(null, null);
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
     }
 }