コード例 #1
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.bImport    = new Button();
     this.bCancel    = new Button();
     this.bLoad      = new Button();
     this.bTarget    = new Button();
     this.toolTip1   = new ToolTip(this.components);
     this.tree       = new BufferedTreeView();
     this.bCopyNodes = new Button();
     base.SuspendLayout();
     this.bImport.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     this.bImport.Location = new Point(368, 237);
     this.bImport.Name     = "bImport";
     this.bImport.Size     = new System.Drawing.Size(75, 23);
     this.bImport.TabIndex = 0;
     this.bImport.Text     = "导入";
     this.toolTip1.SetToolTip(this.bImport, "导入已选择的项目.");
     this.bImport.UseVisualStyleBackColor = true;
     this.bImport.Click                  += new EventHandler(this.bImport_Click);
     this.bCancel.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.bCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.bCancel.Location                = new Point(287, 237);
     this.bCancel.Name                    = "bCancel";
     this.bCancel.Size                    = new System.Drawing.Size(75, 23);
     this.bCancel.TabIndex                = 1;
     this.bCancel.Text                    = "取消";
     this.bCancel.UseVisualStyleBackColor = true;
     this.bLoad.Anchor                    = AnchorStyles.Bottom | AnchorStyles.Left;
     this.bLoad.Location                  = new Point(12, 237);
     this.bLoad.Name     = "bLoad";
     this.bLoad.Size     = new System.Drawing.Size(92, 23);
     this.bLoad.TabIndex = 2;
     this.bLoad.Text     = "加载场景文件";
     this.toolTip1.SetToolTip(this.bLoad, "加载ORGE的场景来导入物品");
     this.bLoad.UseVisualStyleBackColor = true;
     this.bLoad.Click     += new EventHandler(this.bLoad_Click);
     this.bTarget.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.bTarget.Enabled  = false;
     this.bTarget.Location = new Point(201, 237);
     this.bTarget.Name     = "bTarget";
     this.bTarget.Size     = new System.Drawing.Size(63, 22);
     this.bTarget.TabIndex = 4;
     this.bTarget.Text     = "目标";
     this.toolTip1.SetToolTip(this.bTarget, "为选中的项设置目标项.\r\n留空以创建新目标.");
     this.bTarget.UseVisualStyleBackColor = true;
     this.bTarget.Click                     += new EventHandler(this.bTarget_Click);
     this.tree.Anchor                        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.tree.CheckBoxes                    = true;
     this.tree.HideSelection                 = false;
     this.tree.Location                      = new Point(12, 12);
     this.tree.Name                          = "tree";
     this.tree.ShowRootLines                 = false;
     this.tree.Size                          = new System.Drawing.Size(431, 219);
     this.tree.TabIndex                      = 3;
     this.tree.AfterCheck                   += new TreeViewEventHandler(this.tree_AfterCheck);
     this.tree.NodeMouseDoubleClick         += new TreeNodeMouseClickEventHandler(this.tree_NodeMouseDoubleClick);
     this.bCopyNodes.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left;
     this.bCopyNodes.Location                = new Point(110, 237);
     this.bCopyNodes.Name                    = "bCopyNodes";
     this.bCopyNodes.Size                    = new System.Drawing.Size(75, 23);
     this.bCopyNodes.TabIndex                = 5;
     this.bCopyNodes.Text                    = "复制自";
     this.bCopyNodes.UseVisualStyleBackColor = true;
     this.bCopyNodes.Click                  += new EventHandler(this.bCopyNodes_Click);
     base.AcceptButton                       = this.bImport;
     base.AutoScaleDimensions                = new SizeF(6f, 13f);
     base.AutoScaleMode                      = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton                       = this.bCancel;
     base.ClientSize                         = new System.Drawing.Size(455, 272);
     base.Controls.Add(this.bCopyNodes);
     base.Controls.Add(this.bTarget);
     base.Controls.Add(this.tree);
     base.Controls.Add(this.bLoad);
     base.Controls.Add(this.bCancel);
     base.Controls.Add(this.bImport);
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     this.MinimumSize = new System.Drawing.Size(385, 200);
     base.Name        = "OgreSceneImporter";
     base.ShowIcon    = false;
     this.Text        = "Ogre场景导入器";
     base.ResumeLayout(false);
 }
コード例 #2
0
ファイル: ADLib.cs プロジェクト: ddmunhoz/Seeker
        /// <summary>
        ///
        /// </summary>
        /// <param name="ctr_tree"></param>
        /// <param name="LoginCreditsFromUser"></param>
        public void ConnectAndDisplayRoot(ref BufferedTreeView ctr_tree, Credits LoginCreditsFromUser)
        {
            //Pass Connet info to DirextoryEntry object:
            DirectoryEntry LDAPRoot = new DirectoryEntry("LDAP://" + LoginCreditsFromUser.Domain, LoginCreditsFromUser.Username, LoginCreditsFromUser.Pwd);

            //Read the root:
            if (LDAPRoot == null)
            {
                return;
            }
            ctr_tree.Nodes.Clear();
            ctr_tree.BeginUpdate();


            //Custom Icons
            TreeNode childNode = new TreeNode();

            childNode.Text = LDAPRoot.Name.Substring(3, LDAPRoot.Name.Length - 3);

            string objCatChildNode = LDAPRoot.Properties["objectCategory"][0].ToString().ToLower().Split(',')[0];

            if (objCatChildNode.ToLower().Contains("group"))
            {
                childNode.ImageIndex         = 10;
                childNode.SelectedImageIndex = 11;
            }

            if (objCatChildNode.ToLower().Contains("person"))
            {
                childNode.ImageIndex         = 1;
                childNode.SelectedImageIndex = 2;
            }

            if (objCatChildNode.ToLower().Contains("organizational"))
            {
                childNode.ImageIndex         = 14;
                childNode.SelectedImageIndex = 15;
            }
            if (objCatChildNode.ToLower().Contains("computer"))
            {
                childNode.ImageIndex         = 3;
                childNode.SelectedImageIndex = 5;
            }
            //childNode = ctr_tree.Nodes.Add(LDAPRoot.Name);
            ctr_tree.Nodes.Add(childNode);
            childNode.Tag = LDAPRoot;

            try
            {
                foreach (DirectoryEntry Item in LDAPRoot.Children)
                {
                    //Add the root container to the treeview
                    TreeNode RootNode = new TreeNode();
                    RootNode.Text = Item.Name.Substring(3, Item.Name.Length - 3);
                    string objCat = Item.Properties["objectCategory"][0].ToString().ToLower().Split(',')[0];
                    if (objCat.ToLower().Contains("group"))
                    {
                        RootNode.ImageIndex         = 10;
                        RootNode.SelectedImageIndex = 11;
                    }

                    if (objCat.ToLower().Contains("person"))
                    {
                        RootNode.ImageIndex         = 1;
                        RootNode.SelectedImageIndex = 2;
                    }

                    if (objCat.ToLower().Contains("organizational"))
                    {
                        RootNode.ImageIndex         = 14;
                        RootNode.SelectedImageIndex = 15;
                    }
                    if (objCat.ToLower().Contains("computer"))
                    {
                        RootNode.ImageIndex         = 3;
                        RootNode.SelectedImageIndex = 5;
                    }
                    //RootNode = childNode.Nodes.Add(Item.Name);
                    childNode.Nodes.Add(RootNode);

                    //Now tag the node with the current DirectoryEntry object.
                    //Later we will use it for going down the tree after the user has clicked the node
                    RootNode.Tag = Item;
                }
            }
            finally
            {
                childNode.Expand();
                ctr_tree.EndUpdate();
            }

            frmSeekItAll.NodeSorterByType sortTypes = new frmSeekItAll.NodeSorterByType();
            ctr_tree.TreeViewNodeSorter = sortTypes;
            ctr_tree.Sort();
        }
コード例 #3
0
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(DialogTranslation));
            this.lbSpeaker         = new Label();
            this.lbTarget          = new Label();
            this.splitContainer1   = new SplitContainer();
            this.gbActions         = new GroupBox();
            this.btnRemoveLine     = new Button();
            this.btnAddLine        = new Button();
            this.gbInfo            = new GroupBox();
            this.gbEffects         = new GroupBox();
            this.lvEffects         = new ListView();
            this.columnEffects     = new ColumnHeader();
            this.columnEffectValue = new ColumnHeader();
            this.gbConditions      = new GroupBox();
            this.lvConditions      = new ListView();
            this.columnWho         = new ColumnHeader();
            this.columnCondition   = new ColumnHeader();
            this.columnComp        = new ColumnHeader();
            this.columnValue       = new ColumnHeader();
            this.columnTag         = new ColumnHeader();
            this.txtDialogName     = new TextBox();
            this.splitContainer2   = new SplitContainer();
            this.grid           = new PropertyGrid.PropertyGrid();
            this.referenceList1 = new ReferenceList();
            this.tvDialog       = new BufferedTreeView();
            Label label = new Label();
            Label point = new Label();
            Label size  = new Label();

            ((ISupportInitialize)this.splitContainer1).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.gbActions.SuspendLayout();
            this.gbInfo.SuspendLayout();
            this.gbEffects.SuspendLayout();
            this.gbConditions.SuspendLayout();
            ((ISupportInitialize)this.splitContainer2).BeginInit();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            base.SuspendLayout();
            label.AutoSize                       = true;
            label.Location                       = new Point(30, 16);
            label.Name                           = "lbsSpeaker";
            label.Size                           = new System.Drawing.Size(50, 13);
            label.TabIndex                       = 0;
            label.Text                           = "讲话者:";
            point.AutoSize                       = true;
            point.Location                       = new Point(6, 38);
            point.Name                           = "lbsTarget";
            point.Size                           = new System.Drawing.Size(74, 13);
            point.TabIndex                       = 0;
            point.Text                           = "目标类型:";
            size.AutoSize                        = true;
            size.Location                        = new Point(11, 14);
            size.Name                            = "lbName";
            size.Size                            = new System.Drawing.Size(35, 13);
            size.TabIndex                        = 0;
            size.Text                            = "名称";
            this.lbSpeaker.Location              = new Point(86, 16);
            this.lbSpeaker.Name                  = "lbSpeaker";
            this.lbSpeaker.Size                  = new System.Drawing.Size(158, 13);
            this.lbSpeaker.TabIndex              = 0;
            this.lbSpeaker.Text                  = "-";
            this.lbSpeaker.TextAlign             = ContentAlignment.TopRight;
            this.lbTarget.Location               = new Point(86, 38);
            this.lbTarget.Name                   = "lbTarget";
            this.lbTarget.Size                   = new System.Drawing.Size(158, 13);
            this.lbTarget.TabIndex               = 0;
            this.lbTarget.Text                   = "-";
            this.lbTarget.TextAlign              = ContentAlignment.TopRight;
            this.splitContainer1.BorderStyle     = BorderStyle.FixedSingle;
            this.splitContainer1.Dock            = DockStyle.Fill;
            this.splitContainer1.IsSplitterFixed = true;
            this.splitContainer1.Location        = new Point(0, 0);
            this.splitContainer1.Name            = "splitContainer1";
            this.splitContainer1.Orientation     = Orientation.Horizontal;
            this.splitContainer1.Panel1.Controls.Add(this.gbActions);
            this.splitContainer1.Panel1.Controls.Add(this.gbInfo);
            this.splitContainer1.Panel1.Controls.Add(this.referenceList1);
            this.splitContainer1.Panel1.Controls.Add(this.gbEffects);
            this.splitContainer1.Panel1.Controls.Add(this.gbConditions);
            this.splitContainer1.Panel1.Controls.Add(this.txtDialogName);
            this.splitContainer1.Panel1.Controls.Add(size);
            this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
            this.splitContainer1.Size             = new System.Drawing.Size(1390, 624);
            this.splitContainer1.SplitterDistance = 172;
            this.splitContainer1.TabIndex         = 0;
            this.gbActions.Controls.Add(this.btnRemoveLine);
            this.gbActions.Controls.Add(this.btnAddLine);
            this.gbActions.Location     = new Point(1180, 5);
            this.gbActions.Name         = "gbActions";
            this.gbActions.Size         = new System.Drawing.Size(197, 161);
            this.gbActions.TabIndex     = 3;
            this.gbActions.TabStop      = false;
            this.gbActions.Text         = "动作";
            this.btnRemoveLine.Enabled  = false;
            this.btnRemoveLine.Location = new Point(6, 48);
            this.btnRemoveLine.Name     = "btnRemoveLine";
            this.btnRemoveLine.Size     = new System.Drawing.Size(185, 23);
            this.btnRemoveLine.TabIndex = 0;
            this.btnRemoveLine.Text     = "删除语句";
            this.btnRemoveLine.UseVisualStyleBackColor = true;
            this.btnRemoveLine.Click += new EventHandler(this.btnRemoveLine_Click);
            this.btnAddLine.Enabled   = false;
            this.btnAddLine.Location  = new Point(6, 19);
            this.btnAddLine.Name      = "btnAddLine";
            this.btnAddLine.Size      = new System.Drawing.Size(185, 23);
            this.btnAddLine.TabIndex  = 0;
            this.btnAddLine.Text      = "添加语句";
            this.btnAddLine.UseVisualStyleBackColor = true;
            this.btnAddLine.Click += new EventHandler(this.btnAddLine_Click);
            this.gbInfo.Controls.Add(point);
            this.gbInfo.Controls.Add(this.lbTarget);
            this.gbInfo.Controls.Add(this.lbSpeaker);
            this.gbInfo.Controls.Add(label);
            this.gbInfo.Location = new Point(52, 60);
            this.gbInfo.Name     = "gbInfo";
            this.gbInfo.Size     = new System.Drawing.Size(250, 106);
            this.gbInfo.TabIndex = 42;
            this.gbInfo.TabStop  = false;
            this.gbInfo.Text     = "信息";
            this.gbEffects.Controls.Add(this.lvEffects);
            this.gbEffects.Location = new Point(709, 5);
            this.gbEffects.Name     = "gbEffects";
            this.gbEffects.Size     = new System.Drawing.Size(238, 161);
            this.gbEffects.TabIndex = 3;
            this.gbEffects.TabStop  = false;
            this.gbEffects.Text     = "效果";
            this.lvEffects.Columns.AddRange(new ColumnHeader[] { this.columnEffects, this.columnEffectValue });
            this.lvEffects.FullRowSelect = true;
            this.lvEffects.GridLines     = true;
            this.lvEffects.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.lvEffects.LabelWrap     = false;
            this.lvEffects.Location      = new Point(6, 19);
            this.lvEffects.MultiSelect   = false;
            this.lvEffects.Name          = "lvEffects";
            this.lvEffects.ShowGroups    = false;
            this.lvEffects.Size          = new System.Drawing.Size(226, 136);
            this.lvEffects.TabIndex      = 0;
            this.lvEffects.UseCompatibleStateImageBehavior = false;
            this.lvEffects.View          = View.Details;
            this.columnEffects.Text      = "效果";
            this.columnEffects.Width     = 174;
            this.columnEffectValue.Text  = "值";
            this.columnEffectValue.Width = 47;
            this.gbConditions.Controls.Add(this.lvConditions);
            this.gbConditions.Location = new Point(308, 5);
            this.gbConditions.Name     = "gbConditions";
            this.gbConditions.Size     = new System.Drawing.Size(395, 161);
            this.gbConditions.TabIndex = 2;
            this.gbConditions.TabStop  = false;
            this.gbConditions.Text     = "条件";
            this.lvConditions.Columns.AddRange(new ColumnHeader[] { this.columnWho, this.columnCondition, this.columnComp, this.columnValue, this.columnTag });
            this.lvConditions.FullRowSelect = true;
            this.lvConditions.GridLines     = true;
            this.lvConditions.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.lvConditions.LabelWrap     = false;
            this.lvConditions.Location      = new Point(6, 19);
            this.lvConditions.MultiSelect   = false;
            this.lvConditions.Name          = "lvConditions";
            this.lvConditions.ShowGroups    = false;
            this.lvConditions.Size          = new System.Drawing.Size(383, 136);
            this.lvConditions.TabIndex      = 0;
            this.lvConditions.UseCompatibleStateImageBehavior = false;
            this.lvConditions.View        = View.Details;
            this.columnWho.Text           = "谁";
            this.columnWho.Width          = 68;
            this.columnCondition.Text     = "条件";
            this.columnCondition.Width    = 158;
            this.columnComp.Text          = "==";
            this.columnComp.Width         = 25;
            this.columnValue.Text         = "值";
            this.columnValue.Width        = 40;
            this.columnTag.Text           = "标签";
            this.columnTag.Width          = 86;
            this.txtDialogName.Location   = new Point(52, 11);
            this.txtDialogName.Name       = "txtDialogName";
            this.txtDialogName.ReadOnly   = true;
            this.txtDialogName.Size       = new System.Drawing.Size(250, 20);
            this.txtDialogName.TabIndex   = 1;
            this.txtDialogName.WordWrap   = false;
            this.splitContainer2.Dock     = DockStyle.Fill;
            this.splitContainer2.Location = new Point(0, 0);
            this.splitContainer2.Name     = "splitContainer2";
            this.splitContainer2.Panel1.Controls.Add(this.tvDialog);
            this.splitContainer2.Panel2.Controls.Add(this.grid);
            this.splitContainer2.Size             = new System.Drawing.Size(1388, 446);
            this.splitContainer2.SplitterDistance = 471;
            this.splitContainer2.TabIndex         = 0;
            this.grid.AutoScroll        = true;
            this.grid.AutoScrollMinSize = new System.Drawing.Size(0, 100);
            this.grid.DividerFixed      = true;
            this.grid.DividerPosition   = 75;
            this.grid.Dock                      = DockStyle.Fill;
            this.grid.Location                  = new Point(0, 0);
            this.grid.Name                      = "grid";
            this.grid.Size                      = new System.Drawing.Size(913, 446);
            this.grid.TabIndex                  = 1;
            this.grid.OnPropertyChanged        += new PropertyGrid.PropertyGrid.PropertyChangedHandler(this.grid_OnPropertyChanged);
            this.grid.OnPropertyKeyEnter       += new PropertyGrid.PropertyGrid.PropertyKeyEnterHandler(this.grid_OnPropertyKeyEnter);
            this.grid.OnPropertySelected       += new PropertyGrid.PropertyGrid.PropertySelectedHandler(this.grid_OnPropertySelected);
            this.referenceList1.Anchor          = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
            this.referenceList1.Exclusions      = (ArrayList)componentResourceManager.GetObject("referenceList1.Exclusions");
            this.referenceList1.Location        = new Point(953, 6);
            this.referenceList1.Name            = "referenceList1";
            this.referenceList1.ReadOnly        = true;
            this.referenceList1.ShowDescription = true;
            this.referenceList1.Size            = new System.Drawing.Size(221, 161);
            this.referenceList1.TabIndex        = 41;
            this.tvDialog.Dock                  = DockStyle.Fill;
            this.tvDialog.DrawMode              = TreeViewDrawMode.OwnerDrawText;
            this.tvDialog.Location              = new Point(0, 0);
            this.tvDialog.Name                  = "tvDialog";
            this.tvDialog.Size                  = new System.Drawing.Size(471, 446);
            this.tvDialog.TabIndex              = 0;
            this.tvDialog.DrawNode             += new DrawTreeNodeEventHandler(this.tvDialog_DrawNode);
            this.tvDialog.AfterSelect          += new TreeViewEventHandler(this.tvDialog_AfterSelect);
            base.AutoScaleDimensions            = new SizeF(6f, 13f);
            base.AutoScaleMode                  = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize                     = new System.Drawing.Size(1390, 624);
            base.Controls.Add(this.splitContainer1);
            base.Name = "DialogTranslation";
            this.Text = "对话翻译";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel1.PerformLayout();
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((ISupportInitialize)this.splitContainer1).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.gbActions.ResumeLayout(false);
            this.gbInfo.ResumeLayout(false);
            this.gbInfo.PerformLayout();
            this.gbEffects.ResumeLayout(false);
            this.gbConditions.ResumeLayout(false);
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            ((ISupportInitialize)this.splitContainer2).EndInit();
            this.splitContainer2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
コード例 #4
0
        void InitializeComponents()
        {
            SuspendLayout();

            //
            // appContainer
            //
            appContainer = new Panel
            {
                Dock        = DockStyle.Fill,
                BorderStyle = BorderStyle.None,
                Visible     = false,
            };
            appContainer.SuspendLayout();

            //
            // statusBar
            //
            statusBar = new StatusStrip()
            {
                Dock       = DockStyle.Bottom,
                Size       = new Size(400, 32),
                SizingGrip = true,
                Stretch    = true,
                AutoSize   = false
            };
            statusBar.Items.Add(statusLabel = new ToolStripStatusLabel()
            {
                Spring    = true,
                Text      = "Ready",
                TextAlign = ContentAlignment.MiddleLeft
            });

            //
            // toolStrip
            //
            toolStrip = new BlackToolStrip();
            var mainMenuButton = toolStrip.AddMenuItem(Program.BarsImage);

            mainMenuButton.DropDownOpening += (sender, args) =>
            {
                mainMenuButton.DropDownItems.Clear();
                mainMenuButton.DropDownItems.AddRange(MainMenu());
            };
            toolStrip.Items.Add(gameStatusLabel = new ToolStripLabel()
            {
                AutoSize  = false,
                Height    = toolStrip.Height,
                Width     = 382 /* 314 */,
                TextAlign = ContentAlignment.MiddleLeft,
                BackColor = Color.White
            });
            //toolStrip.AddMenuItem(Program.BarsImage);
            toolStrip.Items.Add(new ToolStripSeparator());
            toolStrip.NextAlignment = ToolStripItemAlignment.Right;
            progressBar             = toolStrip.AddProgressBar();
            discardButton           = toolStrip.AddButton(Program.TrashImage, "Discard", DiscardChanges);
            applyButton             = toolStrip.AddButton(Program.SaveImage, "Apply", ApplyChanges);
            changesLabel            = toolStrip.AddLabel();
            progressBar.Visible     = false;

            //
            // splitContainer
            //
            splitContainer = new SplitContainer
            {
                BackColor        = SystemColors.Control,
                Dock             = DockStyle.Fill,
                Location         = new Point(0, 0),
                Name             = "splitContainer",
                FixedPanel       = FixedPanel.Panel1,
                Size             = new Size(1422, 1006),
                SplitterDistance = 450,
                TabIndex         = 0,
            };
            splitContainer.BeginInit();
            splitContainer.Panel1.SuspendLayout();
            splitContainer.Panel2.SuspendLayout();
            splitContainer.SuspendLayout();
            splitContainer.Panel1.DockPadding.All = 9;

            //
            // folderTreeView
            //
            folderTreeView = new BufferedTreeView
            {
                BackColor     = SystemColors.Control,
                BorderStyle   = BorderStyle.None,
                Dock          = DockStyle.Fill,
                Font          = new Font("Tahoma", 9.0F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))),
                Name          = "folderTreeView",
                Size          = new Size(474, 1006),
                TabIndex      = 0,
                ItemHeight    = 40,
                FullRowSelect = true,
                HideSelection = false,
                DrawMode      = TreeViewDrawMode.OwnerDrawText,
                ImageList     = new ImageList
                {
                    ImageSize  = new Size(32, 20),
                    ColorDepth = ColorDepth.Depth32Bit
                }
            };
            folderTreeView.ImageList.Images.Add(Program.FolderIconSmall);
            folderTreeView.AfterSelect    += FolderTreeView_AfterSelect;
            folderTreeView.NodeMouseClick += FolderTreeView_MouseClick;
            folderTreeView.DrawNode       += FolderTreeView_DrawNode;
            splitContainer.Panel1.Controls.Add(folderTreeView);

            //
            // imageListView
            //
            imageListView = new BufferedListView
            {
                BackColor      = SystemColors.ControlDark,
                BorderStyle    = BorderStyle.None,
                Dock           = DockStyle.Fill,
                Location       = new Point(0, 0),
                Name           = "imageListView",
                Size           = new Size(944, 1006),
                TabIndex       = 0,
                View           = View.LargeIcon,
                LargeImageList = new ImageList
                {
                    ImageSize  = new Size(200, 200),
                    ColorDepth = ColorDepth.Depth32Bit
                }
            };
            imageListView.SelectedIndexChanged += ImageListView_SelectedIndexChanged;
            imageListView.DoubleClick          += ImageListView_DoubleClick;
            imageListView.MouseClick           += ImageListView_MouseClick;
            imageListView.ItemDrag             += ImageListView_ItemDrag;
            splitContainer.Panel2.Controls.Add(imageListView);

            //
            // DragInstructions
            //
            dragInstructions = new Panel()
            {
                Dock = DockStyle.Fill
            };
            instructionsLabel = new Label()
            {
                Dock      = DockStyle.Fill,
                Font      = new Font("Tahoma", 20),
                TextAlign = ContentAlignment.MiddleCenter,
            };
            instructionsLabel.Paint += InstructionsLabel_Paint;
            dragInstructions.Controls.Add(instructionsLabel);

            //
            // ExplorerForm
            //
            AutoScaleDimensions = new SizeF(12F, 25F);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(1522, 1006);
            appContainer.Controls.Add(splitContainer);
            appContainer.Controls.Add(statusBar);
            appContainer.Controls.Add(toolStrip);
            Controls.Add(appContainer);
            Controls.Add(dragInstructions);
            Name           = "ExplorerForm";
            Text           = "SOR4 Explorer";
            DoubleBuffered = true;
            AllowDrop      = true;
            Icon           = Program.Icon;

            FormClosing += ExplorerForm_FormClosing;
            DragDrop    += ExplorerForm_DragDrop;
            DragEnter   += ExplorerForm_DragEnter;

            splitContainer.Panel1.ResumeLayout(false);
            splitContainer.Panel2.ResumeLayout(false);
            splitContainer.EndInit();
            splitContainer.ResumeLayout(false);
            appContainer.ResumeLayout(false);
            ResumeLayout(false);
        }