public monitor (main main) { this.main = main; this.StartPosition = FormStartPosition.Manual; top = new Panel(); bottom = new Panel(); splitter = new Splitter(); events = new ListView(); events.Columns.Add ("Event", -2); events.View = View.Details; events.GridLines = true; events.Dock = DockStyle.Fill; top.Controls.Add (events); top.Dock = DockStyle.Top; splitter.Dock = DockStyle.Top; bottom.Dock = DockStyle.Fill; this.Controls.Add (bottom); this.Controls.Add (splitter); this.Controls.Add (top); }
public controls (main main) { this.main = main; this.StartPosition = FormStartPosition.Manual; left = new Panel (); left.Dock = DockStyle.Left; splitter = new Splitter (); splitter.Dock = DockStyle.Left; right = new Panel (); right.Dock = DockStyle.Fill; results = new ListView(); results.Dock = DockStyle.Fill; results.View = View.Details; results.Columns.Add (""); right.Controls.Add (results); setupHandlers (); this.Controls.Add (right); this.Controls.Add (splitter); this.Controls.Add (left); }