Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.panel1 = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.SuspendLayout();
     //
     // panel1
     //
     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(1280, 121);
     this.panel1.TabIndex = 0;
     //
     // FieldPermission
     //
     this.Controls.Add(this.panel1);
     this.Name        = "FieldPermission";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(1280, 768);
     this.ResumeLayout(false);
 }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     this.groupBox1        = new Atiran.UI.WindowsForms.Controls.GroupBox();
     this.cb_User          = new Atiran.UI.WindowsForms.Controls.ComboBoxes.ComboBox();
     this.label1           = new Atiran.UI.WindowsForms.Controls.Label();
     this.panel17          = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.btn_Cancel       = new Atiran.UI.WindowsForms.Controls.Buttons.CancelButton();
     this.btn_Save         = new Atiran.UI.WindowsForms.Controls.Buttons.SaveButton();
     this.flowLayoutPanel1 = new Atiran.UI.WindowsForms.Controls.FlowLayoutPanel();
     this.groupBox1.SuspendLayout();
     this.panel17.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.cb_User);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(1280, 131);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "تعیین سطوح دسترسی به ماژول  های هاب";
     //
     // cb_User
     //
     this.cb_User.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cb_User.AutoCompleteMode   = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.cb_User.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
     this.cb_User.Font = new System.Drawing.Font("IRANSans", 9.5F);
     this.cb_User.FormattingEnabled = true;
     this.cb_User.Location          = new System.Drawing.Point(950, 47);
     this.cb_User.Margin            = new System.Windows.Forms.Padding(10);
     this.cb_User.Name                  = "cb_User";
     this.cb_User.NextControl           = null;
     this.cb_User.Size                  = new System.Drawing.Size(200, 30);
     this.cb_User.TabIndex              = 1;
     this.cb_User.SelectedValueChanged += new System.EventHandler(this.cb_User_SelectedValueChanged);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label1.Location  = new System.Drawing.Point(1151, 51);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(55, 22);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "نام کاربر:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel17
     //
     this.panel17.Controls.Add(this.btn_Cancel);
     this.panel17.Controls.Add(this.btn_Save);
     this.panel17.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel17.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel17.Location = new System.Drawing.Point(0, 595);
     this.panel17.Name     = "panel17";
     this.panel17.Size     = new System.Drawing.Size(1280, 55);
     this.panel17.TabIndex = 3;
     //
     // btn_Cancel
     //
     this.btn_Cancel.BackColor               = System.Drawing.Color.White;
     this.btn_Cancel.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Cancel.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Cancel.ForeColor               = System.Drawing.Color.Gray;
     this.btn_Cancel.Location                = new System.Drawing.Point(7, 11);
     this.btn_Cancel.Name                    = "btn_Cancel";
     this.btn_Cancel.NextControl             = null;
     this.btn_Cancel.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Cancel.TabIndex                = 2;
     this.btn_Cancel.Text                    = "انصراف";
     this.btn_Cancel.UseVisualStyleBackColor = false;
     this.btn_Cancel.Click                  += new System.EventHandler(this.btn_Cancel_Click);
     //
     // btn_Save
     //
     this.btn_Save.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Save.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Save.ForeColor               = System.Drawing.Color.White;
     this.btn_Save.Location                = new System.Drawing.Point(91, 11);
     this.btn_Save.Margin                  = new System.Windows.Forms.Padding(10);
     this.btn_Save.Name                    = "btn_Save";
     this.btn_Save.NextControl             = null;
     this.btn_Save.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Save.TabIndex                = 0;
     this.btn_Save.Text                    = "ثبت";
     this.btn_Save.UseVisualStyleBackColor = false;
     this.btn_Save.Click                  += new System.EventHandler(this.btn_Save_Click);
     //
     // flowLayoutPanel1
     //
     this.flowLayoutPanel1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
     this.flowLayoutPanel1.Location      = new System.Drawing.Point(0, 131);
     this.flowLayoutPanel1.Name          = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size          = new System.Drawing.Size(1280, 464);
     this.flowLayoutPanel1.TabIndex      = 4;
     //
     // ModuleAccessControl
     //
     this.Controls.Add(this.flowLayoutPanel1);
     this.Controls.Add(this.panel17);
     this.Controls.Add(this.groupBox1);
     this.Name        = "ModuleAccessControl";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(1280, 650);
     this.Load       += new System.EventHandler(this.ModuleAccessControl_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.panel17.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
0
        private bool AddPs(int index)
        {
            if (ps == null)
            {
                ps = new List <UI.WindowsForms.UIElements.Panel>();
            }
            Atiran.UI.WindowsForms.UIElements.Panel p = new UI.WindowsForms.UIElements.Panel();
            ps.Add(p);
            p.Left      = 0;
            p.Top       = pnlLoginControls.Controls.Count * (32 + betweenPsMargin);
            p.Width     = pnlLoginControls.Width;
            p.Height    = 32;
            p.BackColor = Color.Transparent;
            pnlLoginControls.Controls.Add(p);
            Atiran.UI.WindowsForms.UIElements.Panel ptext = new UI.WindowsForms.UIElements.Panel()
            {
                Width   = 250,
                Padding = new Padding(0),
                Height  = p.Height
            };
            Atiran.UI.WindowsForms.UIElements.Panel plabel = new UI.WindowsForms.UIElements.Panel()
            {
                Width     = p.Width - 250,
                Left      = 250,
                Top       = 0,
                Padding   = new Padding(0),
                Height    = p.Height,
                BackColor = Color.Transparent
            };
            switch (index)
            {
            case 0:
                tbxUsername = new LargeTextBox()
                {
                    Margin = new Padding(0),
                    Dock   = DockStyle.Fill,

                    Font = new System.Drawing.Font("IRANSans(FaNum)", 12.5F)    //FontManager.GetFont("IRANSans", 16, FontStyle.Regular);
                };
                ptext.Controls.Add(tbxUsername);
                p.Controls.Add(ptext);

                Label title = new Label()
                {
                    Text      = Atiran.UI.WindowsForms.ResourceManager.GetResourceManager().GetString("LoginForm_lblUsername_Text"),
                    Dock      = DockStyle.Fill,
                    Font      = FontManager.GetFont("IRANSans", 11, FontStyle.Regular),
                    ForeColor = Color.FromArgb(255, 255, 255),
                    BackColor = Color.Transparent,
                    Padding   = new Padding(0)
                };
                plabel.Controls.Add(title);
                p.Controls.Add(plabel);
                return(true);

            case 1:
                tbxPassword              = new LargeTextBox();
                tbxUsername.NextControl  = tbxPassword;
                tbxPassword.Margin       = new Padding(0);
                tbxPassword.Dock         = DockStyle.Fill;
                tbxPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 14.5F);//FontManager.GetFont("IRANSans", 16, FontStyle.Regular);
                tbxPassword.PasswordChar = '•';
                ptext.Controls.Add(tbxPassword);
                p.Controls.Add(ptext);

                Label pwd = new Label()
                {
                    Text      = Atiran.UI.WindowsForms.ResourceManager.GetResourceManager().GetString("LoginForm_lblPassword_Text"),
                    Dock      = DockStyle.Fill,
                    Font      = FontManager.GetFont("IRANSans", 11, FontStyle.Regular),
                    ForeColor = Color.FromArgb(255, 255, 255),
                    BackColor = Color.Transparent,
                    Padding   = new Padding(0)
                };
                plabel.Controls.Add(pwd);
                p.Controls.Add(plabel);

                return(true);

            case 3:
                btnSignIn = new UI.WindowsForms.Controls.Buttons.Button()
                {
                    Text      = Atiran.UI.WindowsForms.ResourceManager.GetResourceManager().GetString("LoginForm_btnSignIn_Text"),
                    Dock      = DockStyle.Fill,
                    BackColor = Color.FromArgb(140, 186, 2),
                    ForeColor = Color.FromArgb(255, 255, 255),
                    Padding   = new Padding(0),
                    Font      = FontManager.GetFont("IRANSans", 11, FontStyle.Regular)
                };
                btnSignIn.Click += BtnSignIn_Click;
                ptext.Controls.Add(btnSignIn);
                p.Controls.Add(ptext);
                return(true);

            case 4:
                lblMessage = new UI.WindowsForms.Controls.Label()
                {
                    TextAlign = ContentAlignment.MiddleRight,
                    Dock      = DockStyle.Fill,
                    Font      = FontManager.GetFont("IRANSans", 14, FontStyle.Regular)
                };
                ptext.Controls.Add(lblMessage);
                p.Controls.Add(ptext);
                return(true);

            default:
                return(true);
            }
        }
Ejemplo n.º 4
0
        private bool InitializeDesign()
        {
            //Window
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            EnvironmentHeader header = new EnvironmentHeader(this);

            close = new LoginCloseHeaderButton(header);
            max   = new LoginMaximizeHeaderButton(header);
            min   = new LoginMinimizeHeaderButton(header);



            close.Click += Close_Click;
            header.rightPanel.Controls.Add(close);
            header.rightPanel.Controls.Add(max);
            header.rightPanel.Controls.Add(min);
            header.BackColor = Color.Transparent;
            SizeGrip sizeGripObj = new SizeGrip(this);

            this.Controls.Add(sizeGripObj);
            this.AutoValidate = System.Windows.Forms.AutoValidate.Disable;
            this.SizeChanged += LoginForm_SizeChanged;
            pnlLoginContainer = new UI.WindowsForms.UIElements.Panel()
            {
                Width     = 505,
                Height    = 404,
                BackColor = Color.Transparent
            };
            this.Controls.Add(pnlLoginContainer);
            LocatepnlLoginContainer();

            pnlLoginContainer.BackgroundImage       = Atiran.UI.WindowsForms.ResourceManager.GetResourceManager().GetObject("AtiranLogo_large") as Bitmap;
            pnlLoginContainer.BackgroundImageLayout = ImageLayout.None;

            pnlLoginControls = new Atiran.UI.WindowsForms.UIElements.Panel()
            {
                Width     = 338,
                Height    = 204,
                BackColor = Color.Transparent,
                Top       = 200,
                Left      = 120
            };
            pnlLoginContainer.Controls.Add(pnlLoginControls);
            pnlLoginControls.BringToFront();

            betweenPsMargin = 12;

            if (!AddPs(0))
            {
                return(false);
            }
            if (!AddPs(1))
            {
                return(false);
            }
            if (!AddPs(3))
            {
                return(false);
            }
            if (!AddPs(4))
            {
                return(false);
            }

            lblMessage.ForeColor = Color.Red;
            lblMessage.Font      = FontManager.GetFont("IRANSans", 10, FontStyle.Regular);
            this.Load           += (e, s) =>
            {
                Atiran.Connections.AtiranAccModel.ConnectionInfo.ReadData();
                AutoLogin();
            };
            return(true);
        }
Ejemplo n.º 5
0
 private void InitializeComponent()
 {
     this.groupBox1              = new Atiran.UI.WindowsForms.Controls.GroupBox();
     this.panel1                 = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.btn_Cancel             = new Atiran.UI.WindowsForms.Controls.Buttons.CancelButton();
     this.btn_Save               = new Atiran.UI.WindowsForms.Controls.Buttons.SaveButton();
     this.txt_ConfirmNewPassword = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_NewPassword        = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_CurrentPassword    = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_Username           = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.label4                 = new Atiran.UI.WindowsForms.Controls.Label();
     this.label3                 = new Atiran.UI.WindowsForms.Controls.Label();
     this.label2                 = new Atiran.UI.WindowsForms.Controls.Label();
     this.label1                 = new Atiran.UI.WindowsForms.Controls.Label();
     this.groupBox1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.panel1);
     this.groupBox1.Controls.Add(this.txt_ConfirmNewPassword);
     this.groupBox1.Controls.Add(this.txt_NewPassword);
     this.groupBox1.Controls.Add(this.txt_CurrentPassword);
     this.groupBox1.Controls.Add(this.txt_Username);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(1280, 650);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "تغییر کلمه عبور";
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.Controls.Add(this.btn_Cancel);
     this.panel1.Controls.Add(this.btn_Save);
     this.panel1.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel1.Location = new System.Drawing.Point(941, 178);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(173, 41);
     this.panel1.TabIndex = 4;
     //
     // btn_Cancel
     //
     this.btn_Cancel.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btn_Cancel.BackColor               = System.Drawing.Color.White;
     this.btn_Cancel.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Cancel.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Cancel.ForeColor               = System.Drawing.Color.Gray;
     this.btn_Cancel.Location                = new System.Drawing.Point(5, 3);
     this.btn_Cancel.Name                    = "btn_Cancel";
     this.btn_Cancel.NextControl             = null;
     this.btn_Cancel.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Cancel.TabIndex                = 5;
     this.btn_Cancel.Text                    = "انصراف";
     this.btn_Cancel.UseVisualStyleBackColor = false;
     this.btn_Cancel.Click                  += new System.EventHandler(this.btn_Cancel_Click);
     //
     // btn_Save
     //
     this.btn_Save.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btn_Save.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Save.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Save.ForeColor               = System.Drawing.Color.White;
     this.btn_Save.Location                = new System.Drawing.Point(88, 3);
     this.btn_Save.Margin                  = new System.Windows.Forms.Padding(10);
     this.btn_Save.Name                    = "btn_Save";
     this.btn_Save.NextControl             = null;
     this.btn_Save.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Save.TabIndex                = 4;
     this.btn_Save.Text                    = "ثبت";
     this.btn_Save.UseVisualStyleBackColor = false;
     this.btn_Save.Click                  += new System.EventHandler(this.btn_Save_Click);
     //
     // txt_ConfirmNewPassword
     //
     this.txt_ConfirmNewPassword.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_ConfirmNewPassword.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_ConfirmNewPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_ConfirmNewPassword.Location     = new System.Drawing.Point(946, 145);
     this.txt_ConfirmNewPassword.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_ConfirmNewPassword.Name         = "txt_ConfirmNewPassword";
     this.txt_ConfirmNewPassword.NextControl  = this.btn_Save;
     this.txt_ConfirmNewPassword.PasswordChar = '*';
     this.txt_ConfirmNewPassword.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_ConfirmNewPassword.Size         = new System.Drawing.Size(200, 29);
     this.txt_ConfirmNewPassword.TabIndex     = 3;
     this.txt_ConfirmNewPassword.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // txt_NewPassword
     //
     this.txt_NewPassword.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_NewPassword.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_NewPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_NewPassword.Location     = new System.Drawing.Point(946, 110);
     this.txt_NewPassword.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_NewPassword.Name         = "txt_NewPassword";
     this.txt_NewPassword.NextControl  = this.txt_ConfirmNewPassword;
     this.txt_NewPassword.PasswordChar = '*';
     this.txt_NewPassword.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_NewPassword.Size         = new System.Drawing.Size(200, 29);
     this.txt_NewPassword.TabIndex     = 2;
     this.txt_NewPassword.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     this.txt_NewPassword.TextChanged += new System.EventHandler(this.txt_NewPassword_TextChanged);
     //
     // txt_CurrentPassword
     //
     this.txt_CurrentPassword.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_CurrentPassword.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_CurrentPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_CurrentPassword.Location     = new System.Drawing.Point(946, 75);
     this.txt_CurrentPassword.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_CurrentPassword.Name         = "txt_CurrentPassword";
     this.txt_CurrentPassword.NextControl  = this.txt_NewPassword;
     this.txt_CurrentPassword.PasswordChar = '*';
     this.txt_CurrentPassword.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_CurrentPassword.Size         = new System.Drawing.Size(200, 29);
     this.txt_CurrentPassword.TabIndex     = 1;
     this.txt_CurrentPassword.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     this.txt_CurrentPassword.TextChanged += new System.EventHandler(this.txt_CurrentPassword_TextChanged);
     //
     // txt_Username
     //
     this.txt_Username.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_Username.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_Username.Enabled      = false;
     this.txt_Username.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_Username.Location     = new System.Drawing.Point(946, 40);
     this.txt_Username.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_Username.Name         = "txt_Username";
     this.txt_Username.NextControl  = this.txt_CurrentPassword;
     this.txt_Username.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_Username.Size         = new System.Drawing.Size(200, 29);
     this.txt_Username.TabIndex     = 0;
     this.txt_Username.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     this.txt_Username.TextChanged += new System.EventHandler(this.txt_Username_TextChanged);
     //
     // label4
     //
     this.label4.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize  = true;
     this.label4.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label4.Location  = new System.Drawing.Point(1150, 149);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(120, 22);
     this.label4.TabIndex  = 0;
     this.label4.Text      = "تکرار کلمه عبور جدید:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.AutoSize  = true;
     this.label3.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label3.Location  = new System.Drawing.Point(1150, 114);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(92, 22);
     this.label3.TabIndex  = 0;
     this.label3.Text      = "کلمه عبور جدید:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.AutoSize  = true;
     this.label2.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label2.Location  = new System.Drawing.Point(1150, 79);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(93, 22);
     this.label2.TabIndex  = 0;
     this.label2.Text      = "کلمه عبور  فعلی:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label1.Location  = new System.Drawing.Point(1150, 44);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(66, 22);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "نام کاربری:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // ChangePassword
     //
     this.Controls.Add(this.groupBox1);
     this.Name        = "ChangePassword";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(1280, 650);
     this.Load       += new System.EventHandler(this.ChangePassword_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 6
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.txt_UserName     = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_Password     = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_ConfPassword = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.btn_Save         = new Atiran.UI.WindowsForms.Controls.Buttons.SaveButton();
     this.btn_Cancell      = new Atiran.UI.WindowsForms.Controls.Buttons.CancelButton();
     this.panel2           = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.label8           = new Atiran.UI.WindowsForms.Controls.Label();
     this.dataGridView1    = new Atiran.UI.WindowsForms.Controls.DataGridView();
     this.panel3           = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.groupBox2        = new Atiran.UI.WindowsForms.Controls.GroupBox();
     this.txt_EditPassword = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.txt_EditUserName = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.label6           = new Atiran.UI.WindowsForms.Controls.Label();
     this.label15          = new Atiran.UI.WindowsForms.Controls.Label();
     this.panel5           = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.btn_Edit         = new Atiran.UI.WindowsForms.Controls.Buttons.EditButton();
     this.panel1           = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.groupBox1        = new Atiran.UI.WindowsForms.Controls.GroupBox();
     this.label20          = new Atiran.UI.WindowsForms.Controls.Label();
     this.label9           = new Atiran.UI.WindowsForms.Controls.Label();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.panel3.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // txt_UserName
     //
     this.txt_UserName.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_UserName.BackColor   = System.Drawing.Color.White;
     this.txt_UserName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_UserName.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_UserName.ForeColor   = System.Drawing.Color.Black;
     this.txt_UserName.Location    = new System.Drawing.Point(985, 28);
     this.txt_UserName.Margin      = new System.Windows.Forms.Padding(10);
     this.txt_UserName.Name        = "txt_UserName";
     this.txt_UserName.NextControl = this.txt_Password;
     this.txt_UserName.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.txt_UserName.Size        = new System.Drawing.Size(200, 29);
     this.txt_UserName.TabIndex    = 7;
     this.txt_UserName.TextAlign   = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // txt_Password
     //
     this.txt_Password.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_Password.BackColor    = System.Drawing.Color.White;
     this.txt_Password.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_Password.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_Password.ForeColor    = System.Drawing.Color.Black;
     this.txt_Password.Location     = new System.Drawing.Point(689, 28);
     this.txt_Password.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_Password.Name         = "txt_Password";
     this.txt_Password.NextControl  = this.txt_ConfPassword;
     this.txt_Password.PasswordChar = '*';
     this.txt_Password.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_Password.Size         = new System.Drawing.Size(200, 29);
     this.txt_Password.TabIndex     = 8;
     this.txt_Password.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // txt_ConfPassword
     //
     this.txt_ConfPassword.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_ConfPassword.BackColor    = System.Drawing.Color.White;
     this.txt_ConfPassword.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_ConfPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_ConfPassword.ForeColor    = System.Drawing.Color.Black;
     this.txt_ConfPassword.Location     = new System.Drawing.Point(375, 28);
     this.txt_ConfPassword.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_ConfPassword.Name         = "txt_ConfPassword";
     this.txt_ConfPassword.NextControl  = this.btn_Save;
     this.txt_ConfPassword.PasswordChar = '*';
     this.txt_ConfPassword.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_ConfPassword.Size         = new System.Drawing.Size(200, 29);
     this.txt_ConfPassword.TabIndex     = 9;
     this.txt_ConfPassword.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // btn_Save
     //
     this.btn_Save.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btn_Save.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.btn_Save.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Save.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Save.ForeColor               = System.Drawing.Color.White;
     this.btn_Save.Location                = new System.Drawing.Point(88, 3);
     this.btn_Save.Margin                  = new System.Windows.Forms.Padding(10);
     this.btn_Save.Name                    = "btn_Save";
     this.btn_Save.NextControl             = this.btn_Cancell;
     this.btn_Save.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Save.TabIndex                = 0;
     this.btn_Save.Text                    = "ثبت";
     this.btn_Save.UseVisualStyleBackColor = false;
     this.btn_Save.Click                  += new System.EventHandler(this.btn_Save_Click);
     //
     // btn_Cancell
     //
     this.btn_Cancell.BackColor               = System.Drawing.Color.White;
     this.btn_Cancell.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Cancell.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Cancell.ForeColor               = System.Drawing.Color.Gray;
     this.btn_Cancell.Location                = new System.Drawing.Point(3, 3);
     this.btn_Cancell.Name                    = "btn_Cancell";
     this.btn_Cancell.NextControl             = null;
     this.btn_Cancell.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Cancell.TabIndex                = 1;
     this.btn_Cancell.Text                    = "انصراف";
     this.btn_Cancell.UseVisualStyleBackColor = false;
     this.btn_Cancell.Click                  += new System.EventHandler(this.btn_Cancell_Click);
     //
     // panel2
     //
     this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel2.Controls.Add(this.btn_Cancell);
     this.panel2.Controls.Add(this.btn_Save);
     this.panel2.Font     = new System.Drawing.Font("IRANSans", 9.5F);
     this.panel2.Location = new System.Drawing.Point(142, 17);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(173, 40);
     this.panel2.TabIndex = 21;
     //
     // label8
     //
     this.label8.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label8.AutoSize  = true;
     this.label8.Font      = new System.Drawing.Font("IRANSans", 9.5F);
     this.label8.Location  = new System.Drawing.Point(1198, 30);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(66, 22);
     this.label8.TabIndex  = 7;
     this.label8.Text      = "نام کاربری:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows    = false;
     this.dataGridView1.AllowUserToDeleteRows = false;
     dataGridViewCellStyle1.Font = new System.Drawing.Font("IRANSans", 9.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dataGridView1.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.EnableHeadersVisualStyles = false;
     this.dataGridView1.Font          = new System.Drawing.Font("IRANSans", 9.5F);
     this.dataGridView1.Location      = new System.Drawing.Point(0, 75);
     this.dataGridView1.Name          = "dataGridView1";
     this.dataGridView1.ReadOnly      = true;
     this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dataGridView1.Size          = new System.Drawing.Size(1280, 542);
     this.dataGridView1.TabIndex      = 2;
     this.dataGridView1.CellClick    += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.groupBox2);
     this.panel3.Dock        = System.Windows.Forms.DockStyle.Bottom;
     this.panel3.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel3.Location    = new System.Drawing.Point(0, 617);
     this.panel3.Name        = "panel3";
     this.panel3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.panel3.Size        = new System.Drawing.Size(1280, 78);
     this.panel3.TabIndex    = 4;
     this.panel3.Visible     = false;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.txt_EditPassword);
     this.groupBox2.Controls.Add(this.txt_EditUserName);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label15);
     this.groupBox2.Controls.Add(this.panel5);
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox2.Location = new System.Drawing.Point(0, 0);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(1280, 78);
     this.groupBox2.TabIndex = 43;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "ویرایش کاربر";
     //
     // txt_EditPassword
     //
     this.txt_EditPassword.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_EditPassword.BackColor    = System.Drawing.Color.White;
     this.txt_EditPassword.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_EditPassword.Enabled      = false;
     this.txt_EditPassword.Font         = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_EditPassword.ForeColor    = System.Drawing.Color.Black;
     this.txt_EditPassword.Location     = new System.Drawing.Point(723, 35);
     this.txt_EditPassword.Margin       = new System.Windows.Forms.Padding(10);
     this.txt_EditPassword.Name         = "txt_EditPassword";
     this.txt_EditPassword.NextControl  = null;
     this.txt_EditPassword.PasswordChar = '*';
     this.txt_EditPassword.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txt_EditPassword.Size         = new System.Drawing.Size(200, 29);
     this.txt_EditPassword.TabIndex     = 8;
     this.txt_EditPassword.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // txt_EditUserName
     //
     this.txt_EditUserName.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txt_EditUserName.BackColor   = System.Drawing.Color.White;
     this.txt_EditUserName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txt_EditUserName.Enabled     = false;
     this.txt_EditUserName.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.txt_EditUserName.ForeColor   = System.Drawing.Color.Black;
     this.txt_EditUserName.Location    = new System.Drawing.Point(1000, 35);
     this.txt_EditUserName.Margin      = new System.Windows.Forms.Padding(10);
     this.txt_EditUserName.Name        = "txt_EditUserName";
     this.txt_EditUserName.NextControl = this.txt_EditPassword;
     this.txt_EditUserName.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.txt_EditUserName.Size        = new System.Drawing.Size(200, 29);
     this.txt_EditUserName.TabIndex    = 7;
     this.txt_EditUserName.TextAlign   = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label6
     //
     this.label6.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label6.AutoSize  = true;
     this.label6.Font      = new System.Drawing.Font("IRANSans", 9.5F);
     this.label6.Location  = new System.Drawing.Point(925, 38);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(60, 22);
     this.label6.TabIndex  = 26;
     this.label6.Text      = "کلمه عبور:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label15
     //
     this.label15.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label15.AutoSize  = true;
     this.label15.Font      = new System.Drawing.Font("IRANSans", 9.5F);
     this.label15.Location  = new System.Drawing.Point(1202, 38);
     this.label15.Name      = "label15";
     this.label15.Size      = new System.Drawing.Size(66, 22);
     this.label15.TabIndex  = 7;
     this.label15.Text      = "نام کاربری:";
     this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel5
     //
     this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel5.Controls.Add(this.btn_Edit);
     this.panel5.Font     = new System.Drawing.Font("IRANSans", 9.5F);
     this.panel5.Location = new System.Drawing.Point(50, 27);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(180, 42);
     this.panel5.TabIndex = 42;
     //
     // btn_Edit
     //
     this.btn_Edit.BackColor = System.Drawing.Color.Green;
     this.btn_Edit.FlatAppearance.BorderColor = System.Drawing.Color.Green;
     this.btn_Edit.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btn_Edit.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.btn_Edit.ForeColor               = System.Drawing.Color.White;
     this.btn_Edit.Location                = new System.Drawing.Point(89, 5);
     this.btn_Edit.Margin                  = new System.Windows.Forms.Padding(10);
     this.btn_Edit.Name                    = "btn_Edit";
     this.btn_Edit.NextControl             = null;
     this.btn_Edit.Size                    = new System.Drawing.Size(81, 34);
     this.btn_Edit.TabIndex                = 0;
     this.btn_Edit.Text                    = "ويرايش";
     this.btn_Edit.UseVisualStyleBackColor = false;
     this.btn_Edit.Click                  += new System.EventHandler(this.btn_Edit_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox1);
     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.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.panel1.Size        = new System.Drawing.Size(1280, 75);
     this.panel1.TabIndex    = 3;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.txt_ConfPassword);
     this.groupBox1.Controls.Add(this.label20);
     this.groupBox1.Controls.Add(this.txt_Password);
     this.groupBox1.Controls.Add(this.txt_UserName);
     this.groupBox1.Controls.Add(this.label9);
     this.groupBox1.Controls.Add(this.label8);
     this.groupBox1.Controls.Add(this.panel2);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(1280, 75);
     this.groupBox1.TabIndex = 29;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "تعریف کاربر جدید";
     //
     // label20
     //
     this.label20.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label20.AutoSize  = true;
     this.label20.Font      = new System.Drawing.Font("IRANSans", 9.5F);
     this.label20.Location  = new System.Drawing.Point(588, 30);
     this.label20.Name      = "label20";
     this.label20.Size      = new System.Drawing.Size(88, 22);
     this.label20.TabIndex  = 29;
     this.label20.Text      = "تكرار كلمه عبور:";
     this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label9
     //
     this.label9.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label9.AutoSize  = true;
     this.label9.Font      = new System.Drawing.Font("IRANSans", 9.5F);
     this.label9.Location  = new System.Drawing.Point(902, 30);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(60, 22);
     this.label9.TabIndex  = 26;
     this.label9.Text      = "کلمه عبور:";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // CreateUser
     //
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel1);
     this.Name        = "CreateUser";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(1280, 695);
     this.Load       += new System.EventHandler(this.CreateUser_Load);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.panel3.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.panel5.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 7
0
 private void InitializeComponent()
 {
     this.buttonBackup         = new Atiran.UI.WindowsForms.Controls.Buttons.Button();
     this.label1               = new Atiran.UI.WindowsForms.Controls.Label();
     this.labelTargetFile      = new Atiran.UI.WindowsForms.Controls.Label();
     this.buttonChangeFolder   = new Atiran.UI.WindowsForms.Controls.Buttons.Button();
     this.progressBar1         = new System.Windows.Forms.ProgressBar();
     this.labelStatus          = new Atiran.UI.WindowsForms.Controls.Label();
     this.labelDate            = new Atiran.UI.WindowsForms.Controls.Label();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.panel1               = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.label5               = new Atiran.UI.WindowsForms.Controls.Label();
     this.label4               = new Atiran.UI.WindowsForms.Controls.Label();
     this.label3               = new Atiran.UI.WindowsForms.Controls.Label();
     this.label2               = new Atiran.UI.WindowsForms.Controls.Label();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // buttonBackup
     //
     this.buttonBackup.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonBackup.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(140)))), ((int)(((byte)(231)))));
     this.buttonBackup.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.buttonBackup.Font                    = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.buttonBackup.ForeColor               = System.Drawing.Color.White;
     this.buttonBackup.Location                = new System.Drawing.Point(509, 263);
     this.buttonBackup.Name                    = "buttonBackup";
     this.buttonBackup.NextControl             = null;
     this.buttonBackup.Size                    = new System.Drawing.Size(83, 36);
     this.buttonBackup.TabIndex                = 0;
     this.buttonBackup.Text                    = "ذخيره ";
     this.buttonBackup.UseVisualStyleBackColor = false;
     this.buttonBackup.Click                  += new System.EventHandler(this.ButtonBackup_Click);
     //
     // label1
     //
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize    = true;
     this.label1.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label1.Location    = new System.Drawing.Point(1033, 180);
     this.label1.Name        = "label1";
     this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label1.Size        = new System.Drawing.Size(118, 22);
     this.label1.TabIndex    = 2;
     this.label1.Text        = "مسير پشتيبان گيري:";
     this.label1.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // labelTargetFile
     //
     this.labelTargetFile.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.labelTargetFile.BackColor   = System.Drawing.Color.White;
     this.labelTargetFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.labelTargetFile.Font        = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.labelTargetFile.Location    = new System.Drawing.Point(556, 176);
     this.labelTargetFile.Name        = "labelTargetFile";
     this.labelTargetFile.Size        = new System.Drawing.Size(475, 30);
     this.labelTargetFile.TabIndex    = 3;
     this.labelTargetFile.Text        = "D:";
     this.labelTargetFile.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // buttonChangeFolder
     //
     this.buttonChangeFolder.Anchor                = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonChangeFolder.BackColor             = System.Drawing.Color.White;
     this.buttonChangeFolder.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.buttonChangeFolder.FlatStyle             = System.Windows.Forms.FlatStyle.Flat;
     this.buttonChangeFolder.Font                    = new System.Drawing.Font("IRANSans", 10.25F, System.Drawing.FontStyle.Bold);
     this.buttonChangeFolder.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
     this.buttonChangeFolder.Location                = new System.Drawing.Point(512, 176);
     this.buttonChangeFolder.Name                    = "buttonChangeFolder";
     this.buttonChangeFolder.NextControl             = null;
     this.buttonChangeFolder.Size                    = new System.Drawing.Size(44, 30);
     this.buttonChangeFolder.TabIndex                = 5;
     this.buttonChangeFolder.Text                    = "...";
     this.buttonChangeFolder.TextAlign               = System.Drawing.ContentAlignment.TopCenter;
     this.buttonChangeFolder.UseVisualStyleBackColor = false;
     this.buttonChangeFolder.Click                  += new System.EventHandler(this.buttonChangeFolder_Click);
     //
     // progressBar1
     //
     this.progressBar1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar1.ForeColor = System.Drawing.Color.ForestGreen;
     this.progressBar1.Location  = new System.Drawing.Point(509, 211);
     this.progressBar1.Name      = "progressBar1";
     this.progressBar1.Size      = new System.Drawing.Size(635, 23);
     this.progressBar1.Style     = System.Windows.Forms.ProgressBarStyle.Continuous;
     this.progressBar1.TabIndex  = 6;
     this.progressBar1.Visible   = false;
     //
     // labelStatus
     //
     this.labelStatus.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.labelStatus.Font      = new System.Drawing.Font("IRANSans", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelStatus.Location  = new System.Drawing.Point(509, 240);
     this.labelStatus.Name      = "labelStatus";
     this.labelStatus.Size      = new System.Drawing.Size(635, 23);
     this.labelStatus.TabIndex  = 7;
     this.labelStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // labelDate
     //
     this.labelDate.Font      = new System.Drawing.Font("B Nazanin", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.labelDate.Location  = new System.Drawing.Point(6, 4);
     this.labelDate.Name      = "labelDate";
     this.labelDate.Size      = new System.Drawing.Size(132, 27);
     this.labelDate.TabIndex  = 8;
     this.labelDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.labelDate.Visible   = false;
     //
     // folderBrowserDialog1
     //
     this.folderBrowserDialog1.RootFolder = System.Environment.SpecialFolder.MyComputer;
     this.folderBrowserDialog1.Tag        = "";
     //
     // panel1
     //
     this.panel1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.labelDate);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel1.Location = new System.Drawing.Point(509, 32);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(643, 138);
     this.panel1.TabIndex = 9;
     //
     // label5
     //
     this.label5.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label5.AutoSize    = true;
     this.label5.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label5.Location    = new System.Drawing.Point(201, 96);
     this.label5.Name        = "label5";
     this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label5.Size        = new System.Drawing.Size(435, 22);
     this.label5.TabIndex    = 13;
     this.label5.Text        = "3 - در حين پشتيبان گيري بروي حافظه خارجي، اتصال حافظه با سرور قطع نـكنيد.";
     this.label5.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label4
     //
     this.label4.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize    = true;
     this.label4.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label4.Location    = new System.Drawing.Point(367, 66);
     this.label4.Name        = "label4";
     this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label4.Size        = new System.Drawing.Size(269, 22);
     this.label4.TabIndex    = 12;
     this.label4.Text        = "2 - در حين پشتيبان گيري سرور را خاموش نـكنيد.";
     this.label4.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label3
     //
     this.label3.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.AutoSize    = true;
     this.label3.Font        = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label3.Location    = new System.Drawing.Point(300, 35);
     this.label3.Name        = "label3";
     this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label3.Size        = new System.Drawing.Size(335, 22);
     this.label3.TabIndex    = 11;
     this.label3.Text        = "1 - قبل از آغاز پشتيبان گيري، تمامي كلاينت هارا خاموش كنيد.";
     this.label3.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.AutoSize  = true;
     this.label2.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label2.ForeColor = System.Drawing.Color.Red;
     this.label2.Location  = new System.Drawing.Point(596, 3);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(39, 22);
     this.label2.TabIndex  = 10;
     this.label2.Text      = "!توجه";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // AtiranBackup
     //
     this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.labelStatus);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.buttonChangeFolder);
     this.Controls.Add(this.labelTargetFile);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.buttonBackup);
     this.Name  = "AtiranBackup";
     this.Size  = new System.Drawing.Size(1278, 686);
     this.Load += new System.EventHandler(this.AtiranBackup_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 8
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     this.pnlTop             = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel1             = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.lblGuid            = new Atiran.UI.WindowsForms.Controls.Label();
     this.pnlFooter          = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel2             = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.lblDatabaseVersion = new Atiran.UI.WindowsForms.Controls.Label();
     this.lblProductVersion  = new Atiran.UI.WindowsForms.Controls.Label();
     this.label1             = new Atiran.UI.WindowsForms.Controls.Label();
     this.pnlMain            = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.dataGridView1      = new System.Windows.Forms.DataGridView();
     this.txtSearch          = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.pnlTop.SuspendLayout();
     this.panel1.SuspendLayout();
     this.pnlFooter.SuspendLayout();
     this.panel2.SuspendLayout();
     this.pnlMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // pnlTop
     //
     this.pnlTop.Controls.Add(this.panel1);
     this.pnlTop.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnlTop.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.pnlTop.Location = new System.Drawing.Point(0, 0);
     this.pnlTop.Name     = "pnlTop";
     this.pnlTop.Size     = new System.Drawing.Size(600, 43);
     this.pnlTop.TabIndex = 0;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(101)))), ((int)(((byte)(192)))));
     this.panel1.Controls.Add(this.lblGuid);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     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(600, 43);
     this.panel1.TabIndex = 17;
     //
     // lblGuid
     //
     this.lblGuid.AutoSize    = true;
     this.lblGuid.Dock        = System.Windows.Forms.DockStyle.Right;
     this.lblGuid.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblGuid.ForeColor   = System.Drawing.Color.White;
     this.lblGuid.Location    = new System.Drawing.Point(494, 0);
     this.lblGuid.Name        = "lblGuid";
     this.lblGuid.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.lblGuid.Size        = new System.Drawing.Size(106, 25);
     this.lblGuid.TabIndex    = 11;
     this.lblGuid.Text        = "راهنماي سيستم";
     this.lblGuid.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pnlFooter
     //
     this.pnlFooter.Controls.Add(this.panel2);
     this.pnlFooter.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.pnlFooter.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.pnlFooter.Location = new System.Drawing.Point(0, 566);
     this.pnlFooter.Name     = "pnlFooter";
     this.pnlFooter.Size     = new System.Drawing.Size(600, 34);
     this.pnlFooter.TabIndex = 1;
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.DarkGray;
     this.panel2.Controls.Add(this.lblDatabaseVersion);
     this.panel2.Controls.Add(this.lblProductVersion);
     this.panel2.Controls.Add(this.label1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(600, 34);
     this.panel2.TabIndex = 18;
     //
     // lblDatabaseVersion
     //
     this.lblDatabaseVersion.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblDatabaseVersion.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDatabaseVersion.ForeColor   = System.Drawing.Color.Black;
     this.lblDatabaseVersion.Location    = new System.Drawing.Point(3, 3);
     this.lblDatabaseVersion.Name        = "lblDatabaseVersion";
     this.lblDatabaseVersion.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.lblDatabaseVersion.Size        = new System.Drawing.Size(279, 25);
     this.lblDatabaseVersion.TabIndex    = 14;
     this.lblDatabaseVersion.Text        = "راهنماي سيستم";
     this.lblDatabaseVersion.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblProductVersion
     //
     this.lblProductVersion.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblProductVersion.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblProductVersion.ForeColor   = System.Drawing.Color.Black;
     this.lblProductVersion.Location    = new System.Drawing.Point(299, 3);
     this.lblProductVersion.Name        = "lblProductVersion";
     this.lblProductVersion.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.lblProductVersion.Size        = new System.Drawing.Size(184, 25);
     this.lblProductVersion.TabIndex    = 12;
     this.lblProductVersion.Text        = "راهنماي سيستم";
     this.lblProductVersion.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label1
     //
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize    = true;
     this.label1.Font        = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor   = System.Drawing.Color.Black;
     this.label1.Location    = new System.Drawing.Point(489, 1);
     this.label1.Name        = "label1";
     this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label1.Size        = new System.Drawing.Size(94, 25);
     this.label1.TabIndex    = 11;
     this.label1.Text        = "ورژن نرم افزار:";
     this.label1.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pnlMain
     //
     this.pnlMain.Controls.Add(this.dataGridView1);
     this.pnlMain.Controls.Add(this.txtSearch);
     this.pnlMain.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlMain.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.pnlMain.Location = new System.Drawing.Point(0, 43);
     this.pnlMain.Name     = "pnlMain";
     this.pnlMain.Size     = new System.Drawing.Size(600, 523);
     this.pnlMain.TabIndex = 2;
     //
     // dataGridView1
     //
     this.dataGridView1.AllowDrop                   = true;
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
     this.dataGridView1.BackgroundColor             = System.Drawing.SystemColors.Control;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
     this.dataGridView1.ColumnHeadersVisible        = false;
     dataGridViewCellStyle2.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor               = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle2.Font               = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     dataGridViewCellStyle2.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.DefaultCellStyle       = dataGridViewCellStyle2;
     this.dataGridView1.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.GridColor         = System.Drawing.SystemColors.Control;
     this.dataGridView1.Location          = new System.Drawing.Point(0, 29);
     this.dataGridView1.MultiSelect       = false;
     this.dataGridView1.Name              = "dataGridView1";
     this.dataGridView1.ReadOnly          = true;
     this.dataGridView1.RowHeadersVisible = false;
     this.dataGridView1.SelectionMode     = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dataGridView1.Size              = new System.Drawing.Size(600, 494);
     this.dataGridView1.TabIndex          = 0;
     //
     // txtSearch
     //
     this.txtSearch.BackColor    = System.Drawing.Color.White;
     this.txtSearch.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtSearch.Dock         = System.Windows.Forms.DockStyle.Top;
     this.txtSearch.Font         = new System.Drawing.Font("AtiranFont", 9.5F);
     this.txtSearch.ForeColor    = System.Drawing.Color.Black;
     this.txtSearch.Location     = new System.Drawing.Point(0, 0);
     this.txtSearch.Margin       = new System.Windows.Forms.Padding(10);
     this.txtSearch.Name         = "txtSearch";
     this.txtSearch.NextControl  = null;
     this.txtSearch.RightToLeft  = System.Windows.Forms.RightToLeft.No;
     this.txtSearch.Size         = new System.Drawing.Size(600, 29);
     this.txtSearch.TabIndex     = 1;
     this.txtSearch.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     this.txtSearch.TextChanged += new System.EventHandler(this.txtSearch_TextChanged);
     this.txtSearch.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.txtSearch_KeyDown);
     //
     // Help
     //
     this.Controls.Add(this.pnlMain);
     this.Controls.Add(this.pnlFooter);
     this.Controls.Add(this.pnlTop);
     this.MaximumSize = new System.Drawing.Size(600, 600);
     this.MinimumSize = new System.Drawing.Size(600, 600);
     this.Name        = "Help";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(600, 600);
     this.Load       += new System.EventHandler(this.UserControl_Load);
     this.pnlTop.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.pnlFooter.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.pnlMain.ResumeLayout(false);
     this.pnlMain.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 9
0
 private void InitializeComponent()
 {
     this.panel1       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.picFacebook  = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.picInstagram = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.picTwitter   = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.panel12      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.btnEnter     = new Atiran.UI.WindowsForms.Controls.Buttons.RefreshButton();
     this.btnExit      = new Atiran.UI.WindowsForms.Controls.Buttons.ExitButton();
     this.panel3       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel4       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.txtPass      = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.panel9       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.picPass      = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.panel10      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.pnlDownPass  = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel2       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel8       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.txtUser      = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.panel6       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.picUser      = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.panel7       = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.pnlDownUser  = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.timer1       = new Atiran.UI.WindowsForms.Controls.Timer();
     this.lblMessage   = new Atiran.UI.WindowsForms.Controls.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picFacebook)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.picInstagram)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.picTwitter)).BeginInit();
     this.panel12.SuspendLayout();
     this.panel3.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picPass)).BeginInit();
     this.panel10.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel8.SuspendLayout();
     this.panel6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picUser)).BeginInit();
     this.panel7.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.Transparent;
     this.panel1.Controls.Add(this.lblMessage);
     this.panel1.Controls.Add(this.picFacebook);
     this.panel1.Controls.Add(this.picInstagram);
     this.panel1.Controls.Add(this.picTwitter);
     this.panel1.Controls.Add(this.panel12);
     this.panel1.Controls.Add(this.panel3);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel1.Location = new System.Drawing.Point(46, 283);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(253, 197);
     this.panel1.TabIndex = 0;
     //
     // picFacebook
     //
     this.picFacebook.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.picFacebook.Image       = global::Atiran.Main.Properties.Resources.facebook1;
     this.picFacebook.Location    = new System.Drawing.Point(181, 162);
     this.picFacebook.Name        = "picFacebook";
     this.picFacebook.Size        = new System.Drawing.Size(32, 32);
     this.picFacebook.TabIndex    = 4;
     this.picFacebook.TabStop     = false;
     this.picFacebook.Click      += new System.EventHandler(this.picFacebook_Click);
     this.picFacebook.MouseEnter += new System.EventHandler(this.picFacebook_MouseEnter);
     this.picFacebook.MouseLeave += new System.EventHandler(this.picFacebook_MouseLeave);
     //
     // picInstagram
     //
     this.picInstagram.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.picInstagram.Image       = global::Atiran.Main.Properties.Resources.instagram1;
     this.picInstagram.Location    = new System.Drawing.Point(113, 162);
     this.picInstagram.Name        = "picInstagram";
     this.picInstagram.Size        = new System.Drawing.Size(32, 32);
     this.picInstagram.TabIndex    = 4;
     this.picInstagram.TabStop     = false;
     this.picInstagram.Click      += new System.EventHandler(this.picInstagram_Click);
     this.picInstagram.MouseEnter += new System.EventHandler(this.picInstagram_MouseEnter);
     this.picInstagram.MouseLeave += new System.EventHandler(this.picInstagram_MouseLeave);
     //
     // picTwitter
     //
     this.picTwitter.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.picTwitter.Image       = global::Atiran.Main.Properties.Resources.twitter1;
     this.picTwitter.Location    = new System.Drawing.Point(44, 162);
     this.picTwitter.Name        = "picTwitter";
     this.picTwitter.Size        = new System.Drawing.Size(32, 32);
     this.picTwitter.TabIndex    = 4;
     this.picTwitter.TabStop     = false;
     this.picTwitter.Click      += new System.EventHandler(this.picTwitter_Click);
     this.picTwitter.MouseEnter += new System.EventHandler(this.picTwitter_MouseEnter);
     this.picTwitter.MouseLeave += new System.EventHandler(this.picTwitter_MouseLeave);
     //
     // panel12
     //
     this.panel12.Controls.Add(this.btnEnter);
     this.panel12.Controls.Add(this.btnExit);
     this.panel12.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel12.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel12.Location = new System.Drawing.Point(0, 80);
     this.panel12.Name     = "panel12";
     this.panel12.Size     = new System.Drawing.Size(253, 56);
     this.panel12.TabIndex = 2;
     //
     // btnEnter
     //
     this.btnEnter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(83)))));
     this.btnEnter.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(83)))));
     this.btnEnter.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnEnter.Font                    = new System.Drawing.Font("AtiranFont", 9.5F);
     this.btnEnter.ForeColor               = System.Drawing.Color.White;
     this.btnEnter.Location                = new System.Drawing.Point(132, 14);
     this.btnEnter.Margin                  = new System.Windows.Forms.Padding(10);
     this.btnEnter.Name                    = "btnEnter";
     this.btnEnter.NextControl             = null;
     this.btnEnter.Size                    = new System.Drawing.Size(81, 34);
     this.btnEnter.TabIndex                = 0;
     this.btnEnter.Text                    = "ورود";
     this.btnEnter.UseVisualStyleBackColor = false;
     this.btnEnter.Click                  += new System.EventHandler(this.btnEnter_Click);
     //
     // btnExit
     //
     this.btnExit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
     this.btnExit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(158)))), ((int)(((byte)(158)))));
     this.btnExit.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnExit.Font                    = new System.Drawing.Font("AtiranFont", 9.5F);
     this.btnExit.ForeColor               = System.Drawing.Color.White;
     this.btnExit.Location                = new System.Drawing.Point(44, 14);
     this.btnExit.Margin                  = new System.Windows.Forms.Padding(10);
     this.btnExit.Name                    = "btnExit";
     this.btnExit.NextControl             = null;
     this.btnExit.Size                    = new System.Drawing.Size(81, 34);
     this.btnExit.TabIndex                = 1;
     this.btnExit.Text                    = "خروج";
     this.btnExit.UseVisualStyleBackColor = false;
     this.btnExit.Click                  += new System.EventHandler(this.btnExit_Click);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.panel4);
     this.panel3.Controls.Add(this.panel9);
     this.panel3.Controls.Add(this.panel10);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel3.Location = new System.Drawing.Point(0, 40);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(253, 40);
     this.panel3.TabIndex = 1;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.txtPass);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel4.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel4.Location = new System.Drawing.Point(0, 5);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(226, 32);
     this.panel4.TabIndex = 2;
     //
     // txtPass
     //
     this.txtPass.BackColor   = System.Drawing.Color.White;
     this.txtPass.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtPass.Dock        = System.Windows.Forms.DockStyle.Top;
     this.txtPass.Font        = new System.Drawing.Font("AtiranFont", 9.5F);
     this.txtPass.ForeColor   = System.Drawing.Color.Black;
     this.txtPass.Location    = new System.Drawing.Point(0, 0);
     this.txtPass.Margin      = new System.Windows.Forms.Padding(10);
     this.txtPass.Name        = "txtPass";
     this.txtPass.NextControl = this.btnEnter;
     this.txtPass.Size        = new System.Drawing.Size(226, 29);
     this.txtPass.TabIndex    = 0;
     this.txtPass.Text        = "کلمه عبور";
     this.txtPass.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtPass.Enter      += new System.EventHandler(this.txtPass_Enter);
     this.txtPass.Leave      += new System.EventHandler(this.txtPass_Leave);
     //
     // panel9
     //
     this.panel9.Controls.Add(this.picPass);
     this.panel9.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel9.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel9.Location = new System.Drawing.Point(226, 0);
     this.panel9.Name     = "panel9";
     this.panel9.Size     = new System.Drawing.Size(27, 37);
     this.panel9.TabIndex = 0;
     //
     // picPass
     //
     this.picPass.Image    = global::Atiran.Main.Properties.Resources.lock1;
     this.picPass.Location = new System.Drawing.Point(3, 8);
     this.picPass.Name     = "picPass";
     this.picPass.Size     = new System.Drawing.Size(24, 24);
     this.picPass.TabIndex = 0;
     this.picPass.TabStop  = false;
     //
     // panel10
     //
     this.panel10.Controls.Add(this.pnlDownPass);
     this.panel10.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel10.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel10.Location = new System.Drawing.Point(0, 37);
     this.panel10.Name     = "panel10";
     this.panel10.Size     = new System.Drawing.Size(253, 3);
     this.panel10.TabIndex = 1;
     //
     // pnlDownPass
     //
     this.pnlDownPass.BackColor = System.Drawing.Color.White;
     this.pnlDownPass.Dock      = System.Windows.Forms.DockStyle.Top;
     this.pnlDownPass.Font      = new System.Drawing.Font("AtiranFont", 9.5F);
     this.pnlDownPass.Location  = new System.Drawing.Point(0, 0);
     this.pnlDownPass.Name      = "pnlDownPass";
     this.pnlDownPass.Size      = new System.Drawing.Size(253, 1);
     this.pnlDownPass.TabIndex  = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.panel8);
     this.panel2.Controls.Add(this.panel6);
     this.panel2.Controls.Add(this.panel7);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(253, 40);
     this.panel2.TabIndex = 0;
     //
     // panel8
     //
     this.panel8.Controls.Add(this.txtUser);
     this.panel8.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel8.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel8.Location = new System.Drawing.Point(0, 5);
     this.panel8.Name     = "panel8";
     this.panel8.Size     = new System.Drawing.Size(226, 32);
     this.panel8.TabIndex = 2;
     //
     // txtUser
     //
     this.txtUser.BackColor   = System.Drawing.Color.White;
     this.txtUser.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtUser.Dock        = System.Windows.Forms.DockStyle.Top;
     this.txtUser.Font        = new System.Drawing.Font("AtiranFont", 9.5F);
     this.txtUser.ForeColor   = System.Drawing.Color.Black;
     this.txtUser.Location    = new System.Drawing.Point(0, 0);
     this.txtUser.Margin      = new System.Windows.Forms.Padding(10);
     this.txtUser.Name        = "txtUser";
     this.txtUser.NextControl = this.txtPass;
     this.txtUser.Size        = new System.Drawing.Size(226, 29);
     this.txtUser.TabIndex    = 0;
     this.txtUser.Text        = "نام کاربری";
     this.txtUser.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtUser.Enter      += new System.EventHandler(this.txtUser_Enter);
     this.txtUser.Leave      += new System.EventHandler(this.txtUser_Leave);
     //
     // panel6
     //
     this.panel6.Controls.Add(this.picUser);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel6.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel6.Location = new System.Drawing.Point(226, 0);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(27, 37);
     this.panel6.TabIndex = 0;
     //
     // picUser
     //
     this.picUser.Image    = global::Atiran.Main.Properties.Resources.user1;
     this.picUser.Location = new System.Drawing.Point(3, 8);
     this.picUser.Name     = "picUser";
     this.picUser.Size     = new System.Drawing.Size(24, 24);
     this.picUser.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.picUser.TabIndex = 0;
     this.picUser.TabStop  = false;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.pnlDownUser);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel7.Font     = new System.Drawing.Font("AtiranFont", 9.5F);
     this.panel7.Location = new System.Drawing.Point(0, 37);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(253, 3);
     this.panel7.TabIndex = 1;
     //
     // pnlDownUser
     //
     this.pnlDownUser.BackColor = System.Drawing.Color.White;
     this.pnlDownUser.Dock      = System.Windows.Forms.DockStyle.Top;
     this.pnlDownUser.Font      = new System.Drawing.Font("AtiranFont", 9.5F);
     this.pnlDownUser.Location  = new System.Drawing.Point(0, 0);
     this.pnlDownUser.Name      = "pnlDownUser";
     this.pnlDownUser.Size      = new System.Drawing.Size(253, 1);
     this.pnlDownUser.TabIndex  = 0;
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // lblMessage
     //
     this.lblMessage.Dock      = System.Windows.Forms.DockStyle.Top;
     this.lblMessage.Font      = new System.Drawing.Font("AtiranFont", 9.5F);
     this.lblMessage.ForeColor = System.Drawing.Color.White;
     this.lblMessage.Location  = new System.Drawing.Point(0, 136);
     this.lblMessage.Name      = "lblMessage";
     this.lblMessage.Size      = new System.Drawing.Size(253, 22);
     this.lblMessage.TabIndex  = 5;
     this.lblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // Login
     //
     this.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(36)))), ((int)(((byte)(49)))));
     this.BackgroundImage       = global::Atiran.Main.Properties.Resources.AtiranLogo_large;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     this.Controls.Add(this.panel1);
     this.DoubleBuffered = true;
     this.Name           = "Login";
     this.Size           = new System.Drawing.Size(800, 500);
     this.Load          += new System.EventHandler(this.Login_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.picFacebook)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.picInstagram)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.picTwitter)).EndInit();
     this.panel12.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel4.PerformLayout();
     this.panel9.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.picPass)).EndInit();
     this.panel10.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel8.ResumeLayout(false);
     this.panel8.PerformLayout();
     this.panel6.ResumeLayout(false);
     this.panel6.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picUser)).EndInit();
     this.panel7.ResumeLayout(false);
     this.ResumeLayout(false);
 }