private void ManagerPluginUnloaded(object sender, PluginEventArgs e) { Toolbars.RemoveItemsForPlugin(e.Identity); Menu.RemoveItemsForPlugin(e.Identity); DockPanels.RemoveItemsForPlugin(e.Identity); Toolbox.RemoveItemsForPlugin(e.Identity); StatusBar.RemoveItemsForPlugin(e.Identity); }
public void RemoveWindowAt(int WindowIndex) { //Windows.RemoveAt(WindowIndex); ///have not remove panel DockPanels.Remove(panels[WindowIndex]); panels.RemoveAt(WindowIndex); Windows.RemoveAt(WindowIndex); }
private void ManagerPluginUnloaded(object sender, PluginEventArgs e) { if (Toolbars != null) { Toolbars.RemoveItemsForPlugin(e.Identity); } if (ViewType == MainViewType.Normal) { Menu.RemoveItemsForPlugin(e.Identity); } else { } DockPanels.RemoveItemsForPlugin(e.Identity); StatusBar.RemoveItemsForPlugin(e.Identity); }
//public List<Trace> Traces { get; set; } public void AddWindow() { //WindowInfo wInfo = new WindowInfo(); //wInfo.Name = "window" + (Windows.Count + 1).ToString(); //Windows.Add(wInfo); DevExpress.Xpf.Docking.LayoutPanel lpl = new DevExpress.Xpf.Docking.LayoutPanel(); //lpl.Caption = wInfo.Name; WindowChart wChart = new WindowChart(); wChart.Name = "window" + (panels.Count + 1).ToString(); lpl.Caption = wChart.Name; lpl.Content = wChart; lpl.Content = wChart; DockPanels.Add(lpl); panels.Add(lpl); Windows.Add(wChart); }
public void ClearChart() { Windows.Clear(); DockPanels.Clear(); panels.Clear(); }