示例#1
0
 private void PlaceWindows()
 {
     events.Show(dockPanel1, DockState.DockLeft);
     conditions.Show(events.Pane, DockAlignment.Bottom, 0.5);
     targets.Show(conditions.Pane, DockAlignment.Bottom, 0.5);
     actions.Show(dockPanel1, DockState.DockRight);
     properties.Show(actions.Pane, DockAlignment.Bottom, 0.6);
     errors.Show(dockPanel1, DockState.DockBottom);
 }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");

            LoadCustomEventsAndActions();
            dockPanel1.Theme = new VS2012LightTheme();
            vS2012ToolStripExtender1.SetEnableVS2012Style(this.menuStrip1, true);

            scratch = new ScratchWindow();
            scratch.Show(dockPanel1);

            events = new ToolWindow("data/events.txt", "Events");
            events.Show(dockPanel1, DockState.DockLeft);

            conditions = new ToolWindow("data/conditions.txt", "Conditions");
            conditions.Show(events.Pane, DockAlignment.Bottom, 0.5);

            actions = new ToolWindow("data/actions.txt", "Actions");
            actions.Show(dockPanel1, DockState.DockRight);

            targets = new ToolWindow("data/targets.txt", "Targets");
            targets.Show(actions.Pane, DockAlignment.Bottom, 0.8);

            properties = new PropertyWindow();
            properties.Show(targets.Pane, DockAlignment.Bottom, 0.6);

            errors = new ErrorsWindow();
            errors.Show(dockPanel1, DockState.DockBottom);
            errors.WarningSelected += this_warningSelected;

            scratch.ElementSelected += this_callback;
            scratch.RequestWarnings += this_RequestWarnings;
        }