public void ShowCollectorDetails(ICollector collector) { base.Show(); SqlQueryConfig = null; SqlQueryConfig = ((SQLQuery)collector).SqlQueryConfig; LoadList(); RefreshList(); //ShowDetails_Resize(null, null); }
public void RefreshConfig(ICollector collector) { SqlQueryConfig = null; SqlQueryConfig = ((SQLQuery)collector).SqlQueryConfig; LoadList(); RefreshList(); if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } this.Show(); }
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(); } }