예제 #1
0
 private void addEntity(object sender, MouseButtonEventArgs e)
 {
     try {
         var wnd = new WndCustomerEdit(new Customer());
         wnd.EditFinished += (sender2, e2) => RefreshData();
         wnd.Owner         = this;
         WindowsFunctions.Show(wnd);
     }
     catch (System.Exception ex) {
         MessageBox.Show(WindowsMessages.messageForAdmin);
         MessageBox.Show(ex.Message + "/n" + ex.StackTrace);
     }
 }