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 cmdStatistics_Click(object sender, EventArgs e)
 {
     this.cmdStatistics.BackgroundImage = zaitun.Properties.Resources.button_selected_view_pane2;
     if (this.variableViewCollection.SelectedTab.Name.Contains("SERIES "))
     {
         VariableTabPage vtp = (VariableTabPage)this.variableViewCollection.SelectedTab;
         vtp.ShowStatistics();
     }
 }