private void CreateWindows() { events = new ToolWindow("data/events.txt", "Events", SmartScripts.SmartType.SMART_EVENT); conditions = new ToolWindow("data/conditions.txt", "Conditions", SmartScripts.SmartType.SMART_CONDITION); targets = new ToolWindow("data/targets.txt", "Targets", SmartScripts.SmartType.SMART_TARGET); actions = new ToolWindow("data/actions.txt", "Actions", SmartScripts.SmartType.SMART_ACTION); properties = new PropertyWindow(); errors = new ErrorsWindow(); errors.WarningSelected += this_warningSelected; }
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; }