Esempio n. 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();
 }
Esempio n. 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();
        }
Esempio n. 3
0
 private void OnStartWinForm(object sender, RoutedEventArgs e)
 {
     using (var form = new UserNameWinForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             LblNameWf.Content = form.UserName;
         }
     }
 }