public PickDateForm(Query query) { Query = query; InitializeComponent(); Query.Start = beginDateTimePicker.Value.Date; Query.End = endingDateTimePicker.Value.Date; }
public void Initialize(Query query) { Query = query; // Load Metrics and dimension into the listBoxes loadDimensions(); loadMetrics(); loadSegments(); }
private void Ribbon1_Load(object sender, RibbonUIEventArgs e) { Query = new Query("Quick query_"+Index); }
public FilterManagerForm(Query query) { Query = query; InitializeComponent(); init(); }
public QueryConfigureForm(Query query) { InitializeComponent(); queryConfigureControl.Initialize(query); }
private void newQueryButton_Click(object sender, EventArgs e) { if (queryNameTextBox.Text == null || queryNameTextBox.Text == "") { MessageBox.Show("Error - The new query must have a name.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else if (reportComboBox.SelectedItem == null) { MessageBox.Show("Error - A report must be selected to add a new query.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { // Create a newTab with a new query TabPage tab = new TabPage(queryNameTextBox.Text); Query query = new Query(queryNameTextBox.Text); tab.Controls.Add(new QueryConfigureControl()); (tab.Controls[0] as QueryConfigureControl).Initialize(query); // Add the tab to the tabControl tabControl.TabPages.Add(tab); // Add the query to the report (reportComboBox.SelectedItem as Report).Queries.Add(query); // Clear the textbox queryNameTextBox.Clear(); } }