Exemple #1
0
 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);
 }
Exemple #2
0
        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);
 }
Exemple #4
0
        //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);
        }
Exemple #5
0
 public void ClearChart()
 {
     Windows.Clear();
     DockPanels.Clear();
     panels.Clear();
 }