private void LoadDocuments() { DirectoryInfo dir = this.DocumentsDirectory; FileInfo documentsListFile = this.DocumentsListFile; if (!documentsListFile.Exists) { return; } EasyProperties ps = new EasyProperties(); ps.Load(documentsListFile); foreach (EasyPropertiesNode node in ps.GetChildProperties()) { FileInfo file = new FileInfo(Path.Combine(dir.FullName, node.Name + ".xml")); if (!file.Exists) { continue; } try { string typeName = node.GetValue <string>("Type", ""); Type type = Type.GetType(typeName); TabbedDocument document = Activator.CreateInstance(type) as TabbedDocument; (document as ITabbedDocument).LoadProperties(file); document.Show(this); } catch { } } }
private void _arbeitsbereichVerwaltung_ArbeitsbereichAddedEvent( object sender, EventArgs <Arbeitsbereich> e) { ArbeitsbereichSteuerelement arbeitsbereichSteuerelement = new ArbeitsbereichSteuerelement(); TabbedDocument tabbedDocument = new TabbedDocument(this.sandDockManager, (Control)arbeitsbereichSteuerelement, ml.ml_string(60, "es wird geladen...")); tabbedDocument.Enter += new EventHandler(this._ArbeitsbereichFenster_Enter); arbeitsbereichSteuerelement.Visible = false; tabbedDocument.Open(); tabbedDocument.Show(); tabbedDocument.AllowClose = true; tabbedDocument.Closing += new DockControlClosingEventHandler(this._ArbeitsbereichFenster_Closing); tabbedDocument.Cursor = Cursors.WaitCursor; Arbeitsbereich arbeitsbereich = e.Value; tabbedDocument.Tag = (object)arbeitsbereich; arbeitsbereich.Dateiverwaltung.AimlDateiWirdGeladenEvent += new EventHandler <EventArgs <string> >(this.Dateiverwaltung_AimlDateiWirdGeladenEvent); arbeitsbereich.Oeffnen(); arbeitsbereich.NameChangedEvent += new EventHandler(this.arbeitsbereich_NameChangedEvent); arbeitsbereichSteuerelement.Visible = true; arbeitsbereichSteuerelement.Arbeitsbereich = arbeitsbereich; Application.DoEvents(); this.arbeitsbereich_NameChangedEvent((object)null, (EventArgs)null); this.ProgrammTitelUndVorgangTitelAnzeigen(); tabbedDocument.Cursor = Cursors.Default; }
public void FileClose() { TabbedDocument document = Global.DockManager.ActiveDocument as TabbedDocument; if (document == null) { return; } document.Close(); }
/** * Notifies all plugins from an event */ public void NotifyPlugins(object sender, NotifyEvent e) { try { EventType type = e.Type; if (sender == null) { sender = this; } /** * Custom Controls */ if ((UITools.EventMask & type) > 0) { UITools.HandleEvent(sender, e); if (e.Handled) { return; } } /** * Current Document */ try { if ((TabbedDocument.EventMask & type) > 0) { TabbedDocument td = (TabbedDocument)this.mainForm.CurDocument; td.HandleEvent(sender, e); } } catch {} /** * External Plugins */ foreach (Types.AvailablePlugin pluginOn in this.colAvailablePlugins) { if ((pluginOn.Instance.EventMask & type) > 0) { pluginOn.Instance.HandleEvent(sender, e); if (e.Handled) { break; } } } } catch (Exception ex) { ErrorHandler.AddToLog(ex); } }
private void arbeitsbereich_NameChangedEvent(object sender, EventArgs e) { DockControl[] documents = this.sandDockManager.Documents; for (int i = 0; i < documents.Length; i++) { TabbedDocument tabbedDocument = (TabbedDocument)documents[i]; if (tabbedDocument.Tag != null && tabbedDocument.Tag is Arbeitsbereich) { Arbeitsbereich arbeitsbereich = (Arbeitsbereich)tabbedDocument.Tag; tabbedDocument.Text = string.Format(global::MultiLang.ml.ml_string(62, "Arbeitsbereich \"{0}\""), arbeitsbereich.Name); } } }
/// <summary> /// Закрывает все документы, за исключением указанного /// </summary> internal void CloseAllExcept(TabbedDocument document) { List <TabbedDocument> ClosedDocuments = new List <TabbedDocument>(); foreach (TabbedDocument doc in this.DocumentManager.GetDockControls(DockSituation.Document)) { if (doc != document) { ClosedDocuments.Add(doc); } } this.CloseDocuments(ClosedDocuments.ToArray()); }
/// <summary> /// Handles the incoming events /// </summary> public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority) { TabbedDocument document = (TabbedDocument)PluginBase.MainForm.CurrentDocument; if (PluginBase.MainForm.EditorMenu == null) { return; } if (this.insertFileMenuItem == null) { this.insertFileMenuItem = new ToolStripMenuItem("Insert File Path", null, new EventHandler(this.StartFileCompletion), this.settingObject.InsertShortcut); PluginBase.MainForm.EditorMenu.Items.Add(this.insertFileMenuItem); PluginBase.MainForm.IgnoredKeys.Add(this.settingObject.InsertShortcut); } }
/// <summary> /// Fix the padding of documents when quick find is visible /// </summary> private void ApplyFixedDocumentPadding() { foreach (ITabbedDocument castable in Globals.MainForm.Documents) { TabbedDocument document = castable as TabbedDocument; if (document.IsEditable) { if (this.Visible) { document.Padding = new Padding(0, 0, 0, this.Height); } else { document.Padding = new Padding(0); } } } }
/// <summary> /// Fix the padding of documents when quick find is visible /// </summary> public void ApplyFixedDocumentPadding() { foreach (ITabbedDocument castable in Globals.MainForm.Documents) { TabbedDocument document = castable as TabbedDocument; if (document.IsEditable) { Rectangle find = this.RectangleToScreen(this.ClientRectangle); Rectangle doc = document.RectangleToScreen(document.ClientRectangle); if (this.Visible && doc.IntersectsWith(find)) { document.Padding = new Padding(0, 0, 0, this.Height); } else { document.Padding = new Padding(0); } } } }
private void AddFormToTabControl(UserControl control) { string name = control.Name; UCTabbedDocument doc = control as UCTabbedDocument; if (doc != null) { name = doc.Title; } if (string.IsNullOrEmpty(name)) { name = Guid.NewGuid().ToString(); } DockControl window = new TabbedDocument(sandDockManager1, control, name); window.Open(); }
/// <summary> /// Checks if a file has been changed outside /// </summary> private static void CheckFileChange(ITabbedDocument document) { TabbedDocument casted = document as TabbedDocument; if (casted.IsEditable && casted.CheckFileChange()) { if (Globals.Settings.AutoReloadModifiedFiles) { casted.RefreshFileInfo(); casted.Reload(false); } else { if (YesToAll) { casted.RefreshFileInfo(); casted.Reload(false); return; } String dlgTitle = TextHelper.GetString("Title.InfoDialog"); String dlgMessage = TextHelper.GetString("Info.FileIsModifiedOutside"); String formatted = String.Format(dlgMessage, "\n", casted.FileName); MessageBoxManager.Cancel = TextHelper.GetString("Label.YesToAll"); MessageBoxManager.Register(); // Use custom labels... DialogResult result = MessageBox.Show(Globals.MainForm, formatted, " " + dlgTitle, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information); casted.RefreshFileInfo(); // User may have waited before responding, save info now if (result == DialogResult.Yes) { casted.Reload(false); } else if (result == DialogResult.Cancel) { casted.Reload(false); YesToAll = true; } MessageBoxManager.Unregister(); } } }
/// <summary> /// Checks if a file has been changed outside /// </summary> private static void CheckFileChange(ITabbedDocument document) { TabbedDocument casted = document as TabbedDocument; if (casted.IsEditable && casted.CheckFileChange()) { if (Globals.Settings.AutoReloadModifiedFiles) { casted.Reload(false); } else { String dlgTitle = TextHelper.GetString("Title.InfoDialog"); String dlgMessage = TextHelper.GetString("Info.FileIsModifiedOutside"); String formatted = String.Format(dlgMessage, "\n", casted.FileName); if (MessageBox.Show(Globals.MainForm, formatted, " " + dlgTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { casted.Reload(false); } } } }
/// <summary> /// Handles the incoming events /// </summary> public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority) { string docName = PluginBase.MainForm.CurrentDocument.ToString(); if (!isASDocument.IsMatch(docName)) { saveHTML.Enabled = false; } else { saveHTML.Enabled = true; } TabbedDocument document = (TabbedDocument)PluginBase.MainForm.CurrentDocument; if (PluginBase.MainForm.EditorMenu == null) { return; } if (this.copyHTMLItem == null) { this.copyHTMLItem = new ToolStripMenuItem("Copy as HTML", null, new EventHandler(this.CopyAsHTML), this.settingObject.CopyHTMLShortcut); PluginBase.MainForm.EditorMenu.Items.Add(this.copyHTMLItem); PluginBase.MainForm.IgnoredKeys.Add(this.settingObject.CopyHTMLShortcut); } //switch (e.Type) //{ // case EventType.FileClose: // break; // case EventType.FileNew: // break; // case EventType.FileOpen: // break; // case EventType.FileSwitch: // break; //} }
private void _arbeitsbereichVerwaltung_ArbeitsbereichAddedEvent(object sender, EventArgs <Arbeitsbereich> e) { ArbeitsbereichSteuerelement arbeitsbereichSteuerelement = new ArbeitsbereichSteuerelement(); TabbedDocument tabbedDocument = new TabbedDocument(this.sandDockManager, arbeitsbereichSteuerelement, global::MultiLang.ml.ml_string(60, "es wird geladen...")); tabbedDocument.Enter += this._ArbeitsbereichFenster_Enter; arbeitsbereichSteuerelement.Visible = false; tabbedDocument.Open(); tabbedDocument.Show(); tabbedDocument.AllowClose = true; tabbedDocument.Closing += this._ArbeitsbereichFenster_Closing; tabbedDocument.Cursor = Cursors.WaitCursor; Arbeitsbereich arbeitsbereich = (Arbeitsbereich)(tabbedDocument.Tag = e.Value); arbeitsbereich.Dateiverwaltung.AimlDateiWirdGeladenEvent += this.Dateiverwaltung_AimlDateiWirdGeladenEvent; arbeitsbereich.Oeffnen(); arbeitsbereich.NameChangedEvent += this.arbeitsbereich_NameChangedEvent; arbeitsbereichSteuerelement.Visible = true; arbeitsbereichSteuerelement.Arbeitsbereich = arbeitsbereich; Application.DoEvents(); this.arbeitsbereich_NameChangedEvent(null, null); this.ProgrammTitelUndVorgangTitelAnzeigen(); tabbedDocument.Cursor = Cursors.Default; }
/// <summary> /// Открывает на форме указанный документ /// </summary> public void OpenDocument(TabbedDocument document) { document.Manager = this.DocumentManager; document.Open(); document.Invalidate(); }
/// <summary> /// Creates a new empty document /// </summary> public DockContent CreateEditableDocument(String file, String text, Int32 codepage) { try { this.notifyOpenFile = true; TabbedDocument tabbedDocument = new TabbedDocument(); ScintillaControl editor = ScintillaManager.CreateControl(file, text, codepage); tabbedDocument.Closing += new System.ComponentModel.CancelEventHandler(this.OnDocumentClosing); tabbedDocument.Closed += new System.EventHandler(this.OnDocumentClosed); tabbedDocument.TabPageContextMenuStrip = this.tabMenu; tabbedDocument.ContextMenuStrip = this.editorMenu; tabbedDocument.Text = Path.GetFileName(file); tabbedDocument.AddScintillaControl(editor); tabbedDocument.Show(); return tabbedDocument; } catch (Exception ex) { ErrorManager.ShowError(ex); return null; } }
/// <summary> /// Creates a new custom document /// </summary> public DockContent CreateCustomDocument(Control ctrl) { try { TabbedDocument tabbedDocument = new TabbedDocument(); tabbedDocument.Closing += new System.ComponentModel.CancelEventHandler(this.OnDocumentClosing); tabbedDocument.Closed += new System.EventHandler(this.OnDocumentClosed); tabbedDocument.Text = TextHelper.GetString("Title.CustomDocument"); tabbedDocument.TabPageContextMenuStrip = this.tabMenu; tabbedDocument.Controls.Add(ctrl); tabbedDocument.Show(); return tabbedDocument; } catch (Exception ex) { ErrorManager.ShowError(ex); return null; } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ArbeitsbereichSteuerelement)); DockingRules dockingRules = new DockingRules(); this.dockWindowTestBot = new DockableWindow(); this.ucBotTest = new ucBotTest(); this.dockWindowSuchen = new DockableWindow(); this.SuchSteuerelement = new Suchen(); this.dockableWindowExport = new DockableWindow(); this.ExportArbeitsbereich = new Export(); this.dockableWindowPublish = new DockableWindow(); this.PubliziereArbeitsbereich = new Publizieren(); this.dockableWindowWorkflow = new DockableWindow(); this.ucWorkflowToolbar = new ucWorkflowToolbar(); this.ucWorkflowScrollbox = new ucWorkflowScrollbox(); this.dockableWindowMostSRAIS = new DockableWindow(); this.ucBesteSRAIZiele = new ucMeisteSRAIs(); this.sandDockManager = new SandDockManager(); this.dockWindowAIMLDateiListe = new DockableWindow(); this.ucProjektAIMLDateien = new ucAIMLDateiListe(); this.dockWindowTopicListe = new DockableWindow(); this.ucTopicListe = new ucTopicListe(); this.tabbedDocumentGrafischeAnsicht = new TabbedDocument(); this.ucXMLToolbar = new ucXMLToolbar(); this.ucXMLEditor = new ucCategoryXMLEditor(); this.documentContainerCategoryEdit = new DocumentContainer(); this.tabbedDocumentAIMLQuellcode = new TabbedDocument(); this.ucXMLQuellcodeDebugger = new ucXMLQuellcodeDebugger(); this.dockWindowCategoryListe = new DockableWindow(); this.ucCategoryListe = new ucCategoryListe(); this.dockContainer1 = new DockContainer(); this.dockContainer3 = new DockContainer(); this.dockWindowXMLInsertElement = new DockableWindow(); this.ucXMLAddElement = new ucXMLAddElement2(); this.dockWindowEditXMLAttribute = new DockableWindow(); this.ucXMLEditAttributes = new ucXMLEditAttributes(); this.dockContainer6 = new DockContainer(); this.ucArbeitsbereichToolbar = new ucArbeitsbereichToolbar(); this.dockContainerUntenSuchenTestEtc = new DockContainer(); this.dockWindowTestBot.SuspendLayout(); this.dockWindowSuchen.SuspendLayout(); this.dockableWindowExport.SuspendLayout(); this.dockableWindowPublish.SuspendLayout(); this.dockableWindowWorkflow.SuspendLayout(); this.dockableWindowMostSRAIS.SuspendLayout(); this.dockWindowAIMLDateiListe.SuspendLayout(); this.dockWindowTopicListe.SuspendLayout(); this.tabbedDocumentGrafischeAnsicht.SuspendLayout(); this.documentContainerCategoryEdit.SuspendLayout(); this.tabbedDocumentAIMLQuellcode.SuspendLayout(); this.dockWindowCategoryListe.SuspendLayout(); this.dockContainer1.SuspendLayout(); this.dockContainer3.SuspendLayout(); this.dockWindowXMLInsertElement.SuspendLayout(); this.dockWindowEditXMLAttribute.SuspendLayout(); this.dockContainer6.SuspendLayout(); this.dockContainerUntenSuchenTestEtc.SuspendLayout(); this.SuspendLayout(); this.dockWindowTestBot.AllowClose = false; this.dockWindowTestBot.Controls.Add((Control)this.ucBotTest); this.dockWindowTestBot.FloatingSize = new System.Drawing.Size(250, 116); this.dockWindowTestBot.Guid = new Guid("b5e67ccb-f99b-4e45-8e8b-53afe1c26699"); componentResourceManager.ApplyResources((object)this.dockWindowTestBot, "dockWindowTestBot"); this.dockWindowTestBot.Name = "dockWindowTestBot"; this.dockWindowTestBot.ShowOptions = false; this.dockWindowTestBot.TabImage = (Image)Resources.applications_16; componentResourceManager.ApplyResources((object)this.ucBotTest, "ucBotTest"); this.ucBotTest.Name = "ucBotTest"; this.dockWindowSuchen.AllowClose = false; this.dockWindowSuchen.Controls.Add((Control)this.SuchSteuerelement); dockingRules.AllowDockBottom = true; dockingRules.AllowDockLeft = true; dockingRules.AllowDockRight = true; dockingRules.AllowDockTop = true; dockingRules.AllowFloat = false; dockingRules.AllowTab = false; this.dockWindowSuchen.DockingRules = dockingRules; this.dockWindowSuchen.FloatingSize = new System.Drawing.Size(450, 400); this.dockWindowSuchen.Guid = new Guid("c2581e6a-d96f-49c2-a2b9-a7b4cd022403"); componentResourceManager.ApplyResources((object)this.dockWindowSuchen, "dockWindowSuchen"); this.dockWindowSuchen.Name = "dockWindowSuchen"; this.dockWindowSuchen.ShowOptions = false; this.dockWindowSuchen.TabImage = (Image)Resources.BINOCULR; componentResourceManager.ApplyResources((object)this.SuchSteuerelement, "SuchSteuerelement"); this.SuchSteuerelement.Name = "SuchSteuerelement"; this.SuchSteuerelement.Titel = "No search started.: 0 hit(s)"; this.dockableWindowExport.AllowClose = false; this.dockableWindowExport.Controls.Add((Control)this.ExportArbeitsbereich); this.dockableWindowExport.Cursor = Cursors.Default; this.dockableWindowExport.Guid = new Guid("4b077e64-38cc-4b5e-a99f-da9b2730f692"); componentResourceManager.ApplyResources((object)this.dockableWindowExport, "dockableWindowExport"); this.dockableWindowExport.Name = "dockableWindowExport"; this.dockableWindowExport.ShowOptions = false; this.dockableWindowExport.TabImage = (Image)Resources.redo_16; componentResourceManager.ApplyResources((object)this.ExportArbeitsbereich, "ExportArbeitsbereich"); this.ExportArbeitsbereich.Name = "ExportArbeitsbereich"; this.dockableWindowPublish.AllowClose = false; this.dockableWindowPublish.Controls.Add((Control)this.PubliziereArbeitsbereich); this.dockableWindowPublish.Guid = new Guid("cf60f5be-8603-4733-9032-662b0d05c24d"); componentResourceManager.ApplyResources((object)this.dockableWindowPublish, "dockableWindowPublish"); this.dockableWindowPublish.Name = "dockableWindowPublish"; this.dockableWindowPublish.ShowOptions = false; this.dockableWindowPublish.TabImage = (Image)Resources.Globe; componentResourceManager.ApplyResources((object)this.PubliziereArbeitsbereich, "PubliziereArbeitsbereich"); this.PubliziereArbeitsbereich.Name = "PubliziereArbeitsbereich"; this.dockableWindowWorkflow.AllowClose = false; this.dockableWindowWorkflow.Controls.Add((Control)this.ucWorkflowToolbar); this.dockableWindowWorkflow.Controls.Add((Control)this.ucWorkflowScrollbox); this.dockableWindowWorkflow.Guid = new Guid("50ef7a81-ad45-4994-881e-e423baee0104"); componentResourceManager.ApplyResources((object)this.dockableWindowWorkflow, "dockableWindowWorkflow"); this.dockableWindowWorkflow.Name = "dockableWindowWorkflow"; this.dockableWindowWorkflow.ShowOptions = false; this.dockableWindowWorkflow.TabImage = (Image)Resources.GRAPH14; componentResourceManager.ApplyResources((object)this.ucWorkflowToolbar, "ucWorkflowToolbar"); this.ucWorkflowToolbar.Name = "ucWorkflowToolbar"; componentResourceManager.ApplyResources((object)this.ucWorkflowScrollbox, "ucWorkflowScrollbox"); this.ucWorkflowScrollbox.BackColor = Color.White; this.ucWorkflowScrollbox.Category = (AIMLCategory)null; this.ucWorkflowScrollbox.Name = "ucWorkflowScrollbox"; this.dockableWindowMostSRAIS.AllowClose = false; this.dockableWindowMostSRAIS.Controls.Add((Control)this.ucBesteSRAIZiele); this.dockableWindowMostSRAIS.Guid = new Guid("668e99cf-2422-41cf-9838-70d0007347a7"); componentResourceManager.ApplyResources((object)this.dockableWindowMostSRAIS, "dockableWindowMostSRAIS"); this.dockableWindowMostSRAIS.Name = "dockableWindowMostSRAIS"; this.dockableWindowMostSRAIS.ShowOptions = false; componentResourceManager.ApplyResources((object)this.ucBesteSRAIZiele, "ucBesteSRAIZiele"); this.ucBesteSRAIZiele.Name = "ucBesteSRAIZiele"; this.sandDockManager.DockSystemContainer = (Control)this; this.sandDockManager.OwnerForm = (Form)null; this.dockWindowAIMLDateiListe.AllowClose = false; this.dockWindowAIMLDateiListe.Controls.Add((Control)this.ucProjektAIMLDateien); this.dockWindowAIMLDateiListe.Guid = new Guid("51cde5d8-7920-4b1a-86aa-f14518ee0e47"); componentResourceManager.ApplyResources((object)this.dockWindowAIMLDateiListe, "dockWindowAIMLDateiListe"); this.dockWindowAIMLDateiListe.Name = "dockWindowAIMLDateiListe"; this.dockWindowAIMLDateiListe.ShowOptions = false; this.ucProjektAIMLDateien.BackColor = SystemColors.Control; componentResourceManager.ApplyResources((object)this.ucProjektAIMLDateien, "ucProjektAIMLDateien"); this.ucProjektAIMLDateien.Name = "ucProjektAIMLDateien"; this.dockWindowTopicListe.AllowClose = false; this.dockWindowTopicListe.Controls.Add((Control)this.ucTopicListe); this.dockWindowTopicListe.Guid = new Guid("ea5081bf-2f8a-4752-b387-ec19f8831882"); componentResourceManager.ApplyResources((object)this.dockWindowTopicListe, "dockWindowTopicListe"); this.dockWindowTopicListe.Name = "dockWindowTopicListe"; this.dockWindowTopicListe.ShowOptions = false; componentResourceManager.ApplyResources((object)this.ucTopicListe, "ucTopicListe"); this.ucTopicListe.Name = "ucTopicListe"; this.tabbedDocumentGrafischeAnsicht.AllowClose = false; this.tabbedDocumentGrafischeAnsicht.BackColor = Color.White; this.tabbedDocumentGrafischeAnsicht.Controls.Add((Control)this.ucXMLToolbar); this.tabbedDocumentGrafischeAnsicht.Controls.Add((Control)this.ucXMLEditor); this.tabbedDocumentGrafischeAnsicht.FloatingSize = new System.Drawing.Size(550, 400); this.tabbedDocumentGrafischeAnsicht.Guid = new Guid("dd4dda3d-4da1-4a08-8187-813737830be1"); componentResourceManager.ApplyResources((object)this.tabbedDocumentGrafischeAnsicht, "tabbedDocumentGrafischeAnsicht"); this.tabbedDocumentGrafischeAnsicht.Name = "tabbedDocumentGrafischeAnsicht"; this.tabbedDocumentGrafischeAnsicht.Resize += new EventHandler(this.tabbedDocumentGrafischeAnsicht_Resize); componentResourceManager.ApplyResources((object)this.ucXMLToolbar, "ucXMLToolbar"); this.ucXMLToolbar.Name = "ucXMLToolbar"; componentResourceManager.ApplyResources((object)this.ucXMLEditor, "ucXMLEditor"); this.ucXMLEditor.BackColor = Color.White; this.ucXMLEditor.ForeColor = SystemColors.Control; this.ucXMLEditor.Name = "ucXMLEditor"; this.documentContainerCategoryEdit.ContentSize = 400; this.documentContainerCategoryEdit.Controls.Add((Control)this.tabbedDocumentGrafischeAnsicht); this.documentContainerCategoryEdit.Controls.Add((Control)this.tabbedDocumentAIMLQuellcode); this.documentContainerCategoryEdit.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Horizontal, new LayoutSystemBase[1] { (LayoutSystemBase) new DocumentLayoutSystem(new SizeF(281f, 150f), new DockControl[2] { (DockControl)this.tabbedDocumentGrafischeAnsicht, (DockControl)this.tabbedDocumentAIMLQuellcode }, (DockControl)this.tabbedDocumentGrafischeAnsicht) }); componentResourceManager.ApplyResources((object)this.documentContainerCategoryEdit, "documentContainerCategoryEdit"); this.documentContainerCategoryEdit.Manager = this.sandDockManager; this.documentContainerCategoryEdit.Name = "documentContainerCategoryEdit"; this.tabbedDocumentAIMLQuellcode.AllowClose = false; this.tabbedDocumentAIMLQuellcode.BackColor = Color.White; this.tabbedDocumentAIMLQuellcode.Controls.Add((Control)this.ucXMLQuellcodeDebugger); this.tabbedDocumentAIMLQuellcode.FloatingSize = new System.Drawing.Size(550, 400); this.tabbedDocumentAIMLQuellcode.Guid = new Guid("ee004c2a-1eda-45f3-aa57-bfd00714eb65"); componentResourceManager.ApplyResources((object)this.tabbedDocumentAIMLQuellcode, "tabbedDocumentAIMLQuellcode"); this.tabbedDocumentAIMLQuellcode.Name = "tabbedDocumentAIMLQuellcode"; this.ucXMLQuellcodeDebugger.BackColor = SystemColors.Control; componentResourceManager.ApplyResources((object)this.ucXMLQuellcodeDebugger, "ucXMLQuellcodeDebugger"); this.ucXMLQuellcodeDebugger.Name = "ucXMLQuellcodeDebugger"; this.dockWindowCategoryListe.AllowClose = false; this.dockWindowCategoryListe.Controls.Add((Control)this.ucCategoryListe); this.dockWindowCategoryListe.Guid = new Guid("71593c02-4597-41dc-8df3-eff7d26bacc2"); componentResourceManager.ApplyResources((object)this.dockWindowCategoryListe, "dockWindowCategoryListe"); this.dockWindowCategoryListe.Name = "dockWindowCategoryListe"; this.dockWindowCategoryListe.ShowOptions = false; componentResourceManager.ApplyResources((object)this.ucCategoryListe, "ucCategoryListe"); this.ucCategoryListe.Name = "ucCategoryListe"; this.dockContainer1.ContentSize = 400; this.dockContainer1.Controls.Add((Control)this.dockWindowCategoryListe); componentResourceManager.ApplyResources((object)this.dockContainer1, "dockContainer1"); this.dockContainer1.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Vertical, new LayoutSystemBase[1] { (LayoutSystemBase) new ControlLayoutSystem(new SizeF(283f, 272f), new DockControl[1] { (DockControl)this.dockWindowCategoryListe }, (DockControl)this.dockWindowCategoryListe) }); this.dockContainer1.Manager = this.sandDockManager; this.dockContainer1.Name = "dockContainer1"; this.dockContainer3.ContentSize = 250; this.dockContainer3.Controls.Add((Control)this.dockWindowXMLInsertElement); this.dockContainer3.Controls.Add((Control)this.dockWindowEditXMLAttribute); componentResourceManager.ApplyResources((object)this.dockContainer3, "dockContainer3"); this.dockContainer3.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Horizontal, new LayoutSystemBase[2] { (LayoutSystemBase) new ControlLayoutSystem(new SizeF(164f, 311f), new DockControl[1] { (DockControl)this.dockWindowXMLInsertElement }, (DockControl)this.dockWindowXMLInsertElement), (LayoutSystemBase) new ControlLayoutSystem(new SizeF(164f, 114f), new DockControl[1] { (DockControl)this.dockWindowEditXMLAttribute }, (DockControl)this.dockWindowEditXMLAttribute) }); this.dockContainer3.Manager = this.sandDockManager; this.dockContainer3.Name = "dockContainer3"; this.dockWindowXMLInsertElement.AllowClose = false; this.dockWindowXMLInsertElement.Controls.Add((Control)this.ucXMLAddElement); this.dockWindowXMLInsertElement.Guid = new Guid("537d1bfb-ec52-421e-844c-230c301c3825"); componentResourceManager.ApplyResources((object)this.dockWindowXMLInsertElement, "dockWindowXMLInsertElement"); this.dockWindowXMLInsertElement.Name = "dockWindowXMLInsertElement"; this.dockWindowXMLInsertElement.ShowOptions = false; componentResourceManager.ApplyResources((object)this.ucXMLAddElement, "ucXMLAddElement"); this.ucXMLAddElement.Name = "ucXMLAddElement"; this.dockWindowEditXMLAttribute.AllowClose = false; this.dockWindowEditXMLAttribute.Controls.Add((Control)this.ucXMLEditAttributes); this.dockWindowEditXMLAttribute.Guid = new Guid("89e6e7ee-6ca5-4907-a2aa-fd2748ae354e"); componentResourceManager.ApplyResources((object)this.dockWindowEditXMLAttribute, "dockWindowEditXMLAttribute"); this.dockWindowEditXMLAttribute.Name = "dockWindowEditXMLAttribute"; this.dockWindowEditXMLAttribute.ShowOptions = false; componentResourceManager.ApplyResources((object)this.ucXMLEditAttributes, "ucXMLEditAttributes"); this.ucXMLEditAttributes.Name = "ucXMLEditAttributes"; this.dockContainer6.ContentSize = 250; this.dockContainer6.Controls.Add((Control)this.dockWindowAIMLDateiListe); this.dockContainer6.Controls.Add((Control)this.dockWindowTopicListe); componentResourceManager.ApplyResources((object)this.dockContainer6, "dockContainer6"); this.dockContainer6.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Horizontal, new LayoutSystemBase[2] { (LayoutSystemBase) new ControlLayoutSystem(new SizeF(225f, 280f), new DockControl[1] { (DockControl)this.dockWindowAIMLDateiListe }, (DockControl)this.dockWindowAIMLDateiListe), (LayoutSystemBase) new ControlLayoutSystem(new SizeF(225f, 145f), new DockControl[1] { (DockControl)this.dockWindowTopicListe }, (DockControl)this.dockWindowTopicListe) }); this.dockContainer6.Manager = this.sandDockManager; this.dockContainer6.Name = "dockContainer6"; componentResourceManager.ApplyResources((object)this.ucArbeitsbereichToolbar, "ucArbeitsbereichToolbar"); this.ucArbeitsbereichToolbar.Name = "ucArbeitsbereichToolbar"; this.dockContainerUntenSuchenTestEtc.ContentSize = 176; this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockWindowTestBot); this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockWindowSuchen); this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockableWindowExport); this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockableWindowPublish); this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockableWindowWorkflow); this.dockContainerUntenSuchenTestEtc.Controls.Add((Control)this.dockableWindowMostSRAIS); componentResourceManager.ApplyResources((object)this.dockContainerUntenSuchenTestEtc, "dockContainerUntenSuchenTestEtc"); this.dockContainerUntenSuchenTestEtc.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Vertical, new LayoutSystemBase[2] { (LayoutSystemBase) new ControlLayoutSystem(new SizeF(309.3716f, 100f), new DockControl[4] { (DockControl)this.dockWindowTestBot, (DockControl)this.dockWindowSuchen, (DockControl)this.dockableWindowExport, (DockControl)this.dockableWindowPublish }, (DockControl)this.dockWindowTestBot), (LayoutSystemBase) new ControlLayoutSystem(new SizeF(366.6284f, 100f), new DockControl[2] { (DockControl)this.dockableWindowWorkflow, (DockControl)this.dockableWindowMostSRAIS }, (DockControl)this.dockableWindowWorkflow) }); this.dockContainerUntenSuchenTestEtc.Manager = this.sandDockManager; this.dockContainerUntenSuchenTestEtc.Name = "dockContainerUntenSuchenTestEtc"; componentResourceManager.ApplyResources((object)this, "$this"); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.documentContainerCategoryEdit); this.Controls.Add((Control)this.dockContainer1); this.Controls.Add((Control)this.dockContainer3); this.Controls.Add((Control)this.dockContainer6); this.Controls.Add((Control)this.ucArbeitsbereichToolbar); this.Controls.Add((Control)this.dockContainerUntenSuchenTestEtc); this.Cursor = Cursors.WaitCursor; this.Name = nameof(ArbeitsbereichSteuerelement); this.dockWindowTestBot.ResumeLayout(false); this.dockWindowSuchen.ResumeLayout(false); this.dockableWindowExport.ResumeLayout(false); this.dockableWindowPublish.ResumeLayout(false); this.dockableWindowWorkflow.ResumeLayout(false); this.dockableWindowMostSRAIS.ResumeLayout(false); this.dockWindowAIMLDateiListe.ResumeLayout(false); this.dockWindowTopicListe.ResumeLayout(false); this.tabbedDocumentGrafischeAnsicht.ResumeLayout(false); this.documentContainerCategoryEdit.ResumeLayout(false); this.tabbedDocumentAIMLQuellcode.ResumeLayout(false); this.dockWindowCategoryListe.ResumeLayout(false); this.dockContainer1.ResumeLayout(false); this.dockContainer3.ResumeLayout(false); this.dockWindowXMLInsertElement.ResumeLayout(false); this.dockWindowEditXMLAttribute.ResumeLayout(false); this.dockContainer6.ResumeLayout(false); this.dockContainerUntenSuchenTestEtc.ResumeLayout(false); this.ResumeLayout(false); }
public ListViewItemTabbedDocument(TabbedDocument tabbedDocument) : base() { this.m_tabbedDocument = tabbedDocument; this.Text = this.m_tabbedDocument.TabText; this.UseItemStyleForSubItems = false; }
private void InitializeComponent() { this.components = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmMain)); this.sandDockManager = new SandDockManager(); this.mainMenu = new MainMenu(this.components); this.mnuProgramm = new MenuItem(); this.mnuProgrammBeenden = new MenuItem(); this.mnuAnsicht = new MenuItem(); this.mnuDebugger = new MenuItem(); this.mnuHilfe = new MenuItem(); this.mnuHandbuch = new MenuItem(); this.mnuHomepage = new MenuItem(); this.menuItem3 = new MenuItem(); this.mnuInfo = new MenuItem(); this.tabbedDocumentStartseite = new TabbedDocument(); this.startseite = new Startseite(); this.documentContainer = new DocumentContainer(); this.dockableWindowDebug = new DockableWindow(); this.txtDebuggerAusgabe = new TextBox(); this.dockContainer1 = new DockContainer(); this.tabbedDocumentStartseite.SuspendLayout(); this.documentContainer.SuspendLayout(); this.dockableWindowDebug.SuspendLayout(); this.dockContainer1.SuspendLayout(); this.SuspendLayout(); this.sandDockManager.DockSystemContainer = (Control)this; this.sandDockManager.OwnerForm = (Form)this; this.mainMenu.MenuItems.AddRange(new MenuItem[3] { this.mnuProgramm, this.mnuAnsicht, this.mnuHilfe }); this.mnuProgramm.Index = 0; this.mnuProgramm.MenuItems.AddRange(new MenuItem[1] { this.mnuProgrammBeenden }); componentResourceManager.ApplyResources((object)this.mnuProgramm, "mnuProgramm"); this.mnuProgrammBeenden.Index = 0; componentResourceManager.ApplyResources((object)this.mnuProgrammBeenden, "mnuProgrammBeenden"); this.mnuProgrammBeenden.Click += new EventHandler(this.mnuProgrammBeenden_Click); this.mnuAnsicht.Index = 1; this.mnuAnsicht.MenuItems.AddRange(new MenuItem[1] { this.mnuDebugger }); componentResourceManager.ApplyResources((object)this.mnuAnsicht, "mnuAnsicht"); this.mnuDebugger.Index = 0; componentResourceManager.ApplyResources((object)this.mnuDebugger, "mnuDebugger"); this.mnuDebugger.Click += new EventHandler(this.mnuDebugger_Click_1); this.mnuHilfe.Index = 2; this.mnuHilfe.MenuItems.AddRange(new MenuItem[4] { this.mnuHandbuch, this.mnuHomepage, this.menuItem3, this.mnuInfo }); componentResourceManager.ApplyResources((object)this.mnuHilfe, "mnuHilfe"); this.mnuHandbuch.Index = 0; componentResourceManager.ApplyResources((object)this.mnuHandbuch, "mnuHandbuch"); this.mnuHandbuch.Click += new EventHandler(this.mnuHandbuch_Click); this.mnuHomepage.Index = 1; componentResourceManager.ApplyResources((object)this.mnuHomepage, "mnuHomepage"); this.mnuHomepage.Click += new EventHandler(this.mnuHomepage_Click); this.menuItem3.Index = 2; componentResourceManager.ApplyResources((object)this.menuItem3, "menuItem3"); this.mnuInfo.Index = 3; componentResourceManager.ApplyResources((object)this.mnuInfo, "mnuInfo"); this.mnuInfo.Click += new EventHandler(this.mnuInfo_Click); this.tabbedDocumentStartseite.AllowClose = false; this.tabbedDocumentStartseite.AllowCollapse = false; this.tabbedDocumentStartseite.Controls.Add((Control)this.startseite); this.tabbedDocumentStartseite.FloatingSize = new System.Drawing.Size(550, 400); this.tabbedDocumentStartseite.Guid = new Guid("9ee7f539-b109-4417-80cb-02aa6c3c738d"); componentResourceManager.ApplyResources((object)this.tabbedDocumentStartseite, "tabbedDocumentStartseite"); this.tabbedDocumentStartseite.Name = "tabbedDocumentStartseite"; this.tabbedDocumentStartseite.ShowOptions = false; this.startseite.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); componentResourceManager.ApplyResources((object)this.startseite, "startseite"); this.startseite.Name = "startseite"; this.documentContainer.ContentSize = 400; this.documentContainer.Controls.Add((Control)this.tabbedDocumentStartseite); this.documentContainer.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Horizontal, new LayoutSystemBase[1] { (LayoutSystemBase) new DocumentLayoutSystem(new SizeF(763f, 388f), new DockControl[1] { (DockControl)this.tabbedDocumentStartseite }, (DockControl)this.tabbedDocumentStartseite) }); componentResourceManager.ApplyResources((object)this.documentContainer, "documentContainer"); this.documentContainer.Manager = this.sandDockManager; this.documentContainer.Name = "documentContainer"; this.dockableWindowDebug.Controls.Add((Control)this.txtDebuggerAusgabe); this.dockableWindowDebug.Guid = new Guid("8098dec4-2a99-4d25-86aa-a35f31fa49d6"); componentResourceManager.ApplyResources((object)this.dockableWindowDebug, "dockableWindowDebug"); this.dockableWindowDebug.Name = "dockableWindowDebug"; this.txtDebuggerAusgabe.AcceptsReturn = true; this.txtDebuggerAusgabe.AcceptsTab = true; this.txtDebuggerAusgabe.BorderStyle = BorderStyle.None; this.txtDebuggerAusgabe.Cursor = Cursors.IBeam; componentResourceManager.ApplyResources((object)this.txtDebuggerAusgabe, "txtDebuggerAusgabe"); this.txtDebuggerAusgabe.Name = "txtDebuggerAusgabe"; this.dockContainer1.ContentSize = 400; this.dockContainer1.Controls.Add((Control)this.dockableWindowDebug); componentResourceManager.ApplyResources((object)this.dockContainer1, "dockContainer1"); this.dockContainer1.LayoutSystem = new SplitLayoutSystem(new SizeF(250f, 400f), Orientation.Vertical, new LayoutSystemBase[1] { (LayoutSystemBase) new ControlLayoutSystem(new SizeF(765f, (float)sbyte.MaxValue), new DockControl[1] { (DockControl)this.dockableWindowDebug }, (DockControl)this.dockableWindowDebug) }); this.dockContainer1.Manager = this.sandDockManager; this.dockContainer1.Name = "dockContainer1"; componentResourceManager.ApplyResources((object)this, "$this"); this.BackColor = Color.DodgerBlue; this.Controls.Add((Control)this.documentContainer); this.Controls.Add((Control)this.dockContainer1); this.Menu = this.mainMenu; this.Name = nameof(frmMain); this.WindowState = FormWindowState.Maximized; this.Load += new EventHandler(this.frmMain_Load); this.tabbedDocumentStartseite.ResumeLayout(false); this.documentContainer.ResumeLayout(false); this.dockableWindowDebug.ResumeLayout(false); this.dockableWindowDebug.PerformLayout(); this.dockContainer1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Сохраняет указанный документ /// </summary> public void SaveDocument(TabbedDocument document) { this.SaveDocuments(new TabbedDocument[] { document }); }