private void PWindowClose_Click(object sender, RoutedEventArgs e) { PassWinFormEventArgs args = new PassWinFormEventArgs("233", "233"); PassBetweenForm(this, args); this.Close(); }
private void PWindow_Click(object sender, EventArgs e) { string GuideNum, StopNum; if (drp1Name.SelectedIndex == -1) { return; } GuideNum = drp1Name.SelectedValue.ToString(); StopNum = drpAge.Text; PassWinFormEventArgs args = new PassWinFormEventArgs(GuideNum, StopNum); PassBetweenForm(this, args); this.Close(); }
private void DropBoxOK_Click(object sender, EventArgs e) { string GuideNum, StopNum; if (drp1Name.SelectedIndex == -1 || drpAge.SelectedIndex == -1) { return; } GuideNum = ForDependencyGL.Text + drp1Name.SelectedValue.ToString(); StopNum = ForDependencySL.Text + drpAge.SelectedValue.ToString(); PassWinFormEventArgs args = new PassWinFormEventArgs(GuideNum, StopNum); PassBetweenForm(this, args); this.Close(); }