private void fGo(int i) { int nButton; switch (mnMode) { case 1: nButton = _mode1[i - 1]; break; case 2: nButton = _mode2[i - 1]; break; case 3: nButton = _mode3[i - 1]; break; case 4: nButton = _mode4[i - 1]; break; case 5: nButton = _mode5[i - 1]; break; case 6: nButton = _mode6[i - 1]; break; case 7: nButton = _mode7[i - 1]; break; case 8: nButton = _mode8[i - 1]; break; case 9: nButton = _mode9[i - 1]; break; case 10: nButton = _mode10[i - 1]; break; case 11: nButton = _mode11[i - 1]; break; default: nButton = _mode12[i - 1]; break; } if (nButton != 0) { _element.fSave(mnItem, nButton, true); fMSub2 _dlg = new fMSub2(); _dlg.ShowDialog(); } }
private void BtnOpen2_Click(object sender, EventArgs e) { fMSub2 _dlg = new fMSub2(); _dlg.ShowDialog(); }