Example #1
0
 void ToolStripVisibleChanged(object sender, EventArgs e)
 {
     if (this.toolStrip.Visible)
     {
         this.toolStrip.VisibleChanged -= this.ToolStripVisibleChanged;
         ToolbarService.UpdateToolbar(this.toolStrip);
     }
 }
Example #2
0
 void UpdateToolbars()
 {
     if (ToolBars != null)
     {
         foreach (ToolStrip toolStrip in ToolBars)
         {
             ToolbarService.UpdateToolbar(toolStrip);
         }
     }
 }
Example #3
0
 void RemoveSpecialPanel()
 {
     if (specialPanel != null)
     {
         specialPanel = null;
         myPanel.Controls.Remove(specialPanel);
         myPanel.Controls.Add(resultTreeView);
         myPanel.Controls.SetChildIndex(resultTreeView, 0);
         ToolbarService.UpdateToolbar(toolStrip);
     }
 }
 void UpdateToolStrip(AbstractProjectBrowserTreeNode node)
 {
     toolStrip.Items.Clear();
     toolStrip.Items.AddRange(standardItems);
     ToolbarService.UpdateToolbar(toolStrip);
     if (node != null && node.ToolbarAddinTreePath != null)
     {
         toolStrip.Items.Add(new ToolStripSeparator());
         toolStrip.Items.AddRange((ToolStripItem[])AddInTree.BuildItems(node.ToolbarAddinTreePath, node, false).ToArray(typeof(ToolStripItem)));
     }
 }
Example #5
0
 /// <summary>
 /// Changes wordwrap settings if that property has changed.
 /// </summary>
 void PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.Key == "WordWrap")
     {
         SetWordWrap();
         ToolbarService.UpdateToolbar(toolStrip);
     }
     if (e.Key == "DefaultFont")
     {
         textEditorControl.Font = FontSelectionPanel.ParseFont(properties.Get("DefaultFont", WinFormsResourceService.DefaultMonospacedFont.ToString()).ToString());
     }
 }
Example #6
0
 void UpdateToolStrip(AbstractProjectBrowserTreeNode node)
 {
     if (toolStrip == null)
     {
         return;
     }
     toolStrip.Items.Clear();
     toolStrip.Items.AddRange(standardItems);
     ToolbarService.UpdateToolbar(toolStrip);
     if (node != null && node.ToolbarAddinTreePath != null)
     {
         toolStrip.Items.Add(new ToolStripSeparator());
         toolStrip.Items.AddRange(ToolbarService.CreateToolStripItems(node.ToolbarAddinTreePath, node, false));
     }
 }
Example #7
0
 void ShowSpecialPanel(Control ctl)
 {
     ctl.Dock = DockStyle.Fill;
     if (specialPanel == ctl)
     {
         return;
     }
     if (specialPanel != null)
     {
         myPanel.Controls.Remove(specialPanel);
     }
     else
     {
         myPanel.Controls.Remove(resultTreeView);
     }
     specialPanel = ctl;
     myPanel.Controls.Add(ctl);
     myPanel.Controls.SetChildIndex(ctl, 0);
     ToolbarService.UpdateToolbar(toolStrip);
 }
Example #8
0
 /// <summary>
 /// Updates the state of the buttons on the Unit Tests pad's
 /// toolbar.
 /// </summary>
 public void UpdateToolbar()
 {
     ToolbarService.UpdateToolbar(toolStrip);
 }
Example #9
0
 void UpdateToolbars()
 {
     ToolbarService.UpdateToolbar(toolStrip);
     ToolbarService.UpdateToolbar(searchStrip);
 }
Example #10
0
 public void UpdateToolbar()
 {
     ToolbarService.UpdateToolbar(toolStrip);
     toolStrip.Refresh();
 }
Example #11
0
 void UpdateToolstripStatus()
 {
     ToolbarService.UpdateToolbar(toolStrip);
     ToolbarService.UpdateToolbarText(toolStrip);
 }