Ejemplo n.º 1
0
 private void btnClearSignature_Click(object sender, EventArgs e)
 {
     SignatureBox.ClearSignature();
 }
 private void btnSignature_Click(object sender, RoutedEventArgs e)
 {
     SignatureBox signBox = new SignatureBox();
     signBox.Owner = this;
     //signBox.callbackMethod = ShowSignature;
     signBox.ShowDialog();
 }
Ejemplo n.º 3
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(FormTPsign));
     this.imageListMain   = new System.Windows.Forms.ImageList(this.components);
     this.previewContr    = new System.Windows.Forms.PrintPreviewControl();
     this.panelSig        = new System.Windows.Forms.Panel();
     this.labelInvalidSig = new System.Windows.Forms.Label();
     this.butTopazSign    = new OpenDental.UI.Button();
     this.butClearSig     = new OpenDental.UI.Button();
     this.butCancel       = new OpenDental.UI.Button();
     this.butOK           = new OpenDental.UI.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.sigBox          = new OpenDental.UI.SignatureBox();
     this.ToolBarMain     = new OpenDental.UI.ODToolBar();
     this.panelSig.SuspendLayout();
     this.SuspendLayout();
     //
     // imageListMain
     //
     this.imageListMain.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream")));
     this.imageListMain.TransparentColor = System.Drawing.Color.Transparent;
     this.imageListMain.Images.SetKeyName(0, "");
     this.imageListMain.Images.SetKeyName(1, "");
     this.imageListMain.Images.SetKeyName(2, "");
     //
     // previewContr
     //
     this.previewContr.AutoZoom = false;
     this.previewContr.Location = new System.Drawing.Point(10, 41);
     this.previewContr.Name     = "previewContr";
     this.previewContr.Size     = new System.Drawing.Size(806, 423);
     this.previewContr.TabIndex = 6;
     //
     // panelSig
     //
     this.panelSig.Controls.Add(this.labelInvalidSig);
     this.panelSig.Controls.Add(this.butTopazSign);
     this.panelSig.Controls.Add(this.butClearSig);
     this.panelSig.Controls.Add(this.butCancel);
     this.panelSig.Controls.Add(this.butOK);
     this.panelSig.Controls.Add(this.label1);
     this.panelSig.Controls.Add(this.sigBox);
     this.panelSig.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panelSig.Location = new System.Drawing.Point(0, 562);
     this.panelSig.Name     = "panelSig";
     this.panelSig.Size     = new System.Drawing.Size(842, 92);
     this.panelSig.TabIndex = 92;
     //
     // labelInvalidSig
     //
     this.labelInvalidSig.BackColor = System.Drawing.SystemColors.Window;
     this.labelInvalidSig.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelInvalidSig.Location  = new System.Drawing.Point(251, 13);
     this.labelInvalidSig.Name      = "labelInvalidSig";
     this.labelInvalidSig.Size      = new System.Drawing.Size(196, 59);
     this.labelInvalidSig.TabIndex  = 99;
     this.labelInvalidSig.Text      = "Invalid Signature -  Document or note has changed since it was signed.";
     this.labelInvalidSig.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // butTopazSign
     //
     this.butTopazSign.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butTopazSign.Autosize            = true;
     this.butTopazSign.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butTopazSign.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butTopazSign.CornerRadius        = 4F;
     this.butTopazSign.Location            = new System.Drawing.Point(537, 35);
     this.butTopazSign.Name     = "butTopazSign";
     this.butTopazSign.Size     = new System.Drawing.Size(81, 25);
     this.butTopazSign.TabIndex = 98;
     this.butTopazSign.Text     = "Sign Topaz";
     this.butTopazSign.UseVisualStyleBackColor = true;
     this.butTopazSign.Click += new System.EventHandler(this.butTopazSign_Click);
     //
     // butClearSig
     //
     this.butClearSig.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClearSig.Autosize            = true;
     this.butClearSig.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClearSig.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClearSig.CornerRadius        = 4F;
     this.butClearSig.Location            = new System.Drawing.Point(537, 4);
     this.butClearSig.Name     = "butClearSig";
     this.butClearSig.Size     = new System.Drawing.Size(81, 25);
     this.butClearSig.TabIndex = 97;
     this.butClearSig.Text     = "Clear Sig";
     this.butClearSig.Click   += new System.EventHandler(this.butClearSig_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Autosize            = true;
     this.butCancel.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius        = 4F;
     this.butCancel.Location            = new System.Drawing.Point(741, 57);
     this.butCancel.Name     = "butCancel";
     this.butCancel.Size     = new System.Drawing.Size(75, 25);
     this.butCancel.TabIndex = 94;
     this.butCancel.Text     = "Cancel";
     this.butCancel.UseVisualStyleBackColor = true;
     this.butCancel.Click += new System.EventHandler(this.butCancel_Click);
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Autosize            = true;
     this.butOK.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius        = 4F;
     this.butOK.Location            = new System.Drawing.Point(741, 25);
     this.butOK.Name     = "butOK";
     this.butOK.Size     = new System.Drawing.Size(75, 25);
     this.butOK.TabIndex = 93;
     this.butOK.Text     = "OK";
     this.butOK.UseVisualStyleBackColor = true;
     this.butOK.Click += new System.EventHandler(this.butOK_Click);
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(7, 4);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(153, 41);
     this.label1.TabIndex  = 92;
     this.label1.Text      = "Please Sign Here --->";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // sigBox
     //
     this.sigBox.Location = new System.Drawing.Point(162, 3);
     this.sigBox.Name     = "sigBox";
     this.sigBox.Size     = new System.Drawing.Size(362, 79);
     this.sigBox.TabIndex = 91;
     this.sigBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sigBox_MouseUp);
     //
     // ToolBarMain
     //
     this.ToolBarMain.Dock         = System.Windows.Forms.DockStyle.Top;
     this.ToolBarMain.ImageList    = this.imageListMain;
     this.ToolBarMain.Location     = new System.Drawing.Point(0, 0);
     this.ToolBarMain.Name         = "ToolBarMain";
     this.ToolBarMain.Size         = new System.Drawing.Size(842, 25);
     this.ToolBarMain.TabIndex     = 5;
     this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick);
     //
     // FormTPsign
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(842, 654);
     this.Controls.Add(this.panelSig);
     this.Controls.Add(this.ToolBarMain);
     this.Controls.Add(this.previewContr);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "FormTPsign";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Report";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.FormTPsign_Load);
     this.Layout       += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout);
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormTPsign_FormClosing);
     this.panelSig.ResumeLayout(false);
     this.ResumeLayout(false);
 }