Exemplo n.º 1
0
 public GceSource(ICloudSourceContext context) : base(context)
 {
     _windowsOnlyButton = new ButtonDefinition
     {
         ToolTip = Resources.CloudExplorerGceOnlyWindowsButtonToolTip,
         Command = new WeakCommand(OnOnlyWindowsClicked),
         Icon    = s_windowsOnlyButtonIcon.Value,
     };
     ActualButtons.Add(_windowsOnlyButton);
 }
 void Activate_Or_Deactivate_button(GameObject[] GameObjectArray, string TagButtons, bool activateOrDeactivate)
 {
     if (GameObjectArray == null)
     {
         GameObjectArray = GameObject.FindGameObjectsWithTag(TagButtons);
     }
     foreach (GameObject ActualButtons in GameObjectArray)
     {
         ActualButtons.SetActive(activateOrDeactivate);
     }
 }
Exemplo n.º 3
0
 public GceSource(ICloudSourceContext context) : base(context)
 {
     _windowsOnlyButton = new ButtonDefinition
     {
         ToolTip = Resources.CloudExplorerGceOnlyWindowsButtonToolTip,
         Command = new ProtectedCommand(OnOnlyWindowsCommand),
         Icon    = s_windowsOnlyButtonIcon.Value,
     };
     ActualButtons.Add(_windowsOnlyButton);
     ActualRoot.ShowOnlyWindowsInstancesChanged += OnShowOnlyWindowsInstancesChanged;
 }
Exemplo n.º 4
0
        public override void OnApplyTemplate()
        {
            ShowEditorButtons = true;
            base.OnApplyTemplate();

            if (LookupButtonEnabled)
            {
                var button3Point = ActualButtons == null ? null : ActualButtons.SingleOrDefault(p => Equals(p.Tag, Button3PointName));
                if (button3Point == null)
                {
                    button3Point = new ButtonInfo
                    {
                        GlyphKind  = GlyphKind.Regular,
                        ButtonKind = ButtonKind.Simple,
                        Command    = _openReferenceWindowCommand,
                        Tag        = Button3PointName
                    };

                    Buttons.Add(button3Point);
                }
            }

            OnEditButtonValidation();
        }