コード例 #1
0
 public override void LoadContent(AbstractLink wrapper)
 {
     base.LoadContent(wrapper);
     Target = wrapper.Target;
     var commandGroup = new CommandGroup();
     commandGroup.Commands.Add(
         new RelayCommand(param => UserInterfaceUtilities.OpenBrowser(Target)));
     commandGroup.Commands.Add(
         new RelayCommand(param => RootDialogModel.ResetFocus()));
     Command = commandGroup;
 }
コード例 #2
0
        public override void LoadContent(AbstractLink wrapper)
        {
            base.LoadContent(wrapper);

            SystemUtilities.ControlPanelNames target;
            Enum.TryParse(wrapper.Target, out target);
            var commandGroup = new CommandGroup();
            commandGroup.Commands.Add(
                new RelayCommand(param => SystemUtilities.OpenControlPanel(target)));
            commandGroup.Commands.Add(
                new RelayCommand(param => RootDialogModel.ResetFocus()));
            Command = commandGroup;
        }