private void button13_Click(object sender, EventArgs e)
 {
     using (BrowserScriptPocketQueriesPQSeriesGCProjectForm dlg = new BrowserScriptPocketQueriesPQSeriesGCProjectForm())
     {
         if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             BrowserScriptPocketQueriesPQSeries pqs = comboBox1.SelectedItem as BrowserScriptPocketQueriesPQSeries;
             if (pqs != null)
             {
                 _init = true;
                 pqs.Dates.Clear();
                 pqs.Dates.AddRange(dlg.DateList);
                 if (pqs.Dates.Count == 0)
                 {
                     pqs.Dates.Add(new DateTime(2001, 1, 1));
                 }
                 pqs.Dates.Add(DateTime.Now.AddMonths(6));
                 _init = false;
                 comboBox1_SelectedIndexChanged(this, EventArgs.Empty);
             }
         }
     }
 }
 private void button13_Click(object sender, EventArgs e)
 {
     using (BrowserScriptPocketQueriesPQSeriesGCProjectForm dlg = new BrowserScriptPocketQueriesPQSeriesGCProjectForm())
     {
         if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             BrowserScriptPocketQueriesPQSeries pqs = comboBox1.SelectedItem as BrowserScriptPocketQueriesPQSeries;
             if (pqs != null)
             {
                 _init = true;
                 pqs.Dates.Clear();
                 pqs.Dates.AddRange(dlg.DateList);
                 if (pqs.Dates.Count == 0)
                 {
                     pqs.Dates.Add(new DateTime(2001, 1, 1));
                 }
                 pqs.Dates.Add(DateTime.Now.AddMonths(6));
                 _init = false;
                 comboBox1_SelectedIndexChanged(this, EventArgs.Empty);
             }
         }
     }
 }