Exemplo n.º 1
0
 private void InitializeComponent()
 {
     this.pictureBox1   = new System.Windows.Forms.PictureBox();
     this.richTextBox1  = new System.Windows.Forms.RichTextBox();
     this.panel3        = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.okButton1     = new Atiran.UI.WindowsForms.Controls.Buttons.OkButton();
     this.cancelButton1 = new Atiran.UI.WindowsForms.Controls.Buttons.CancelButton();
     this.panel1        = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.label1        = new Atiran.UI.WindowsForms.Controls.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.Location = new System.Drawing.Point(388, 52);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(51, 50);
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop  = false;
     //
     // richTextBox1
     //
     this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.richTextBox1.BorderStyle      = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Font             = new System.Drawing.Font("IRANSans(FaNum)", 10.75F);
     this.richTextBox1.Location         = new System.Drawing.Point(23, 69);
     this.richTextBox1.Name             = "richTextBox1";
     this.richTextBox1.RightToLeft      = System.Windows.Forms.RightToLeft.Yes;
     this.richTextBox1.ScrollBars       = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.richTextBox1.Size             = new System.Drawing.Size(343, 57);
     this.richTextBox1.TabIndex         = 18;
     this.richTextBox1.Text             = "";
     this.richTextBox1.ContentsResized += new System.Windows.Forms.ContentsResizedEventHandler(this.richTextBox1_ContentsResized);
     this.richTextBox1.Enter           += new System.EventHandler(this.richTextBox1_Enter);
     this.richTextBox1.KeyDown         += new System.Windows.Forms.KeyEventHandler(this.okButton1_KeyDown);
     //
     // panel3
     //
     this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.panel3.Controls.Add(this.okButton1);
     this.panel3.Controls.Add(this.cancelButton1);
     this.panel3.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel3.Location = new System.Drawing.Point(0, 136);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(232, 47);
     this.panel3.TabIndex = 19;
     //
     // okButton1
     //
     this.okButton1.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.okButton1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(142)))), ((int)(((byte)(174)))));
     this.okButton1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.okButton1.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.okButton1.ForeColor               = System.Drawing.Color.White;
     this.okButton1.Location                = new System.Drawing.Point(108, 2);
     this.okButton1.Name                    = "okButton1";
     this.okButton1.NextControl             = null;
     this.okButton1.Size                    = new System.Drawing.Size(81, 34);
     this.okButton1.TabIndex                = 18;
     this.okButton1.Text                    = "بلي";
     this.okButton1.UseVisualStyleBackColor = false;
     this.okButton1.Click                  += new System.EventHandler(this.okButton1_Click);
     this.okButton1.KeyDown                += new System.Windows.Forms.KeyEventHandler(this.okButton1_KeyDown);
     //
     // cancelButton1
     //
     this.cancelButton1.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cancelButton1.BackColor               = System.Drawing.Color.White;
     this.cancelButton1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.cancelButton1.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.cancelButton1.ForeColor               = System.Drawing.Color.Gray;
     this.cancelButton1.Location                = new System.Drawing.Point(23, 2);
     this.cancelButton1.Name                    = "cancelButton1";
     this.cancelButton1.NextControl             = null;
     this.cancelButton1.Size                    = new System.Drawing.Size(81, 34);
     this.cancelButton1.TabIndex                = 2;
     this.cancelButton1.Text                    = "خير";
     this.cancelButton1.UseVisualStyleBackColor = false;
     this.cancelButton1.Click                  += new System.EventHandler(this.cancelButton1_Click);
     this.cancelButton1.KeyDown                += new System.Windows.Forms.KeyEventHandler(this.okButton1_KeyDown);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(193)))), ((int)(((byte)(7)))));
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(462, 28);
     this.panel1.TabIndex = 17;
     //
     // label1
     //
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.label1.ForeColor   = System.Drawing.Color.Black;
     this.label1.Location    = new System.Drawing.Point(294, 0);
     this.label1.Name        = "label1";
     this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label1.Size        = new System.Drawing.Size(156, 25);
     this.label1.TabIndex    = 11;
     this.label1.Text        = "پيام";
     this.label1.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // MessageBoxWarning
     //
     this.BackColor  = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(462, 186);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.pictureBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "MessageBoxWarning";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.CustomMessageForm_Load);
     this.Shown          += new System.EventHandler(this.CustomMessageForm_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 2
0
 private void InitializeComponent()
 {
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.panel2       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.okButton1    = new Atiran.UI.WindowsForms.Controls.Buttons.OkButton();
     this.panel1       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.label2       = new Atiran.UI.WindowsForms.Controls.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.Location = new System.Drawing.Point(383, 58);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(52, 49);
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop  = false;
     //
     // richTextBox1
     //
     this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.richTextBox1.BorderStyle      = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Font             = new System.Drawing.Font("IRANSans(FaNum)", 10.75F);
     this.richTextBox1.Location         = new System.Drawing.Point(28, 70);
     this.richTextBox1.Name             = "richTextBox1";
     this.richTextBox1.RightToLeft      = System.Windows.Forms.RightToLeft.Yes;
     this.richTextBox1.ScrollBars       = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.richTextBox1.Size             = new System.Drawing.Size(333, 57);
     this.richTextBox1.TabIndex         = 15;
     this.richTextBox1.Text             = "";
     this.richTextBox1.ContentsResized += new System.Windows.Forms.ContentsResizedEventHandler(this.richTextBox1_ContentsResized);
     this.richTextBox1.Enter           += new System.EventHandler(this.richTextBox1_Enter);
     this.richTextBox1.KeyDown         += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
     //
     // panel2
     //
     this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.panel2.Controls.Add(this.okButton1);
     this.panel2.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel2.Location = new System.Drawing.Point(0, 133);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(200, 49);
     this.panel2.TabIndex = 0;
     //
     // okButton1
     //
     this.okButton1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(142)))), ((int)(((byte)(174)))));
     this.okButton1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.okButton1.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.okButton1.ForeColor               = System.Drawing.Color.White;
     this.okButton1.Location                = new System.Drawing.Point(28, 3);
     this.okButton1.Name                    = "okButton1";
     this.okButton1.NextControl             = null;
     this.okButton1.Size                    = new System.Drawing.Size(81, 34);
     this.okButton1.TabIndex                = 1;
     this.okButton1.Text                    = "تاييد";
     this.okButton1.UseVisualStyleBackColor = false;
     this.okButton1.Click                  += new System.EventHandler(this.okButton1_Click);
     this.okButton1.KeyDown                += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(101)))), ((int)(((byte)(192)))));
     this.panel1.Controls.Add(this.label2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(462, 28);
     this.panel1.TabIndex = 16;
     //
     // label2
     //
     this.label2.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor   = System.Drawing.Color.White;
     this.label2.Location    = new System.Drawing.Point(364, 1);
     this.label2.Name        = "label2";
     this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label2.Size        = new System.Drawing.Size(95, 25);
     this.label2.TabIndex    = 11;
     this.label2.Text        = "پيام";
     this.label2.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // MessageBoxInfo
     //
     this.BackColor  = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(462, 186);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.pictureBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "MessageBoxInfo";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.MessageBoxInfo_Load);
     this.Shown          += new System.EventHandler(this.CustomMessageForm_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 3
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MessageBoxError));
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.panel1       = new System.Windows.Forms.Panel();
     this.label2       = new PersianUI.Controls.Label();
     this.panel2       = new System.Windows.Forms.Panel();
     this.okButton1    = new PersianUI.Controls.Buttons.OkButton();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(383, 50);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(57, 53);
     this.pictureBox1.TabIndex = 10;
     this.pictureBox1.TabStop  = false;
     //
     // richTextBox1
     //
     this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.richTextBox1.BorderStyle      = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.Font             = new System.Drawing.Font("IRANSans(FaNum)", 10.75F);
     this.richTextBox1.Location         = new System.Drawing.Point(27, 66);
     this.richTextBox1.Name             = "richTextBox1";
     this.richTextBox1.RightToLeft      = System.Windows.Forms.RightToLeft.Yes;
     this.richTextBox1.ScrollBars       = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.richTextBox1.Size             = new System.Drawing.Size(337, 66);
     this.richTextBox1.TabIndex         = 14;
     this.richTextBox1.Text             = "";
     this.richTextBox1.ContentsResized += new System.Windows.Forms.ContentsResizedEventHandler(this.richTextBox1_ContentsResized);
     this.richTextBox1.Enter           += new System.EventHandler(this.richTextBox1_Enter);
     this.richTextBox1.KeyDown         += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(44)))), ((int)(((byte)(0)))));
     this.panel1.Controls.Add(this.label2);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(462, 28);
     this.panel1.TabIndex = 17;
     //
     // label2
     //
     this.label2.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.label2.ForeColor   = System.Drawing.Color.White;
     this.label2.Location    = new System.Drawing.Point(212, 0);
     this.label2.Name        = "label2";
     this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label2.Size        = new System.Drawing.Size(238, 25);
     this.label2.TabIndex    = 11;
     this.label2.Text        = "خطا";
     this.label2.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel2
     //
     this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.panel2.Controls.Add(this.okButton1);
     this.panel2.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel2.Location = new System.Drawing.Point(12, 137);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(200, 47);
     this.panel2.TabIndex = 18;
     //
     // okButton1
     //
     this.okButton1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(142)))), ((int)(((byte)(174)))));
     this.okButton1.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.okButton1.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.okButton1.ForeColor               = System.Drawing.Color.White;
     this.okButton1.Location                = new System.Drawing.Point(15, 1);
     this.okButton1.Name                    = "okButton1";
     this.okButton1.NextControl             = null;
     this.okButton1.Size                    = new System.Drawing.Size(81, 34);
     this.okButton1.TabIndex                = 19;
     this.okButton1.Text                    = "تاييد";
     this.okButton1.UseVisualStyleBackColor = false;
     this.okButton1.Click                  += new System.EventHandler(this.okButton1_Click);
     this.okButton1.KeyDown                += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
     //
     // MessageBoxError
     //
     this.BackColor  = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(462, 186);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.pictureBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "MessageBoxError";
     this.ShowIcon        = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.CustomMessageForm_Load);
     this.Shown          += new System.EventHandler(this.CustomMessageForm_Shown);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }