Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
            }
        }