Exemple #1
0
 private void cmdStartWF_Click(object sender, RoutedEventArgs e)
 {
     UserNameWinForm form = new UserNameWinForm();
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         lblNameWF.Content = form.UserName;
     }
     form.Dispose();
 }
Exemple #2
0
        private void cmdStartWF_Click(object sender, RoutedEventArgs e)
        {
            UserNameWinForm form = new UserNameWinForm();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                lblNameWF.Content = form.UserName;
            }
            form.Dispose();
        }
 private void OnStartWinForm(object sender, RoutedEventArgs e)
 {
     using (var form = new UserNameWinForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             LblNameWf.Content = form.UserName;
         }
     }
 }