Пример #1
0
 private void cmdMenus_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var dm = new WndMenusManager { Owner = this };
         dm.ShowDialog();
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Пример #2
0
 private void mnuMenusManagement_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (PNStatic.FormMenus == null)
         {
             var d = new WndMenusManager { Owner = this };
             d.ShowDialog();
         }
         else
         {
             PNStatic.FormMenus.Activate();
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }