home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / formrect.cs < prev    next >
Encoding:
Text File  |  2004-07-15  |  3.8 KB  |  130 lines

  1. //******************************************************************'
  2. //*                                                                *'
  3. //*                      TurboCAD for Windows                      *'
  4. //*                   Copyright (c) 1993 - 2004                    *'
  5. //*             International Microcomputer Software, Inc.         *'
  6. //*                            (IMSI)                              *'
  7. //*                      All rights reserved.                      *'
  8. //*                                                                *'
  9. //******************************************************************'
  10. using System;
  11. using System.Drawing;
  12. using System.Collections;
  13. using System.ComponentModel;
  14. using System.Windows.Forms;
  15.  
  16. namespace CSharpRoundRect
  17. {
  18.     /// <summary>
  19.     /// Summary description for FormRect.
  20.     /// </summary>
  21.     public class frmRRect : System.Windows.Forms.Form
  22.     {
  23.         private System.Windows.Forms.Button cmOK;
  24.         private System.Windows.Forms.Button cmCancel;
  25.         internal System.Windows.Forms.TextBox tbRoundness;
  26.         internal System.Windows.Forms.Label Label5;
  27.         /// <summary>
  28.         /// Required designer variable.
  29.         /// </summary>
  30.         private System.ComponentModel.Container components = null;
  31.  
  32.         public bool bCanceled;
  33.  
  34.         public frmRRect()
  35.         {
  36.             //
  37.             // Required for Windows Form Designer support
  38.             //
  39.             InitializeComponent();
  40.  
  41.             //
  42.             // TODO: Add any constructor code after InitializeComponent call
  43.             //
  44.             bCanceled = true;
  45.         }
  46.  
  47.         /// <summary>
  48.         /// Clean up any resources being used.
  49.         /// </summary>
  50.         protected override void Dispose( bool disposing )
  51.         {
  52.             if( disposing )
  53.             {
  54.                 if(components != null)
  55.                 {
  56.                     components.Dispose();
  57.                 }
  58.             }
  59.             base.Dispose( disposing );
  60.         }
  61.  
  62.         #region Windows Form Designer generated code
  63.         /// <summary>
  64.         /// Required method for Designer support - do not modify
  65.         /// the contents of this method with the code editor.
  66.         /// </summary>
  67.         private void InitializeComponent()
  68.         {
  69.             this.cmOK = new System.Windows.Forms.Button();
  70.             this.cmCancel = new System.Windows.Forms.Button();
  71.             this.tbRoundness = new System.Windows.Forms.TextBox();
  72.             this.Label5 = new System.Windows.Forms.Label();
  73.             this.SuspendLayout();
  74.             // 
  75.             // cmOK
  76.             // 
  77.             this.cmOK.Location = new System.Drawing.Point(112, 56);
  78.             this.cmOK.Name = "cmOK";
  79.             this.cmOK.Size = new System.Drawing.Size(88, 24);
  80.             this.cmOK.TabIndex = 0;
  81.             this.cmOK.Text = "OK";
  82.             this.cmOK.Click += new System.EventHandler(this.cmOK_Click);
  83.             // 
  84.             // cmCancel
  85.             // 
  86.             this.cmCancel.Location = new System.Drawing.Point(8, 56);
  87.             this.cmCancel.Name = "cmCancel";
  88.             this.cmCancel.Size = new System.Drawing.Size(88, 24);
  89.             this.cmCancel.TabIndex = 0;
  90.             this.cmCancel.Text = "Cancel";
  91.             // 
  92.             // tbRoundness
  93.             // 
  94.             this.tbRoundness.Location = new System.Drawing.Point(104, 14);
  95.             this.tbRoundness.Name = "tbRoundness";
  96.             this.tbRoundness.Size = new System.Drawing.Size(96, 20);
  97.             this.tbRoundness.TabIndex = 9;
  98.             this.tbRoundness.Text = "0";
  99.             // 
  100.             // Label5
  101.             // 
  102.             this.Label5.Location = new System.Drawing.Point(16, 16);
  103.             this.Label5.Name = "Label5";
  104.             this.Label5.Size = new System.Drawing.Size(88, 16);
  105.             this.Label5.TabIndex = 10;
  106.             this.Label5.Text = "Roundness:";
  107.             // 
  108.             // frmRRect
  109.             // 
  110.             this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  111.             this.ClientSize = new System.Drawing.Size(208, 93);
  112.             this.Controls.Add(this.Label5);
  113.             this.Controls.Add(this.tbRoundness);
  114.             this.Controls.Add(this.cmOK);
  115.             this.Controls.Add(this.cmCancel);
  116.             this.Name = "frmRRect";
  117.             this.Text = "FormRect";
  118.             this.ResumeLayout(false);
  119.  
  120.         }
  121.         #endregion
  122.  
  123.         private void cmOK_Click(object sender, System.EventArgs e)
  124.         {
  125.             bCanceled = false;
  126.             frmRRect.ActiveForm.Hide ();
  127.         }
  128.     }
  129. }
  130.