Esempio n. 1
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DetailForm));
            this.textBox_recPath = new System.Windows.Forms.TextBox();
            this.button_findRecPath = new System.Windows.Forms.Button();
            this.timer_crossRefresh = new System.Windows.Forms.Timer(this.components);
            this.splitContainer_main = new System.Windows.Forms.SplitContainer();
            this.tabControl_record = new System.Windows.Forms.TabControl();
            this.tabPage_xml = new System.Windows.Forms.TabPage();
            this.XmlEditor = new DigitalPlatform.Xml.XmlEditor();
            this.tabPage_marc = new System.Windows.Forms.TabPage();
            this.MarcEditor = new DigitalPlatform.Marc.MarcEditor();
            this.tabPage_xmlText = new System.Windows.Forms.TabPage();
            this.textBox_xmlPureText = new System.Windows.Forms.TextBox();
            this.tabControl_bottom = new System.Windows.Forms.TabControl();
            this.tabPage_resFiles = new System.Windows.Forms.TabPage();
            this.listView_resFiles = new ResFileList();
            this.tableLayoutPanel_recpath = new System.Windows.Forms.TableLayoutPanel();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_main)).BeginInit();
            this.splitContainer_main.Panel1.SuspendLayout();
            this.splitContainer_main.Panel2.SuspendLayout();
            this.splitContainer_main.SuspendLayout();
            this.tabControl_record.SuspendLayout();
            this.tabPage_xml.SuspendLayout();
            this.tabPage_marc.SuspendLayout();
            this.tabPage_xmlText.SuspendLayout();
            this.tabControl_bottom.SuspendLayout();
            this.tabPage_resFiles.SuspendLayout();
            this.tableLayoutPanel_recpath.SuspendLayout();
            this.SuspendLayout();
            // 
            // textBox_recPath
            // 
            this.textBox_recPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_recPath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.textBox_recPath.ImeMode = System.Windows.Forms.ImeMode.Off;
            this.textBox_recPath.Location = new System.Drawing.Point(0, 3);
            this.textBox_recPath.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
            this.textBox_recPath.Name = "textBox_recPath";
            this.textBox_recPath.Size = new System.Drawing.Size(524, 21);
            this.textBox_recPath.TabIndex = 0;
            this.textBox_recPath.TextChanged += new System.EventHandler(this.textBox_recPath_TextChanged);
            // 
            // button_findRecPath
            // 
            this.button_findRecPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_findRecPath.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.button_findRecPath.Location = new System.Drawing.Point(530, 3);
            this.button_findRecPath.Margin = new System.Windows.Forms.Padding(3, 3, 1, 3);
            this.button_findRecPath.Name = "button_findRecPath";
            this.button_findRecPath.Size = new System.Drawing.Size(33, 20);
            this.button_findRecPath.TabIndex = 1;
            this.button_findRecPath.Text = "...";
            this.button_findRecPath.Click += new System.EventHandler(this.button_findRecPath_Click);
            // 
            // timer_crossRefresh
            // 
            this.timer_crossRefresh.Interval = 500;
            this.timer_crossRefresh.Tick += new System.EventHandler(this.timer_crossRefresh_Tick);
            // 
            // splitContainer_main
            // 
            this.splitContainer_main.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.splitContainer_main.Location = new System.Drawing.Point(0, 33);
            this.splitContainer_main.Name = "splitContainer_main";
            this.splitContainer_main.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer_main.Panel1
            // 
            this.splitContainer_main.Panel1.Controls.Add(this.tabControl_record);
            // 
            // splitContainer_main.Panel2
            // 
            this.splitContainer_main.Panel2.Controls.Add(this.tabControl_bottom);
            this.splitContainer_main.Size = new System.Drawing.Size(564, 285);
            this.splitContainer_main.SplitterDistance = 209;
            this.splitContainer_main.TabIndex = 4;
            // 
            // tabControl_record
            // 
            this.tabControl_record.Controls.Add(this.tabPage_xml);
            this.tabControl_record.Controls.Add(this.tabPage_marc);
            this.tabControl_record.Controls.Add(this.tabPage_xmlText);
            this.tabControl_record.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl_record.Location = new System.Drawing.Point(0, 0);
            this.tabControl_record.Name = "tabControl_record";
            this.tabControl_record.SelectedIndex = 0;
            this.tabControl_record.Size = new System.Drawing.Size(564, 209);
            this.tabControl_record.TabIndex = 1;
            this.tabControl_record.SelectedIndexChanged += new System.EventHandler(this.tabControl_record_SelectedIndexChanged);
            // 
            // tabPage_xml
            // 
            this.tabPage_xml.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_xml.Controls.Add(this.XmlEditor);
            this.tabPage_xml.Location = new System.Drawing.Point(4, 22);
            this.tabPage_xml.Name = "tabPage_xml";
            this.tabPage_xml.Padding = new System.Windows.Forms.Padding(4);
            this.tabPage_xml.Size = new System.Drawing.Size(556, 183);
            this.tabPage_xml.TabIndex = 0;
            this.tabPage_xml.Text = "XML";
            this.tabPage_xml.UseVisualStyleBackColor = true;
            // 
            // XmlEditor
            // 
            this.XmlEditor.ActiveItem = null;
            this.XmlEditor.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.XmlEditor.Changed = true;
            this.XmlEditor.Dock = System.Windows.Forms.DockStyle.Fill;
            this.XmlEditor.DocumentOrgX = 0;
            this.XmlEditor.DocumentOrgY = 0;
            this.XmlEditor.LayoutStyle = DigitalPlatform.Xml.LayoutStyle.Horizontal;
            this.XmlEditor.Location = new System.Drawing.Point(4, 4);
            this.XmlEditor.Name = "XmlEditor";
            this.XmlEditor.Size = new System.Drawing.Size(548, 175);
            this.XmlEditor.TabIndex = 0;
            this.XmlEditor.Text = "XmlEditor";
            this.XmlEditor.Xml = "";
            this.XmlEditor.TextChanged += new System.EventHandler(this.xmlEditor_TextChanged);
            // 
            // tabPage_marc
            // 
            this.tabPage_marc.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_marc.Controls.Add(this.MarcEditor);
            this.tabPage_marc.Location = new System.Drawing.Point(4, 22);
            this.tabPage_marc.Name = "tabPage_marc";
            this.tabPage_marc.Padding = new System.Windows.Forms.Padding(4);
            this.tabPage_marc.Size = new System.Drawing.Size(556, 183);
            this.tabPage_marc.TabIndex = 1;
            this.tabPage_marc.Text = "MARC";
            this.tabPage_marc.UseVisualStyleBackColor = true;
            // 
            // MarcEditor
            // 
            this.MarcEditor.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.MarcEditor.CaptionFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.MarcEditor.Changed = true;
            this.MarcEditor.ContentBackColor = System.Drawing.SystemColors.Window;
            this.MarcEditor.ContentTextColor = System.Drawing.SystemColors.WindowText;
            this.MarcEditor.CurrentImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.MarcEditor.Dock = System.Windows.Forms.DockStyle.Fill;
            this.MarcEditor.DocumentOrgX = 0;
            this.MarcEditor.DocumentOrgY = 0;
            this.MarcEditor.FieldNameCaptionWidth = 100;
            this.MarcEditor.FixedSizeFont = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Bold);
            this.MarcEditor.FocusedField = null;
            this.MarcEditor.FocusedFieldIndex = -1;
            this.MarcEditor.HorzGridColor = System.Drawing.Color.LightGray;
            this.MarcEditor.IndicatorBackColor = System.Drawing.SystemColors.Window;
            this.MarcEditor.IndicatorBackColorDisabled = System.Drawing.SystemColors.Control;
            this.MarcEditor.IndicatorTextColor = System.Drawing.Color.Green;
            this.MarcEditor.Location = new System.Drawing.Point(4, 4);
            this.MarcEditor.Marc = "????????????????????????";
            this.MarcEditor.MarcDefDom = null;
            this.MarcEditor.Name = "MarcEditor";
            this.MarcEditor.NameBackColor = System.Drawing.SystemColors.Window;
            this.MarcEditor.NameCaptionBackColor = System.Drawing.SystemColors.Info;
            this.MarcEditor.NameCaptionTextColor = System.Drawing.SystemColors.InfoText;
            this.MarcEditor.NameTextColor = System.Drawing.Color.Blue;
            this.MarcEditor.ReadOnly = false;
            this.MarcEditor.SelectionStart = -1;
            this.MarcEditor.Size = new System.Drawing.Size(548, 175);
            this.MarcEditor.TabIndex = 0;
            this.MarcEditor.VertGridColor = System.Drawing.Color.LightGray;
            this.MarcEditor.GetConfigFile += new DigitalPlatform.Marc.GetConfigFileEventHandle(this.MarcEditor_GetConfigFile);
            this.MarcEditor.GetConfigDom += new DigitalPlatform.Marc.GetConfigDomEventHandle(this.MarcEditor_GetConfigDom);
            this.MarcEditor.TextChanged += new System.EventHandler(this.MarcEditor_TextChanged);
            // 
            // tabPage_xmlText
            // 
            this.tabPage_xmlText.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_xmlText.Controls.Add(this.textBox_xmlPureText);
            this.tabPage_xmlText.Location = new System.Drawing.Point(4, 22);
            this.tabPage_xmlText.Name = "tabPage_xmlText";
            this.tabPage_xmlText.Padding = new System.Windows.Forms.Padding(4);
            this.tabPage_xmlText.Size = new System.Drawing.Size(556, 183);
            this.tabPage_xmlText.TabIndex = 2;
            this.tabPage_xmlText.Text = "XML纯文本";
            this.tabPage_xmlText.UseVisualStyleBackColor = true;
            // 
            // textBox_xmlPureText
            // 
            this.textBox_xmlPureText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBox_xmlPureText.HideSelection = false;
            this.textBox_xmlPureText.Location = new System.Drawing.Point(4, 4);
            this.textBox_xmlPureText.MaxLength = 2000000000;
            this.textBox_xmlPureText.Multiline = true;
            this.textBox_xmlPureText.Name = "textBox_xmlPureText";
            this.textBox_xmlPureText.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.textBox_xmlPureText.Size = new System.Drawing.Size(548, 175);
            this.textBox_xmlPureText.TabIndex = 0;
            this.textBox_xmlPureText.TextChanged += new System.EventHandler(this.textBox_xmlPureText_TextChanged);
            // 
            // tabControl_bottom
            // 
            this.tabControl_bottom.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.tabControl_bottom.Controls.Add(this.tabPage_resFiles);
            this.tabControl_bottom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl_bottom.Location = new System.Drawing.Point(0, 0);
            this.tabControl_bottom.Margin = new System.Windows.Forms.Padding(3, 0, 3, 6);
            this.tabControl_bottom.Multiline = true;
            this.tabControl_bottom.Name = "tabControl_bottom";
            this.tabControl_bottom.SelectedIndex = 0;
            this.tabControl_bottom.Size = new System.Drawing.Size(564, 72);
            this.tabControl_bottom.TabIndex = 0;
            // 
            // tabPage_resFiles
            // 
            this.tabPage_resFiles.Controls.Add(this.listView_resFiles);
            this.tabPage_resFiles.Location = new System.Drawing.Point(4, 4);
            this.tabPage_resFiles.Name = "tabPage_resFiles";
            this.tabPage_resFiles.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage_resFiles.Size = new System.Drawing.Size(556, 46);
            this.tabPage_resFiles.TabIndex = 0;
            this.tabPage_resFiles.Text = "资源文件";
            this.tabPage_resFiles.UseVisualStyleBackColor = true;
            // 
            // listView_resFiles
            // 
            this.listView_resFiles.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.listView_resFiles.Changed = false;
            this.listView_resFiles.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listView_resFiles.FullRowSelect = true;
            this.listView_resFiles.HideSelection = false;
            this.listView_resFiles.Location = new System.Drawing.Point(3, 3);
            this.listView_resFiles.Name = "listView_resFiles";
            this.listView_resFiles.Size = new System.Drawing.Size(550, 40);
            this.listView_resFiles.TabIndex = 0;
            this.listView_resFiles.UseCompatibleStateImageBehavior = false;
            this.listView_resFiles.View = System.Windows.Forms.View.Details;
            // 
            // tableLayoutPanel_recpath
            // 
            this.tableLayoutPanel_recpath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.tableLayoutPanel_recpath.AutoSize = true;
            this.tableLayoutPanel_recpath.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel_recpath.ColumnCount = 2;
            this.tableLayoutPanel_recpath.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel_recpath.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel_recpath.Controls.Add(this.button_findRecPath, 1, 0);
            this.tableLayoutPanel_recpath.Controls.Add(this.textBox_recPath, 0, 0);
            this.tableLayoutPanel_recpath.Location = new System.Drawing.Point(0, 4);
            this.tableLayoutPanel_recpath.Margin = new System.Windows.Forms.Padding(0);
            this.tableLayoutPanel_recpath.Name = "tableLayoutPanel_recpath";
            this.tableLayoutPanel_recpath.RowCount = 1;
            this.tableLayoutPanel_recpath.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel_recpath.Size = new System.Drawing.Size(564, 27);
            this.tableLayoutPanel_recpath.TabIndex = 4;
            // 
            // DetailForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(562, 326);
            this.Controls.Add(this.splitContainer_main);
            this.Controls.Add(this.tableLayoutPanel_recpath);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "DetailForm";
            this.Text = "详细窗";
            this.Activated += new System.EventHandler(this.DetailForm_Activated);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.DetailForm_Closing);
            this.Closed += new System.EventHandler(this.DetailForm_Closed);
            this.Load += new System.EventHandler(this.DetailForm_Load);
            this.splitContainer_main.Panel1.ResumeLayout(false);
            this.splitContainer_main.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_main)).EndInit();
            this.splitContainer_main.ResumeLayout(false);
            this.tabControl_record.ResumeLayout(false);
            this.tabPage_xml.ResumeLayout(false);
            this.tabPage_marc.ResumeLayout(false);
            this.tabPage_xmlText.ResumeLayout(false);
            this.tabPage_xmlText.PerformLayout();
            this.tabControl_bottom.ResumeLayout(false);
            this.tabPage_resFiles.ResumeLayout(false);
            this.tableLayoutPanel_recpath.ResumeLayout(false);
            this.tableLayoutPanel_recpath.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

		}
Esempio n. 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="editor">MARC 编辑器</param>
		public Record(MarcEditor editor)
		{
			this.marcEditor = editor;
			this.Fields.record = this;

			// 初始化各区域宽度
			this.InitializeWidth();
		}