private void AllAnimalsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            idChart = 5;
            ChartForm chartForm = new ChartForm(this.idChart, this.idCow);

            this.Hide();
            chartForm.Show();
            this.Show();
        }
예제 #2
0
        private void GLactationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            idChart = 12;
            ChartForm chartForm = new ChartForm(this.idChart, this.idCow);

            this.Hide();
            chartForm.Show();
            this.Show();
        }
 private void FamiliesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (idCow == 0)
     {
         MessageBox.Show("Для построения графика необходимо выбрать корову из таблицы", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         idChart = 4;
         ChartForm chartForm = new ChartForm(this.idChart, this.idCow);
         this.Hide();
         chartForm.Show();
         this.Show();
     }
 }