[2655] | 1 | #region License Information
|
---|
| 2 | /* HeuristicLab
|
---|
[7259] | 3 | * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
[2655] | 4 | *
|
---|
| 5 | * This file is part of HeuristicLab.
|
---|
| 6 | *
|
---|
| 7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
| 8 | * it under the terms of the GNU General Public License as published by
|
---|
| 9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
| 10 | * (at your option) any later version.
|
---|
| 11 | *
|
---|
| 12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 15 | * GNU General Public License for more details.
|
---|
| 16 | *
|
---|
| 17 | * You should have received a copy of the GNU General Public License
|
---|
| 18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 19 | */
|
---|
| 20 | #endregion
|
---|
| 21 |
|
---|
| 22 | using System;
|
---|
[4068] | 23 | using System.Collections.Generic;
|
---|
[2818] | 24 | using System.Linq;
|
---|
[5848] | 25 | using System.Reflection;
|
---|
[2655] | 26 | using System.Text;
|
---|
| 27 | using System.Windows.Forms;
|
---|
[2739] | 28 | using HeuristicLab.Common;
|
---|
[2655] | 29 | using HeuristicLab.PluginInfrastructure;
|
---|
| 30 |
|
---|
[4068] | 31 | namespace HeuristicLab.Core.Views {
|
---|
[2655] | 32 | public partial class TypeSelector : UserControl {
|
---|
[2952] | 33 | protected List<TreeNode> treeNodes;
|
---|
| 34 | protected string currentSearchString;
|
---|
[3588] | 35 | protected TypeSelectorDialog typeSelectorDialog;
|
---|
[2952] | 36 |
|
---|
[5850] | 37 | protected IEnumerable<Type> baseTypes;
|
---|
| 38 | public IEnumerable<Type> BaseTypes {
|
---|
| 39 | get { return baseTypes; }
|
---|
[2655] | 40 | }
|
---|
[2676] | 41 | protected bool showNotInstantiableTypes;
|
---|
[2655] | 42 | public bool ShowNotInstantiableTypes {
|
---|
| 43 | get { return showNotInstantiableTypes; }
|
---|
| 44 | }
|
---|
[2676] | 45 | protected bool showGenericTypes;
|
---|
[2655] | 46 | public bool ShowGenericTypes {
|
---|
| 47 | get { return showGenericTypes; }
|
---|
| 48 | }
|
---|
| 49 | public string Caption {
|
---|
[2676] | 50 | get { return typesGroupBox.Text; }
|
---|
[2655] | 51 | set {
|
---|
| 52 | if (InvokeRequired)
|
---|
| 53 | Invoke(new Action<string>(delegate(string s) { Caption = s; }), value);
|
---|
| 54 | else
|
---|
[2676] | 55 | typesGroupBox.Text = value;
|
---|
[2655] | 56 | }
|
---|
| 57 | }
|
---|
| 58 | public TreeView TypesTreeView {
|
---|
| 59 | get { return typesTreeView; }
|
---|
| 60 | }
|
---|
[2676] | 61 | protected Type selectedType;
|
---|
[2655] | 62 | public Type SelectedType {
|
---|
| 63 | get { return selectedType; }
|
---|
| 64 | private set {
|
---|
| 65 | if (value != selectedType) {
|
---|
| 66 | selectedType = value;
|
---|
| 67 | OnSelectedTypeChanged();
|
---|
| 68 | }
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | public TypeSelector() {
|
---|
| 73 | InitializeComponent();
|
---|
[2952] | 74 | treeNodes = new List<TreeNode>();
|
---|
| 75 | currentSearchString = string.Empty;
|
---|
[2655] | 76 | selectedType = null;
|
---|
| 77 | }
|
---|
| 78 |
|
---|
[5237] | 79 | protected override void Dispose(bool disposing) {
|
---|
| 80 | if (disposing) {
|
---|
| 81 | if (typeSelectorDialog != null) typeSelectorDialog.Dispose();
|
---|
| 82 | if (components != null) components.Dispose();
|
---|
| 83 | }
|
---|
| 84 | base.Dispose(disposing);
|
---|
| 85 | }
|
---|
| 86 |
|
---|
[2676] | 87 | public virtual void Configure(Type baseType, bool showNotInstantiableTypes, bool showGenericTypes) {
|
---|
[6365] | 88 | Configure(baseType, showNotInstantiableTypes, showGenericTypes, (t) => true);
|
---|
[5850] | 89 | }
|
---|
| 90 |
|
---|
[6363] | 91 | public virtual void Configure(Type baseType, bool showNotInstantiableTypes, bool showGenericTypes, Func<Type, bool> typeCondition) {
|
---|
| 92 | Configure(new List<Type>() { baseType }, showNotInstantiableTypes, showGenericTypes, true, typeCondition);
|
---|
| 93 | }
|
---|
| 94 |
|
---|
[5903] | 95 | public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes, bool assignableToAllTypes) {
|
---|
[6363] | 96 | Configure(baseTypes, showNotInstantiableTypes, showGenericTypes, assignableToAllTypes, (t) => { return true; });
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes, bool assignableToAllTypes, Func<Type, bool> typeCondition) {
|
---|
[5850] | 100 | if (baseTypes == null) throw new ArgumentNullException();
|
---|
[2655] | 101 | if (InvokeRequired)
|
---|
[6363] | 102 | Invoke(new Action<IEnumerable<Type>, bool, bool, bool, Func<Type, bool>>(Configure), baseTypes, showNotInstantiableTypes, showGenericTypes, assignableToAllTypes, typeCondition);
|
---|
[2655] | 103 | else {
|
---|
[5850] | 104 | this.baseTypes = baseTypes;
|
---|
[2655] | 105 | this.showNotInstantiableTypes = showNotInstantiableTypes;
|
---|
| 106 | this.showGenericTypes = showGenericTypes;
|
---|
[6954] | 107 | bool selectedTypeFound = false;
|
---|
[2655] | 108 |
|
---|
[3588] | 109 | typeParametersSplitContainer.Panel2Collapsed = !showGenericTypes;
|
---|
| 110 |
|
---|
[2952] | 111 | TreeNode selectedNode = typesTreeView.SelectedNode;
|
---|
[2655] | 112 | typesTreeView.Nodes.Clear();
|
---|
[2952] | 113 | treeNodes.Clear();
|
---|
[2655] | 114 | imageList.Images.Clear();
|
---|
[5287] | 115 | imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Class); // default icon
|
---|
| 116 | imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Namespace); // plugins
|
---|
| 117 | imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Interface); // interfaces
|
---|
| 118 | imageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Template); // generic types
|
---|
[2655] | 119 |
|
---|
| 120 | var plugins = from p in ApplicationManager.Manager.Plugins
|
---|
| 121 | orderby p.Name, p.Version ascending
|
---|
| 122 | select p;
|
---|
| 123 | foreach (IPluginDescription plugin in plugins) {
|
---|
| 124 | TreeNode pluginNode = new TreeNode();
|
---|
[5898] | 125 | pluginNode.Text = string.Format("{0} {1}.{2}", plugin.Name, plugin.Version.Major, plugin.Version.Minor);
|
---|
[2655] | 126 | pluginNode.ImageIndex = 1;
|
---|
| 127 | pluginNode.SelectedImageIndex = pluginNode.ImageIndex;
|
---|
| 128 | pluginNode.Tag = plugin;
|
---|
| 129 |
|
---|
[7111] | 130 | var types = from t in ApplicationManager.Manager.GetTypes(BaseTypes, plugin, !ShowNotInstantiableTypes, ShowGenericTypes, assignableToAllTypes)
|
---|
[6363] | 131 | where typeCondition(t)
|
---|
[2655] | 132 | orderby t.Name ascending
|
---|
| 133 | select t;
|
---|
| 134 | foreach (Type type in types) {
|
---|
[7123] | 135 | bool valid = (ShowNotInstantiableTypes || type.GetConstructor(Type.EmptyTypes) != null); //check for public default ctor
|
---|
[2655] | 136 | if (valid) {
|
---|
| 137 | TreeNode typeNode = new TreeNode();
|
---|
| 138 | string name = ItemAttribute.GetName(type);
|
---|
[2739] | 139 | typeNode.Text = name != null ? name : type.GetPrettyName();
|
---|
[2655] | 140 | typeNode.ImageIndex = 0;
|
---|
| 141 | if (type.IsInterface) typeNode.ImageIndex = 2;
|
---|
[3528] | 142 | else if (type.ContainsGenericParameters) typeNode.ImageIndex = 3;
|
---|
[2655] | 143 | else if (imageList.Images.ContainsKey(type.FullName)) typeNode.ImageIndex = imageList.Images.IndexOfKey(type.FullName);
|
---|
[7201] | 144 | else {
|
---|
| 145 | var image = ItemAttribute.GetImage(type);
|
---|
| 146 | if (image != null) {
|
---|
| 147 | imageList.Images.Add(type.FullName, image);
|
---|
| 148 | typeNode.ImageIndex = imageList.Images.IndexOfKey(type.FullName);
|
---|
| 149 | }
|
---|
[2655] | 150 | }
|
---|
| 151 | typeNode.SelectedImageIndex = typeNode.ImageIndex;
|
---|
| 152 | typeNode.Tag = type;
|
---|
| 153 | pluginNode.Nodes.Add(typeNode);
|
---|
[6954] | 154 | if (type.Equals(selectedType)) selectedTypeFound = true;
|
---|
[2655] | 155 | }
|
---|
| 156 | }
|
---|
| 157 | if (pluginNode.Nodes.Count > 0)
|
---|
[2952] | 158 | treeNodes.Add(pluginNode);
|
---|
[2655] | 159 | }
|
---|
[6954] | 160 | if (!selectedTypeFound) SelectedType = null;
|
---|
[2952] | 161 | foreach (TreeNode node in treeNodes)
|
---|
| 162 | typesTreeView.Nodes.Add((TreeNode)node.Clone());
|
---|
| 163 | RestoreSelectedNode(selectedNode);
|
---|
| 164 | Filter(searchTextBox.Text);
|
---|
[3588] | 165 |
|
---|
| 166 | UpdateTypeParameters();
|
---|
[2952] | 167 | }
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 | public virtual void Filter(string searchString) {
|
---|
| 171 | if (InvokeRequired)
|
---|
| 172 | Invoke(new Action<string>(Filter), searchString);
|
---|
| 173 | else {
|
---|
| 174 | searchString = searchString.ToLower();
|
---|
[4826] | 175 |
|
---|
[2952] | 176 | if (!searchString.Contains(currentSearchString)) {
|
---|
[4826] | 177 | typesTreeView.BeginUpdate();
|
---|
[2952] | 178 | // expand search -> restore all tree nodes
|
---|
| 179 | TreeNode selectedNode = typesTreeView.SelectedNode;
|
---|
| 180 | typesTreeView.Nodes.Clear();
|
---|
| 181 | foreach (TreeNode node in treeNodes)
|
---|
| 182 | typesTreeView.Nodes.Add((TreeNode)node.Clone());
|
---|
| 183 | RestoreSelectedNode(selectedNode);
|
---|
[4826] | 184 | typesTreeView.EndUpdate();
|
---|
[2952] | 185 | }
|
---|
| 186 |
|
---|
[4826] | 187 |
|
---|
[2952] | 188 | // remove nodes
|
---|
[4826] | 189 | typesTreeView.BeginUpdate();
|
---|
[2952] | 190 | int i = 0;
|
---|
| 191 | while (i < typesTreeView.Nodes.Count) {
|
---|
| 192 | int j = 0;
|
---|
| 193 | while (j < typesTreeView.Nodes[i].Nodes.Count) {
|
---|
[6954] | 194 | if (!typesTreeView.Nodes[i].Nodes[j].Text.ToLower().Contains(searchString)) {
|
---|
| 195 | if ((typesTreeView.Nodes[i].Nodes[j].Tag as Type).Equals(selectedType))
|
---|
| 196 | SelectedType = null;
|
---|
[2952] | 197 | typesTreeView.Nodes[i].Nodes[j].Remove();
|
---|
[6954] | 198 | } else
|
---|
[2952] | 199 | j++;
|
---|
| 200 | }
|
---|
| 201 | if (typesTreeView.Nodes[i].Nodes.Count == 0)
|
---|
| 202 | typesTreeView.Nodes[i].Remove();
|
---|
| 203 | else
|
---|
| 204 | i++;
|
---|
| 205 | }
|
---|
[3516] | 206 | typesTreeView.EndUpdate();
|
---|
[2952] | 207 | currentSearchString = searchString;
|
---|
| 208 |
|
---|
| 209 | // if there is just one type node left, select by default
|
---|
| 210 | if (typesTreeView.Nodes.Count == 1) {
|
---|
| 211 | if (typesTreeView.Nodes[0].Nodes.Count == 1) {
|
---|
| 212 | typesTreeView.SelectedNode = typesTreeView.Nodes[0].Nodes[0];
|
---|
| 213 | }
|
---|
| 214 | }
|
---|
| 215 |
|
---|
[2655] | 216 | if (typesTreeView.Nodes.Count == 0) {
|
---|
[2952] | 217 | SelectedType = null;
|
---|
[2655] | 218 | typesTreeView.Enabled = false;
|
---|
| 219 | } else {
|
---|
[2952] | 220 | SetTreeNodeVisibility();
|
---|
| 221 | typesTreeView.Enabled = true;
|
---|
[2655] | 222 | }
|
---|
[2952] | 223 | UpdateDescription();
|
---|
[2655] | 224 | }
|
---|
| 225 | }
|
---|
| 226 |
|
---|
[2676] | 227 | public virtual object CreateInstanceOfSelectedType(params object[] args) {
|
---|
[2999] | 228 | if (SelectedType == null)
|
---|
| 229 | throw new InvalidOperationException("No type selected.");
|
---|
| 230 | else
|
---|
[2655] | 231 | return Activator.CreateInstance(SelectedType, args);
|
---|
| 232 | }
|
---|
| 233 |
|
---|
[3588] | 234 | protected virtual void UpdateTypeParameters() {
|
---|
| 235 | typeParametersListView.Items.Clear();
|
---|
| 236 | if ((SelectedType == null) || !SelectedType.ContainsGenericParameters) {
|
---|
| 237 | typeParametersGroupBox.Enabled = false;
|
---|
| 238 | typeParametersSplitContainer.Panel2Collapsed = true;
|
---|
| 239 | } else {
|
---|
| 240 | typeParametersGroupBox.Enabled = true;
|
---|
| 241 | typeParametersSplitContainer.Panel2Collapsed = false;
|
---|
| 242 | setTypeParameterButton.Enabled = false;
|
---|
| 243 |
|
---|
| 244 | foreach (Type param in SelectedType.GetGenericArguments()) {
|
---|
| 245 | if (param.IsGenericParameter) {
|
---|
| 246 | ListViewItem item = new ListViewItem();
|
---|
| 247 | item.Text = param.Name;
|
---|
| 248 |
|
---|
| 249 | item.ToolTipText = "Constraints:";
|
---|
| 250 | Type[] constraints = param.GetGenericParameterConstraints();
|
---|
| 251 | if (constraints.Length == 0) {
|
---|
| 252 | item.ToolTipText += " none";
|
---|
| 253 | } else {
|
---|
| 254 | foreach (Type constraint in constraints)
|
---|
| 255 | item.ToolTipText += " " + constraint.GetPrettyName();
|
---|
| 256 | }
|
---|
| 257 |
|
---|
| 258 | item.Tag = param;
|
---|
| 259 | typeParametersListView.Items.Add(item);
|
---|
| 260 | }
|
---|
| 261 | }
|
---|
| 262 | typeParametersListView.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
|
---|
| 263 | }
|
---|
[2655] | 264 | }
|
---|
| 265 |
|
---|
[3588] | 266 | protected virtual void SetTypeParameter() {
|
---|
| 267 | if (typeSelectorDialog == null) {
|
---|
| 268 | typeSelectorDialog = new TypeSelectorDialog();
|
---|
| 269 | typeSelectorDialog.Caption = "Select Type of Generic Type Parameter";
|
---|
| 270 | }
|
---|
| 271 | Type param = typeParametersListView.SelectedItems[0].Tag as Type;
|
---|
[5850] | 272 | Type[] constraints = param.GetGenericParameterConstraints();
|
---|
[5848] | 273 | bool showNotInstantiableTypes = !param.GenericParameterAttributes.HasFlag(GenericParameterAttributes.DefaultConstructorConstraint);
|
---|
[5898] | 274 | typeSelectorDialog.TypeSelector.Configure(constraints, showNotInstantiableTypes, true, true);
|
---|
[3588] | 275 |
|
---|
| 276 | if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
|
---|
| 277 | Type selected = typeSelectorDialog.TypeSelector.SelectedType;
|
---|
| 278 | Type[] parameters = SelectedType.GetGenericArguments();
|
---|
| 279 | parameters[param.GenericParameterPosition] = selected;
|
---|
| 280 | SelectedType = SelectedType.GetGenericTypeDefinition().MakeGenericType(parameters);
|
---|
| 281 |
|
---|
| 282 | typeParametersListView.SelectedItems[0].Text = param.Name + ": " + selected.GetPrettyName();
|
---|
| 283 | typeParametersListView.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
|
---|
| 284 | }
|
---|
| 285 | }
|
---|
| 286 |
|
---|
[2676] | 287 | protected virtual void UpdateDescription() {
|
---|
[2655] | 288 | descriptionTextBox.Text = string.Empty;
|
---|
| 289 |
|
---|
| 290 | if (typesTreeView.SelectedNode != null) {
|
---|
| 291 | IPluginDescription plugin = typesTreeView.SelectedNode.Tag as IPluginDescription;
|
---|
| 292 | if (plugin != null) {
|
---|
| 293 | StringBuilder sb = new StringBuilder();
|
---|
| 294 | sb.Append("Plugin: ").Append(plugin.Name).Append(Environment.NewLine);
|
---|
| 295 | sb.Append("Version: ").Append(plugin.Version.ToString()).Append(Environment.NewLine);
|
---|
| 296 | descriptionTextBox.Text = sb.ToString();
|
---|
| 297 | }
|
---|
| 298 | Type type = typesTreeView.SelectedNode.Tag as Type;
|
---|
| 299 | if (type != null) {
|
---|
| 300 | string description = ItemAttribute.GetDescription(type);
|
---|
| 301 | if (description != null)
|
---|
| 302 | descriptionTextBox.Text = description;
|
---|
| 303 | }
|
---|
[2952] | 304 | } else if (typesTreeView.Nodes.Count == 0) {
|
---|
| 305 | descriptionTextBox.Text = "No types found";
|
---|
[2655] | 306 | }
|
---|
| 307 | }
|
---|
| 308 |
|
---|
[3588] | 309 | #region Events
|
---|
| 310 | public event EventHandler SelectedTypeChanged;
|
---|
| 311 | protected virtual void OnSelectedTypeChanged() {
|
---|
| 312 | if (SelectedTypeChanged != null)
|
---|
| 313 | SelectedTypeChanged(this, EventArgs.Empty);
|
---|
| 314 | }
|
---|
| 315 | #endregion
|
---|
| 316 |
|
---|
| 317 | #region Control Events
|
---|
[2952] | 318 | protected virtual void searchTextBox_TextChanged(object sender, System.EventArgs e) {
|
---|
| 319 | Filter(searchTextBox.Text);
|
---|
| 320 | }
|
---|
| 321 |
|
---|
[2676] | 322 | protected virtual void typesTreeView_AfterSelect(object sender, TreeViewEventArgs e) {
|
---|
[2952] | 323 | if (typesTreeView.SelectedNode == null) SelectedType = null;
|
---|
| 324 | else SelectedType = typesTreeView.SelectedNode.Tag as Type;
|
---|
[3588] | 325 | UpdateTypeParameters();
|
---|
[2655] | 326 | UpdateDescription();
|
---|
| 327 | }
|
---|
[2676] | 328 | protected virtual void typesTreeView_ItemDrag(object sender, ItemDragEventArgs e) {
|
---|
[2655] | 329 | TreeNode node = (TreeNode)e.Item;
|
---|
| 330 | Type type = node.Tag as Type;
|
---|
[2999] | 331 | if ((type != null) && (!type.IsInterface) && (!type.IsAbstract) && (!type.HasElementType) && (!type.ContainsGenericParameters)) {
|
---|
| 332 | object o = Activator.CreateInstance(type);
|
---|
| 333 | DataObject data = new DataObject();
|
---|
[5837] | 334 | data.SetData(HeuristicLab.Common.Constants.DragDropDataFormat, o);
|
---|
[2999] | 335 | DoDragDrop(data, DragDropEffects.Copy);
|
---|
[2655] | 336 | }
|
---|
| 337 | }
|
---|
[2952] | 338 | protected virtual void typesTreeView_VisibleChanged(object sender, EventArgs e) {
|
---|
| 339 | if (Visible) SetTreeNodeVisibility();
|
---|
| 340 | }
|
---|
| 341 |
|
---|
[3588] | 342 | protected virtual void typeParametersListView_SelectedIndexChanged(object sender, EventArgs e) {
|
---|
| 343 | setTypeParameterButton.Enabled = typeParametersListView.SelectedItems.Count == 1;
|
---|
| 344 | }
|
---|
| 345 | protected virtual void typeParametersListView_DoubleClick(object sender, EventArgs e) {
|
---|
| 346 | if (typeParametersListView.SelectedItems.Count == 1)
|
---|
| 347 | SetTypeParameter();
|
---|
| 348 | }
|
---|
| 349 |
|
---|
| 350 | protected virtual void setTypeParameterButton_Click(object sender, EventArgs e) {
|
---|
| 351 | SetTypeParameter();
|
---|
| 352 | }
|
---|
| 353 | #endregion
|
---|
| 354 |
|
---|
[2952] | 355 | #region Helpers
|
---|
| 356 | private void RestoreSelectedNode(TreeNode selectedNode) {
|
---|
| 357 | if (selectedNode != null) {
|
---|
| 358 | foreach (TreeNode node in typesTreeView.Nodes) {
|
---|
| 359 | if (node.Text.Equals(selectedNode.Text)) typesTreeView.SelectedNode = node;
|
---|
| 360 | foreach (TreeNode child in node.Nodes) {
|
---|
| 361 | if ((child.Text.Equals(selectedNode.Text)) && (child.Tag == selectedNode.Tag))
|
---|
| 362 | typesTreeView.SelectedNode = child;
|
---|
| 363 | }
|
---|
| 364 | }
|
---|
| 365 | if (typesTreeView.SelectedNode == null) SelectedType = null;
|
---|
| 366 | }
|
---|
| 367 | }
|
---|
| 368 | private void SetTreeNodeVisibility() {
|
---|
| 369 | TreeNode selectedNode = typesTreeView.SelectedNode;
|
---|
[2953] | 370 | if (string.IsNullOrEmpty(currentSearchString) && (typesTreeView.Nodes.Count > 1)) {
|
---|
[2952] | 371 | typesTreeView.CollapseAll();
|
---|
| 372 | if (selectedNode != null) typesTreeView.SelectedNode = selectedNode;
|
---|
| 373 | } else {
|
---|
| 374 | typesTreeView.ExpandAll();
|
---|
| 375 | }
|
---|
| 376 | if (selectedNode != null) selectedNode.EnsureVisible();
|
---|
| 377 | }
|
---|
| 378 | #endregion
|
---|
[2655] | 379 | }
|
---|
| 380 | }
|
---|