private void optionsToolStripMenuItem1_Click(object sender, EventArgs e) { TabOptions op = new TabOptions(); if (workspace_ob.keys.Count < 2) { textBox_info.Text = "Please, add more keys."; return; } op.workspace_ob = this.workspace_ob; op.workspace_ob_last = this.workspace_ob; if (op.ShowDialog() == DialogResult.OK) { this.workspace_ob = op.workspace_ob; GenerateNumbers(); } else return; }
private void optionsToolStripMenuItem1_Click(object sender, EventArgs e) { TabOptions op = new TabOptions(); if (workspace_ob.op.game_mod == Workspace.options.g_mod.BASIC_EVEN_ODD && workspace_ob.keys.Count < 2) { textBox_info.Text = "Please, add more keys."; return; } op.workspace_ob = this.workspace_ob; op.workspace_ob_last = this.workspace_ob; if (op.ShowDialog() == DialogResult.OK) { this.workspace_ob = op.workspace_ob; foreach (Workspace.key a in workspace_ob.keys) { a.str = ""; } GenereteNumbers.workspace = workspace_ob; GenereteNumbers.Generate_Number(); update_dataGridView1(); Refresh(); } else return; }