private void button_Initialize_Click(object sender, EventArgs e) { MemoryInitializationForm form = new MemoryInitializationForm(); form.ShowDialog(); if (form.DialogResult == System.Windows.Forms.DialogResult.OK) { memory = form.getMemory(); processCounter++; } refresh(); }
private void MainForm_Load(object sender, EventArgs e) { MemoryInitializationForm form = new MemoryInitializationForm(); form.ShowDialog(); if (form.DialogResult == System.Windows.Forms.DialogResult.OK) { memory = form.getMemory(); refresh(); } else { this.Close(); } }