コード例 #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.pbIcon       = new VisionInfoSolutionLibrary.PictureBox();
     this.lblKujdes    = new System.Windows.Forms.Label();
     this.lblNrDhomash = new System.Windows.Forms.Label();
     this.numNrDhomash = new VisionInfoSolutionLibrary.NumericBox();
     this.btnOK        = new System.Windows.Forms.Button();
     this.btnAnullo    = new System.Windows.Forms.Button();
     this.error1       = new VisionInfoSolutionLibrary.ErrorProvider();
     this.cmCopyPaste  = new VisionInfoSolutionLibrary.ContextMenu();
     this.mKopjo       = new System.Windows.Forms.MenuItem();
     this.mPrej        = new System.Windows.Forms.MenuItem();
     this.mNgjit       = new System.Windows.Forms.MenuItem();
     this.menuItem4    = new System.Windows.Forms.MenuItem();
     this.mFshi        = new System.Windows.Forms.MenuItem();
     this.mPerzgjidh   = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // pbIcon
     //
     this.pbIcon.Location = new System.Drawing.Point(12, 20);
     this.pbIcon.Name     = "pbIcon";
     this.pbIcon.Size     = new System.Drawing.Size(48, 40);
     this.pbIcon.TabIndex = 0;
     this.pbIcon.TabStop  = false;
     this.pbIcon.Paint   += new System.Windows.Forms.PaintEventHandler(this.pbIcon_Paint);
     //
     // lblKujdes
     //
     this.lblKujdes.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblKujdes.Location  = new System.Drawing.Point(64, 12);
     this.lblKujdes.Name      = "lblKujdes";
     this.lblKujdes.Size      = new System.Drawing.Size(320, 56);
     this.lblKujdes.TabIndex  = 1;
     this.lblKujdes.Text      = "Kujdes!\r\nJu po ndryshoni numrin e dhomave te hotelit.\r\nNese rrisni numrin e dhoma" +
                                "ve atehere duhet te kerkoni nje tjeter numer aktivizimi per programin";
     //
     // lblNrDhomash
     //
     this.lblNrDhomash.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblNrDhomash.Location  = new System.Drawing.Point(16, 92);
     this.lblNrDhomash.Name      = "lblNrDhomash";
     this.lblNrDhomash.Size      = new System.Drawing.Size(160, 23);
     this.lblNrDhomash.TabIndex  = 2;
     this.lblNrDhomash.Text      = "Jepni numrin e ri te dhomave:";
     //
     // numNrDhomash
     //
     this.numNrDhomash.AutoSize                = false;
     this.numNrDhomash.ContextMenu             = this.cmCopyPaste;
     this.numNrDhomash.DefaultErrorMessage     = "";
     this.numNrDhomash.DesabledControlColor    = System.Drawing.SystemColors.ControlLight;
     this.numNrDhomash.DigitsAfterDecimalPoint = 0;
     this.numNrDhomash.FixedLength             = false;
     this.numNrDhomash.IsValid              = false;
     this.numNrDhomash.KeepFocus            = false;
     this.numNrDhomash.Location             = new System.Drawing.Point(180, 92);
     this.numNrDhomash.Name                 = "numNrDhomash";
     this.numNrDhomash.OnlyPositive         = true;
     this.numNrDhomash.Required             = false;
     this.numNrDhomash.RequiredControlColor = System.Drawing.Color.White;
     this.numNrDhomash.Size                 = new System.Drawing.Size(92, 20);
     this.numNrDhomash.TabIndex             = 3;
     this.numNrDhomash.Text                 = "";
     this.numNrDhomash.TextAlign            = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // btnOK
     //
     this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnOK.Location  = new System.Drawing.Point(60, 140);
     this.btnOK.Name      = "btnOK";
     this.btnOK.TabIndex  = 4;
     this.btnOK.Text      = "OK";
     this.btnOK.Click    += new System.EventHandler(this.btnOK_Click);
     //
     // btnAnullo
     //
     this.btnAnullo.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnAnullo.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.btnAnullo.Location     = new System.Drawing.Point(216, 140);
     this.btnAnullo.Name         = "btnAnullo";
     this.btnAnullo.TabIndex     = 5;
     this.btnAnullo.Text         = "Anullo";
     //
     // error1
     //
     this.error1.ContainerControl = this;
     //
     // cmCopyPaste
     //
     this.cmCopyPaste.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mKopjo,
         this.mPrej,
         this.mNgjit,
         this.menuItem4,
         this.mFshi,
         this.mPerzgjidh
     });
     this.cmCopyPaste.Popup += new System.EventHandler(this.contextMenu1_Popup);
     //
     // mKopjo
     //
     this.mKopjo.Index  = 0;
     this.mKopjo.Text   = "Kopjo";
     this.mKopjo.Click += new System.EventHandler(this.mKopjo_Click);
     //
     // mPrej
     //
     this.mPrej.Index  = 1;
     this.mPrej.Text   = "Prej";
     this.mPrej.Click += new System.EventHandler(this.mPrej_Click);
     //
     // mNgjit
     //
     this.mNgjit.Index  = 2;
     this.mNgjit.Text   = "Ngjit";
     this.mNgjit.Click += new System.EventHandler(this.mNgjit_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index = 3;
     this.menuItem4.Text  = "-";
     //
     // mFshi
     //
     this.mFshi.Index  = 4;
     this.mFshi.Text   = "Fshi";
     this.mFshi.Click += new System.EventHandler(this.mFshi_Click);
     //
     // mPerzgjidh
     //
     this.mPerzgjidh.Index  = 5;
     this.mPerzgjidh.Text   = "Perzgjidh te gjithen";
     this.mPerzgjidh.Click += new System.EventHandler(this.mPerzgjidh_Click);
     //
     // NumriDhomave
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnAnullo;
     this.ClientSize        = new System.Drawing.Size(414, 180);
     this.Controls.Add(this.btnAnullo);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.numNrDhomash);
     this.Controls.Add(this.lblNrDhomash);
     this.Controls.Add(this.lblKujdes);
     this.Controls.Add(this.pbIcon);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "NumriDhomave";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Ndryshimi i numrit te dhomave";
     this.Load           += new System.EventHandler(this.NumriDhomave_Load);
     this.ResumeLayout(false);
 }
コード例 #2
0
 private void InitializeComponentFirstTime()
 {
     this.pbIcon       = new VisionInfoSolutionLibrary.PictureBox();
     this.lblKujdes    = new System.Windows.Forms.Label();
     this.lblNrDhomash = new System.Windows.Forms.Label();
     this.numNrDhomash = new VisionInfoSolutionLibrary.NumericBox();
     this.btnOK        = new System.Windows.Forms.Button();
     this.btnAnullo    = new System.Windows.Forms.Button();
     this.error1       = new VisionInfoSolutionLibrary.ErrorProvider();
     this.SuspendLayout();
     //
     // pbIcon
     //
     this.pbIcon.Location = new System.Drawing.Point(12, 16);
     this.pbIcon.Name     = "pbIcon";
     this.pbIcon.Size     = new System.Drawing.Size(48, 40);
     this.pbIcon.TabIndex = 0;
     this.pbIcon.TabStop  = false;
     this.pbIcon.Paint   += new System.Windows.Forms.PaintEventHandler(this.pbIcon_Paint);
     //
     // lblKujdes
     //
     this.lblKujdes.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblKujdes.Location  = new System.Drawing.Point(408, 140);
     this.lblKujdes.Name      = "lblKujdes";
     this.lblKujdes.Size      = new System.Drawing.Size(320, 56);
     this.lblKujdes.TabIndex  = 1;
     this.lblKujdes.Text      = "Kujdes!\r\nJu po ndryshoni numrin e dhomave te hotelit.\r\nNese rrisni numrin e dhoma" +
                                "ve atehere duhet te kerkoni nje tjeter numer aktivizimi per programin";
     //
     // lblNrDhomash
     //
     this.lblNrDhomash.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.lblNrDhomash.Location  = new System.Drawing.Point(88, 16);
     this.lblNrDhomash.Name      = "lblNrDhomash";
     this.lblNrDhomash.Size      = new System.Drawing.Size(160, 23);
     this.lblNrDhomash.TabIndex  = 2;
     this.lblNrDhomash.Text      = "Jepni numrin e ri te dhomave:";
     this.lblNrDhomash.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // numNrDhomash
     //
     this.numNrDhomash.AutoSize                = false;
     this.numNrDhomash.DefaultErrorMessage     = "";
     this.numNrDhomash.DesabledControlColor    = System.Drawing.SystemColors.ControlLight;
     this.numNrDhomash.DigitsAfterDecimalPoint = 0;
     this.numNrDhomash.FixedLength             = false;
     this.numNrDhomash.IsValid              = true;
     this.numNrDhomash.KeepFocus            = false;
     this.numNrDhomash.Location             = new System.Drawing.Point(112, 44);
     this.numNrDhomash.Name                 = "numNrDhomash";
     this.numNrDhomash.Required             = false;
     this.numNrDhomash.RequiredControlColor = System.Drawing.Color.White;
     this.numNrDhomash.Size                 = new System.Drawing.Size(92, 20);
     this.numNrDhomash.TabIndex             = 3;
     this.numNrDhomash.Text                 = "";
     this.numNrDhomash.TextAlign            = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // btnOK
     //
     this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnOK.Location  = new System.Drawing.Point(52, 84);
     this.btnOK.Name      = "btnOK";
     this.btnOK.TabIndex  = 4;
     this.btnOK.Text      = "OK";
     this.btnOK.Click    += new System.EventHandler(this.btnOK_Click);
     //
     // btnAnullo
     //
     this.btnAnullo.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnAnullo.Enabled      = true;
     this.btnAnullo.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.btnAnullo.Location     = new System.Drawing.Point(184, 84);
     this.btnAnullo.Name         = "btnAnullo";
     this.btnAnullo.TabIndex     = 5;
     this.btnAnullo.Text         = "Anullo";
     //
     // error1
     //
     this.error1.ContainerControl = this;
     //
     // NumriDhomave
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnAnullo;
     this.ClientSize        = new System.Drawing.Size(318, 116);
     this.ControlBox        = false;
     this.Controls.Add(this.btnAnullo);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.numNrDhomash);
     this.Controls.Add(this.lblNrDhomash);
     this.Controls.Add(this.lblKujdes);
     this.Controls.Add(this.pbIcon);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "NumriDhomave";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Ndryshimi i numrit te dhomave";
     this.Load           += new System.EventHandler(this.NumriDhomave_Load);
     this.ResumeLayout(false);
 }