Example #1
0
 private void MenuItemEdit_Click(object sender, RoutedEventArgs e)
 {
     Package.PackageDialog _pd = new Package.PackageDialog();
     if (!_pd.Edit(m_MainWindowStateMachine.PackageProperties).GetValueOrDefault(false))
     {
         return;
     }
     m_MainWindowStateMachine.PackageProperties = _pd.PackageProperties;
 }
Example #2
0
 private void MenuItemOpenSolution_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Package.PackageDialog _pd = new Package.PackageDialog();
         if (!_pd.Open().GetValueOrDefault(false))
         {
             return;
         }
         m_MainWindowStateMachine.NewPackageProperties(_pd.PackageProperties);
         ToolBarSolutionLabel.Content = m_MainWindowStateMachine.InstallationDescription.Title;
     }
     catch (Exception ex)
     {
         ToolBarSolutionLabel.Content = "Error";
         string _message = String.Format(Properties.Resources.LastOperationFailed, ex.Message);
         Tracing.TraceEvent.TraceError(49, "MenuItemOpenSolution_Click", _message);
         MessageBox.Show(_message, "Open solution", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #3
0
 private void MenuItemView_Click(object sender, RoutedEventArgs e)
 {
     Package.PackageDialog _pd = new Package.PackageDialog();
     _pd.View(m_MainWindowStateMachine.PackageProperties);
 }