protected void AddColumns() { ColumnDefinitions.Clear(); Children.Clear(); ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width / 20d) }); //Alert signal //ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width / 20d)}); //Source //ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width / 20d)}); //Type ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width * (2 / 20d)) }); //ID ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width * (2 / 20d)) }); //MID ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width * (9d / 20d)) }); //Component ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width * (4d / 20d)) }); //Mode string ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(Width * (2d / 20d)) }); //Time Stamp AddAlertSignal(); //AddColumn(ref SourceBlock, message.SourceString, 1); //AddColumn(ref TypeBlock, message.TypeString, 2); AddColumn(ref IDBlock, message.IDString, 1); AddColumn(ref MIDBlock, message.MidString, 2); AddColumn(ref ComponentBlock, message.Component, 3); AddColumn(ref ModeBlock, message.FmiString, 4); AddColumn(ref DateBlock, message.TimeStamp.ToString("h:mm"), 5); //AddButton(); //SourceBlock.ScaleText(Width / 20d, Height); //TypeBlock.ScaleText(Width / 20d, Height); IDBlock.ScaleText(Width / 20d, Height); MIDBlock.ScaleText(Width / 20d, Height); ComponentBlock.ScaleText(Width * (9d / 20d), Height); ModeBlock.ScaleText(Width * (5d / 20d), Height); DateBlock.ScaleText(Width * (3d / 20d), Height); Children.BalanceTextBlocks(); }
/// <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(PropertiesDBDocDialog)); this.buttonEdit = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.number = new System.Windows.Forms.TextBox(); this.groupBoxDocument = new System.Windows.Forms.GroupBox(); this.textBoxName = new System.Windows.Forms.TextBox(); this.checkBoxNoNumber = new System.Windows.Forms.CheckBox(); this.docTypeBlock = new Kesco.Lib.Win.Document.Blocks.DocTypeBlock(); this.dateBlock = new Kesco.Lib.Win.Document.Blocks.DateBlock(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.checkBoxName = new System.Windows.Forms.CheckBox(); this.description = new System.Windows.Forms.TextBox(); this.groupBoxPersons = new System.Windows.Forms.GroupBox(); this.personBlock = new Kesco.Lib.Win.Document.Blocks.PersonBlock(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.buttonLook = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label(); this.lblEditor = new System.Windows.Forms.Label(); this.lblEdited = new System.Windows.Forms.Label(); this.checkBoxProtected = new System.Windows.Forms.CheckBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.newWindowDocumentButton = new Kesco.Lib.Win.Document.Controls.NewWindowDocumentButton(this.components); this.lblDocAurtor = new System.Windows.Forms.Label(); this.lblDocCreateDate = new System.Windows.Forms.Label(); this.groupBoxDocument.SuspendLayout(); this.groupBoxPersons.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // buttonEdit // resources.ApplyResources(this.buttonEdit, "buttonEdit"); this.buttonEdit.Name = "buttonEdit"; this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click); // // buttonOK // resources.ApplyResources(this.buttonOK, "buttonOK"); this.buttonOK.Name = "buttonOK"; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // // buttonCancel // resources.ApplyResources(this.buttonCancel, "buttonCancel"); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; // // number // resources.ApplyResources(this.number, "number"); this.number.Name = "number"; // // groupBoxDocument // this.groupBoxDocument.Controls.Add(this.textBoxName); this.groupBoxDocument.Controls.Add(this.checkBoxNoNumber); this.groupBoxDocument.Controls.Add(this.docTypeBlock); this.groupBoxDocument.Controls.Add(this.dateBlock); this.groupBoxDocument.Controls.Add(this.number); this.groupBoxDocument.Controls.Add(this.label1); this.groupBoxDocument.Controls.Add(this.label2); this.groupBoxDocument.Controls.Add(this.label3); this.groupBoxDocument.Controls.Add(this.checkBoxName); resources.ApplyResources(this.groupBoxDocument, "groupBoxDocument"); this.groupBoxDocument.Name = "groupBoxDocument"; this.groupBoxDocument.TabStop = false; // // textBoxName // resources.ApplyResources(this.textBoxName, "textBoxName"); this.textBoxName.Name = "textBoxName"; this.toolTip1.SetToolTip(this.textBoxName, resources.GetString("textBoxName.ToolTip")); // // checkBoxNoNumber // resources.ApplyResources(this.checkBoxNoNumber, "checkBoxNoNumber"); this.checkBoxNoNumber.Name = "checkBoxNoNumber"; this.checkBoxNoNumber.UseVisualStyleBackColor = true; this.checkBoxNoNumber.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // docTypeBlock // this.docTypeBlock.ID = 0; resources.ApplyResources(this.docTypeBlock, "docTypeBlock"); this.docTypeBlock.Name = "docTypeBlock"; this.docTypeBlock.Selected += new Kesco.Lib.Win.Document.Blocks.BlockEventHandler(this.docTypeBlock_Selected); this.docTypeBlock.DocTypeTextChanged += new System.EventHandler(this.docTypeBlock_DocTypeTextChanged); // // dateBlock // resources.ApplyResources(this.dateBlock, "dateBlock"); this.dateBlock.Name = "dateBlock"; this.dateBlock.Leave += new System.EventHandler(this.dateBlock_Leave); // // label2 // resources.ApplyResources(this.label2, "label2"); this.label2.Name = "label2"; // // label3 // resources.ApplyResources(this.label3, "label3"); this.label3.Name = "label3"; // // checkBoxName // resources.ApplyResources(this.checkBoxName, "checkBoxName"); this.checkBoxName.Name = "checkBoxName"; this.toolTip1.SetToolTip(this.checkBoxName, resources.GetString("checkBoxName.ToolTip")); this.checkBoxName.UseVisualStyleBackColor = true; this.checkBoxName.CheckedChanged += new System.EventHandler(this.checkBoxName_CheckedChanged); // // description // resources.ApplyResources(this.description, "description"); this.description.Name = "description"; // // groupBoxPersons // this.groupBoxPersons.Controls.Add(this.personBlock); resources.ApplyResources(this.groupBoxPersons, "groupBoxPersons"); this.groupBoxPersons.Name = "groupBoxPersons"; this.groupBoxPersons.TabStop = false; // // personBlock // this.personBlock.Able = true; resources.ApplyResources(this.personBlock, "personBlock"); this.personBlock.Name = "personBlock"; // // groupBox1 // this.groupBox1.Controls.Add(this.buttonLook); this.groupBox1.Controls.Add(this.label5); resources.ApplyResources(this.groupBox1, "groupBox1"); this.groupBox1.Name = "groupBox1"; this.groupBox1.TabStop = false; // // buttonLook // resources.ApplyResources(this.buttonLook, "buttonLook"); this.buttonLook.Name = "buttonLook"; this.buttonLook.Click += new System.EventHandler(this.buttonLook_Click); // // label5 // resources.ApplyResources(this.label5, "label5"); this.label5.Name = "label5"; // // lblEditor // resources.ApplyResources(this.lblEditor, "lblEditor"); this.lblEditor.Name = "lblEditor"; // // lblEdited // resources.ApplyResources(this.lblEdited, "lblEdited"); this.lblEdited.Name = "lblEdited"; // // checkBoxProtected // resources.ApplyResources(this.checkBoxProtected, "checkBoxProtected"); this.checkBoxProtected.Name = "checkBoxProtected"; // // groupBox2 // this.groupBox2.Controls.Add(this.description); resources.ApplyResources(this.groupBox2, "groupBox2"); this.groupBox2.Name = "groupBox2"; this.groupBox2.TabStop = false; // // newWindowDocumentButton // resources.ApplyResources(this.newWindowDocumentButton, "newWindowDocumentButton"); this.newWindowDocumentButton.Name = "newWindowDocumentButton"; this.newWindowDocumentButton.TabStop = false; this.newWindowDocumentButton.UseMnemonic = false; this.newWindowDocumentButton.UseVisualStyleBackColor = true; // // lblDocAurtor // resources.ApplyResources(this.lblDocAurtor, "lblDocAurtor"); this.lblDocAurtor.Name = "lblDocAurtor"; // // lblDocCreateDate // resources.ApplyResources(this.lblDocCreateDate, "lblDocCreateDate"); this.lblDocCreateDate.Name = "lblDocCreateDate"; // // PropertiesDBDocDialog // resources.ApplyResources(this, "$this"); this.CancelButton = this.buttonCancel; this.Controls.Add(this.lblDocAurtor); this.Controls.Add(this.lblDocCreateDate); this.Controls.Add(this.newWindowDocumentButton); this.Controls.Add(this.groupBox2); this.Controls.Add(this.checkBoxProtected); this.Controls.Add(this.lblEditor); this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBoxPersons); this.Controls.Add(this.groupBoxDocument); this.Controls.Add(this.buttonEdit); this.Controls.Add(this.buttonOK); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.lblEdited); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.KeyPreview = true; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "PropertiesDBDocDialog"; this.Load += new System.EventHandler(this.DocProperties_Load); this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PropertiesDBDocDialog_KeyUp); this.groupBoxDocument.ResumeLayout(false); this.groupBoxDocument.PerformLayout(); this.groupBoxPersons.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.ResumeLayout(false); }