private void cmbSelectView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.variableViewCollection.SelectedIndex >= 0)
            {
                if (this.variableViewCollection.SelectedTab.Name.Contains("SERIES "))
                {
                    VariableTabPage vtp = (VariableTabPage)this.variableViewCollection.SelectedTab;
                    switch (this.cmbSelectView.SelectedIndex)
                    {
                    case 0: vtp.ShowDataGrid(); break;

                    case 1: vtp.ShowGraph(); break;

                    case 2: vtp.ShowStatistics(); break;
                    }
                }
                else if (this.variableViewCollection.SelectedTab.Name.Contains("GROUP "))
                {
                    GroupTabPage gtp = (GroupTabPage)this.variableViewCollection.SelectedTab;
                    switch (this.cmbSelectView.SelectedIndex)
                    {
                    case 0: gtp.ShowDataGrid(); break;

                    case 1: gtp.ShowGraph(); break;
                    }
                }
            }
        }
 private void cmdGraphic_Click(object sender, EventArgs e)
 {
     this.cmdGraphic.BackgroundImage = zaitun.Properties.Resources.button_selected_view_pane2;
     if (this.variableViewCollection.SelectedTab.Name.Contains("SERIES "))
     {
         VariableTabPage vtp = (VariableTabPage)this.variableViewCollection.SelectedTab;
         vtp.ShowGraph();
     }
     else if (this.variableViewCollection.SelectedTab.Name.Contains("GROUP "))
     {
         GroupTabPage gtp = (GroupTabPage)this.variableViewCollection.SelectedTab;
         gtp.ShowGraph();
     }
     else if (this.variableViewCollection.SelectedTab.Name.Contains("STOCK "))
     {
         StockTabPage stp = (StockTabPage)this.variableViewCollection.SelectedTab;
         stp.ShowGraph();
     }
 }