Пример #1
0
 private void AddContactBinding_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (false == ActivateWindow <AddContact>())
     {
         AddContact window = new AddContact();
         window.Done += new EventHandler <AddContact.Result>(AddContact_Done);
         window.Show();
     }
 }
        private void addButton_Click(object sender, EventArgs e)
        {
            AddContact contact = new AddContact();

            contact.Show();
        }