public Form1() { InitializeComponent(); students = new CStudents(); visualization = new CVisualization(students.Collection, new Point(40, 40)); work = new WorkWithFile(); }
private void makeTheTaskToolStripMenuItem_Click(object sender, EventArgs e) { if (IsOpened) { byte c = 0; bool ok = true; do { string course = Interaction.InputBox("Input The course"); ok = (course == "" || byte.TryParse(course, out c)); if (!ok) { c = 0; } } while (!ok); if (c != 0) { CStudents res = students.MainTAsk(c); Form ResForm = new Form(); ResForm.Width = 830; ResForm.Height = 600; ResForm.MaximumSize = ResForm.MinimumSize = new Size(830, 600); CVisualization resV = new CVisualization(res.Collection, new Point(40, 40)); resV.Display(false); resV.MakeUnAviable(); resV.DisplayOnForm(ResForm); ResForm.Show(); } } else { MessageBox.Show("You did not chose a file"); } }