Example #1
0
        public MessagesForm()
        {
            Instance = this;
            InitializeComponent();

            WeifenLuo.WinFormsUI.Docking.DockHelper.PreventActivation = true;

            TopLevel = false;

            dockPanel1.Theme = new VS2012LightTheme();

            ErrorsForm = new ToolForm();
            ErrorsForm.CloseButton = false;
            ErrorsForm.CloseButtonVisible = false;
            ErrorsForm.TopLevel = false;
            ErrorsForm.Text = "Errors";
            ErrorsForm.Controls.Add(ErrorsDataGrid);
            this.Controls.Add(ErrorsForm);
            ErrorsForm.Show(dockPanel1);

            WarningsForm = new ToolForm();
            WarningsForm.CloseButton = false;
            WarningsForm.CloseButtonVisible = false;
            WarningsForm.TopLevel = false;
            WarningsForm.Text = "Warnings";
            WarningsForm.Controls.Add(WarningsDataGrid);
            this.Controls.Add(WarningsForm);
            WarningsForm.Show(dockPanel1);

            InfosForm = new ToolForm();
            InfosForm.CloseButton = false;
            InfosForm.CloseButtonVisible = false;
            InfosForm.TopLevel = false;
            InfosForm.Text = "Info";
            InfosForm.Controls.Add(InfosDataGrid);
            this.Controls.Add(InfosForm);
            InfosForm.Show(dockPanel1);

            WeifenLuo.WinFormsUI.Docking.DockHelper.PreventActivation = false;

            this.Load += MessagesForm_Load;
        }
Example #2
0
 void MessagesForm_AllocationSelected(object sender, MessagesForm.AllocationSelectedEventArgs e)
 {
     AllocationForm.AddressSpaceControl.SelectAt(e.SelectedAllocation);
 }