Back to OIM Explorer

Designer.Editors/Designer.InfoSheetEditor/InfoSheetEditor.cs

Decompiler Source FileDesigner.Editors.InfoSheetEditorDecompiled Source

2 extracted method/event/call references in InfoSheetEditor.

Source: F:\Claude\.tmp\oim-decompiled-full\0330_One_Identity_Manager_Designer.Editors.dll\Designer.InfoSheetEditor\InfoSheetEditor.cs

Source size: 91.593 characters

Interpretation

  • Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.

Relations

  • CallMethod: IsModuleDataValid at line 1155
  • CallMethod: IsModuleDataValid at line 1175

Typed Edges

  • No typed edges extracted for this source.

References

  • No direct source references extracted.

Referenced By

  • No direct source references extracted.

C# source-derived context

Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.

reads entity values writes entity values references DB/Dialog objects

Summary: classes InfoSheetEditor; methods OnDisposeOrPrepareForCaching, ResetLayout, OnLayoutChanged, _InitializeComponent, cbxTable_MouseDoubleClick, cbxObject_MouseDoubleClick; references DialogGroup, DialogImage, DialogObject, DialogObjectHasSheet, DialogSheet, DialogTable; markers reads entity values, writes entity values, references DB/Dialog objects

Classes

InfoSheetEditor

OIM key/entity markers

UID_QBMTree UID_QBMTreeParent UID_DialogTable UID_QBMTreeReference UID_DialogImage UID_QBMTreeResult UID_DialogProduct UID_DialogGroup UID_DialogSheet UID_DialogObject

API/entity calls

GetValue CreateSingle PutValue CreateNew CreateSingle Source From StartUnitOfWork PutValue GetValue Exists Comparison CreateCol CreateThin

Registrations / handlers

None extracted.

Complete Source

C#2.074 lines
1using System;2using System.Collections;3using System.Collections.Generic;4using System.ComponentModel;5using System.Drawing;6using System.Runtime.CompilerServices;7using System.Threading;8using System.Windows.Forms;9using Designer.Base;10using Designer.NavigationEditor;11using Designer.SheetEditor;12using Designer.TreeEditor;13using VI.Base;14using VI.CommonDialogs;15using VI.Controls.ElementEdit;16using VI.DB;17using VI.DB.Entities;18using VI.DB.MetaData;19using VI.DB.Specialized;20using VI.DB.Sync;21using VI.DialogEngine;22using VI.FormBase;23using VI.FormBase.CommandCenter;24using VI.FormBase.ComponentModel;25using VI.ImageLibrary;26using VI.MVC;27using VI.UI.Base.Components;28using VI.UI.Base.Components.Implementations;29using VI.UI.Base.Data.UserData;30using VI.UI.Base.Images;31using VI.UI.Base.IoC;32using VI.UI.Controls.Common;33using VI.UI.Dialog.Controls;34using VI.UI.Dialog.Core.Engine;35using VI.UI.Dialog.Core.Scripting;36using VI.UI.Dialog.DB.Scripting;3738namespace Designer.InfoSheetEditor;3940internal class InfoSheetEditor : DocumentEditorControl, IDialogFactory41{42	private bool m_bNewObject;4344	private bool m_bNameChanged;4546	private DbObjectHandle m_hTree;4748	private TreePropertyEditor m_PropertyEditor;4950	private InfoSheetRelationEditor m_RelationEditor;5152	private TreeProductEditor m_ProductEditor;5354	private TreeGroupEditor m_GroupEditor;5556	private SheetPropertyEditor m_SheetEditor;5758	private TreeVariablesEditor m_VariablesEditor;5960	private ColumnsEditor m_ColumnsEditor;6162	private TreeSheetEditor m_TreeHasSheetEditor;6364	private GenericMNEditor m_ObjectHasSheetEditor;6566	private TreeHasResultEditor m_TreeHasResultEditor;6768	private DbObjectHandle m_hSheet;6970	private IConnection m_Connection;7172	private ExtendableComponentContainer _IoC;7374	[CompilerGenerated]75	private EventHandler m_SelectedTableChanged;7677	private StockImageComponent stockImages;7879	private ToolStripButton tbbNew;8081	private ContextMenuStrip cMenu;8283	private ToolStripMenuItem miAdd;8485	private ToolStripMenuItem miRemove;8687	private ToolStripMenuItem miEdit;8889	private MenuStrip menuBar;9091	private TranslatorComponent Translator;9293	private ToolStrip toolStripInfoSheet;9495	private ToolStripButton tbbAdd;9697	private ToolStripButton tbbRemove;9899	private ToolStripButton tbbRefresh;100101	private CommandCenter viCC;102103	private Command cmdRefresh;104105	private IContainer components;106107	private ToolStripMenuItem menuWindows;108109	private ToolStripMenuItem menuWindowsGroups;110111	private ToolStripMenuItem menuWindowsProperties;112113	private Command cmdWindowGroups;114115	private Command cmdWindowProducts;116117	private ToolStripMenuItem mnuHelp_InfoSheetEditor;118119	private ToolStripMenuItem Designer_mnuHelp;120121	private Command cmdHelpEditor;122123	private InfoSheetEdit navControl;124125	private Command cmdAdd;126127	private Command cmdRemove;128129	private Command cmdNew;130131	private ToolStripMenuItem menuEdit;132133	private ToolStripMenuItem menuNew;134135	private ToolStripMenuItem menuEditCut;136137	private ToolStripMenuItem menuRemove;138139	private ToolStripMenuItem menuRefresh;140141	private ToolStripMenuItem menuWindowsProducts;142143	private ToolStripMenuItem menuWindowsVariables;144145	private Command cmdWindowVariables;146147	private Command cmdWindowColumns;148149	private Command cmdWindowProperties;150151	private ToolStrip toolStripObject;152153	private ToolStripLabel lblTable;154155	private ToolStripComboBox cbxTable;156157	private ToolStripLabel lblObject;158159	private ToolStripComboBox cbxObject;160161	private ToolStripMenuItem menuAutoReload;162163	private Command cmdAutoReload;164165	private Command cmdWindowSheets;166167	private ToolStripMenuItem menuWindowsSheets;168169	private Command cmdWindowRelations;170171	private ToolStripMenuItem menuWindowsRelations;172173	private ContextMenuStrip cMenuType;174175	private ToolStripMenuItem miListNode;176177	private ToolStripMenuItem miDataLinkNode;178179	private ToolStripMenuItem miDataNode;180181	private ToolStripSeparator toolStripSeparator1;182183	private ToolStripMenuItem miAbort;184185	private ToolStripMenuItem miListLinkNode;186187	private ToolStripMenuItem miRefresh;188189	private Command cmdWindowSheetToTree;190191	private Command cmdWindowSheetToObject;192193	private Command cmdWindowTreeHasResult;194195	private ToolStripMenuItem menuWindowsSheetToTree;196197	private ToolStripMenuItem menuWindowsSheetToObject;198199	private ToolStripMenuItem menuWindowColumns;200201	private ToolStripMenuItem menuWindowTreeHasResult;202203	public override bool IsReusable => false;204205	public InfoSheetEditorConfiguration Config => base.ConfigBase as InfoSheetEditorConfiguration;206207	protected IConnection Connection => m_Connection;208209	public string SelectedTable210	{211		get212		{213			if (((ListControl)cbxTable.ComboBox).SelectedIndex <= 0)214			{215				return string.Empty;216			}217			return ((IColElem)cbxTable.ComboBox.Items[((ListControl)cbxTable.ComboBox).SelectedIndex]).GetValue<string>("TableName");218		}219	}220221	protected ISingleDbObject SelectedObject222	{223		get224		{225			if (((ListControl)cbxObject.ComboBox).SelectedIndex <= 0)226			{227				return null;228			}229			return ((DbObjectHandle)cbxObject.ComboBox.Items[((ListControl)cbxObject.ComboBox).SelectedIndex]).DBObject;230		}231	}232233	private DbObjectHandle TreeRoot => m_hTree;234235	public event EventHandler SelectedTableChanged236	{237		[CompilerGenerated]238		add239		{240			//IL_0010: Unknown result type (might be due to invalid IL or missing references)241			//IL_0016: Expected O, but got Unknown242			EventHandler val = this.m_SelectedTableChanged;243			EventHandler val2;244			do245			{246				val2 = val;247				EventHandler val3 = (EventHandler)System.Delegate.Combine((System.Delegate)(object)val2, (System.Delegate)(object)value);248				val = Interlocked.CompareExchange<EventHandler>(ref this.m_SelectedTableChanged, val3, val2);249			}250			while (val != val2);251		}252		[CompilerGenerated]253		remove254		{255			//IL_0010: Unknown result type (might be due to invalid IL or missing references)256			//IL_0016: Expected O, but got Unknown257			EventHandler val = this.m_SelectedTableChanged;258			EventHandler val2;259			do260			{261				val2 = val;262				EventHandler val3 = (EventHandler)System.Delegate.Remove((System.Delegate)(object)val2, (System.Delegate)(object)value);263				val = Interlocked.CompareExchange<EventHandler>(ref this.m_SelectedTableChanged, val3, val2);264			}265			while (val != val2);266		}267	}268269	public InfoSheetEditor(IDocumentController docController, ComponentContainer cntComponents)270		: base(docController, cntComponents, EditorControl.LM["InfoSheetEditor_Name"])271	{272		//IL_017f: Unknown result type (might be due to invalid IL or missing references)273		InitializeComponent();274		_InitializeComponent();275		SetDisplay(EditorControl.LM["InfoSheetEditor_Name"]);276		SetImage(InfoSheetEditorImage.Image);277		base.ConfigBase = new InfoSheetEditorConfiguration();278		MenuBar = menuBar;279		AddToolBar(toolStripInfoSheet);280		AddToolBar(toolStripObject);281		m_PropertyEditor = new TreePropertyEditor(this, bInfoSheet: true);282		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_PropertyEditor);283		m_ProductEditor = new TreeProductEditor(this);284		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_ProductEditor);285		m_GroupEditor = new TreeGroupEditor(this);286		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_GroupEditor);287		m_VariablesEditor = new TreeVariablesEditor(this);288		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_VariablesEditor);289		m_ColumnsEditor = new ColumnsEditor(this);290		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_ColumnsEditor);291		m_SheetEditor = new SheetPropertyEditor(this);292		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_SheetEditor);293		m_RelationEditor = new InfoSheetRelationEditor(this);294		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_RelationEditor);295		m_TreeHasSheetEditor = new TreeSheetEditor(this);296		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_TreeHasSheetEditor);297		m_TreeHasResultEditor = new TreeHasResultEditor(this);298		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_TreeHasResultEditor);299		m_ObjectHasSheetEditor = new GenericMNEditor(this, new Guid("45D4895D-E75E-49c0-8463-7090C9321875"));300		((List<PropertyEditorControl>)base.PropertyEditors).Add((PropertyEditorControl)m_ObjectHasSheetEditor);301		CreatePropertyEditors();302		viCC.UpdateCommands();303	}304305	protected override void OnDisposeOrPrepareForCaching(bool dispose)306	{307		//IL_0018: Unknown result type (might be due to invalid IL or missing references)308		//IL_0022: Expected O, but got Unknown309		//IL_0034: Unknown result type (might be due to invalid IL or missing references)310		//IL_003e: Expected O, but got Unknown311		//IL_0050: Unknown result type (might be due to invalid IL or missing references)312		//IL_005a: Expected O, but got Unknown313		//IL_006c: Unknown result type (might be due to invalid IL or missing references)314		//IL_0076: Expected O, but got Unknown315		//IL_0088: Unknown result type (might be due to invalid IL or missing references)316		//IL_0092: Expected O, but got Unknown317		if (dispose)318		{319			cbxTable.ComboBox.SelectedIndexChanged -= new EventHandler(cbxTable_SelectedIndexChanged);320			cbxObject.ComboBox.DropDown -= new EventHandler(cbxObject_DropDown);321			((Control)cbxObject.ComboBox).MouseDoubleClick -= new MouseEventHandler(cbxObject_MouseDoubleClick);322			((Control)cbxTable.ComboBox).MouseDoubleClick -= new MouseEventHandler(cbxTable_MouseDoubleClick);323			cbxObject.ComboBox.SelectedIndexChanged -= new EventHandler(cbxObject_SelectedIndexChanged);324			_IoC?.Dispose();325			((System.IDisposable)components)?.Dispose();326		}327		base.OnDisposeOrPrepareForCaching(dispose);328	}329330	public override void ResetLayout()331	{332		base.ResetLayout();333		viCC.UpdateCommands();334	}335336	protected override void OnLayoutChanged()337	{338		base.OnLayoutChanged();339		viCC.UpdateCommands();340	}341342	private void _InitializeComponent()343	{344		//IL_0012: Unknown result type (might be due to invalid IL or missing references)345		//IL_001c: Expected O, but got Unknown346		//IL_002e: Unknown result type (might be due to invalid IL or missing references)347		//IL_0038: Expected O, but got Unknown348		//IL_004a: Unknown result type (might be due to invalid IL or missing references)349		//IL_0054: Expected O, but got Unknown350		//IL_0066: Unknown result type (might be due to invalid IL or missing references)351		//IL_0070: Expected O, but got Unknown352		//IL_0082: Unknown result type (might be due to invalid IL or missing references)353		//IL_008c: Expected O, but got Unknown354		cbxTable.ComboBox.SelectedIndexChanged += new EventHandler(cbxTable_SelectedIndexChanged);355		cbxObject.ComboBox.DropDown += new EventHandler(cbxObject_DropDown);356		((Control)cbxTable.ComboBox).MouseDoubleClick += new MouseEventHandler(cbxTable_MouseDoubleClick);357		((Control)cbxObject.ComboBox).MouseDoubleClick += new MouseEventHandler(cbxObject_MouseDoubleClick);358		cbxObject.ComboBox.SelectedIndexChanged += new EventHandler(cbxObject_SelectedIndexChanged);359		cbxObject.ComboBox.DropDownHeight = 300;360		cbxTable.ComboBox.DropDownHeight = 300;361	}362363	private void cbxTable_MouseDoubleClick(object sender, MouseEventArgs e)364	{365		cbxTable.DropDownWidth = _MeasureItems(cbxTable.ComboBox);366	}367368	private void cbxObject_MouseDoubleClick(object sender, MouseEventArgs e)369	{370		cbxObject.DropDownWidth = _MeasureItems(cbxObject.ComboBox);371	}372373	public override void Initialize(IEditorTask eTask)374	{375		base.Initialize(eTask);376		if (string.Equals(eTask.Key, "VI_System_QBMTree_InfoSheetEditor", (StringComparison)5))377		{378			SingleDBObjectDocument singleDBObjectDocument = eTask.Document as SingleDBObjectDocument;379			SetConnection(singleDBObjectDocument.DBObject.Connection);380			LanguageManager instance = LanguageManager.Instance;381			object display = singleDBObjectDocument.Display;382			SetDisplay(instance.FormatString("InfoSheetEditor_Display", new System.ReadOnlySpan<object>(ref display)));383			LoadElements();384		}385		if (string.Equals(eTask.Key, "VI_System_DialogSheet_InfoSheetEditor", (StringComparison)5))386		{387			SingleDBObjectDocument singleDBObjectDocument2 = eTask.Document as SingleDBObjectDocument;388			SetConnection(singleDBObjectDocument2.DBObject.Connection);389			LanguageManager instance2 = LanguageManager.Instance;390			object display2 = singleDBObjectDocument2.Display;391			SetDisplay(instance2.FormatString("InfoSheetEditor_Display", new System.ReadOnlySpan<object>(ref display2)));392			LoadElements();393		}394		if (string.Equals(eTask.Key, "VI_System_Connection_InfoSheetEditor", (StringComparison)5))395		{396			SetConnection(DataManager.Database.RAMConnection);397			SetDisplay(LanguageManager.Instance["InfoSheetEditor_DisplayNew"]);398			_New();399		}400	}401402	public static string GetSheetDefinition(string strTreeNode)403	{404		return $"<DialogSheetDefinition FormatVersion={"\""}1.0{"\""}>\r\n\t<Properties>\r\n\t\t<Property Name={"\""}OverviewNode{"\""}>{strTreeNode}</Property>\r\n\t</Properties>\r\n</DialogSheetDefinition>";405	}406407	public void AddInfoSheetRelation(InfoSheetRelation rel)408	{409		_Add(rel);410	}411412	protected override void OnSelectedDocumentChanged(object sender, DocumentControllerEventArgs e)413	{414		base.OnSelectedDocumentChanged(sender, e);415		if (base.DBDocument != null)416		{417			((Control)this).Text = base.DBDocument.DBObject.Display;418		}419	}420421	protected override void OnSelectedDocumentSaving(object sender, DocumentEventArgs e)422	{423		base.OnSelectedDocumentSaving(sender, e);424		m_bNameChanged = string.Compare(base.DBDocument.DBObject.GetValue<string>("UID_QBMTree"), TreeRoot.GetValue<string>("UID_QBMTree"), (StringComparison)5) == 0 && base.DBDocument.DBObject["Ident_QBMTree"].IsDifferent;425		m_bNewObject = !base.DBDocument.DBObject.IsLoaded;426	}427428	protected override void OnSelectedDocumentSaved(object sender, DocumentEventArgs e)429	{430		base.OnSelectedDocumentSaved(sender, e);431		if (m_bNameChanged)432		{433			_UpdateSheet();434		}435		if (m_bNewObject)436		{437			_CopyRelations(base.DBDocument.DBObject.GetValue<string>("UID_QBMTree"));438		}439		if (Config.AutoReload)440		{441			LoadElements();442		}443	}444445	protected override void OnSelectedDocumentChanging(object sender, DocumentControllerEventArgs e)446	{447		//IL_0043: Unknown result type (might be due to invalid IL or missing references)448		//IL_0049: Invalid comparison between Unknown and I4449		if (base.DBDocument != null && base.DBDocument.State.IsChanged && !base.DBDocument.State.IsReadonly)450		{451			try452			{453				base.DBDocument.Save(reloadIfNecessary: true);454			}455			catch (System.Exception ex)456			{457				if ((int)ExceptionDialog.Show(((Control)this).FindForm(), ex, (MessageBoxButtons)1) == 2)458				{459					e.Cancel = true;460				}461			}462		}463		base.OnSelectedDocumentChanging(sender, e);464	}465466	private void viCC_ExecuteCommand(object sender, CommandEventArgs e)467	{468		try469		{470			if (e.Command == cmdRefresh)471			{472				_ShowElementSheet();473			}474			else if (e.Command == cmdNew)475			{476				_New();477			}478			else if (e.Command == cmdAdd)479			{480				_Add();481			}482			else if (e.Command == cmdRemove)483			{484				_Remove();485			}486			else if (e.Command == cmdWindowProperties)487			{488				m_PropertyEditor.ToggleActive();489			}490			else if (e.Command == cmdWindowVariables)491			{492				m_VariablesEditor.ToggleActive();493			}494			else if (e.Command == cmdWindowColumns)495			{496				m_ColumnsEditor.ToggleActive();497			}498			else if (e.Command == cmdWindowGroups)499			{500				m_GroupEditor.ToggleActive();501			}502			else if (e.Command == cmdWindowProducts)503			{504				m_ProductEditor.ToggleActive();505			}506			else if (e.Command == cmdWindowSheets)507			{508				m_SheetEditor.ToggleActive();509			}510			else if (e.Command == cmdWindowSheetToTree)511			{512				m_TreeHasSheetEditor.ToggleActive();513			}514			else if (e.Command == cmdWindowSheetToObject)515			{516				m_ObjectHasSheetEditor.ToggleActive();517			}518			else if (e.Command == cmdWindowTreeHasResult)519			{520				m_TreeHasResultEditor.ToggleActive();521			}522			else if (e.Command == cmdWindowRelations)523			{524				m_RelationEditor.ToggleActive();525			}526			else if (e.Command == cmdAutoReload)527			{528				Config.AutoReload = !Config.AutoReload;529			}530		}531		catch (System.Exception exception)532		{533			ExceptionMgr.Instance.HandleException(exception, this);534		}535		finally536		{537			viCC.UpdateCommands();538		}539	}540541	private void viCC_CommandsUpdating(object sender, EventArgs e)542	{543		bool flag = navControl.Selected != null;544		bool flag2 = false;545		if (flag)546		{547			NavigatorElement navigatorElement = (NavigatorElement)navControl.Selected;548			flag2 = TreeRoot.GetValue<string>("UID_QBMTree") == navigatorElement.Prototype.Id;549		}550		cmdRemove.Enabled = flag && !flag2;551		cmdWindowProperties.Checked = m_ProductEditor.IsActive();552		cmdWindowVariables.Checked = m_VariablesEditor.IsActive();553		cmdWindowGroups.Checked = m_GroupEditor.IsActive();554		cmdWindowProducts.Checked = m_ProductEditor.IsActive();555		cmdWindowSheets.Checked = m_SheetEditor.IsActive();556		cmdWindowRelations.Checked = m_RelationEditor.IsActive();557		cmdWindowSheetToObject.Checked = m_ObjectHasSheetEditor.IsActive();558		cmdWindowSheetToTree.Checked = m_TreeHasSheetEditor.IsActive();559		cmdWindowTreeHasResult.Checked = m_TreeHasResultEditor.IsActive();560		cmdAutoReload.Checked = Config != null && Config.AutoReload;561	}562563	public IMediatorColleague CreateColleague(System.Type colleagueType, DialogContext context)564	{565		return null;566	}567568	private void _New()569	{570		//IL_000e: Unknown result type (might be due to invalid IL or missing references)571		//IL_0014: Invalid comparison between Unknown and I4572		//IL_0081: Unknown result type (might be due to invalid IL or missing references)573		//IL_008b: Expected O, but got Unknown574		frmNewInfoSheet frmNewInfoSheet2 = new frmNewInfoSheet(Connection);575		try576		{577			if ((int)((Form)frmNewInfoSheet2).ShowDialog((IWin32Window)(object)this) == 1)578			{579				IDocument document = SingleDBObjectDocument.FromSingleDBObject(Controller, frmNewInfoSheet2.Sheet);580				base.ActiveTask.Document = document;581				LanguageManager instance = LanguageManager.Instance;582				object display = document.Display;583				SetDisplay(instance.FormatString("InfoSheetEditor_Display", new System.ReadOnlySpan<object>(ref display)));584				Controller.SelectDocument(document);585				Controller.NotifyChange(document, DocumentChange.Reloaded);586				LoadElements();587			}588			else589			{590				((Control)this).BeginInvoke((Action)([CompilerGenerated] () =>591				{592					EditorControl.Engine.CloseEditor(this, forceClose: true);593				}));594			}595		}596		finally597		{598			((System.IDisposable)frmNewInfoSheet2)?.Dispose();599		}600	}601602	private void _Add()603	{604		ISingleDbObject singleDbObject = Connection.CreateSingle("QBMTree");605		singleDbObject.PutValue("UID_QBMTreeParent", TreeRoot.GetValue<string>("UID_QBMTree"));606		singleDbObject.PutValue("Ident_QBMTree", TreeRoot.GetValue<string>("Ident_QBMTree") + ".NewNode");607		singleDbObject.PutValue("NodeType", "F");608		singleDbObject.PutValue("ElementAlignment", "TopLeft");609		SelectObject(singleDbObject);610		m_PropertyEditor.Activate();611	}612613	private void _Add(InfoSheetRelation rel)614	{615		//IL_0153: Unknown result type (might be due to invalid IL or missing references)616		//IL_019d: Unknown result type (might be due to invalid IL or missing references)617		//IL_01a3: Invalid comparison between Unknown and I4618		IColumnRelation columnRelation = GetColumnRelation((System.Collections.IEnumerable)rel.TableRelation.ColumnRelations);619		ITableDef tableDef;620		string text;621		switch (rel.RelationType)622		{623		case RelationType.FK:624			tableDef = rel.TableRelation.ParentTable;625			text = columnRelation.ParentColumn.Columnname + " = '%" + GetVarName(columnRelation.ChildColumn.Columnname) + "%'";626			break;627		case RelationType.CR:628			tableDef = rel.TableRelation.ChildTable;629			text = columnRelation.ChildColumn.Columnname + " = '%" + GetVarName(columnRelation.ParentColumn.Columnname) + "%'";630			break;631		case RelationType.MN:632		{633			IColumnRelation mNRel = GetMNRel(rel.TableRelation);634			tableDef = mNRel.Relation.ParentTable;635			global::_003C_003Ey__InlineArray5<object> buffer = default(global::_003C_003Ey__InlineArray5<object>);636			global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray5<object>, object>(ref buffer, 0) = mNRel.ParentColumn.Columnname;637			global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray5<object>, object>(ref buffer, 1) = mNRel.ChildColumn.Columnname;638			global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray5<object>, object>(ref buffer, 2) = rel.TableRelation.ChildTable.Tablename;639			global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray5<object>, object>(ref buffer, 3) = columnRelation.ChildColumn.Columnname;640			global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray5<object>, object>(ref buffer, 4) = GetVarName(columnRelation.ParentColumn.Columnname);641			text = string.Format("{0} in (select {1} from {2} where {3} = '%{4}%')", global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan<global::_003C_003Ey__InlineArray5<object>, object>(in buffer, 5));642			break;643		}644		default:645			throw new InvalidOperationException();646		}647		bool flag = false;648		if ((rel.ElementType == ElementType.DataLink || rel.ElementType == ElementType.ListLink) && rel.LinkDestination == null)649		{650			Form obj = ((Control)this).FindForm();651			object tablename = tableDef.Tablename;652			if ((int)MessageBox.Show((IWin32Window)(object)obj, LanguageManager.Format("InfoSheetEditor_QueryCreateLink", new System.ReadOnlySpan<object>(ref tablename)), Application.ProductName, (MessageBoxButtons)1, (MessageBoxIcon)64) != 1)653			{654				return;655			}656			flag = true;657		}658		using (new BusyIndicator(VI.DialogEngine.DialogEngine.ActiveEngine, VI.FormBase.BusyTime.Normal))659		{660			if (flag)661			{662				_CreateLinkTarget(tableDef.MetaTable, rel);663			}664			ISingleDbObject singleDbObject = Connection.CreateSingle("QBMTree");665			singleDbObject.PutValue("UID_QBMTreeParent", TreeRoot.GetValue<string>("UID_QBMTree"));666			switch (rel.ElementType)667			{668			case ElementType.DataNode:669				singleDbObject.PutValue("NodeType", "D");670				singleDbObject.PutValue("UID_DialogTable", tableDef.Uid);671				singleDbObject.PutValue("Ident_QBMTree", GetUniqueNodeName(TreeRoot.GetValue<string>("Ident_QBMTree") + "." + tableDef.Tablename, 0));672				singleDbObject.PutValue("WhereClause", text);673				break;674			case ElementType.ListNode:675			{676				singleDbObject.PutValue("NodeType", "F");677				singleDbObject.PutValue("Ident_QBMTree", GetUniqueNodeName(TreeRoot.GetValue<string>("Ident_QBMTree") + "." + tableDef.Tablename, 0));678				string listVarName = GetListVarName(rel);679				if (!string.IsNullOrEmpty(listVarName))680				{681					string theValue2 = $"{listVarName}={text}[F]";682					singleDbObject.PutValue("VarDefinition", theValue2);683				}684				break;685			}686			case ElementType.DataLink:687			case ElementType.ListLink:688			{689				singleDbObject.PutValue("NodeType", "L");690				singleDbObject.PutValue("UID_QBMTreeReference", (rel.LinkDestination != null) ? rel.LinkDestination.GetValue<string>("UID_QBMTree") : "");691				singleDbObject.PutValue("Ident_QBMTree", GetUniqueNodeName(TreeRoot.GetValue<string>("Ident_QBMTree") + "." + tableDef.Tablename + "Link", 0));692				string theValue = $"{GetLinkVarName(rel.LinkDestination, rel.ElementType, tableDef.Tablename)}={text}[F]";693				singleDbObject.PutValue("VarDefinition", theValue);694				break;695			}696			}697			singleDbObject.PutValue("UID_DialogImage", GetImageForTable(Connection, tableDef.Uid));698			singleDbObject.PutValue("ElementAlignment", ((object)rel.Alignment/*cast due to .constrained prefix*/).ToString());699			bool flag2 = rel.ElementType >= ElementType.ListNode;700			singleDbObject.PutValue("Caption", flag2 ? tableDef.Display : tableDef.DisplaySingular);701			singleDbObject.Save();702			singleDbObject.Load();703			_CopyRelations(singleDbObject.GetValue<string>("UID_QBMTree"));704			if (rel.TreeResult != null)705			{706				ISingleDbObject singleDbObject2 = Connection.CreateSingle("QBMTreeHasTreeResult");707				singleDbObject2.PutValue("UID_QBMTree", singleDbObject.GetValue<string>("UID_QBMTree"));708				singleDbObject2.PutValue("UID_QBMTreeResult", rel.TreeResult.GetValue<string>("UID_QBMTreeResult"));709				singleDbObject2.Save();710			}711			_ShowElementSheet();712			SelectObject(singleDbObject);713			m_PropertyEditor.Activate();714		}715	}716717	private string GetListVarName(InfoSheetRelation rel)718	{719		if (rel == null)720		{721			return null;722		}723		string text = rel.TreeResult?.GetValue<string>("WhereClause");724		if (string.IsNullOrEmpty(text))725		{726			return null;727		}728		if (text.StartsWith("%") && text.EndsWith("%"))729		{730			return text.Substring(1, text.Length - 2);731		}732		return null;733	}734735	private void _CreateLinkTarget(IMetaTable theTable, InfoSheetRelation rel, string parentNode = "InfoSheet.QIM.Links")736	{737		ISession session = m_Connection.Session;738		try739		{740			ISqlFormatter sqlFormatter = m_Connection.SqlFormatter;741			IEntityCollection collection = session.Source().GetCollection(Query.From("QBMTree").Where(sqlFormatter.Comparison("Ident_QBMTree", parentNode, ValType.String, CompareOperator.Equal, FormatterOptions.None)).Select("UID_QBMTree"));742			if (((System.Collections.Generic.IReadOnlyCollection<IEntity>)collection).Count == 0)743			{744				throw new System.Exception($"The parent node '{parentNode}' could not be found.");745			}746			using IUnitOfWork unitOfWork = session.StartUnitOfWork();747			string imageId = theTable.ImageId;748			MultiValueProperty multiValueProperty = new MultiValueProperty();749			System.Collections.Generic.IEnumerator<IMetaColumn> enumerator = ((System.Collections.Generic.IEnumerable<IMetaColumn>)theTable.Columns).GetEnumerator();750			try751			{752				while (((System.Collections.IEnumerator)enumerator).MoveNext())753				{754					IMetaColumn current = enumerator.Current;755					if ((!current.IsUid || current.IsFK) && !current.IsSpecial && !current.Columnname.StartsWith("x", (StringComparison)5) && !current.IsBlob && !current.IsMultiLine)756					{757						multiValueProperty.Add(current.Columnname);758					}759				}760			}761			finally762			{763				((System.IDisposable)enumerator)?.Dispose();764			}765			string text = $"InfoSheet.List.{theTable.Tablename}";766			if (rel.ElementType == ElementType.ListLink && !session.Source().Exists("QBMTree", sqlFormatter.Comparison("Ident_QBMTree", text, ValType.String)))767			{768				IEntity entity = session.Source().CreateNew("QBMTree", EntityCreationType.DelayedLogic);769				entity.PutValue("UID_QBMTreeParent", ((System.Collections.Generic.IReadOnlyList<IEntity>)collection)[0].GetValue("UID_QBMTree"));770				entity.PutValue("Ident_QBMTree", text);771				entity.PutValue("NodeType", "F");772				entity.PutValue("UID_DialogImage", imageId);773				entity.PutValue("SortOrder", 1);774				entity.PutValue("Caption", theTable.Display);775				entity.PutValue("UID_DialogTable", theTable.Tablename);776				entity.PutValue("WhereClause", $"%{theTable.Tablename}WhereClause%");777				entity.PutValue("ElementAlignment", "TopLeft");778				entity.PutValue("ElementLimit", 0);779				unitOfWork.Put(entity);780				_HandleRightsAndProducts(entity.GetValue("UID_QBMTree"), unitOfWork);781				rel.LinkDestination = entity;782			}783			if (rel.ElementType == ElementType.DataLink)784			{785				string text2 = $"InfoSheet.Node.{theTable.Tablename}";786				if (!session.Source().Exists("QBMTree", sqlFormatter.Comparison("Ident_QBMTree", text2, ValType.String)))787				{788					IEntity entity2 = session.Source().CreateNew("QBMTree", EntityCreationType.DelayedLogic);789					entity2.PutValue("UID_QBMTreeParent", ((System.Collections.Generic.IReadOnlyList<IEntity>)collection)[0].GetValue("UID_QBMTree"));790					entity2.PutValue("Ident_QBMTree", text2);791					entity2.PutValue("NodeType", "D");792					entity2.PutValue("UID_DialogTable", theTable.Uid);793					entity2.PutValue("UID_DialogImage", imageId);794					entity2.PutValue("SortOrder", 1);795					entity2.PutValue("Caption", theTable.Display);796					entity2.PutValue("WhereClause", $"%{theTable.Tablename}WhereClause%");797					entity2.PutValue("ElementAlignment", "TopLeft");798					entity2.PutValue("ElementLimit", 1);799					unitOfWork.Put(entity2);800					_HandleRightsAndProducts(entity2.GetValue("UID_QBMTree"), unitOfWork);801					rel.LinkDestination = entity2;802				}803			}804			unitOfWork.Commit();805		}806		catch (System.Exception exception)807		{808			ExceptionMgr.Instance.HandleException(exception, this);809		}810	}811812	private void _HandleRightsAndProducts(string uidTree, IUnitOfWork uow)813	{814		System.Collections.Generic.IEnumerator<IEntity> enumerator = ((System.Collections.Generic.IEnumerable<IEntity>)uow.Session.Source().GetCollection((from c in Query.From("QBMProductHasTree")815			where c.Column("UID_QBMTree") == TreeRoot.GetValue<string>("UID_QBMTree")816			select c).Select("UID_DialogProduct"), EntityCollectionLoadType.Slim)).GetEnumerator();817		try818		{819			while (((System.Collections.IEnumerator)enumerator).MoveNext())820			{821				IEntity current = enumerator.Current;822				IEntity entity = m_Connection.Session.Source().CreateNew("QBMProductHasTree", EntityCreationType.DelayedLogic);823				entity.PutValue("UID_QBMTree", uidTree);824				entity.PutValue("UID_DialogProduct", current.GetValue("UID_DialogProduct"));825				uow.Put(entity);826			}827		}828		finally829		{830			((System.IDisposable)enumerator)?.Dispose();831		}832		string[] array = new string[2] { "QER-94B8B03F57534F229B080797A105B60C", "QER-ACB59F24573DD84CAA93C4768EBDE7F9" };833		foreach (string value in array)834		{835			IEntity entity2 = m_Connection.Session.Source().CreateNew("QBMGroupHasTree", EntityCreationType.DelayedLogic);836			entity2.PutValue("UID_QBMTree", uidTree);837			entity2.PutValue("UID_DialogGroup", value);838			uow.Put(entity2);839		}840	}841842	private string GetUniqueNodeName(string strBaseName, int iIndex)843	{844		string text = ((iIndex == 0) ? strBaseName : (strBaseName + iIndex));845		if (Connection.Exists("QBMTree", Connection.SqlFormatter.Comparison("Ident_QBMTree", text, ValType.String)))846		{847			text = GetUniqueNodeName(strBaseName, iIndex + 1);848		}849		return text;850	}851852	private static string GetLinkVarName(IValueProvider vpLink, ElementType elementType, string strDefaultTable)853	{854		string value = vpLink.GetValue<string>("WhereClause");855		value = value.Trim('%');856		if (string.IsNullOrEmpty(value))857		{858			value = strDefaultTable + "WhereClause";859		}860		return value;861	}862863	private static IColumnRelation GetMNRel(ITableRelation tabrelBase)864	{865		ITableDef childTable = tabrelBase.ChildTable;866		System.Collections.Generic.IEnumerator<ITableRelation> enumerator = childTable.ForeignKeys.GetEnumerator();867		try868		{869			while (((System.Collections.IEnumerator)enumerator).MoveNext())870			{871				ITableRelation current = enumerator.Current;872				IColumnRelation columnRelation = GetColumnRelation((System.Collections.IEnumerable)current.ColumnRelations);873				if (childTable.PrimaryKeyColumns.Contains(columnRelation.ChildColumn.Columnname) && current.Name != tabrelBase.Name)874				{875					return columnRelation;876				}877			}878		}879		finally880		{881			((System.IDisposable)enumerator)?.Dispose();882		}883		throw new System.Exception("M:N relation " + tabrelBase.Caption + " not found.");884	}885886	private string GetVarName(string strColumnName)887	{888		foreach (DialogVariable item in new DialogVariables(new MultiValueProperty(TreeRoot.GetValue<string>("VarDefinition"))))889		{890			if (item.Type == DialogVariableType.ColumnValue && string.Equals(item.Name, strColumnName, (StringComparison)5))891			{892				return item.Value + ":DBString";893			}894		}895		return AddVarName(strColumnName);896	}897898	private string AddVarName(string strColumnName)899	{900		MultiValueProperty multiValueProperty = new MultiValueProperty(TreeRoot.GetValue<string>("VarDefinition")) { string.Format("{0}={0}[C]", (object)strColumnName) };901		TreeRoot.DBObject.PutValue("VarDefinition", multiValueProperty.Value);902		TreeRoot.DBObject.Save();903		TreeRoot.DBObject.Load();904		return strColumnName;905	}906907	private void _Remove()908	{909		try910		{911			SingleDBObjectDocument dBDocument = base.DBDocument;912			if (dBDocument != null)913			{914				new DeepDelete(dBDocument.DBObject).Execute();915			}916			SelectDocument(null);917			Activate();918		}919		finally920		{921			LoadElements();922		}923	}924925	private void cbxTable_SelectedIndexChanged(object sender, EventArgs e)926	{927		cbxObject.Items.Clear();928		((ToolStripItem)cbxObject).Enabled = ((ListControl)cbxTable.ComboBox).SelectedIndex > 1;929		OnSelectedTableChanged();930	}931932	private void OnSelectedTableChanged()933	{934		if (this.SelectedTableChanged != null)935		{936			this.SelectedTableChanged.Invoke((object)this, EventArgs.Empty);937		}938	}939940	private void cbxObject_SelectedIndexChanged(object sender, EventArgs e)941	{942		if (Config.AutoReload)943		{944			LoadElements();945		}946	}947948	private void cbxObject_DropDown(object sender, EventArgs e)949	{950		try951		{952			_LoadObjects();953		}954		catch (System.Exception exception)955		{956			ExceptionMgr.Instance.HandleException(exception, this);957		}958	}959960	private void LoadElements()961	{962		if (IsControllerObjectType("DialogSheet"))963		{964			_LoadElementSheet();965		}966		if (IsControllerObjectType("QBMTree"))967		{968			_LoadElementTree();969		}970	}971972	private void _LoadElementTree()973	{974		_ = DataManager.Database.MasterData;975		ConnectData rAMData = DataManager.Database.RAMData;976		ISqlFormatter sqlFormatter = rAMData.Connection.SqlFormatter;977		try978		{979			using (new BusyIndicator(EditorControl.Engine, VI.FormBase.BusyTime.Normal))980			{981				DataManager.Database.FillBlobs("DialogSheet");982				DataManager.Database.FillBlobs("QBMTree");983				DataManager.Database.FillBlobs("DialogObject");984				m_hTree = new DbObjectHandle(((SingleDBObjectDocument)base.ActiveTask.Document).DBObject);985				string theData = string.Format("%Name=\"OverviewNode\">{0}</Property>%", (object)sqlFormatter.MaskLikeSpecialChars(TreeRoot.GetValue<string>("Ident_QBMTree")));986				IColDbObject colDbObject = rAMData.Connection.CreateCol("DialogSheet");987				colDbObject.Prototype.WhereClause = sqlFormatter.Comparison("ConfigurationInfo", theData, ValType.String, CompareOperator.Like);988				colDbObject.Load();989				if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count <= 0)990				{991					LanguageManager lM = EditorControl.LM;992					object value = TreeRoot.GetValue<string>("Ident_QBMTree");993					throw new ViException(lM.FormatString("InfoSheetEditor_InvalidTreeData", new System.ReadOnlySpan<object>(ref value)), ExceptionRelevance.EndUser);994				}995				m_hSheet = new DbObjectHandle(((System.Collections.Generic.IReadOnlyList<IColElem>)colDbObject)[0]);996				_ShowElementSheet();997			}998			_TrySelectTable();999		}1000		catch (System.Exception exception)1001		{1002			ExceptionMgr.Instance.HandleException(exception, this);1003		}1004	}10051006	private void _LoadElementSheet()1007	{1008		_ = DataManager.Database.MasterData;1009		ConnectData rAMData = DataManager.Database.RAMData;1010		ISqlFormatter sqlFormatter = rAMData.Connection.SqlFormatter;1011		try1012		{1013			using (new BusyIndicator(EditorControl.Engine, VI.FormBase.BusyTime.Normal))1014			{1015				DataManager.Database.FillBlobs("DialogSheet");1016				DataManager.Database.FillBlobs("QBMTree");1017				DataManager.Database.FillBlobs("DialogObject");1018				m_hSheet = new DbObjectHandle(((SingleDBObjectDocument)base.ActiveTask.Document).DBObject);1019				object obj = DialogSheetConfiguration.FromXml(m_hSheet.GetValue<string>("SheetName"), m_hSheet.GetValue<string>("ConfigurationInfo")).Properties["OverviewNode"] ?? "";1020				IColDbObject colDbObject = rAMData.Connection.CreateCol("QBMTree");1021				colDbObject.Prototype.WhereClause = sqlFormatter.Comparison("Ident_QBMTree", obj, ValType.String);1022				colDbObject.Load();1023				if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count <= 0)1024				{1025					LanguageManager lM = EditorControl.LM;1026					object obj2 = obj;1027					throw new ViException(lM.FormatString("InfoSheetEditor_InvalidSheetData", new System.ReadOnlySpan<object>(ref obj2)), ExceptionRelevance.EndUser);1028				}1029				m_hTree = new DbObjectHandle(((System.Collections.Generic.IReadOnlyList<IColElem>)colDbObject)[0]);1030				_ShowElementSheet();1031			}1032			_TrySelectTable();1033		}1034		catch (System.Exception exception)1035		{1036			ExceptionMgr.Instance.HandleException(exception, this);1037		}1038	}10391040	private void SetConnection(IConnection dbConnection)1041	{1042		m_Connection = dbConnection;1043		ISession sqliteSession = m_Connection.Session;1044		ISingleDbObject singleDbObject = Connection.CreateThin("DialogSheet");1045		m_ObjectHasSheetEditor.Initialize(singleDbObject.GetMR("DialogObjectHasSheet", "UID_DialogSheet"));1046		m_TreeHasSheetEditor.Initialize(Connection);1047		m_GroupEditor.Initialize(Connection);1048		m_ProductEditor.Initialize(Connection);1049		m_ColumnsEditor.Initialize(Connection, "QBMTreeHasColumn", "UID_QBMTree");1050		m_TreeHasResultEditor.Initialize(Connection);1051		_IoC?.Dispose();1052		_IoC = new ExtendableComponentContainer("InfoSheetEditor");1053		ISession masterSession = DataManager.Database.MasterSession;1054		using (_IoC.BeginUpdate())1055		{1056			_IoC.RegisterDefaults();1057			_IoC.RegisterWinFormsDefaults(Application.OpenForms[0]);1058			_IoC.RegisterDatabaseDefaults(masterSession);1059			_IoC.Register<ISession>((ExtendableComponentContainer c) => sqliteSession, RegistrationFlags.DoNotDispose);1060			_IoC.Register<IUserConfigStore>((ExtendableComponentContainer c) => new ConfigDataBasedUserConfigStore(c, "Default"));1061			_IoC.Register<IScriptExecutor>((ExtendableComponentContainer c) => new DatabaseScriptExecutor(masterSession));1062			_IoC.Register<IUserDataStore>((ExtendableComponentContainer c) => new DatabaseUserDataStore(c, masterSession, "QBM-AE5C341C9F5FFBCEEA4CECA7931ABDFA"));1063			_IoC.Register<IImageProvider>((ExtendableComponentContainer c) => DialogImageDirectory.GetOrCreate(masterSession), RegistrationFlags.DoNotDispose);1064			_IoC.UseDatabaseScheme(masterSession);1065			VI.UI.Dialog.Core.Engine.DialogEngine.RegisterDefaults(_IoC);1066			navControl.SetComponentContainer(_IoC);1067		}1068		_LoadTables();1069	}10701071	private void _ShowElementSheet()1072	{1073		CommitChanges();1074		navControl.EditMode = SelectedObject == null;1075		navControl.LoadNode(TreeRoot, SelectedObject?.Connection.Session, SelectedObject?.GetEntity());1076	}10771078	private void navControl_SelectedChanged(object sender, ElementEditEventArgs args)1079	{1080		try1081		{1082			if (args.Element != null)1083			{1084				NavigatorElement navigatorElement = args.Element as NavigatorElement;1085				ISingleDbObject singleDbObject = Connection.CreateSingle("QBMTree");1086				singleDbObject["UID_QBMTree"].NewValue = navigatorElement.Prototype.Id;1087				singleDbObject.Load();1088				SelectTree(singleDbObject);1089			}1090		}1091		catch (System.Exception exception)1092		{1093			ExceptionMgr.Instance.HandleException(exception, this);1094		}1095		finally1096		{1097			viCC.UpdateCommands();1098		}1099	}11001101	private void SelectTree(ISingleDbObject dbTree)1102	{1103		SingleDBObjectDocument singleDBObjectDocument = new SingleDBObjectDocument(this, dbTree);1104		ISqlFormatter sqlFormatter = dbTree.Connection.SqlFormatter;1105		string theData = string.Format("%Name=\"OverviewNode\">{0}</Property>%", (object)dbTree.GetValue<string>("Ident_QBMTree"));1106		string whereClause = sqlFormatter.Comparison("ConfigurationInfo", theData, ValType.String, CompareOperator.Like);1107		IColDbObject colDbObject = dbTree.Connection.CreateCol("DialogSheet");1108		colDbObject.Prototype.WhereClause = whereClause;1109		colDbObject.PrepareBulkLoad();1110		colDbObject.Load();1111		if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count > 0)1112		{1113			singleDBObjectDocument.Variables.Put("DialogSheet", ((System.Collections.Generic.IReadOnlyList<IColElem>)colDbObject)[0].Create());1114		}1115		SelectDocument(singleDBObjectDocument);1116	}11171118	private void navControl_ElementMoved(object sender, ElementEditEventArgs args)1119	{1120		try1121		{1122			Zone hotZone = navControl.HotZone;1123			if (hotZone != null)1124			{1125				base.DBDocument.DBObject.PutValue("ElementAlignment", hotZone.Key);1126			}1127		}1128		catch (System.Exception exception)1129		{1130			ExceptionMgr.Instance.HandleException(exception, this);1131		}1132	}11331134	private void _UpdateSheet()1135	{1136		m_hSheet.DBObject.PutValue("ConfigurationInfo", GetSheetDefinition(base.DBDocument.DBObject.GetValue<string>("Ident_QBMTree")));1137		m_hSheet.DBObject.Save();1138		m_hSheet.DBObject.Load();1139	}11401141	private void _CopyRelations(string strUIDDestTree)1142	{1143		string[] array = new string[1] { "QER-94B8B03F57534F229B080797A105B60C" };1144		System.Collections.Generic.IEnumerator<IColElem> enumerator = ((System.Collections.Generic.IEnumerable<IColElem>)TreeRoot.DBObject.GetCR("QBMGroupHasTree", "UID_QBMTree").Children).GetEnumerator();1145		try1146		{1147			while (((System.Collections.IEnumerator)enumerator).MoveNext())1148			{1149				string value = enumerator.Current.GetValue<string>("UID_DialogGroup");1150				if (!MemoryExtensions.Contains<string>(System.ReadOnlySpan<string>.op_Implicit(array), value))1151				{1152					ISingleDbObject singleDbObject = Connection.CreateSingle("QBMGroupHasTree");1153					singleDbObject.PutValue("UID_QBMTree", strUIDDestTree);1154					singleDbObject.PutValue("UID_DialogGroup", value);1155					if ((bool)singleDbObject.Custom.CallMethod("IsModuleDataValid"))1156					{1157						singleDbObject.Save();1158					}1159				}1160			}1161		}1162		finally1163		{1164			((System.IDisposable)enumerator)?.Dispose();1165		}1166		enumerator = ((System.Collections.Generic.IEnumerable<IColElem>)TreeRoot.DBObject.GetCR("QBMProductHasTree", "UID_QBMTree").Children).GetEnumerator();1167		try1168		{1169			while (((System.Collections.IEnumerator)enumerator).MoveNext())1170			{1171				IColElem current = enumerator.Current;1172				ISingleDbObject singleDbObject = Connection.CreateSingle("QBMProductHasTree");1173				singleDbObject.PutValue("UID_QBMTree", strUIDDestTree);1174				singleDbObject.PutValue("UID_DialogProduct", current.GetValue<string>("UID_DialogProduct"));1175				if ((bool)singleDbObject.Custom.CallMethod("IsModuleDataValid"))1176				{1177					singleDbObject.Save();1178				}1179			}1180		}1181		finally1182		{1183			((System.IDisposable)enumerator)?.Dispose();1184		}1185	}11861187	private void _LoadTables()1188	{1189		IColDbObject colDbObject = Connection.CreateCol("DialogTable");1190		_ = Connection.SqlFormatter;1191		try1192		{1193			cbxTable.ComboBox.BeginUpdate();1194			cbxTable.ComboBox.Items.Clear();1195			colDbObject.Load();1196			List<IColElem> val = new List<IColElem>(((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count);1197			cbxTable.ComboBox.Items.Add((object)EditorControl.LM["InfoSheetEditor_cbxTable_None"]);1198			System.Collections.Generic.IEnumerator<IColElem> enumerator = ((System.Collections.Generic.IEnumerable<IColElem>)colDbObject).GetEnumerator();1199			try1200			{1201				while (((System.Collections.IEnumerator)enumerator).MoveNext())1202				{1203					IColElem current = enumerator.Current;1204					val.Add(current);1205				}1206			}1207			finally1208			{1209				((System.IDisposable)enumerator)?.Dispose();1210			}1211			ObjectCollection items = cbxTable.ComboBox.Items;1212			object[] array = val.ToArray();1213			items.AddRange(array);1214		}1215		finally1216		{1217			cbxTable.ComboBox.EndUpdate();1218		}1219	}12201221	private void _TrySelectTable()1222	{1223		string text = TreeRoot.DBObject.ObjectWalker.GetValue("FK(UID_DialogTable).TableName", doNotThrowOnCanSee: true);1224		if (string.IsNullOrEmpty(text))1225		{1226			IMemberRelation mR = m_hSheet.DBObject.GetMR("DialogObjectHasSheet", "UID_DialogSheet");1227			if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)mR.Members).Count > 0)1228			{1229				text = ((System.Collections.Generic.IReadOnlyList<IColElem>)mR.Members)[0].Create().ObjectWalker.GetValue("FK(UID_DialogTable).TableName", doNotThrowOnCanSee: true);1230			}1231		}1232		if (string.IsNullOrEmpty(text))1233		{1234			IMemberRelation mR2 = m_hSheet.DBObject.GetMR("QBMTreeHasSheet", "UID_DialogSheet");1235			if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)mR2.Members).Count > 0)1236			{1237				text = ((System.Collections.Generic.IReadOnlyList<IColElem>)mR2.Members)[0].Create().ObjectWalker.GetValue("FK(UID_DialogTable).TableName", doNotThrowOnCanSee: true);1238			}1239		}1240		_SelectTable(text);1241	}12421243	private void _SelectTable(string strTableName)1244	{1245		if (string.IsNullOrEmpty(strTableName))1246		{1247			return;1248		}1249		for (int i = 1; i < cbxTable.ComboBox.Items.Count; i++)1250		{1251			if (cbxTable.ComboBox.Items[i] is IColElem provider && string.Compare(provider.GetValue<string>("TableName"), strTableName, (StringComparison)5) == 0)1252			{1253				((ListControl)cbxTable.ComboBox).SelectedIndex = i;1254				break;1255			}1256		}1257	}12581259	private void _LoadObjects()1260	{1261		string selectedTable = SelectedTable;1262		if (string.IsNullOrEmpty(selectedTable))1263		{1264			return;1265		}1266		IColDbObject colDbObject = DataManager.Database.MasterConnection.CreateCol(selectedTable);1267		_ = DataManager.Database.MasterConnection.SqlFormatter;1268		try1269		{1270			cbxObject.ComboBox.BeginUpdate();1271			cbxObject.ComboBox.Items.Clear();1272			if (colDbObject.Prototype.TableDef.IsMNTable)1273			{1274				colDbObject.Load(CollectionLoadType.ForeignDisplays);1275			}1276			else1277			{1278				colDbObject.Load();1279			}1280			List<DbObjectHandle> val = new List<DbObjectHandle>(((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count);1281			cbxObject.ComboBox.Items.Add((object)EditorControl.LM["InfoSheetEditor_cbxObject_None"]);1282			System.Collections.Generic.IEnumerator<IColElem> enumerator = ((System.Collections.Generic.IEnumerable<IColElem>)colDbObject).GetEnumerator();1283			try1284			{1285				while (((System.Collections.IEnumerator)enumerator).MoveNext())1286				{1287					IColElem current = enumerator.Current;1288					val.Add(new DbObjectHandle(current));1289				}1290			}1291			finally1292			{1293				((System.IDisposable)enumerator)?.Dispose();1294			}1295			ObjectCollection items = cbxObject.ComboBox.Items;1296			object[] array = val.ToArray();1297			items.AddRange(array);1298		}1299		finally1300		{1301			cbxObject.ComboBox.EndUpdate();1302		}1303	}13041305	private int _MeasureItems(ComboBox cbx)1306	{1307		//IL_004a: Unknown result type (might be due to invalid IL or missing references)1308		//IL_004f: Unknown result type (might be due to invalid IL or missing references)1309		float num = 0f;1310		Graphics graphics = null;1311		try1312		{1313			graphics = Graphics.FromHwnd(((Control)cbxObject.ComboBox).Handle);1314			foreach (object item in cbx.Items)1315			{1316				SizeF val = graphics.MeasureString(item.ToString(), ((Control)cbxTable.ComboBox).Font);1317				num = Math.Max(num, ((SizeF)(ref val)).Width);1318			}1319		}1320		finally1321		{1322			graphics?.Dispose();1323		}1324		return Convert.ToInt32(num) + 1;1325	}13261327	private void navControl_AddInfoSheetRelation(InfoSheetRelation rel)1328	{1329		//IL_0022: Unknown result type (might be due to invalid IL or missing references)1330		try1331		{1332			((Control)cMenuType).Tag = rel;1333			if (rel.RelationType == RelationType.MN)1334			{1335				_PrepareResultItems(rel);1336			}1337			((ToolStripDropDown)cMenuType).Show(Cursor.Position);1338		}1339		catch (System.Exception exception)1340		{1341			ExceptionMgr.Instance.HandleException(exception, this);1342		}1343	}13441345	private void _PrepareResultItems(InfoSheetRelation rel)1346	{1347		//IL_00a0: Unknown result type (might be due to invalid IL or missing references)1348		//IL_00a7: Expected O, but got Unknown1349		((ToolStripDropDownItem)miListNode).DropDownItems.Clear();1350		ITableDef parentTable = GetMNRel(rel.TableRelation).Relation.ParentTable;1351		ISqlFormatter sqlFormatter = Connection.SqlFormatter;1352		IColDbObject colDbObject = Connection.CreateCol("QBMTreeResult");1353		colDbObject.Prototype.WhereClause = sqlFormatter.FkComparison("UID_DialogObject", "DialogObject", sqlFormatter.UidComparison("UID_DialogTable", parentTable.Uid));1354		colDbObject.Prototype["WhereClause"].IsDisplayItem = true;1355		colDbObject.Load();1356		System.Collections.Generic.IEnumerator<IColElem> enumerator = ((System.Collections.Generic.IEnumerable<IColElem>)colDbObject).GetEnumerator();1357		try1358		{1359			while (((System.Collections.IEnumerator)enumerator).MoveNext())1360			{1361				IColElem current = enumerator.Current;1362				ToolStripMenuItem val = new ToolStripMenuItem(current.Display);1363				((ToolStripItem)val).Tag = current;1364				((ToolStripDropDownItem)miListNode).DropDownItems.Add((ToolStripItem)(object)val);1365			}1366		}1367		finally1368		{1369			((System.IDisposable)enumerator)?.Dispose();1370		}1371	}13721373	private void cMenuType_ItemClicked(object sender, ToolStripItemClickedEventArgs e)1374	{1375		try1376		{1377			InfoSheetRelation infoSheetRelation = ((Control)cMenuType).Tag as InfoSheetRelation;1378			if ((object)e.ClickedItem == miListNode || (object)e.ClickedItem == miDataNode)1379			{1380				infoSheetRelation.ElementType = (ElementType)System.Enum.Parse(typeof(ElementType), (string)e.ClickedItem.Tag);1381				_Add(infoSheetRelation);1382			}1383			if ((object)e.ClickedItem == miListLinkNode || (object)e.ClickedItem == miDataLinkNode)1384			{1385				infoSheetRelation.ElementType = (((object)e.ClickedItem != miListLinkNode) ? ElementType.DataLink : ElementType.ListLink);1386				infoSheetRelation.LinkDestination = e.ClickedItem.Tag as IValueProvider;1387				_Add(infoSheetRelation);1388			}1389		}1390		catch (System.Exception exception)1391		{1392			ExceptionMgr.Instance.HandleException(exception, this);1393		}1394	}13951396	private void miListNode_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)1397	{1398		try1399		{1400			InfoSheetRelation infoSheetRelation = ((Control)cMenuType).Tag as InfoSheetRelation;1401			infoSheetRelation.ElementType = ElementType.ListNode;1402			infoSheetRelation.TreeResult = e.ClickedItem.Tag as IValueProvider;1403			_Add(infoSheetRelation);1404		}1405		catch (System.Exception exception)1406		{1407			ExceptionMgr.Instance.HandleException(exception, this);1408		}1409	}14101411	private void cMenuType_Opening(object sender, CancelEventArgs e)1412	{1413		try1414		{1415			if (((Control)cMenuType).Tag is InfoSheetRelation infoSheetRelation)1416			{1417				string uidDialogTable = string.Empty;1418				switch (infoSheetRelation.RelationType)1419				{1420				case RelationType.FK:1421					uidDialogTable = infoSheetRelation.TableRelation.ParentTable.Uid;1422					break;1423				case RelationType.CR:1424					uidDialogTable = infoSheetRelation.TableRelation.ChildTable.Uid;1425					break;1426				case RelationType.MN:1427					uidDialogTable = GetMNRel(infoSheetRelation.TableRelation).Relation.ParentTable.Uid;1428					break;1429				}1430				IValueProvider linkForTable = GetLinkForTable(uidDialogTable, bData: true);1431				((ToolStripItem)miDataLinkNode).Tag = linkForTable;1432				((ToolStripItem)miDataLinkNode).ToolTipText = ((linkForTable != null) ? linkForTable.Display : "");1433				((ToolStripItem)miDataLinkNode).Enabled = linkForTable != null;1434				IValueProvider linkForTable2 = GetLinkForTable(uidDialogTable, bData: false);1435				((ToolStripItem)miListLinkNode).Tag = linkForTable2;1436				((ToolStripItem)miListLinkNode).ToolTipText = ((linkForTable2 != null) ? linkForTable2.Display : "");1437				((ToolStripItem)miListLinkNode).Enabled = linkForTable2 != null;1438			}1439		}1440		catch (System.Exception exception)1441		{1442			ExceptionMgr.Instance.HandleException(exception, this);1443		}1444	}14451446	public static IColumnRelation GetColumnRelation(System.Collections.IEnumerable colRelations)1447	{1448		System.Collections.IEnumerator enumerator = colRelations.GetEnumerator();1449		enumerator.MoveNext();1450		return (IColumnRelation)enumerator.Current;1451	}14521453	internal static string GetImageForTable(IConnection con, string uidDialogTable)1454	{1455		ISqlFormatter sqlFormatter = con.SqlFormatter;1456		string whereclause = sqlFormatter.UidComparison("UID_DialogTable", uidDialogTable);1457		string text = con.GetSingleProperty("DialogTable", "UID_DialogImage", whereclause);1458		if (!string.IsNullOrEmpty(text))1459		{1460			return text;1461		}1462		whereclause = sqlFormatter.AndRelation(sqlFormatter.UidComparison("UID_DialogTable", uidDialogTable), sqlFormatter.Comparison("UID_DialogImage", string.Empty, ValType.String, CompareOperator.NotEqual));1463		text = con.GetSingleProperty("QBMTree", "UID_DialogImage", whereclause);1464		if (!string.IsNullOrEmpty(text))1465		{1466			return text;1467		}1468		whereclause = sqlFormatter.AndRelation(sqlFormatter.UidComparison("UID_DialogTable", uidDialogTable), sqlFormatter.Comparison("UID_DialogImage", string.Empty, ValType.String, CompareOperator.NotEqual));1469		text = con.GetSingleProperty("DialogObject", "UID_DialogImage", whereclause);1470		if (!string.IsNullOrEmpty(text))1471		{1472			return text;1473		}1474		return string.Empty;1475	}14761477	private IValueProvider GetLinkForTable(string uidDialogTable, bool bData)1478	{1479		ISqlFormatter sqlFormatter = Connection.SqlFormatter;1480		if (string.IsNullOrEmpty(uidDialogTable))1481		{1482			return null;1483		}1484		string whereClause = ((!bData) ? sqlFormatter.AndRelation("UID_QBMTreeParent in (select UID_QBMTree from QBMTree where Ident_QBMTree like 'InfoSheet.%.Links')", sqlFormatter.Comparison("NodeType", "F", ValType.String), "UID_QBMTree in (\r\n  select UID_QBMTree from QBMTreeHasTreeResult ThR\r\n  join QBMTreeResult TR on ThR.UID_QBMTreeResult = TR.UID_QBMTreeResult\r\n  join DialogObject DO on DO.UID_DialogObject = TR.UID_DialogObject\r\n  where " + sqlFormatter.UidComparison("DO.UID_DialogTable", uidDialogTable) + "\r\n    and TR.WhereClause like '\\%%\\%' ESCAPE '\\' \r\n    )") : sqlFormatter.AndRelation("UID_QBMTreeParent in (select UID_QBMTree from QBMTree where Ident_QBMTree like 'InfoSheet.%.Links')", sqlFormatter.Comparison("NodeType", "D", ValType.String), sqlFormatter.UidComparison("UID_DialogTable", uidDialogTable), "WhereClause like '\\%%\\%' ESCAPE '\\'"));1485		IColDbObject colDbObject = Connection.CreateCol("QBMTree");1486		colDbObject.PrepareBulkLoad();1487		colDbObject.Prototype.WhereClause = whereClause;1488		colDbObject.Load();1489		if (((System.Collections.Generic.IReadOnlyCollection<IColElem>)colDbObject).Count <= 0)1490		{1491			return null;1492		}1493		return ((System.Collections.Generic.IReadOnlyList<IColElem>)colDbObject)[0];1494	}14951496	private void InitializeComponent()1497	{1498		//IL_0001: Unknown result type (might be due to invalid IL or missing references)1499		//IL_000b: Expected O, but got Unknown1500		//IL_0017: Unknown result type (might be due to invalid IL or missing references)1501		//IL_0021: Expected O, but got Unknown1502		//IL_0022: Unknown result type (might be due to invalid IL or missing references)1503		//IL_002c: Expected O, but got Unknown1504		//IL_002d: Unknown result type (might be due to invalid IL or missing references)1505		//IL_0037: Expected O, but got Unknown1506		//IL_0038: Unknown result type (might be due to invalid IL or missing references)1507		//IL_0042: Expected O, but got Unknown1508		//IL_0043: Unknown result type (might be due to invalid IL or missing references)1509		//IL_004d: Expected O, but got Unknown1510		//IL_004e: Unknown result type (might be due to invalid IL or missing references)1511		//IL_0058: Expected O, but got Unknown1512		//IL_0059: Unknown result type (might be due to invalid IL or missing references)1513		//IL_0063: Expected O, but got Unknown1514		//IL_0064: Unknown result type (might be due to invalid IL or missing references)1515		//IL_006e: Expected O, but got Unknown1516		//IL_006f: Unknown result type (might be due to invalid IL or missing references)1517		//IL_0079: Expected O, but got Unknown1518		//IL_007a: Unknown result type (might be due to invalid IL or missing references)1519		//IL_0084: Expected O, but got Unknown1520		//IL_0085: Unknown result type (might be due to invalid IL or missing references)1521		//IL_008f: Expected O, but got Unknown1522		//IL_0090: Unknown result type (might be due to invalid IL or missing references)1523		//IL_009a: Expected O, but got Unknown1524		//IL_009b: Unknown result type (might be due to invalid IL or missing references)1525		//IL_00a5: Expected O, but got Unknown1526		//IL_00a6: Unknown result type (might be due to invalid IL or missing references)1527		//IL_00b0: Expected O, but got Unknown1528		//IL_00b1: Unknown result type (might be due to invalid IL or missing references)1529		//IL_00bb: Expected O, but got Unknown1530		//IL_00bc: Unknown result type (might be due to invalid IL or missing references)1531		//IL_00c6: Expected O, but got Unknown1532		//IL_00c7: Unknown result type (might be due to invalid IL or missing references)1533		//IL_00d1: Expected O, but got Unknown1534		//IL_00d2: Unknown result type (might be due to invalid IL or missing references)1535		//IL_00dc: Expected O, but got Unknown1536		//IL_00dd: Unknown result type (might be due to invalid IL or missing references)1537		//IL_00e7: Expected O, but got Unknown1538		//IL_00e8: Unknown result type (might be due to invalid IL or missing references)1539		//IL_00f2: Expected O, but got Unknown1540		//IL_00f3: Unknown result type (might be due to invalid IL or missing references)1541		//IL_00fd: Expected O, but got Unknown1542		//IL_00fe: Unknown result type (might be due to invalid IL or missing references)1543		//IL_0108: Expected O, but got Unknown1544		//IL_0109: Unknown result type (might be due to invalid IL or missing references)1545		//IL_0113: Expected O, but got Unknown1546		//IL_0114: Unknown result type (might be due to invalid IL or missing references)1547		//IL_011e: Expected O, but got Unknown1548		//IL_011f: Unknown result type (might be due to invalid IL or missing references)1549		//IL_0129: Expected O, but got Unknown1550		//IL_012a: Unknown result type (might be due to invalid IL or missing references)1551		//IL_0134: Expected O, but got Unknown1552		//IL_0135: Unknown result type (might be due to invalid IL or missing references)1553		//IL_013f: Expected O, but got Unknown1554		//IL_0140: Unknown result type (might be due to invalid IL or missing references)1555		//IL_014a: Expected O, but got Unknown1556		//IL_015c: Unknown result type (might be due to invalid IL or missing references)1557		//IL_0166: Expected O, but got Unknown1558		//IL_016d: Unknown result type (might be due to invalid IL or missing references)1559		//IL_0177: Expected O, but got Unknown1560		//IL_0178: Unknown result type (might be due to invalid IL or missing references)1561		//IL_0182: Expected O, but got Unknown1562		//IL_0183: Unknown result type (might be due to invalid IL or missing references)1563		//IL_018d: Expected O, but got Unknown1564		//IL_018e: Unknown result type (might be due to invalid IL or missing references)1565		//IL_0198: Expected O, but got Unknown1566		//IL_0199: Unknown result type (might be due to invalid IL or missing references)1567		//IL_01a3: Expected O, but got Unknown1568		//IL_01a4: Unknown result type (might be due to invalid IL or missing references)1569		//IL_01ae: Expected O, but got Unknown1570		//IL_01af: Unknown result type (might be due to invalid IL or missing references)1571		//IL_01b9: Expected O, but got Unknown1572		//IL_01c5: Unknown result type (might be due to invalid IL or missing references)1573		//IL_01cf: Expected O, but got Unknown1574		//IL_01d0: Unknown result type (might be due to invalid IL or missing references)1575		//IL_01da: Expected O, but got Unknown1576		//IL_01db: Unknown result type (might be due to invalid IL or missing references)1577		//IL_01e5: Expected O, but got Unknown1578		//IL_01e6: Unknown result type (might be due to invalid IL or missing references)1579		//IL_01f0: Expected O, but got Unknown1580		//IL_01f1: Unknown result type (might be due to invalid IL or missing references)1581		//IL_01fb: Expected O, but got Unknown1582		//IL_01fc: Unknown result type (might be due to invalid IL or missing references)1583		//IL_0206: Expected O, but got Unknown1584		//IL_03ba: Unknown result type (might be due to invalid IL or missing references)1585		//IL_0442: Unknown result type (might be due to invalid IL or missing references)1586		//IL_04b0: Unknown result type (might be due to invalid IL or missing references)1587		//IL_0541: Unknown result type (might be due to invalid IL or missing references)1588		//IL_05c6: Unknown result type (might be due to invalid IL or missing references)1589		//IL_064b: Unknown result type (might be due to invalid IL or missing references)1590		//IL_06cd: Unknown result type (might be due to invalid IL or missing references)1591		//IL_076d: Unknown result type (might be due to invalid IL or missing references)1592		//IL_080a: Unknown result type (might be due to invalid IL or missing references)1593		//IL_08b7: Unknown result type (might be due to invalid IL or missing references)1594		//IL_0949: Unknown result type (might be due to invalid IL or missing references)1595		//IL_09d1: Unknown result type (might be due to invalid IL or missing references)1596		//IL_0a56: Unknown result type (might be due to invalid IL or missing references)1597		//IL_0ade: Unknown result type (might be due to invalid IL or missing references)1598		//IL_0b7e: Unknown result type (might be due to invalid IL or missing references)1599		//IL_0c1e: Unknown result type (might be due to invalid IL or missing references)1600		//IL_0cbf: Unknown result type (might be due to invalid IL or missing references)1601		//IL_0d5c: Unknown result type (might be due to invalid IL or missing references)1602		//IL_0dfc: Unknown result type (might be due to invalid IL or missing references)1603		//IL_0e99: Unknown result type (might be due to invalid IL or missing references)1604		//IL_0f39: Unknown result type (might be due to invalid IL or missing references)1605		//IL_0fd6: Unknown result type (might be due to invalid IL or missing references)1606		//IL_105e: Unknown result type (might be due to invalid IL or missing references)1607		//IL_10c7: Unknown result type (might be due to invalid IL or missing references)1608		//IL_10ee: Unknown result type (might be due to invalid IL or missing references)1609		//IL_118c: Unknown result type (might be due to invalid IL or missing references)1610		//IL_1263: Unknown result type (might be due to invalid IL or missing references)1611		//IL_12b0: Unknown result type (might be due to invalid IL or missing references)1612		//IL_1331: Unknown result type (might be due to invalid IL or missing references)1613		//IL_1373: Unknown result type (might be due to invalid IL or missing references)1614		//IL_13e8: Unknown result type (might be due to invalid IL or missing references)1615		//IL_13f9: Unknown result type (might be due to invalid IL or missing references)1616		//IL_142f: Unknown result type (might be due to invalid IL or missing references)1617		//IL_144e: Unknown result type (might be due to invalid IL or missing references)1618		//IL_1468: Unknown result type (might be due to invalid IL or missing references)1619		//IL_1527: Unknown result type (might be due to invalid IL or missing references)1620		//IL_15aa: Unknown result type (might be due to invalid IL or missing references)1621		//IL_15c1: Unknown result type (might be due to invalid IL or missing references)1622		//IL_15cb: Expected O, but got Unknown1623		//IL_15d8: Unknown result type (might be due to invalid IL or missing references)1624		//IL_15e2: Expected O, but got Unknown1625		//IL_15ff: Unknown result type (might be due to invalid IL or missing references)1626		//IL_164c: Unknown result type (might be due to invalid IL or missing references)1627		//IL_1656: Expected O, but got Unknown1628		//IL_1673: Unknown result type (might be due to invalid IL or missing references)1629		//IL_16d0: Unknown result type (might be due to invalid IL or missing references)1630		//IL_172d: Unknown result type (might be due to invalid IL or missing references)1631		//IL_1789: Unknown result type (might be due to invalid IL or missing references)1632		//IL_17b0: Unknown result type (might be due to invalid IL or missing references)1633		//IL_1823: Unknown result type (might be due to invalid IL or missing references)1634		//IL_184a: Unknown result type (might be due to invalid IL or missing references)1635		//IL_18ca: Unknown result type (might be due to invalid IL or missing references)1636		//IL_18f1: Unknown result type (might be due to invalid IL or missing references)1637		//IL_194b: Unknown result type (might be due to invalid IL or missing references)1638		//IL_1995: Unknown result type (might be due to invalid IL or missing references)1639		//IL_19bc: Unknown result type (might be due to invalid IL or missing references)1640		//IL_1a06: Unknown result type (might be due to invalid IL or missing references)1641		//IL_1b26: Unknown result type (might be due to invalid IL or missing references)1642		//IL_1b30: Expected O, but got Unknown1643		//IL_1b8a: Unknown result type (might be due to invalid IL or missing references)1644		components = (IContainer)new Container();1645		stockImages = new StockImageComponent();1646		miAdd = new ToolStripMenuItem();1647		miRemove = new ToolStripMenuItem();1648		miEdit = new ToolStripMenuItem();1649		tbbNew = new ToolStripButton();1650		tbbAdd = new ToolStripButton();1651		tbbRemove = new ToolStripButton();1652		tbbRefresh = new ToolStripButton();1653		menuWindowsGroups = new ToolStripMenuItem();1654		menuWindowsProperties = new ToolStripMenuItem();1655		mnuHelp_InfoSheetEditor = new ToolStripMenuItem();1656		menuRefresh = new ToolStripMenuItem();1657		menuRemove = new ToolStripMenuItem();1658		menuEditCut = new ToolStripMenuItem();1659		menuNew = new ToolStripMenuItem();1660		menuWindowsVariables = new ToolStripMenuItem();1661		menuWindowsProducts = new ToolStripMenuItem();1662		menuAutoReload = new ToolStripMenuItem();1663		menuWindowsSheets = new ToolStripMenuItem();1664		menuWindowsRelations = new ToolStripMenuItem();1665		menuWindowsSheetToTree = new ToolStripMenuItem();1666		menuWindowsSheetToObject = new ToolStripMenuItem();1667		menuWindowTreeHasResult = new ToolStripMenuItem();1668		miRefresh = new ToolStripMenuItem();1669		menuBar = new MenuStrip();1670		menuEdit = new ToolStripMenuItem();1671		menuWindows = new ToolStripMenuItem();1672		menuWindowColumns = new ToolStripMenuItem();1673		Designer_mnuHelp = new ToolStripMenuItem();1674		navControl = new InfoSheetEdit();1675		cMenu = new ContextMenuStrip(components);1676		cMenuType = new ContextMenuStrip(components);1677		miListNode = new ToolStripMenuItem();1678		miDataNode = new ToolStripMenuItem();1679		miListLinkNode = new ToolStripMenuItem();1680		miDataLinkNode = new ToolStripMenuItem();1681		toolStripSeparator1 = new ToolStripSeparator();1682		miAbort = new ToolStripMenuItem();1683		Translator = new TranslatorComponent();1684		toolStripInfoSheet = new ToolStrip();1685		toolStripObject = new ToolStrip();1686		lblTable = new ToolStripLabel();1687		cbxTable = new ToolStripComboBox();1688		lblObject = new ToolStripLabel();1689		cbxObject = new ToolStripComboBox();1690		cmdRefresh = new Command(components);1691		cmdWindowProducts = new Command(components);1692		cmdWindowGroups = new Command(components);1693		cmdHelpEditor = new Command(components);1694		cmdAdd = new Command(components);1695		cmdRemove = new Command(components);1696		cmdNew = new Command(components);1697		cmdWindowVariables = new Command(components);1698		cmdWindowProperties = new Command(components);1699		cmdAutoReload = new Command(components);1700		cmdWindowSheets = new Command(components);1701		cmdWindowRelations = new Command(components);1702		cmdWindowSheetToTree = new Command(components);1703		cmdWindowSheetToObject = new Command(components);1704		cmdWindowTreeHasResult = new Command(components);1705		cmdWindowColumns = new Command(components);1706		viCC = new CommandCenter(components);1707		((Control)menuBar).SuspendLayout();1708		((ISupportInitialize)navControl).BeginInit();1709		((Control)cMenu).SuspendLayout();1710		((Control)cMenuType).SuspendLayout();1711		((ISupportInitialize)Translator).BeginInit();1712		((Control)toolStripInfoSheet).SuspendLayout();1713		((Control)toolStripObject).SuspendLayout();1714		((Control)this).SuspendLayout();1715		stockImages.DefaultImageProperty = null;1716		viCC.SetCommand((Component)(object)miAdd, cmdAdd);1717		((ToolStripItem)miAdd).Name = "miAdd";1718		((ToolStripItem)miAdd).Size = new Size(217, 22);1719		stockImages.SetStockImage((IComponent)(object)miAdd, new StockImageDefinition("Image", StockImage.NewDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1720		((ToolStripItem)miAdd).Text = "InfoSheetEditor_miAdd";1721		Translator.SetTextProperty((IComponent)(object)miAdd, "Text");1722		viCC.SetCommand((Component)(object)miRemove, cmdRemove);1723		((ToolStripItem)miRemove).Name = "miRemove";1724		((ToolStripItem)miRemove).Size = new Size(217, 22);1725		stockImages.SetStockImage((IComponent)(object)miRemove, new StockImageDefinition("Image", StockImage.DeleteDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1726		((ToolStripItem)miRemove).Text = "InfoSheetEditor_miRemove";1727		Translator.SetTextProperty((IComponent)(object)miRemove, "Text");1728		((ToolStripItem)miEdit).Name = "miEdit";1729		((ToolStripItem)miEdit).Size = new Size(217, 22);1730		stockImages.SetStockImage((IComponent)(object)miEdit, new StockImageDefinition("Image", StockImage.QuickEditMode, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1731		((ToolStripItem)miEdit).Text = "InfoSheetEditor_miEdit";1732		Translator.SetTextProperty((IComponent)(object)miEdit, "Text");1733		((ToolStripItem)miEdit).Visible = false;1734		viCC.SetCommand((Component)(object)tbbNew, cmdNew);1735		((ToolStripItem)tbbNew).Name = "tbbNew";1736		((ToolStripItem)tbbNew).Size = new Size(23, 22);1737		stockImages.SetStockImage((IComponent)(object)tbbNew, new StockImageDefinition("Image", StockImage.TextDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1738		Translator.SetTextProperty((IComponent)(object)tbbNew, "ToolTipText");1739		((ToolStripItem)tbbNew).ToolTipText = "InfoSheetEditor_tbbNew_Tip";1740		viCC.SetCommand((Component)(object)tbbAdd, cmdAdd);1741		((ToolStripItem)tbbAdd).Name = "tbbAdd";1742		((ToolStripItem)tbbAdd).Size = new Size(23, 22);1743		stockImages.SetStockImage((IComponent)(object)tbbAdd, new StockImageDefinition("Image", StockImage.NewDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1744		Translator.SetTextProperty((IComponent)(object)tbbAdd, "ToolTipText");1745		((ToolStripItem)tbbAdd).ToolTipText = "InfoSheetEditor_tbbAdd_Tip";1746		viCC.SetCommand((Component)(object)tbbRemove, cmdRemove);1747		((ToolStripItem)tbbRemove).Name = "tbbRemove";1748		((ToolStripItem)tbbRemove).Size = new Size(23, 22);1749		stockImages.SetStockImage((IComponent)(object)tbbRemove, new StockImageDefinition("Image", StockImage.DeleteDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1750		Translator.SetTextProperty((IComponent)(object)tbbRemove, "ToolTipText");1751		((ToolStripItem)tbbRemove).ToolTipText = "InfoSheetEditor_tbbRemove_Tip";1752		viCC.SetCommand((Component)(object)tbbRefresh, cmdRefresh);1753		((ToolStripItem)tbbRefresh).Name = "tbbRefresh";1754		((ToolStripItem)tbbRefresh).Size = new Size(23, 22);1755		stockImages.SetStockImage((IComponent)(object)tbbRefresh, new StockImageDefinition("Image", StockImage.Refresh, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1756		Translator.SetTextProperty((IComponent)(object)tbbRefresh, "ToolTipText");1757		((ToolStripItem)tbbRefresh).ToolTipText = "InfoSheetEditor_tbbRefresh_Tip";1758		viCC.SetCommand((Component)(object)menuWindowsGroups, cmdWindowGroups);1759		((ToolStripItem)menuWindowsGroups).MergeAction = (MergeAction)1;1760		((ToolStripItem)menuWindowsGroups).MergeIndex = 0;1761		((ToolStripItem)menuWindowsGroups).Name = "menuWindowsGroups";1762		((ToolStripItem)menuWindowsGroups).Size = new Size(316, 22);1763		stockImages.SetStockImage((IComponent)(object)menuWindowsGroups, new StockImageDefinition("Image", StockImage.DialogGroup, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1764		((ToolStripItem)menuWindowsGroups).Text = "InfoSheetEditor_menuWindowsGroups";1765		Translator.SetTextProperty((IComponent)(object)menuWindowsGroups, "Text");1766		viCC.SetCommand((Component)(object)menuWindowsProperties, cmdWindowProperties);1767		((ToolStripItem)menuWindowsProperties).MergeAction = (MergeAction)1;1768		((ToolStripItem)menuWindowsProperties).MergeIndex = 0;1769		((ToolStripItem)menuWindowsProperties).Name = "menuWindowsProperties";1770		((ToolStripItem)menuWindowsProperties).Size = new Size(316, 22);1771		stockImages.SetStockImage((IComponent)(object)menuWindowsProperties, new StockImageDefinition("Image", StockImage.Properties, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1772		((ToolStripItem)menuWindowsProperties).Text = "InfoSheetEditor_menuWindowsProperties";1773		Translator.SetTextProperty((IComponent)(object)menuWindowsProperties, "Text");1774		viCC.SetCommand((Component)(object)mnuHelp_InfoSheetEditor, cmdHelpEditor);1775		((ToolStripItem)mnuHelp_InfoSheetEditor).MergeAction = (MergeAction)1;1776		((ToolStripItem)mnuHelp_InfoSheetEditor).MergeIndex = 0;1777		((ToolStripItem)mnuHelp_InfoSheetEditor).Name = "mnuHelp_InfoSheetEditor";1778		mnuHelp_InfoSheetEditor.ShortcutKeys = (Keys)112;1779		((ToolStripItem)mnuHelp_InfoSheetEditor).Size = new Size(265, 22);1780		stockImages.SetStockImage((IComponent)(object)mnuHelp_InfoSheetEditor, new StockImageDefinition("Image", StockImage.Dictionary, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1781		((ToolStripItem)mnuHelp_InfoSheetEditor).Text = "InfoSheetEditor_menuHelp_Help";1782		Translator.SetTextProperty((IComponent)(object)mnuHelp_InfoSheetEditor, "Text");1783		viCC.SetCommand((Component)(object)menuRefresh, cmdRefresh);1784		((ToolStripItem)menuRefresh).Name = "menuRefresh";1785		menuRefresh.ShortcutKeys = (Keys)116;1786		((ToolStripItem)menuRefresh).Size = new Size(253, 22);1787		stockImages.SetStockImage((IComponent)(object)menuRefresh, new StockImageDefinition("Image", StockImage.Search, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1788		((ToolStripItem)menuRefresh).Text = "InfoSheetEditor_menuRefresh";1789		Translator.SetTextProperty((IComponent)(object)menuRefresh, "Text");1790		viCC.SetCommand((Component)(object)menuRemove, cmdRemove);1791		((ToolStripItem)menuRemove).Name = "menuRemove";1792		((ToolStripItem)menuRemove).Size = new Size(253, 22);1793		stockImages.SetStockImage((IComponent)(object)menuRemove, new StockImageDefinition("Image", StockImage.DeleteDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1794		((ToolStripItem)menuRemove).Text = "InfoSheetEditor_menuRemove";1795		Translator.SetTextProperty((IComponent)(object)menuRemove, "Text");1796		viCC.SetCommand((Component)(object)menuEditCut, cmdAdd);1797		((ToolStripItem)menuEditCut).Name = "menuEditCut";1798		((ToolStripItem)menuEditCut).Size = new Size(253, 22);1799		stockImages.SetStockImage((IComponent)(object)menuEditCut, new StockImageDefinition("Image", StockImage.NewDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1800		((ToolStripItem)menuEditCut).Text = "InfoSheetEditor_menuAdd";1801		Translator.SetTextProperty((IComponent)(object)menuEditCut, "Text");1802		viCC.SetCommand((Component)(object)menuNew, cmdNew);1803		((ToolStripItem)menuNew).Name = "menuNew";1804		((ToolStripItem)menuNew).Size = new Size(253, 22);1805		stockImages.SetStockImage((IComponent)(object)menuNew, new StockImageDefinition("Image", StockImage.TextDocument, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1806		((ToolStripItem)menuNew).Text = "InfoSheetEditor_menuNew";1807		Translator.SetTextProperty((IComponent)(object)menuNew, "Text");1808		viCC.SetCommand((Component)(object)menuWindowsVariables, cmdWindowVariables);1809		((ToolStripItem)menuWindowsVariables).MergeAction = (MergeAction)1;1810		((ToolStripItem)menuWindowsVariables).MergeIndex = 0;1811		((ToolStripItem)menuWindowsVariables).Name = "menuWindowsVariables";1812		((ToolStripItem)menuWindowsVariables).Size = new Size(316, 22);1813		stockImages.SetStockImage((IComponent)(object)menuWindowsVariables, new StockImageDefinition("Image", StockImage.Plugins, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1814		((ToolStripItem)menuWindowsVariables).Text = "InfoSheetEditor_menuWindowsVariables";1815		Translator.SetTextProperty((IComponent)(object)menuWindowsVariables, "Text");1816		viCC.SetCommand((Component)(object)menuWindowsProducts, cmdWindowProducts);1817		((ToolStripItem)menuWindowsProducts).MergeAction = (MergeAction)1;1818		((ToolStripItem)menuWindowsProducts).MergeIndex = 0;1819		((ToolStripItem)menuWindowsProducts).Name = "menuWindowsProducts";1820		((ToolStripItem)menuWindowsProducts).Size = new Size(316, 22);1821		stockImages.SetStockImage((IComponent)(object)menuWindowsProducts, new StockImageDefinition("Image", StockImage.Product, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1822		((ToolStripItem)menuWindowsProducts).Text = "InfoSheetEditor_menuWindowsProducts";1823		Translator.SetTextProperty((IComponent)(object)menuWindowsProducts, "Text");1824		viCC.SetCommand((Component)(object)menuAutoReload, cmdAutoReload);1825		((ToolStripItem)menuAutoReload).MergeAction = (MergeAction)1;1826		((ToolStripItem)menuAutoReload).MergeIndex = 99;1827		((ToolStripItem)menuAutoReload).Name = "menuAutoReload";1828		((ToolStripItem)menuAutoReload).Size = new Size(253, 22);1829		stockImages.SetStockImage((IComponent)(object)menuAutoReload, new StockImageDefinition("Image", StockImage.Link, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1830		((ToolStripItem)menuAutoReload).Text = "InfoSheetEditor_menuAutoReload";1831		Translator.SetTextProperty((IComponent)(object)menuAutoReload, "Text");1832		viCC.SetCommand((Component)(object)menuWindowsSheets, cmdWindowSheets);1833		((ToolStripItem)menuWindowsSheets).MergeAction = (MergeAction)1;1834		((ToolStripItem)menuWindowsSheets).MergeIndex = 0;1835		((ToolStripItem)menuWindowsSheets).Name = "menuWindowsSheets";1836		((ToolStripItem)menuWindowsSheets).Size = new Size(316, 22);1837		stockImages.SetStockImage((IComponent)(object)menuWindowsSheets, new StockImageDefinition("Image", StockImage.Window, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1838		((ToolStripItem)menuWindowsSheets).Text = "InfoSheetEditor_menuWindowsSheets";1839		Translator.SetTextProperty((IComponent)(object)menuWindowsSheets, "Text");1840		viCC.SetCommand((Component)(object)menuWindowsRelations, cmdWindowRelations);1841		((ToolStripItem)menuWindowsRelations).MergeAction = (MergeAction)1;1842		((ToolStripItem)menuWindowsRelations).MergeIndex = 0;1843		((ToolStripItem)menuWindowsRelations).Name = "menuWindowsRelations";1844		((ToolStripItem)menuWindowsRelations).Size = new Size(316, 22);1845		stockImages.SetStockImage((IComponent)(object)menuWindowsRelations, new StockImageDefinition("Image", StockImage.Dispatcher, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1846		((ToolStripItem)menuWindowsRelations).Text = "InfoSheetEditor_menuWindowsRelations";1847		Translator.SetTextProperty((IComponent)(object)menuWindowsRelations, "Text");1848		viCC.SetCommand((Component)(object)menuWindowsSheetToTree, cmdWindowSheetToTree);1849		((ToolStripItem)menuWindowsSheetToTree).MergeAction = (MergeAction)1;1850		((ToolStripItem)menuWindowsSheetToTree).MergeIndex = 0;1851		((ToolStripItem)menuWindowsSheetToTree).Name = "menuWindowsSheetToTree";1852		((ToolStripItem)menuWindowsSheetToTree).Size = new Size(316, 22);1853		stockImages.SetStockImage((IComponent)(object)menuWindowsSheetToTree, new StockImageDefinition("Image", StockImage.Navigation, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1854		((ToolStripItem)menuWindowsSheetToTree).Text = "InfoSheetEditor_menuWindowsSheetToTree";1855		Translator.SetTextProperty((IComponent)(object)menuWindowsSheetToTree, "Text");1856		viCC.SetCommand((Component)(object)menuWindowsSheetToObject, cmdWindowSheetToObject);1857		((ToolStripItem)menuWindowsSheetToObject).MergeAction = (MergeAction)1;1858		((ToolStripItem)menuWindowsSheetToObject).MergeIndex = 0;1859		((ToolStripItem)menuWindowsSheetToObject).Name = "menuWindowsSheetToObject";1860		((ToolStripItem)menuWindowsSheetToObject).Size = new Size(316, 22);1861		stockImages.SetStockImage((IComponent)(object)menuWindowsSheetToObject, new StockImageDefinition("Image", StockImage.Documents, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1862		((ToolStripItem)menuWindowsSheetToObject).Text = "InfoSheetEditor_menuWindowsSheetToObject";1863		Translator.SetTextProperty((IComponent)(object)menuWindowsSheetToObject, "Text");1864		viCC.SetCommand((Component)(object)menuWindowTreeHasResult, cmdWindowTreeHasResult);1865		((ToolStripItem)menuWindowTreeHasResult).MergeAction = (MergeAction)1;1866		((ToolStripItem)menuWindowTreeHasResult).MergeIndex = 0;1867		((ToolStripItem)menuWindowTreeHasResult).Name = "menuWindowTreeHasResult";1868		((ToolStripItem)menuWindowTreeHasResult).Size = new Size(316, 22);1869		stockImages.SetStockImage((IComponent)(object)menuWindowTreeHasResult, new StockImageDefinition("Image", StockImage.List, VI.ImageLibrary.ImageSize.Small, VI.ImageLibrary.ImageState.Normal));1870		((ToolStripItem)menuWindowTreeHasResult).Text = "InfoSheetEditor_menuWindowTreeHasResult";1871		Translator.SetTextProperty((IComponent)(object)menuWindowTreeHasResult, "Text");1872		viCC.SetCommand((Component)(object)miRefresh, cmdRefresh);1873		((ToolStripItem)miRefresh).Name = "miRefresh";1874		((ToolStripItem)miRefresh).Size = new Size(217, 22);1875		((ToolStripItem)miRefresh).Text = "InfoSheetEditor_miRefresh";1876		Translator.SetTextProperty((IComponent)(object)miRefresh, "Text");1877		((ToolStrip)menuBar).Items.AddRange((ToolStripItem[])(object)new ToolStripItem[3]1878		{1879			(ToolStripItem)menuEdit,1880			(ToolStripItem)menuWindows,1881			(ToolStripItem)Designer_mnuHelp1882		});1883		((Control)menuBar).Location = new Point(0, 0);1884		((Control)menuBar).Name = "menuBar";1885		((Control)menuBar).Size = new Size(780, 24);1886		((Control)menuBar).TabIndex = 5;1887		((Control)menuBar).Text = "menuBar1";1888		((ToolStripDropDownItem)menuEdit).DropDownItems.AddRange((ToolStripItem[])(object)new ToolStripItem[5]1889		{1890			(ToolStripItem)menuNew,1891			(ToolStripItem)menuEditCut,1892			(ToolStripItem)menuRemove,1893			(ToolStripItem)menuRefresh,1894			(ToolStripItem)menuAutoReload1895		});1896		((ToolStripItem)menuEdit).MergeAction = (MergeAction)1;1897		((ToolStripItem)menuEdit).MergeIndex = 1;1898		((ToolStripItem)menuEdit).Name = "menuEdit";1899		((ToolStripItem)menuEdit).Size = new Size(156, 20);1900		((ToolStripItem)menuEdit).Text = "InfoSheetEditor_menuEdit";1901		Translator.SetTextProperty((IComponent)(object)menuEdit, "Text");1902		((ToolStripDropDownItem)menuWindows).DropDownItems.AddRange((ToolStripItem[])(object)new ToolStripItem[10]1903		{1904			(ToolStripItem)menuWindowsRelations,1905			(ToolStripItem)menuWindowTreeHasResult,1906			(ToolStripItem)menuWindowsSheetToObject,1907			(ToolStripItem)menuWindowsSheetToTree,1908			(ToolStripItem)menuWindowsProducts,1909			(ToolStripItem)menuWindowsGroups,1910			(ToolStripItem)menuWindowsVariables,1911			(ToolStripItem)menuWindowsSheets,1912			(ToolStripItem)menuWindowsProperties,1913			(ToolStripItem)menuWindowColumns1914		});1915		((ToolStripItem)menuWindows).MergeAction = (MergeAction)4;1916		((ToolStripItem)menuWindows).MergeIndex = 1;1917		((ToolStripItem)menuWindows).Name = "menuWindows";1918		((ToolStripItem)menuWindows).Size = new Size(150, 20);1919		((ToolStripItem)menuWindows).Text = "Designer_menuWindows";1920		Translator.SetTextProperty((IComponent)(object)menuWindows, "Text");1921		((ToolStripItem)menuWindowColumns).Name = "menuWindowColumns";1922		((ToolStripItem)menuWindowColumns).Size = new Size(316, 22);1923		((ToolStripItem)menuWindowColumns).Text = "InfoSheetEditor_menuWindowColumns";1924		Translator.SetTextProperty((IComponent)(object)menuWindowColumns, "Text");1925		((ToolStripDropDownItem)Designer_mnuHelp).DropDownItems.AddRange((ToolStripItem[])(object)new ToolStripItem[1] { (ToolStripItem)mnuHelp_InfoSheetEditor });1926		((ToolStripItem)Designer_mnuHelp).MergeAction = (MergeAction)4;1927		((ToolStripItem)Designer_mnuHelp).MergeIndex = 2;1928		((ToolStripItem)Designer_mnuHelp).Name = "Designer_mnuHelp";1929		((ToolStripItem)Designer_mnuHelp).Size = new Size(126, 20);1930		((ToolStripItem)Designer_mnuHelp).Text = "Designer_menuHelp";1931		Translator.SetTextProperty((IComponent)(object)Designer_mnuHelp, "Text");1932		((Control)navControl).AllowDrop = true;1933		((Control)navControl).BackColor = Color.White;1934		navControl.ClipBoardID = "ElementEditControl V1.0";1935		((Control)navControl).ContextMenuStrip = cMenu;1936		((Control)navControl).Cursor = Cursors.No;1937		((Control)navControl).Dock = (DockStyle)5;1938		navControl.IncrementalSearch = true;1939		navControl.ItemImages = null;1940		navControl.ItemMeasureLimit = 100;1941		((Control)navControl).Location = new Point(0, 74);1942		((Control)navControl).Margin = new Padding(0);1943		navControl.Name = "navControl";1944		navControl.ReadOnly = true;1945		((Control)navControl).Size = new Size(780, 382);1946		((Control)navControl).TabIndex = 12;1947		navControl.VirtualPosition = new Point(0, 0);1948		navControl.VirtualSize = new Size(780, 382);1949		navControl.Zoom = 100;1950		navControl.ZoomAllowed = true;1951		navControl.AddInfoSheetRelation += navControl_AddInfoSheetRelation;1952		navControl.SelectedChanged += navControl_SelectedChanged;1953		navControl.ElementMoved += navControl_ElementMoved;1954		((ToolStrip)cMenu).Items.AddRange((ToolStripItem[])(object)new ToolStripItem[4]1955		{1956			(ToolStripItem)miAdd,1957			(ToolStripItem)miRemove,1958			(ToolStripItem)miEdit,1959			(ToolStripItem)miRefresh1960		});1961		((Control)cMenu).Name = "cMenu";1962		((Control)cMenu).Size = new Size(218, 92);1963		((Control)cMenu).Text = "(cMenu)";1964		((ToolStrip)cMenuType).Items.AddRange((ToolStripItem[])(object)new ToolStripItem[6]1965		{1966			(ToolStripItem)miListNode,1967			(ToolStripItem)miDataNode,1968			(ToolStripItem)miListLinkNode,1969			(ToolStripItem)miDataLinkNode,1970			(ToolStripItem)toolStripSeparator1,1971			(ToolStripItem)miAbort1972		});1973		((Control)cMenuType).Name = "contextMenuStrip1";1974		((Control)cMenuType).Size = new Size(250, 120);1975		((ToolStripDropDown)cMenuType).Opening += new CancelEventHandler(cMenuType_Opening);1976		((ToolStrip)cMenuType).ItemClicked += new ToolStripItemClickedEventHandler(cMenuType_ItemClicked);1977		((ToolStripItem)miListNode).Name = "miListNode";1978		((ToolStripItem)miListNode).Size = new Size(249, 22);1979		((ToolStripItem)miListNode).Tag = "ListNode";1980		((ToolStripItem)miListNode).Text = "InfoSheetEditor_miListNode";1981		Translator.SetTextProperty((IComponent)(object)miListNode, "Text");1982		((ToolStripDropDownItem)miListNode).DropDownItemClicked += new ToolStripItemClickedEventHandler(miListNode_DropDownItemClicked);1983		((ToolStripItem)miDataNode).Name = "miDataNode";1984		((ToolStripItem)miDataNode).Size = new Size(249, 22);1985		((ToolStripItem)miDataNode).Tag = "DataNode";1986		((ToolStripItem)miDataNode).Text = "InfoSheetEditor_miDataNode";1987		Translator.SetTextProperty((IComponent)(object)miDataNode, "Text");1988		((ToolStripItem)miListLinkNode).Name = "miListLinkNode";1989		((ToolStripItem)miListLinkNode).Size = new Size(249, 22);1990		((ToolStripItem)miListLinkNode).Tag = "DataLink";1991		((ToolStripItem)miListLinkNode).Text = "InfoSheetEditor_miListLinkNode";1992		Translator.SetTextProperty((IComponent)(object)miListLinkNode, "Text");1993		((ToolStripItem)miDataLinkNode).Name = "miDataLinkNode";1994		((ToolStripItem)miDataLinkNode).Size = new Size(249, 22);1995		((ToolStripItem)miDataLinkNode).Tag = "DataLink";1996		((ToolStripItem)miDataLinkNode).Text = "InfoSheetEditor_miDataLinkNode";1997		Translator.SetTextProperty((IComponent)(object)miDataLinkNode, "Text");1998		((ToolStripItem)toolStripSeparator1).Name = "toolStripSeparator1";1999		((ToolStripItem)toolStripSeparator1).Size = new Size(246, 6);2000		((ToolStripItem)miAbort).Name = "miAbort";2001		((ToolStripItem)miAbort).Size = new Size(249, 22);2002		((ToolStripItem)miAbort).Text = "InfoSheetEditor_miAbort";2003		Translator.SetTextProperty((IComponent)(object)miAbort, "Text");2004		toolStripInfoSheet.Items.AddRange((ToolStripItem[])(object)new ToolStripItem[4]2005		{2006			(ToolStripItem)tbbNew,2007			(ToolStripItem)tbbAdd,2008			(ToolStripItem)tbbRemove,2009			(ToolStripItem)tbbRefresh2010		});2011		((Control)toolStripInfoSheet).Location = new Point(0, 24);2012		((Control)toolStripInfoSheet).Name = "toolStripInfoSheet";2013		((Control)toolStripInfoSheet).Size = new Size(780, 25);2014		((Control)toolStripInfoSheet).TabIndex = 11;2015		((Control)toolStripInfoSheet).Text = "InfoSheetEditor_toolStripEditor";2016		Translator.SetTextProperty((IComponent)(object)toolStripInfoSheet, "Text");2017		toolStripObject.Items.AddRange((ToolStripItem[])(object)new ToolStripItem[4]2018		{2019			(ToolStripItem)lblTable,2020			(ToolStripItem)cbxTable,2021			(ToolStripItem)lblObject,2022			(ToolStripItem)cbxObject2023		});2024		((Control)toolStripObject).Location = new Point(0, 49);2025		((Control)toolStripObject).Name = "toolStripObject";2026		((Control)toolStripObject).Size = new Size(780, 25);2027		((Control)toolStripObject).TabIndex = 13;2028		((Control)toolStripObject).Text = "InfoSheetEditor_toolStripObject";2029		Translator.SetTextProperty((IComponent)(object)toolStripObject, "Text");2030		((ToolStripItem)lblTable).Name = "lblTable";2031		((ToolStripItem)lblTable).Size = new Size(133, 22);2032		((ToolStripItem)lblTable).Text = "InfoSheetEditor_lblTable";2033		Translator.SetTextProperty((IComponent)(object)lblTable, "Text");2034		((ToolStripItem)cbxTable).Name = "cbxTable";2035		((ToolStripItem)cbxTable).Size = new Size(121, 25);2036		((ToolStripItem)lblObject).Name = "lblObject";2037		((ToolStripItem)lblObject).Size = new Size(141, 22);2038		((ToolStripItem)lblObject).Text = "InfoSheetEditor_lblObject";2039		Translator.SetTextProperty((IComponent)(object)lblObject, "Text");2040		((ToolStripItem)cbxObject).Name = "cbxObject";2041		((ToolStripItem)cbxObject).Size = new Size(121, 25);2042		cmdAdd.Text = "command1";2043		cmdRemove.Text = "command1";2044		viCC.Commands.AddRange(new Command[16]2045		{2046			cmdNew, cmdAdd, cmdRemove, cmdRefresh, cmdWindowProducts, cmdWindowGroups, cmdWindowVariables, cmdWindowColumns, cmdWindowProperties, cmdWindowSheets,2047			cmdWindowSheetToTree, cmdWindowSheetToObject, cmdWindowTreeHasResult, cmdWindowRelations, cmdHelpEditor, cmdAutoReload2048		});2049		viCC.ImageList = null;2050		viCC.ShowTextOnToolBar = false;2051		viCC.Tag = null;2052		viCC.ExecuteCommand += viCC_ExecuteCommand;2053		viCC.CommandsUpdating += new EventHandler(viCC_CommandsUpdating);2054		((Control)this).Controls.Add((Control)(object)navControl);2055		((Control)this).Controls.Add((Control)(object)toolStripObject);2056		((Control)this).Controls.Add((Control)(object)toolStripInfoSheet);2057		((Control)this).Controls.Add((Control)(object)menuBar);2058		base.Name = "InfoSheetEditor";2059		((Control)this).Size = new Size(780, 456);2060		((Control)menuBar).ResumeLayout(false);2061		((Control)menuBar).PerformLayout();2062		((ISupportInitialize)navControl).EndInit();2063		((Control)cMenu).ResumeLayout(false);2064		((Control)cMenuType).ResumeLayout(false);2065		((ISupportInitialize)Translator).EndInit();2066		((Control)toolStripInfoSheet).ResumeLayout(false);2067		((Control)toolStripInfoSheet).PerformLayout();2068		((Control)toolStripObject).ResumeLayout(false);2069		((Control)toolStripObject).PerformLayout();2070		((Control)this).ResumeLayout(false);2071		((Control)this).PerformLayout();2072	}2073}2074