Esempio n. 1
0
        public void refresh(GameData.Item item, string instanceID, itemType mask)
        {
            this.Item         = item;
            this.InstanceName = instanceID;
            this.Instance     = item.getInstance(instanceID);
            GameData gameDatum = this.nav.ou.gameData;
            string   str       = this.Instance.sdata["ref"];
            object   obj       = gameDatum.getItem(str);

            if (obj == null)
            {
                obj = str;
            }
            bool   state      = this.Instance.getState() == GameData.State.LOCKED;
            Color  stateColor = StateColours.GetStateColor((state ? GameData.State.LOCKED : GameData.State.ORIGINAL));
            string str1       = "";

            if (mask == itemType.NULL_ITEM)
            {
                str1 = "is node=true";
            }
            this.grid.addItem("Base", "Parent Item", this.Item, "The item this instance belongs to", new Color?(SystemColors.GrayText), false);
            this.grid.addItem("Base", "Instance ID", this.InstanceName, "Unique identifier for this instance. Works the same as StringID but for instances", new Color?(stateColor), !state);
            this.grid.addItem("Base", "Target", obj, "Game object that is instanced", new Color?(stateColor), !state).Property = new GameDataItemProperty(gameDatum, mask, str1);
            GameData.State state1 = this.Instance.getState("ref");
            if (state && state1 != GameData.State.INVALID)
            {
                state1 = GameData.State.LOCKED;
            }
            this.grid.getItem("Target").TextColour = StateColours.GetStateColor(state1);
            this.setItem("Position", "X", "x", "Instance position");
            this.setItem("Position", "Y", "y", "Instance position");
            this.setItem("Position", "Z", "z", "Instance position");
            this.setItem("Orientation", "W", "qw", "Instance oriantetion (quaternion)");
            this.setItem("Orientation", "X", "qx", "Instance oriantetion (quaternion)");
            this.setItem("Orientation", "Y", "qy", "Instance oriantetion (quaternion)");
            this.setItem("Orientation", "Z", "qz", "Instance oriantetion (quaternion)");
            foreach (KeyValuePair <string, GameData.TripleInt> keyValuePair in this.Instance.referenceData("states", false))
            {
                GameData.Item item1 = this.nav.ou.gameData.getItem(keyValuePair.Key);
                if (item1 == null)
                {
                    continue;
                }
                PropertyGrid.PropertyGrid propertyGrid = this.grid;
                itemType _itemType = item1.type;
                Color?   nullable  = null;
                PropertyGrid.PropertyGrid.Item gameDataItemProperty = propertyGrid.addItem("State Data", _itemType.ToString(), item1, "Instance state data", nullable, true);
                gameDataItemProperty.Property = new GameDataItemProperty(gameDatum, item1.type, "");
                gameDataItemProperty.Editable = false;
            }
            this.grid.AutosizeDivider();
        }
        protected override void ButtonPressed()
        {
            PropertyGrid.PropertyGrid.Item item                  = this.mItem;
            PropertyGrid.PropertyGrid      propertyGrid          = this.mGrid;
            TranslationManager.TranslationDialogueLine.Line data = this.mItem.Data as TranslationManager.TranslationDialogueLine.Line;
            TextDialog textDialog = new TextDialog(this.mItem.Name, data.Translation, data.Original);

            if (textDialog.ShowDialog() == DialogResult.OK)
            {
                this.mItem = item;
                this.mGrid = propertyGrid;
                char[] chrArray = new char[] { ' ', '\n', '\r' };
                base.setValue(textDialog.Value.TrimEnd(chrArray));
                this.mItem = null;
                this.mGrid = null;
            }
        }
Esempio n. 3
0
 private void InitializeComponent()
 {
     this.grid = new PropertyGrid.PropertyGrid();
     base.SuspendLayout();
     this.grid.Dock           = DockStyle.Fill;
     this.grid.Location       = new Point(0, 0);
     this.grid.Name           = "grid";
     this.grid.Size           = new System.Drawing.Size(254, 284);
     this.grid.TabIndex       = 0;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(254, 284);
     base.Controls.Add(this.grid);
     base.Name     = "InstanceDialog";
     base.ShowIcon = false;
     this.Text     = "实例";
     base.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components      = new System.ComponentModel.Container();
     this.contextMenu     = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.openItem        = new ToolStripMenuItem();
     this.revertItem      = new ToolStripMenuItem();
     this.removeItem      = new ToolStripMenuItem();
     this.split           = new SplitContainer();
     this.splitContainer1 = new SplitContainer();
     this.addList         = new ComboBox();
     this.addButton       = new Button();
     this.grid            = new PropertyGrid.PropertyGrid();
     this.description     = new Label();
     this.selection       = new Label();
     this.contextMenu.SuspendLayout();
     ((ISupportInitialize)this.split).BeginInit();
     this.split.Panel1.SuspendLayout();
     this.split.Panel2.SuspendLayout();
     this.split.SuspendLayout();
     ((ISupportInitialize)this.splitContainer1).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     base.SuspendLayout();
     this.contextMenu.Items.AddRange(new ToolStripItem[] { this.openItem, this.revertItem, this.removeItem });
     this.contextMenu.Name     = "contextMenu";
     this.contextMenu.Size     = new System.Drawing.Size(118, 70);
     this.contextMenu.Opening += new CancelEventHandler(this.contextMenu_Opening);
     this.openItem.Name        = "openItem";
     this.openItem.Size        = new System.Drawing.Size(117, 22);
     this.openItem.Text        = "打开";
     this.openItem.Click      += new EventHandler(this.openItem_Click);
     this.revertItem.Name      = "revertItem";
     this.revertItem.Size      = new System.Drawing.Size(117, 22);
     this.revertItem.Text      = "还原";
     this.revertItem.Click    += new EventHandler(this.revertItem_Click);
     this.removeItem.Name      = "removeItem";
     this.removeItem.Size      = new System.Drawing.Size(117, 22);
     this.removeItem.Text      = "移除";
     this.removeItem.Click    += new EventHandler(this.removeItem_Click);
     this.split.Dock           = DockStyle.Fill;
     this.split.Location       = new Point(0, 0);
     this.split.Name           = "split";
     this.split.Orientation    = Orientation.Horizontal;
     this.split.Panel1.Controls.Add(this.splitContainer1);
     this.split.Panel2.Controls.Add(this.description);
     this.split.Panel2.Controls.Add(this.selection);
     this.split.Size                  = new System.Drawing.Size(221, 210);
     this.split.SplitterDistance      = 165;
     this.split.TabIndex              = 36;
     this.split.TabStop               = false;
     this.splitContainer1.Location    = new Point(0, 0);
     this.splitContainer1.Name        = "splitContainer1";
     this.splitContainer1.Orientation = Orientation.Horizontal;
     this.splitContainer1.Panel1.Controls.Add(this.addList);
     this.splitContainer1.Panel1.Controls.Add(this.addButton);
     this.splitContainer1.Panel2.Controls.Add(this.grid);
     this.splitContainer1.Size             = new System.Drawing.Size(221, 166);
     this.splitContainer1.SplitterDistance = 39;
     this.splitContainer1.TabIndex         = 38;
     this.addList.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.addList.FormattingEnabled = true;
     this.addList.Location          = new Point(6, 9);
     this.addList.Name                      = "addList";
     this.addList.Size                      = new System.Drawing.Size(150, 21);
     this.addList.TabIndex                  = 37;
     this.addList.SelectedIndexChanged     += new EventHandler(this.addList_SelectedIndexChanged);
     this.addList.Enter                    += new EventHandler(this.addList_Enter);
     this.addButton.Anchor                  = AnchorStyles.Top | AnchorStyles.Right;
     this.addButton.Location                = new Point(162, 9);
     this.addButton.Name                    = "addButton";
     this.addButton.Size                    = new System.Drawing.Size(56, 21);
     this.addButton.TabIndex                = 34;
     this.addButton.Text                    = "添加";
     this.addButton.UseVisualStyleBackColor = true;
     this.addButton.Click                  += new EventHandler(this.addButton_Click);
     this.grid.AutoScroll                   = true;
     this.grid.AutoScrollMinSize            = new System.Drawing.Size(0, 100);
     this.grid.ContextMenuStrip             = this.contextMenu;
     this.grid.Dock            = DockStyle.Fill;
     this.grid.Location        = new Point(0, 0);
     this.grid.Name            = "grid";
     this.grid.Size            = new System.Drawing.Size(221, 123);
     this.grid.TabIndex        = 0;
     this.description.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.description.Location = new Point(12, 13);
     this.description.Name     = "description";
     this.description.Size     = new System.Drawing.Size(206, 28);
     this.description.TabIndex = 1;
     this.description.Text     = "描述";
     this.selection.AutoSize   = true;
     this.selection.Font       = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.selection.Location   = new Point(3, 0);
     this.selection.Name       = "selection";
     this.selection.Size       = new System.Drawing.Size(85, 13);
     this.selection.TabIndex   = 0;
     this.selection.Text       = "已选择的项目";
     base.AutoScaleDimensions  = new SizeF(6f, 13f);
     base.AutoScaleMode        = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(this.split);
     base.Name = "ReferenceList";
     base.Size = new System.Drawing.Size(221, 210);
     this.contextMenu.ResumeLayout(false);
     this.split.Panel1.ResumeLayout(false);
     this.split.Panel2.ResumeLayout(false);
     this.split.Panel2.PerformLayout();
     ((ISupportInitialize)this.split).EndInit();
     this.split.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((ISupportInitialize)this.splitContainer1).EndInit();
     this.splitContainer1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components         = new System.ComponentModel.Container();
     this.split2             = new SplitContainer();
     this.propertyList       = new ObjectPropertyBox();
     this.referenceList      = new PropertyGrid.PropertyGrid();
     this.contextMenu        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.bOpenReference     = new ToolStripMenuItem();
     this.bRemoveReference   = new ToolStripMenuItem();
     this.bReplaceWithCopy   = new ToolStripMenuItem();
     this.bRemoveSection     = new ToolStripMenuItem();
     this.additionalCommands = new Button();
     this.bAddReference      = new Button();
     this.referenceTypes     = new ComboBox();
     this.tooltips           = new ToolTip(this.components);
     this.split1             = new SplitContainer();
     this.description        = new Label();
     this.selected           = new Label();
     this.commandMenu        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.showReferences     = new ToolStripMenuItem();
     this.copyData           = new ToolStripMenuItem();
     this.addTodo            = new ToolStripMenuItem();
     this.importScene        = new ToolStripMenuItem();
     this.duplicateItem      = new ToolStripMenuItem();
     this.addMissingFields   = new ToolStripMenuItem();
     this.cleanItem          = new ToolStripMenuItem();
     ((ISupportInitialize)this.split2).BeginInit();
     this.split2.Panel1.SuspendLayout();
     this.split2.Panel2.SuspendLayout();
     this.split2.SuspendLayout();
     this.contextMenu.SuspendLayout();
     ((ISupportInitialize)this.split1).BeginInit();
     this.split1.Panel1.SuspendLayout();
     this.split1.Panel2.SuspendLayout();
     this.split1.SuspendLayout();
     this.commandMenu.SuspendLayout();
     base.SuspendLayout();
     this.split2.Dock     = DockStyle.Fill;
     this.split2.Location = new Point(0, 0);
     this.split2.Name     = "split2";
     this.split2.Panel1.Controls.Add(this.propertyList);
     this.split2.Panel2.Controls.Add(this.referenceList);
     this.split2.Panel2.Controls.Add(this.additionalCommands);
     this.split2.Panel2.Controls.Add(this.bAddReference);
     this.split2.Panel2.Controls.Add(this.referenceTypes);
     this.split2.Size                     = new System.Drawing.Size(529, 498);
     this.split2.SplitterDistance         = 297;
     this.split2.TabIndex                 = 1;
     this.split2.TabStop                  = false;
     this.propertyList.BackColor          = SystemColors.ControlDark;
     this.propertyList.Dock               = DockStyle.Fill;
     this.propertyList.Item               = null;
     this.propertyList.Location           = new Point(0, 0);
     this.propertyList.Margin             = new System.Windows.Forms.Padding(4);
     this.propertyList.Name               = "propertyList";
     this.propertyList.ShowDescription    = false;
     this.propertyList.Size               = new System.Drawing.Size(297, 498);
     this.propertyList.TabIndex           = 0;
     this.propertyList.Load              += new EventHandler(this.objectPropertyBox1_Load);
     this.referenceList.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.referenceList.AutoScroll        = true;
     this.referenceList.AutoScrollMinSize = new System.Drawing.Size(0, 100);
     this.referenceList.BackColor         = SystemColors.ControlDark;
     this.referenceList.ContextMenuStrip  = this.contextMenu;
     this.referenceList.Location          = new Point(3, 50);
     this.referenceList.Name              = "referenceList";
     this.referenceList.Size              = new System.Drawing.Size(224, 447);
     this.referenceList.TabIndex          = 1;
     this.referenceList.Text              = "propertyGrid1";
     this.referenceList.PreviewKeyDown   += new PreviewKeyDownEventHandler(this.referenceList_PreviewKeyDown);
     this.contextMenu.Items.AddRange(new ToolStripItem[] { this.bOpenReference, this.bRemoveReference, this.bReplaceWithCopy, this.bRemoveSection });
     this.contextMenu.Name            = "contextMenuStrip1";
     this.contextMenu.Size            = new System.Drawing.Size(180, 92);
     this.contextMenu.Opening        += new CancelEventHandler(this.contextMenu_Opening);
     this.bOpenReference.Name         = "bOpenReference";
     this.bOpenReference.Size         = new System.Drawing.Size(179, 22);
     this.bOpenReference.Text         = "打开";
     this.bOpenReference.Click       += new EventHandler(this.openReference_Click);
     this.bRemoveReference.Name       = "bRemoveReference";
     this.bRemoveReference.Size       = new System.Drawing.Size(179, 22);
     this.bRemoveReference.Text       = "从列表中删除";
     this.bRemoveReference.Click     += new EventHandler(this.bRemoveReference_Click);
     this.bReplaceWithCopy.Name       = "bReplaceWithCopy";
     this.bReplaceWithCopy.Size       = new System.Drawing.Size(179, 22);
     this.bReplaceWithCopy.Text       = "替换并复制";
     this.bReplaceWithCopy.Click     += new EventHandler(this.replaceWithCopyToolStripMenuItem_Click);
     this.bRemoveSection.Name         = "bRemoveSection";
     this.bRemoveSection.Size         = new System.Drawing.Size(179, 22);
     this.bRemoveSection.Text         = "从列表中移除所有";
     this.bRemoveSection.Visible      = false;
     this.bRemoveSection.Click       += new EventHandler(this.bRemoveSection_Click);
     this.additionalCommands.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
     this.additionalCommands.Location = new Point(200, 12);
     this.additionalCommands.Name     = "additionalCommands";
     this.additionalCommands.Size     = new System.Drawing.Size(25, 23);
     this.additionalCommands.TabIndex = 4;
     this.additionalCommands.Text     = "...";
     this.tooltips.SetToolTip(this.additionalCommands, "列出所有引用这个项目的游戏对象");
     this.additionalCommands.UseVisualStyleBackColor = true;
     this.additionalCommands.MouseDown += new MouseEventHandler(this.additionalCommands_MouseDown);
     this.bAddReference.Anchor          = AnchorStyles.Top | AnchorStyles.Right;
     this.bAddReference.Location        = new Point(135, 11);
     this.bAddReference.Name            = "bAddReference";
     this.bAddReference.Size            = new System.Drawing.Size(58, 23);
     this.bAddReference.TabIndex        = 3;
     this.bAddReference.Text            = "添加";
     this.tooltips.SetToolTip(this.bAddReference, "向列出的部分添加引用");
     this.bAddReference.UseVisualStyleBackColor = true;
     this.bAddReference.Click                 += new EventHandler(this.bAddReference_Click);
     this.referenceTypes.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.referenceTypes.DropDownStyle         = ComboBoxStyle.DropDownList;
     this.referenceTypes.FormattingEnabled     = true;
     this.referenceTypes.Location              = new Point(13, 12);
     this.referenceTypes.Name                  = "referenceTypes";
     this.referenceTypes.Size                  = new System.Drawing.Size(122, 21);
     this.referenceTypes.TabIndex              = 2;
     this.referenceTypes.SelectedIndexChanged += new EventHandler(this.referenceTypes_SelectedIndexChanged);
     this.referenceTypes.Enter                += new EventHandler(this.referenceTypes_Enter);
     this.split1.Dock        = DockStyle.Fill;
     this.split1.Location    = new Point(0, 0);
     this.split1.Name        = "split1";
     this.split1.Orientation = Orientation.Horizontal;
     this.split1.Panel1.Controls.Add(this.split2);
     this.split1.Panel2.Controls.Add(this.description);
     this.split1.Panel2.Controls.Add(this.selected);
     this.split1.Size             = new System.Drawing.Size(529, 559);
     this.split1.SplitterDistance = 498;
     this.split1.TabIndex         = 2;
     this.split1.TabStop          = false;
     this.description.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.description.Location    = new Point(12, 13);
     this.description.Name        = "description";
     this.description.Size        = new System.Drawing.Size(517, 44);
     this.description.TabIndex    = 1;
     this.description.Text        = "描述";
     this.selected.AutoSize       = true;
     this.selected.Font           = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.selected.Location       = new Point(3, 0);
     this.selected.Name           = "selected";
     this.selected.Size           = new System.Drawing.Size(85, 13);
     this.selected.TabIndex       = 0;
     this.selected.Text           = "选择的项目";
     this.commandMenu.Items.AddRange(new ToolStripItem[] { this.showReferences, this.copyData, this.addTodo, this.importScene, this.duplicateItem, this.addMissingFields, this.cleanItem });
     this.commandMenu.Name        = "commandMenu";
     this.commandMenu.Size        = new System.Drawing.Size(201, 180);
     this.showReferences.Name     = "showReferences";
     this.showReferences.Size     = new System.Drawing.Size(200, 22);
     this.showReferences.Text     = "显示引用";
     this.showReferences.Click   += new EventHandler(this.showReferences_Click);
     this.copyData.Name           = "copyData";
     this.copyData.Size           = new System.Drawing.Size(200, 22);
     this.copyData.Text           = "从项中复制数据";
     this.copyData.Click         += new EventHandler(this.copyData_Click);
     this.addTodo.Name            = "addTodo";
     this.addTodo.Size            = new System.Drawing.Size(200, 22);
     this.addTodo.Text            = "添加一个待办项目";
     this.addTodo.Click          += new EventHandler(this.addTodo_Click);
     this.importScene.Name        = "importScene";
     this.importScene.Size        = new System.Drawing.Size(200, 22);
     this.importScene.Text        = "导入场景";
     this.importScene.Click      += new EventHandler(this.importScene_Click);
     this.duplicateItem.Name      = "duplicateItem";
     this.duplicateItem.Size      = new System.Drawing.Size(200, 22);
     this.duplicateItem.Text      = "克隆本项目";
     this.duplicateItem.Click    += new EventHandler(this.duplicateItem_Click);
     this.addMissingFields.Name   = "addMissingFields";
     this.addMissingFields.Size   = new System.Drawing.Size(200, 22);
     this.addMissingFields.Text   = "添加丢失的字段";
     this.addMissingFields.Click += new EventHandler(this.addMissingFields_Click);
     this.cleanItem.Name          = "cleanItem";
     this.cleanItem.Size          = new System.Drawing.Size(200, 22);
     this.cleanItem.Text          = "删除过时的字段";
     this.cleanItem.Click        += new EventHandler(this.cleanItem_Click);
     this.AllowDrop           = true;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(529, 559);
     base.Controls.Add(this.split1);
     base.Name       = "itemproperties";
     this.Text       = "itemproperties";
     base.Activated += new EventHandler(this.itemproperties_Activated);
     this.split2.Panel1.ResumeLayout(false);
     this.split2.Panel2.ResumeLayout(false);
     ((ISupportInitialize)this.split2).EndInit();
     this.split2.ResumeLayout(false);
     this.contextMenu.ResumeLayout(false);
     this.split1.Panel1.ResumeLayout(false);
     this.split1.Panel2.ResumeLayout(false);
     this.split1.Panel2.PerformLayout();
     ((ISupportInitialize)this.split1).EndInit();
     this.split1.ResumeLayout(false);
     this.commandMenu.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Esempio n. 6
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);
        }
 public virtual void Paint(PropertyGrid grid, PropertyGrid.Item item, Graphics g, Rectangle rect)
 {
     this.DrawText(item.TransValue ?? this.getAsString(item.Value), grid.Font, g, rect, 2, 0, new Color?(item.TextColour));
 }