private static void B_Click2(object sender, EventArgs e) { var B = ((Button)sender); var U = ((PanelReplacement)B.Parent); var C = U.GetControlByName(B.Tag as String); var ME = new matrixeditor(C.Text); ME.ShowDialog(); if (string.IsNullOrEmpty(ME.result)) { return; } ((ComboBox)C).Items.Add(ME.result); C.Text = ME.result; }
private static void B_Click2(object sender, EventArgs e) { var B = ((Button)sender); var U = ((PanelReplacement)B.Parent); var C = U.GetControlByName(B.Tag as String); var ME = new matrixeditor(C.Text); ME.ShowDialog(); if (string.IsNullOrEmpty(ME.result)) return; ((ComboBox)C).Items.Add(ME.result); C.Text = ME.result; }