コード例 #1
0
 public PickDateForm(Query query)
 {
     Query = query;
     InitializeComponent();
     Query.Start = beginDateTimePicker.Value.Date;
     Query.End = endingDateTimePicker.Value.Date;
 }
コード例 #2
0
 public void Initialize(Query query)
 {
     Query = query;
     // Load Metrics and dimension into the listBoxes
     loadDimensions();
     loadMetrics();
     loadSegments();
 }
コード例 #3
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     Query = new Query("Quick query_"+Index);
 }
コード例 #4
0
 public FilterManagerForm(Query query)
 {
     Query = query;
     InitializeComponent();
     init();
 }
コード例 #5
0
 public QueryConfigureForm(Query query)
 {
     InitializeComponent();
     queryConfigureControl.Initialize(query);
 }
コード例 #6
0
 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();
     }
 }