Ejemplo n.º 1
0
        public LineHeaderButton(Header parent_, string fullName) : base(parent_)
        {
            this.Width     = 250;
            this.BackColor = System.Drawing.Color.FromArgb(120, 144, 156);
            this.ForeColor = System.Drawing.Color.FromArgb(255, 255, 255);

            lblUserFullName = new Controls.Label();

            lblUserFullName.Text      = fullName;
            lblUserFullName.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            lblUserFullName.Padding   = new System.Windows.Forms.Padding(5, 10, 0, 0);
            lblUserFullName.Dock      = DockStyle.Fill;
            lblUserFullName.Font      = FontManager.GetFont("IRANSans", 10, FontStyle.Regular);
            this.Controls.Add(lblUserFullName);
            this.lblUserFullName.MouseHover += LineHeaderButton_MouseHover;
            lblUserFullName.MouseLeave      += LblUserFullName_MouseLeave;
            //PictureBox userImage = new PictureBox();
            //userImage.Image = Resources._376;
            //userImage.Width = Resources._376.Width;
            //userImage.Dock = DockStyle.Right;
            //this.Controls.Add(userImage);

            // HeaderSeperator seperator = new HeaderSeperator(this);
            // seperator.Dock = System.Windows.Forms.DockStyle.Right;
            // this.Controls.Add(seperator);
        }
 private Controls.Label GetLabel(string text)
 {
     var label = new Controls.Label(text)
     {
         Width = 175,
         Margin = new Padding(2,1,2,2)
     };
     return label;
 }
Ejemplo n.º 3
0
        private Controls.Label GetLabel(string text)
        {
            var label = new Controls.Label(text)
            {
                Width  = 175,
                Margin = new Padding(2, 1, 2, 2)
            };

            return(label);
        }
        private void InitControls()
        {
            using (new LayoutSuspender(this))
            {
                var tablePanel = new TableLayoutPanel
                {
                    AutoSizeMode = AutoSizeMode.GrowAndShrink,
                    Margin       = Padding.Empty,
                    Padding      = Padding.Empty,
                    Size         = ClientSize
                };
                tablePanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
                Controls.Add(tablePanel);

                GroupingEvent sizeEvent = Environment.Threading.GroupingEvents[Rgc.Invariant].CreateEvent(
                    _lifetime,
                    Pid + ".SizeChanged",
                    TimeSpan.FromMilliseconds(300.0), () =>
                {
                    var clientSize = new Size(ClientSize.Width - _margin, ClientSize.Height - _margin);
                    if (!clientSize.Equals(tablePanel.Size))
                    {
                        using (new LayoutSuspender(this))
                        {
                            tablePanel.Size = clientSize;
                        }
                    }
                });
                EventHandler handler = (sender, args) => sizeEvent.FireIncoming();
                _lifetime.AddBracket(() => SizeChanged += handler, () => SizeChanged -= handler);

                string titleCaption = "Specify external file and directory paths to include in the code inspection. " +
                                      "Relative paths are relative to the directory containing the project. " +
                                      "Exclusions specified in the Generated Code settings apply." +
                                      System.Environment.NewLine +
                                      "NOTE: Changes do not take affect until project is loaded." +
                                      System.Environment.NewLine;
                var titleLabel = new Controls.Label(titleCaption)
                {
                    AutoSize = true, Dock = DockStyle.Top
                };
                tablePanel.Controls.Add(titleLabel);

                string[] externalCodePaths = _settings.EnumIndexedValues(ExternalCodeSettingsAccessor.Paths).ToArray();
                _externalCodePathsCollectionEdit = new StringCollectionEdit(Environment, "External files and directories:", null, _mainWindow, _windowsHookManager, _formValidators)
                {
                    Dock = DockStyle.Fill
                };
                _externalCodePathsCollectionEdit.Items.Value = externalCodePaths;
                tablePanel.Controls.Add(_externalCodePathsCollectionEdit, 0, 1);
            }
        }
Ejemplo n.º 5
0
        // лучше не использовать конструкторы для контролов, а юзать вложенные методы Controls.CreateControl()
        public void Init()
        {
            List<HotKey> debug_textbox_hotkeys = new List<HotKey>();
            debug_textbox_hotkeys.Add(new HotKey(new Keys[] { Keys.Enter },onDebugTextboxEnter));
            debug_textbox_hotkeys.Add(new HotKey(new Keys[] { Keys.Escape }, onDebugTextboxEscape));
            debug_textbox_hotkeys.Add(new HotKey(new Keys[] { Keys.Up }, onDebugTextboxUp));
            debug_textbox_hotkeys.Add(new HotKey(new Keys[] { Keys.Down }, onDebugTextboxDown));
               // string init_text ="debug console textbox";
            debug_textbox = Controls.CreateTextBox(new Vector2(0, GameConfiguration.ScreenResolution.Y - Content.Fonts._font1.MeasureString("A").Y - 5), new Vector2(1000, 1), debug_textbox_hotkeys);
               // command_buffer.Add(init_text);

            KeyboardManager.Manager.AddKeyboardUser(debug_textbox);

            string out_str = "";
            out_str += "                           FPS:\n";
            out_str += "                    Frame time:\n";
            out_str += "         Visible objects count:\n";
            out_str += "  Recalulcalated objects count:\n";
            out_str += "               Character angle:\n\n" ;
            out_str += "       \'Escape\'  - Show MainMenu ( or exit from something else )\n";
            out_str += "            \'O\'  - swich debug render\n";
            out_str += "            \'P\'  - toggle physic model of box\n";
            out_str += "            \'I\'  - force marine to drop gun\n";
            out_str += "            \'~\'  - toggle event console\n";
            out_str += "\'Left Ctrl + ~\'  - console writing\n";
            out_str += "           \'Tab'  - switch camera mode\n";

            Vector2 poss = Content.Fonts._font1.MeasureString("  Recalulcalated objects count:  ");
            poss.Y--;
            Controls.Label l_up_label;
            l_fps =                                 Controls.CreateLabel(GColors.CText,     new Vector2(poss.X, 5),                 Content.Fonts._font1);
            l_Frame_time =                          Controls.CreateLabel(GColors.CText,     new Vector2(poss.X, poss.Y + 5),        Content.Fonts._font1);
            l_Visible_objects_count =               Controls.CreateLabel(GColors.CText,     new Vector2(poss.X, 5 + poss.Y * 2),    Content.Fonts._font1);
            l_Recalulcalated_objects_count =        Controls.CreateLabel(GColors.CText,     new Vector2(poss.X, 5 + poss.Y * 3),    Content.Fonts._font1);
            l_Character_angle =                     Controls.CreateLabel(GColors.CText,     new Vector2(poss.X, 5 + poss.Y * 4),    Content.Fonts._font1);
            l_Character_name =                      Controls.CreateLabel(GColors.CAlarm,    new Vector2(),                          Content.Fonts._font1);
            l_up_label =                            Controls.CreateLabel(GColors.CText,     new Vector2(5, 5),                      Content.Fonts._font1, out_str);

            Controls.Image img2 = Controls.CreateImage(Vector2.Zero, new PackTexture("tex_w2x2\0",true), GColors.CTextBack, Content.Fonts._font1.MeasureString(out_str));
            debug_panel = new Controls.UserControl();
            debug_panel.Position = new Vector2(5, 5);

            debug_panel.Add(img2);
            debug_panel.Add(l_fps);
            debug_panel.Add(l_Frame_time);
            debug_panel.Add(l_Visible_objects_count);
            debug_panel.Add(l_Recalulcalated_objects_count);
            debug_panel.Add(l_Character_angle);
            debug_panel.Add(l_Character_name);
            debug_panel.Add(l_up_label);
            debug_panel.Add(debug_textbox);
            Add(debug_panel);
        }
Ejemplo n.º 6
0
 private void InitializeComponent()
 {
     this.pictureBoxIcon = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.lblShortcut    = new Atiran.UI.WindowsForms.Controls.Label();
     this.lblName        = new Atiran.UI.WindowsForms.Controls.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBoxIcon
     //
     this.pictureBoxIcon.Dock     = System.Windows.Forms.DockStyle.Right;
     this.pictureBoxIcon.Location = new System.Drawing.Point(394, 0);
     this.pictureBoxIcon.Name     = "pictureBoxIcon";
     this.pictureBoxIcon.Size     = new System.Drawing.Size(35, 35);
     this.pictureBoxIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBoxIcon.TabIndex = 0;
     this.pictureBoxIcon.TabStop  = false;
     //
     // lblShortcut
     //
     this.lblShortcut.Dock      = System.Windows.Forms.DockStyle.Left;
     this.lblShortcut.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.lblShortcut.ForeColor = System.Drawing.SystemColors.ButtonShadow;
     this.lblShortcut.Location  = new System.Drawing.Point(0, 0);
     this.lblShortcut.Name      = "lblShortcut";
     this.lblShortcut.Size      = new System.Drawing.Size(48, 35);
     this.lblShortcut.TabIndex  = 1;
     this.lblShortcut.Text      = "Shift + Key";
     this.lblShortcut.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblName
     //
     this.lblName.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblName.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.lblName.Location  = new System.Drawing.Point(48, 0);
     this.lblName.Name      = "lblName";
     this.lblName.Size      = new System.Drawing.Size(346, 35);
     this.lblName.TabIndex  = 2;
     this.lblName.Text      = "label2";
     this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // AtiranSpotlightItem
     //
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.lblShortcut);
     this.Controls.Add(this.pictureBoxIcon);
     this.Name = "AtiranSpotlightItem";
     this.Size = new System.Drawing.Size(429, 35);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 7
0
        public override void OnLoad()
        {
            base.OnLoad();

            Gw2Mumble = GameService.Gw2Mumble;
            Player    = GameService.Player;

            lblInfo = new Controls.Label {
                Font = GameService.Content.GetFont(ContentService.FontFace.Menomonia, ContentService.FontSize.Size11, ContentService.FontStyle.Regular),
                HorizontalAlignment = Utils.DrawUtil.HorizontalAlignment.Center,
                VerticalAlignment   = Utils.DrawUtil.VerticalAlignment.Middle,
                ShowShadow          = true,
                ShadowColor         = Color.Black,
                TextColor           = Color.White,
                StrokeText          = true
            };

            //lblInfo.Location = new Point(0, 2);

            UpdateSizeAndLocation(null, null);
            GameService.Graphics.SpriteScreen.Resized += UpdateSizeAndLocation;
        }
        private void InitControls()
        {
            using(new LayoutSuspender(this))
            {
                var tablePanel = new TableLayoutPanel
                                 {
                                     AutoSizeMode = AutoSizeMode.GrowAndShrink,
                                     Margin = Padding.Empty,
                                     Padding = Padding.Empty,
                                     Size = ClientSize
                                 };
                tablePanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
                Controls.Add(tablePanel);

                GroupingEvent sizeEvent = Environment.Threading.GroupingEvents[Rgc.Invariant].CreateEvent(
                    _lifetime,
                    Pid + ".SizeChanged",
                    TimeSpan.FromMilliseconds(300.0), () =>
                                                      {
                                                          var clientSize = new Size(ClientSize.Width - _margin, ClientSize.Height - _margin);
                                                          if(!clientSize.Equals(tablePanel.Size))
                                                          {
                                                              using(new LayoutSuspender(this))
                                                              {
                                                                  tablePanel.Size = clientSize;
                                                              }
                                                          }
                                                      });
                EventHandler handler = (sender, args) => sizeEvent.FireIncoming();
                _lifetime.AddBracket(() => SizeChanged += handler, () => SizeChanged -= handler);

                string titleCaption = "Specify external file and directory paths to include in the code inspection. " +
                                      "Relative paths are relative to the directory containing the project. " +
                                      "Exclusions specified in the Generated Code settings apply." +
                                      System.Environment.NewLine +
                                      "NOTE: Changes do not take affect until project is loaded." +
                                      System.Environment.NewLine;
                var titleLabel = new Controls.Label(titleCaption) {AutoSize = true, Dock = DockStyle.Top};
                tablePanel.Controls.Add(titleLabel);

                string[] externalCodePaths = _settings.EnumIndexedValues(ExternalCodeSettingsAccessor.Paths).ToArray();
                _externalCodePathsCollectionEdit = new StringCollectionEdit(Environment, "External files and directories:", null, _mainWindow, _windowsHookManager, _formValidators)
                                                   {
                                                       Dock = DockStyle.Fill
                                                   };
                _externalCodePathsCollectionEdit.Items.Value = externalCodePaths;
                tablePanel.Controls.Add(_externalCodePathsCollectionEdit, 0, 1);
            }
        }
Ejemplo n.º 9
0
 private void InitializeComponent()
 {
     this.comboFields      = new Atiran.UI.WindowsForms.Controls.ComboBoxes.ComboBox();
     this.flowLayoutPanel1 = new Atiran.UI.WindowsForms.Controls.FlowLayoutPanel();
     this.rbnozuli         = new Atiran.UI.WindowsForms.Controls.RadioButton();
     this.rbsoudi          = new Atiran.UI.WindowsForms.Controls.RadioButton();
     this.label1           = new Atiran.UI.WindowsForms.Controls.Label();
     this.label2           = new Atiran.UI.WindowsForms.Controls.Label();
     this.pictureBox1      = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.gradientPanel1   = new Atiran.UI.WindowsForms.UIElements.GradientPanel();
     this.lblSort          = new Atiran.UI.WindowsForms.Controls.Label();
     this.flowLayoutPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.gradientPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // comboFields
     //
     this.comboFields.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboFields.AutoCompleteMode   = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.comboFields.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
     this.comboFields.FormattingEnabled  = true;
     this.comboFields.Location           = new System.Drawing.Point(17, 7);
     this.comboFields.Margin             = new System.Windows.Forms.Padding(10);
     this.comboFields.Name        = "comboFields";
     this.comboFields.NextControl = null;
     this.comboFields.Size        = new System.Drawing.Size(142, 30);
     this.comboFields.TabIndex    = 0;
     //
     // flowLayoutPanel1
     //
     this.flowLayoutPanel1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.flowLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
     this.flowLayoutPanel1.Controls.Add(this.rbnozuli);
     this.flowLayoutPanel1.Controls.Add(this.rbsoudi);
     this.flowLayoutPanel1.Location = new System.Drawing.Point(20, 38);
     this.flowLayoutPanel1.Name     = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size     = new System.Drawing.Size(139, 29);
     this.flowLayoutPanel1.TabIndex = 100;
     //
     // rbnozuli
     //
     this.rbnozuli.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.rbnozuli.AutoSize                = true;
     this.rbnozuli.Location                = new System.Drawing.Point(3, 3);
     this.rbnozuli.Name                    = "rbnozuli";
     this.rbnozuli.NextControl             = null;
     this.rbnozuli.Size                    = new System.Drawing.Size(56, 26);
     this.rbnozuli.TabIndex                = 3;
     this.rbnozuli.Text                    = "نزولي";
     this.rbnozuli.UseVisualStyleBackColor = true;
     //
     // rbsoudi
     //
     this.rbsoudi.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.rbsoudi.AutoSize                = true;
     this.rbsoudi.Checked                 = true;
     this.rbsoudi.Location                = new System.Drawing.Point(65, 3);
     this.rbsoudi.Name                    = "rbsoudi";
     this.rbsoudi.NextControl             = null;
     this.rbsoudi.Size                    = new System.Drawing.Size(67, 26);
     this.rbsoudi.TabIndex                = 4;
     this.rbsoudi.TabStop                 = true;
     this.rbsoudi.Text                    = "صعودي";
     this.rbsoudi.UseVisualStyleBackColor = true;
     this.rbsoudi.CheckedChanged         += new System.EventHandler(this.rbsoudi_CheckedChanged);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label1.Location  = new System.Drawing.Point(162, 12);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(50, 22);
     this.label1.TabIndex  = 101;
     this.label1.Text      = "براساس";
     this.label1.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.BackColor = System.Drawing.Color.Transparent;
     this.label2.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label2.Location  = new System.Drawing.Point(163, 42);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(56, 22);
     this.label2.TabIndex  = 101;
     this.label2.Text      = "به صورت";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = global::Atiran.UI.WindowsForms.Resources.Sort;
     this.pictureBox1.Location = new System.Drawing.Point(0, 2);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(34, 33);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 102;
     this.pictureBox1.TabStop  = false;
     this.pictureBox1.Click   += new System.EventHandler(this.pictureBox1_Click);
     //
     // gradientPanel1
     //
     this.gradientPanel1.BackColor   = System.Drawing.SystemColors.GradientInactiveCaption;
     this.gradientPanel1.BorderColor = System.Drawing.Color.LightGoldenrodYellow;
     this.gradientPanel1.Controls.Add(this.lblSort);
     this.gradientPanel1.Controls.Add(this.label1);
     this.gradientPanel1.Controls.Add(this.comboFields);
     this.gradientPanel1.Controls.Add(this.flowLayoutPanel1);
     this.gradientPanel1.Controls.Add(this.label2);
     this.gradientPanel1.Dock               = System.Windows.Forms.DockStyle.Right;
     this.gradientPanel1.Font               = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.gradientPanel1.GradientEndColor   = System.Drawing.Color.LightCyan;
     this.gradientPanel1.GradientStartColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(227)))), ((int)(((byte)(241)))));
     this.gradientPanel1.Image              = null;
     this.gradientPanel1.ImageLocation      = new System.Drawing.Point(4, 4);
     this.gradientPanel1.Location           = new System.Drawing.Point(45, 0);
     this.gradientPanel1.Margin             = new System.Windows.Forms.Padding(0);
     this.gradientPanel1.Name               = "gradientPanel1";
     this.gradientPanel1.Size               = new System.Drawing.Size(226, 99);
     this.gradientPanel1.TabIndex           = 104;
     //
     // lblSort
     //
     this.lblSort.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblSort.AutoSize  = true;
     this.lblSort.BackColor = System.Drawing.Color.Transparent;
     this.lblSort.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.lblSort.Location  = new System.Drawing.Point(6, 67);
     this.lblSort.Name      = "lblSort";
     this.lblSort.Size      = new System.Drawing.Size(108, 22);
     this.lblSort.TabIndex  = 102;
     this.lblSort.Text      = "Alt+S:مرتب سازي";
     this.lblSort.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // SortControl
     //
     this.BackColor = System.Drawing.SystemColors.Control;
     this.Controls.Add(this.gradientPanel1);
     this.Controls.Add(this.pictureBox1);
     this.Name  = "SortControl";
     this.Size  = new System.Drawing.Size(271, 99);
     this.Load += new System.EventHandler(this.SortControl_Load);
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.gradientPanel1.ResumeLayout(false);
     this.gradientPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 10
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);
 }
Ejemplo n.º 11
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);
 }
Ejemplo n.º 12
0
 private void InitializeComponent()
 {
     this.panel1      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.label1      = new Atiran.UI.WindowsForms.Controls.Label();
     this.pictureBox1 = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.pnlBack     = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel2      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.pnlResult   = new Atiran.UI.WindowsForms.Controls.FlowLayoutPanel();
     this.panel4      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.panel3      = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.pnlTextbox  = new Atiran.UI.WindowsForms.UIElements.Panel();
     this.txtSerach   = new Atiran.UI.WindowsForms.Controls.TextBoxes.TextBox();
     this.pictureBox2 = new Atiran.UI.WindowsForms.Controls.pictureBox();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.pnlBack.SuspendLayout();
     this.panel2.SuspendLayout();
     this.pnlTextbox.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.Teal;
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.pictureBox1);
     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(674, 35);
     this.panel1.TabIndex = 0;
     //
     // label1
     //
     this.label1.Dock      = System.Windows.Forms.DockStyle.Left;
     this.label1.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.label1.ForeColor = System.Drawing.Color.White;
     this.label1.Location  = new System.Drawing.Point(33, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(109, 35);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Atiran Spotlight";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.pictureBox1.Image    = global::Atiran.UI.WindowsForms.Resources.Atiran_Spotlight_Icon;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(33, 35);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop  = false;
     //
     // pnlBack
     //
     this.pnlBack.Controls.Add(this.panel2);
     this.pnlBack.Controls.Add(this.pictureBox2);
     this.pnlBack.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlBack.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.pnlBack.Location = new System.Drawing.Point(0, 35);
     this.pnlBack.Name     = "pnlBack";
     this.pnlBack.Size     = new System.Drawing.Size(674, 333);
     this.pnlBack.TabIndex = 1;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.pnlResult);
     this.panel2.Controls.Add(this.panel4);
     this.panel2.Controls.Add(this.panel3);
     this.panel2.Controls.Add(this.pnlTextbox);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel2.Location = new System.Drawing.Point(0, 166);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(674, 167);
     this.panel2.TabIndex = 1;
     //
     // pnlResult
     //
     this.pnlResult.AutoScroll = true;
     this.pnlResult.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.pnlResult.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.pnlResult.Location   = new System.Drawing.Point(100, 32);
     this.pnlResult.Name       = "pnlResult";
     this.pnlResult.Padding    = new System.Windows.Forms.Padding(0, 0, 10, 0);
     this.pnlResult.Size       = new System.Drawing.Size(463, 135);
     this.pnlResult.TabIndex   = 3;
     //
     // panel4
     //
     this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.panel4.Dock      = System.Windows.Forms.DockStyle.Right;
     this.panel4.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel4.Location  = new System.Drawing.Point(563, 32);
     this.panel4.Name      = "panel4";
     this.panel4.Size      = new System.Drawing.Size(111, 135);
     this.panel4.TabIndex  = 2;
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.panel3.Dock      = System.Windows.Forms.DockStyle.Left;
     this.panel3.Font      = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.panel3.Location  = new System.Drawing.Point(0, 32);
     this.panel3.Name      = "panel3";
     this.panel3.Size      = new System.Drawing.Size(100, 135);
     this.panel3.TabIndex  = 1;
     //
     // pnlTextbox
     //
     this.pnlTextbox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.pnlTextbox.Controls.Add(this.txtSerach);
     this.pnlTextbox.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnlTextbox.Font     = new System.Drawing.Font("IRANSans(FaNum)", 9.5F);
     this.pnlTextbox.Location = new System.Drawing.Point(0, 0);
     this.pnlTextbox.Name     = "pnlTextbox";
     this.pnlTextbox.Size     = new System.Drawing.Size(674, 32);
     this.pnlTextbox.TabIndex = 0;
     //
     // txtSerach
     //
     this.txtSerach.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txtSerach.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtSerach.Font         = new System.Drawing.Font("IRANSans(FaNum)", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtSerach.Location     = new System.Drawing.Point(100, -1);
     this.txtSerach.Margin       = new System.Windows.Forms.Padding(10);
     this.txtSerach.Name         = "txtSerach";
     this.txtSerach.NextControl  = null;
     this.txtSerach.Size         = new System.Drawing.Size(463, 33);
     this.txtSerach.TabIndex     = 0;
     this.txtSerach.TextAlign    = System.Windows.Forms.HorizontalAlignment.Right;
     this.txtSerach.TextChanged += new System.EventHandler(this.TxtSerach_TextChanged);
     this.txtSerach.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.TxtSerach_KeyDown);
     //
     // pictureBox2
     //
     this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.pictureBox2.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.pictureBox2.Image     = global::Atiran.UI.WindowsForms.Resources.Atiran_Spotlight_Background;
     this.pictureBox2.Location  = new System.Drawing.Point(0, 0);
     this.pictureBox2.Name      = "pictureBox2";
     this.pictureBox2.Size      = new System.Drawing.Size(674, 333);
     this.pictureBox2.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox2.TabIndex  = 0;
     this.pictureBox2.TabStop   = false;
     //
     // AtiranSpotlight
     //
     this.Controls.Add(this.pnlBack);
     this.Controls.Add(this.panel1);
     this.Name = "AtiranSpotlight";
     this.Size = new System.Drawing.Size(674, 368);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.pnlBack.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.pnlTextbox.ResumeLayout(false);
     this.pnlTextbox.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 13
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);
 }
Ejemplo n.º 14
0
        private void InitControls()
        {
            using (new LayoutSuspender(this))
            {
                TableLayoutPanel tablePanel = new TableLayoutPanel
                {
                    AutoSizeMode = AutoSizeMode.GrowAndShrink,
                    Margin       = Padding.Empty,
                    Padding      = Padding.Empty,
                    Size         = ClientSize
                };
                tablePanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
                tablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
                Controls.Add(tablePanel);

                GroupingEvent sizeEvent = Environment.Threading.GroupingEvents[Rgc.Invariant].CreateEvent(
                    m_lifetime,
                    PID + ".SizeChanged",
                    TimeSpan.FromMilliseconds(300.0), () =>
                {
                    Size clientSize = new Size(ClientSize.Width - MARGIN, ClientSize.Height - MARGIN);
                    if (!clientSize.Equals(tablePanel.Size))
                    {
                        using (new LayoutSuspender(this))
                        {
                            tablePanel.Size = clientSize;
                        }
                    }
                });
                EventHandler handler = (sender, args) => sizeEvent.FireIncoming();
                m_lifetime.AddBracket(() => SizeChanged += handler, () => SizeChanged -= handler);

                string titleCaption = "Specify Unity Classes" +
                                      System.Environment.NewLine;
                Controls.Label titleLabel = new Controls.Label(titleCaption)
                {
                    AutoSize = true, Dock = DockStyle.Top
                };
                tablePanel.Controls.Add(titleLabel);

                string[] unityClasses = m_settings.EnumIndexedValues(UnitySettingsAccessor.UnityClasses).ToArray();
                m_unityClassesCollectionEdit = new StringCollectionEdit(Environment,
                                                                        "Unity Classes:", null, m_mainWindow, m_windowsHookManager, m_formValidators)
                {
                    Dock = DockStyle.Fill
                };
                m_unityClassesCollectionEdit.Items.Value = unityClasses;
                tablePanel.Controls.Add(m_unityClassesCollectionEdit, 0, 1);

                string attributesTitleCaption = "Implicit Attributes" +
                                                System.Environment.NewLine;
                Controls.Label attributesTitleLabel = new Controls.Label(attributesTitleCaption)
                {
                    AutoSize = true, Dock = DockStyle.Top
                };
                tablePanel.Controls.Add(attributesTitleLabel, 0, 2);

                string[] unityAttributes = m_settings.EnumIndexedValues(UnitySettingsAccessor.UnityAttributes).ToArray();
                m_unityAttributesCollectionEdit = new StringCollectionEdit(Environment,
                                                                           "Unity Attributes:", null, m_mainWindow, m_windowsHookManager, m_formValidators)
                {
                    Dock = DockStyle.Fill
                };
                m_unityAttributesCollectionEdit.Items.Value = unityAttributes;
                tablePanel.Controls.Add(m_unityAttributesCollectionEdit, 0, 3);
            }
        }