Ejemplo n.º 1
0
 private void ShowAboutView()
 {
     if (aboutView == null)
     {
         aboutView          = new AboutView(new AboutViewModel());
         aboutView.Closing += (sender, e) => aboutView = null;
         aboutView.Show();
     }
     else
     {
         aboutView.Activate();
     }
 }
Ejemplo n.º 2
0
        private void ShowAboutView()
        {
            if (_aboutView == null)
            {
                _aboutView                       = new AboutView();
                _aboutView.DataContext           = _aboutViewModel;
                _aboutView.Closing              += (arg_1, arg_2) => _aboutView = null;
                _aboutView.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;

                _aboutView.Show();
            }
            else
            {
                _aboutView.Activate();
            }

            _aboutView.Icon = AppIcon;

            _aboutViewModel.AddVersionInfo("Version", Assembly.GetExecutingAssembly().GetName().Version.ToString());
            //_aboutViewModel.AddVersionInfo("Serial Number", "142573462354");
        }
Ejemplo n.º 3
0
        private void ShowAboutView()
        {
            if (aboutView == null)
            {
                aboutView = new AboutView {
                    DataContext = aboutViewModel
                };
                aboutView.Closing += ((arg_1, arg_2) => aboutView = null);
                aboutView.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;

                aboutView.Show();
            }
            else
            {
                aboutView.Activate();
            }
            aboutView.Icon = AppIcon;

            //aboutViewModel.AddVersionInfo("Service", serviceManager.ServiceName);
            aboutViewModel.AddVersionInfo("Version", Assembly.GetExecutingAssembly().GetName().Version.ToString());
            //aboutViewModel.AddVersionInfo("Serial Number", "142573462354");
        }