Example #1
0
        private void openFD_File_Click(object sender, EventArgs e)
        {
            panel1.Enabled = false;
            try
            {
                open_file(dataGridView1);
                if (dataGridView1.Rows != null && dataGridView1.Rows.Count != 0)
                {
                    if (dataGridView1.Columns.Count != 2)
                    {
                        MessageBox.Show("Откройте файл для простой линейной регрессии");
                    }
                    else
                    {
                        StandartDevZav.Clear();
                        StandrtDevNZav.Clear();
                        PirsCorr.Clear();
                        koeffReg.Clear();
                        Oy.Clear();
                        StandrExp.Clear();
                        zg2.GraphPane.CurveList.Clear();
                        zg2.GraphPane.GraphObjList.Clear();
                        zg2.Refresh();

                        panel1.Enabled = true;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Example #2
0
 private void очиститьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StandartDevZav.Clear();
     StandrtDevNZav.Clear();
     PirsCorr.Clear();
     koeffReg.Clear();
     Oy.Clear();
     StandrExp.Clear();
     dataGridView1.Rows.Clear();
     zg2.GraphPane.CurveList.Clear();
     zg2.GraphPane.GraphObjList.Clear();
     zg2.Refresh();
     panel1.Enabled = false;
     dataGridView1.Columns.Clear();
     CreateFile.CreateFile.numberСolumns = 0;
 }