Exemple #1
0
        private InboxPanel()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.SuspendLayout();

            //TitleBar
            PanelLabelControl titleLabel = new PanelLabelControl("Inbox");

            titleLabel.CloseEvent += new PanelLabelControl.OnCloseEventHandler(titleLabel_CloseEvent);
            this.Controls.Add(titleLabel);

            listView.ContextMenu = new ContextMenu(new MenuItem[] { new MenuItem("Clear", new EventHandler(OnClearInbox_click)),
                                                                    new MenuItem("Serialize to xml", new EventHandler(OnToXml_click)) });

            this.listView.DoubleClick += new EventHandler(listView_DoubleClick);

            this.listView.Scrollable = true;

            this.ResumeLayout(false);
        }
        private OutputPanel()
        {
            this.toppanel    = new System.Windows.Forms.Panel();
            this.fillpanel   = new System.Windows.Forms.Panel();
            this.richTextBox = new System.Windows.Forms.RichTextBox();
            this.titleLabel  = new PanelLabelControl("Output");
            this.SuspendLayout();
            //
            // toppanel
            //
            this.toppanel.Dock = System.Windows.Forms.DockStyle.Top;
            toppanel.Height    = 15;
            //
            // fillpanel
            //
            this.fillpanel.Dock = System.Windows.Forms.DockStyle.Fill;
            toppanel.Controls.Add(titleLabel);
            richTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
            fillpanel.Controls.Add(richTextBox);
            this.Controls.AddRange(new System.Windows.Forms.Control[] { toppanel, fillpanel });
            this.ResumeLayout(false);

            titleLabel.CloseEvent += new PanelLabelControl.OnCloseEventHandler(titleLabel_CloseEvent);
        }