Exemple #1
0
        private void Drawing(float[][] wm, float[][] mas, List <float[]> cp, float w)
        {
            Source so = (Source)allForms["Исходные данные"];

            GraphControls.DrawCyclogram(so.GetProcessNames(), mas, cp, so.toolStripComboBox1.SelectedIndex);
            GraphControls.DrawWorkers(wm, mas, w);
            GraphControls.DrawMoney(wm);
        }
Exemple #2
0
 private void exportStripMenuItem_Click(object sender, EventArgs e)
 {
     if (changed)
     {
         MessageBox.Show("Выполните расчёт и повторите попытку.", "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         SaveGraph sg = new SaveGraph(GraphControls.GetAllControls());
         sg.ShowDialog(this);
     }
 }
Exemple #3
0
        private Form CreateForm(string formName)
        {
            Form form = new Form
            {
                ClientSize = new Size(450, 350),
                ShowIcon   = false,
                MdiParent  = this,
                Text       = formName
            };

            form.FormClosing += new FormClosingEventHandler(DontClose);
            form.Controls.Add(GraphControls.GetByName(formName));
            form.Show();
            return(form);
        }