Exemplo n.º 1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     dialog.OpenTemplateDialog openWin = new dialog.OpenTemplateDialog();
     openWin.ShowDialog();
     TemplateModel um = openWin.getSelected();
     if (null != um)
     {
         name.Text = um.name;
         name.Focus();
         tb_name.Text = um.name;
         tb_name.Focus();
     }
     openWin.Close();
 }
Exemplo n.º 2
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            dialog.OpenTemplateDialog openWin = new dialog.OpenTemplateDialog();
            openWin.ShowDialog();
            TemplateModel um = openWin.getSelected();

            if (null != um)
            {
                name.Text = um.name;
                name.Focus();
                tb_name.Text = um.name;
                tb_name.Focus();
            }
            openWin.Close();
        }