Stream(ArrayList data, Autodesk.AutoCAD.Windows.Pane pane) { data.Add(new Snoop.Data.ClassSeparator(typeof(Autodesk.AutoCAD.Windows.Pane))); data.Add(new Snoop.Data.String("Text", pane.Text)); data.Add(new Snoop.Data.String("Style", pane.Style.ToString())); data.Add(new Snoop.Data.Int("Maximum width", pane.MaximumWidth)); data.Add(new Snoop.Data.Int("Minimum width", pane.MinimumWidth)); }
Stream(ArrayList data, Autodesk.AutoCAD.Windows.StatusBarItem statusBarItem) { data.Add(new Snoop.Data.ClassSeparator(typeof(Autodesk.AutoCAD.Windows.StatusBarItem))); data.Add(new Snoop.Data.Bool("Enabled", statusBarItem.Enabled)); data.Add(new Snoop.Data.Icon("Icon", statusBarItem.Icon)); data.Add(new Snoop.Data.String("Tool tip text", statusBarItem.ToolTipText)); data.Add(new Snoop.Data.Bool("Visible", statusBarItem.Visible)); Autodesk.AutoCAD.Windows.Pane pane = statusBarItem as Autodesk.AutoCAD.Windows.Pane; if (pane != null) { Stream(data, pane); return; } Autodesk.AutoCAD.Windows.TrayItem trayItem = statusBarItem as Autodesk.AutoCAD.Windows.TrayItem; if (trayItem != null) { Stream(data, trayItem); return; } }