Ejemplo n.º 1
0
 public void AddViewCommandExecuted(object param)
 {
     try
     {
         if (addViewModel == null)
         {
             addViewModel = new AddViewModel(bcfViewModel, m_event, m_handler);
             AddViewWindow viewWindow = new AddViewWindow();
             viewWindow.DataContext = addViewModel;
             viewWindow.Closed     += WindowClosed;
             viewWindow.Show();
         }
     }
     catch (Exception ex)
     {
         string message = ex.Message;
     }
 }
Ejemplo n.º 2
0
 public void WindowClosed(object sender, System.EventArgs e)
 {
     componentViewModel = null;
     addViewModel       = null;
 }