void ShowAssemblyDetailsCommand_Executed(object sender, Apex.MVVM.CommandEventArgs args)
        {
            //  Get the assembly view model.
            var assemblyViewModel = args.Parameter as GACAssemblyViewModel;

            //  If we don't have one, bail.
            if (assemblyViewModel == null)
            {
                return;
            }

            //  Create a new assembly details window.
            var assemblyDetailsWindow = new AssemblyDetails.AssemblyDetailsWindow();

            assemblyDetailsWindow.AssemblyViewModel = assemblyViewModel;

            //  Show the window.
            assemblyDetailsWindow.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// Performs the ShowAssemblyDetails command.
        /// </summary>
        /// <param name="parameter">The ShowAssemblyDetails command parameter.</param>
        private void DoShowAssemblyDetailsCommand(object parameter)
        {
            //  Get the assembly view model.
            var assemblyViewModel = parameter as GACAssemblyViewModel;

            //  If we don't have one, bail.
            if (assemblyViewModel == null)
            {
                return;
            }

            //  Create a new assembly details window.
            var assemblyDetailsWindow = new AssemblyDetails.AssemblyDetailsWindow
            {
                AssemblyViewModel = assemblyViewModel
            };

            //  Show the window.
            assemblyDetailsWindow.ShowDialog();
        }