示例#1
0
        private void AddCustomCaption()
        {
            // Setup tray button
            CustomCaptionButton customButton = new CustomCaptionButton();

            customButton.Key = "TrayButton";

            customButton.Click += new EventHandler(trayButton_Click);

            CaptionButtons.Add(customButton);
        }
示例#2
0
 public CustomSkin(string skinConfigFile)
 {
     _skinSetting = new SkinSetting(skinConfigFile);
     CaptionButtons.Add(new CaptionButton(HitTest.HTCLOSE));
     CaptionButtons.Add(new CaptionButton(HitTest.HTMAXBUTTON));
     CaptionButtons.Add(new CaptionButton(HitTest.HTMINBUTTON));
     foreach (CaptionButton button in CaptionButtons)
     {
         button.PropertyChanged += OnCommandButtonPropertyChanged;
     }
 }
示例#3
0
 void DaggerUISubNode_DaggerNodeAttached(DaggerNode node)
 {
     // store the sub node so we can make the UIGraph for it later
     _node = (DaggerSubNode)node;
     _node.SubNodeGraph.ImportedPins.PinAdded += new DaggerPinAdded(ImportedPins_PinAdded);
     _node.SubNodeGraph.ExportedPins.PinAdded += new DaggerPinAdded(ExportedPins_PinAdded);
     _editSubNodeButton                = new SimpleImageButton();
     _editSubNodeButton.ButtonImage    = _subnodeEditButtonImageList.Images[0];
     _editSubNodeButton.ButtonImage2   = _subnodeEditButtonImageList.Images[1];
     _editSubNodeButton.MultiState     = true;
     _editSubNodeButton.ToolTipText    = "Edit SubNode";
     _editSubNodeButton.ToolTipEnabled = true;
     _editSubNodeButton.StateChanged  += new SimpleImageButton.StateChangedEventHandler(_editSubNodeButton_StateChanged);
     CaptionButtons.Add(_editSubNodeButton);
 }