Ejemplo n.º 1
0
        public void Add(Form1.cprinter p, string name, string error)
        {
            RowStyles.Add(new RowStyle(SizeType.Absolute, 65F));
            RowCount++;
            var msng3 = new msng(p, name, error);

            Controls.Add(msng3, 0, RowCount - 1);

            //var q = new msng(name, error) {Location = new System.Drawing.Point( };
            //msngs.Add(q);
        }
Ejemplo n.º 2
0
 public msng(Form1.cprinter p, string name, string error)
 {
     print           = p;
     Name            = name;
     Error           = error;
     Visible         = true;
     Dock            = DockStyle.Fill;
     Text            = name + " " + error;
     Summ.Parent     = this;
     Summ.Dock       = DockStyle.Top;
     Summ.KeyPress  += Summ_KeyPress;
     Ok.Parent       = this;
     Ok.Location     = new System.Drawing.Point(0, Summ.Bottom);
     Ok.Size         = new System.Drawing.Size(55, 22);
     Ok.Click       += Ok_Click;
     Cancel.Parent   = this;
     Cancel.Location = new System.Drawing.Point(Ok.Right, Summ.Bottom);
     Cancel.Size     = new System.Drawing.Size(55, 22);
     Cancel.Click   += Cancel_Click;
 }