private void createbutton_Click_1(object sender, EventArgs e) { if (Regex.IsMatch(configal[2].ToString(), "1")) { using (var form = new BeginnerForm(null)) { //editForm表示 form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(); } } else if (Regex.IsMatch(configal[2].ToString(), "2")) { using (var subForm = new editForm(null)) { //editForm表示 subForm.StartPosition = FormStartPosition.CenterScreen; subForm.ShowDialog(); } } else { //何も渡さずにediformを表示 Create frm = new Create(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); } loadVPN(); }
private void CsCreate(object sender, EventArgs e) { using (var subForm = new editForm(null)) { //editForm表示 subForm.StartPosition = FormStartPosition.CenterScreen; subForm.ShowDialog(); this.Close(); } }
private void editbutton_Click(object sender, EventArgs e) { if (selectCheck() == true) { //editfomtにVPN情報を渡す using (var subForm = new editForm(this)) { //editForm表示 subForm.ShowDialog(); } loadVPN(); } }