Esempio n. 1
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainForm));

            this.StartButton              = new Button();
            this.pictureBox               = new PictureBox();
            this.toolTip1                 = new ToolTip(this.components);
            this.groupBox2                = new GroupBox();
            this.label2                   = new Label();
            this.PixelSizeNumericUpDown   = new NumericUpDown();
            this.DiameterLabel            = new Label();
            this.DiameterNumericUpDown    = new NumericUpDown();
            this.label1                   = new Label();
            this.FocalLengthNumericUpDown = new NumericUpDown();
            this.SoundCheckBox            = new CheckBox();
            this.FocusErrorLabel          = new Label();
            this.AverageFocusErrorLabel   = new Label();
            this.WithinCriticalFocusLabel = new Label();
            this.AbsFocusErrorLabel       = new Label();
            this.MaskTypeLabel            = new Label();
            this.MaskAnglesLabel          = new Label();
            this.BlueCheckBox             = new CheckBox();
            this.RedCheckBox              = new CheckBox();
            this.GreenCheckBox            = new CheckBox();
            this.RGBgroupBox              = new GroupBox();
            this.donate_button            = new Button();
            this.RotatingFocusserCheckBox = new CheckBox();
            ((ISupportInitialize)this.pictureBox).BeginInit();
            this.groupBox2.SuspendLayout();
            this.PixelSizeNumericUpDown.BeginInit();
            this.DiameterNumericUpDown.BeginInit();
            this.FocalLengthNumericUpDown.BeginInit();
            this.RGBgroupBox.SuspendLayout();
            this.SuspendLayout();
            this.StartButton.Location = new Point(11, 39);
            this.StartButton.Name     = "StartButton";
            this.StartButton.Size     = new Size(56, 62);
            this.StartButton.TabIndex = 0;
            this.StartButton.Text     = "Set capture area";
            this.toolTip1.SetToolTip((Control)this.StartButton, componentResourceManager.GetString("StartButton.ToolTip"));
            this.StartButton.UseVisualStyleBackColor = true;
            this.StartButton.Click    += new EventHandler(this.StartButton_Click);
            this.pictureBox.Location   = new Point(258, 175);
            this.pictureBox.Name       = "pictureBox";
            this.pictureBox.Size       = new Size(245, 230);
            this.pictureBox.SizeMode   = PictureBoxSizeMode.AutoSize;
            this.pictureBox.TabIndex   = 1;
            this.pictureBox.TabStop    = false;
            this.toolTip1.AutoPopDelay = 5000;
            this.toolTip1.InitialDelay = 500;
            this.toolTip1.ReshowDelay  = 100;
            this.toolTip1.Tag          = (object)"";
            this.groupBox2.Controls.Add((Control)this.label2);
            this.groupBox2.Controls.Add((Control)this.PixelSizeNumericUpDown);
            this.groupBox2.Controls.Add((Control)this.DiameterLabel);
            this.groupBox2.Controls.Add((Control)this.DiameterNumericUpDown);
            this.groupBox2.Controls.Add((Control)this.label1);
            this.groupBox2.Controls.Add((Control)this.FocalLengthNumericUpDown);
            this.groupBox2.Location = new Point(328, 4);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new Size(175, (int)sbyte.MaxValue);
            this.groupBox2.TabIndex = 7;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = "Telescope";
            this.label2.AutoSize    = true;
            this.label2.Location    = new Point(10, 74);
            this.label2.Name        = "label2";
            this.label2.Size        = new Size(83, 13);
            this.label2.TabIndex    = 5;
            this.label2.Text        = "pixelsize(micron)";
            this.PixelSizeNumericUpDown.DecimalPlaces = 2;
            this.PixelSizeNumericUpDown.Increment     = new Decimal(new int[4]
            {
                1,
                0,
                0,
                131072
            });
            this.PixelSizeNumericUpDown.Location = new Point(99, 72);
            this.PixelSizeNumericUpDown.Name     = "PixelSizeNumericUpDown";
            this.PixelSizeNumericUpDown.Size     = new Size(60, 20);
            this.PixelSizeNumericUpDown.TabIndex = 4;
            this.PixelSizeNumericUpDown.Value    = new Decimal(new int[4]
            {
                56,
                0,
                0,
                65536
            });
            this.PixelSizeNumericUpDown.ValueChanged += new EventHandler(this.PixelSizeNumericUpDown_ValueChanged);
            this.DiameterLabel.AutoSize = true;
            this.DiameterLabel.Location = new Point(64, 48);
            this.DiameterLabel.Name     = "DiameterLabel";
            this.DiameterLabel.Size     = new Size(29, 13);
            this.DiameterLabel.TabIndex = 3;
            this.DiameterLabel.Text     = "D(m)";
            this.DiameterNumericUpDown.DecimalPlaces = 3;
            this.DiameterNumericUpDown.Increment     = new Decimal(new int[4]
            {
                1,
                0,
                0,
                196608
            });
            this.DiameterNumericUpDown.Location = new Point(99, 46);
            this.DiameterNumericUpDown.Name     = "DiameterNumericUpDown";
            this.DiameterNumericUpDown.Size     = new Size(60, 20);
            this.DiameterNumericUpDown.TabIndex = 2;
            this.DiameterNumericUpDown.Value    = new Decimal(new int[4]
            {
                203,
                0,
                0,
                196608
            });
            this.DiameterNumericUpDown.ValueChanged += new EventHandler(this.DiameterNumericUpDown_ValueChanged);
            this.label1.AutoSize = true;
            this.label1.Location = new Point(64, 22);
            this.label1.Name     = "label1";
            this.label1.Size     = new Size(27, 13);
            this.label1.TabIndex = 1;
            this.label1.Text     = "f (m)";
            this.FocalLengthNumericUpDown.DecimalPlaces = 3;
            this.FocalLengthNumericUpDown.Increment     = new Decimal(new int[4]
            {
                1,
                0,
                0,
                196608
            });
            this.FocalLengthNumericUpDown.Location = new Point(99, 20);
            this.FocalLengthNumericUpDown.Name     = "FocalLengthNumericUpDown";
            this.FocalLengthNumericUpDown.Size     = new Size(60, 20);
            this.FocalLengthNumericUpDown.TabIndex = 0;
            this.FocalLengthNumericUpDown.Value    = new Decimal(new int[4]
            {
                2032,
                0,
                0,
                196608
            });
            this.FocalLengthNumericUpDown.ValueChanged += new EventHandler(this.FocalLengthNumericUpDown_ValueChanged);
            this.SoundCheckBox.AutoSize = true;
            this.SoundCheckBox.Location = new Point(11, 105);
            this.SoundCheckBox.Name     = "SoundCheckBox";
            this.SoundCheckBox.Size     = new Size(57, 17);
            this.SoundCheckBox.TabIndex = 8;
            this.SoundCheckBox.Text     = "Sound";
            this.SoundCheckBox.UseVisualStyleBackColor = true;
            this.SoundCheckBox.CheckedChanged         += new EventHandler(this.SoundCheckBox_CheckedChanged);
            this.FocusErrorLabel.AutoSize          = true;
            this.FocusErrorLabel.Location          = new Point(11, 150);
            this.FocusErrorLabel.Name              = "FocusErrorLabel";
            this.FocusErrorLabel.Size              = new Size(60, 13);
            this.FocusErrorLabel.TabIndex          = 9;
            this.FocusErrorLabel.Text              = "Focus error";
            this.AverageFocusErrorLabel.AutoSize   = true;
            this.AverageFocusErrorLabel.Location   = new Point(11, 175);
            this.AverageFocusErrorLabel.Name       = "AverageFocusErrorLabel";
            this.AverageFocusErrorLabel.Size       = new Size(100, 13);
            this.AverageFocusErrorLabel.TabIndex   = 10;
            this.AverageFocusErrorLabel.Text       = "Average focus error";
            this.WithinCriticalFocusLabel.AutoSize = true;
            this.WithinCriticalFocusLabel.Location = new Point(11, 229);
            this.WithinCriticalFocusLabel.Name     = "WithinCriticalFocusLabel";
            this.WithinCriticalFocusLabel.Size     = new Size(99, 13);
            this.WithinCriticalFocusLabel.TabIndex = 11;
            this.WithinCriticalFocusLabel.Text     = "Within critical focus";
            this.AbsFocusErrorLabel.AutoSize       = true;
            this.AbsFocusErrorLabel.Location       = new Point(11, 202);
            this.AbsFocusErrorLabel.Name           = "AbsFocusErrorLabel";
            this.AbsFocusErrorLabel.Size           = new Size(101, 13);
            this.AbsFocusErrorLabel.TabIndex       = 12;
            this.AbsFocusErrorLabel.Text           = "Absolute focus error";
            this.MaskTypeLabel.AutoSize            = true;
            this.MaskTypeLabel.Location            = new Point(11, 257);
            this.MaskTypeLabel.Name                   = "MaskTypeLabel";
            this.MaskTypeLabel.Size                   = new Size(56, 13);
            this.MaskTypeLabel.TabIndex               = 13;
            this.MaskTypeLabel.Text                   = "Mask type";
            this.MaskAnglesLabel.AutoSize             = true;
            this.MaskAnglesLabel.Location             = new Point(11, 282);
            this.MaskAnglesLabel.Name                 = "MaskAnglesLabel";
            this.MaskAnglesLabel.Size                 = new Size(67, 13);
            this.MaskAnglesLabel.TabIndex             = 14;
            this.MaskAnglesLabel.Text                 = "Mask angles";
            this.BlueCheckBox.AutoSize                = true;
            this.BlueCheckBox.Checked                 = true;
            this.BlueCheckBox.CheckState              = CheckState.Checked;
            this.BlueCheckBox.Location                = new Point(14, 65);
            this.BlueCheckBox.Name                    = "BlueCheckBox";
            this.BlueCheckBox.Size                    = new Size(47, 17);
            this.BlueCheckBox.TabIndex                = 16;
            this.BlueCheckBox.Text                    = "Blue";
            this.BlueCheckBox.UseVisualStyleBackColor = true;
            this.RedCheckBox.AutoSize                 = true;
            this.RedCheckBox.Checked                  = true;
            this.RedCheckBox.CheckState               = CheckState.Checked;
            this.RedCheckBox.Location                 = new Point(14, 19);
            this.RedCheckBox.Name     = "RedCheckBox";
            this.RedCheckBox.Size     = new Size(46, 17);
            this.RedCheckBox.TabIndex = 15;
            this.RedCheckBox.Text     = "Red";
            this.RedCheckBox.UseVisualStyleBackColor = true;
            this.GreenCheckBox.AutoSize   = true;
            this.GreenCheckBox.Checked    = true;
            this.GreenCheckBox.CheckState = CheckState.Checked;
            this.GreenCheckBox.Location   = new Point(14, 42);
            this.GreenCheckBox.Name       = "GreenCheckBox";
            this.GreenCheckBox.Size       = new Size(55, 17);
            this.GreenCheckBox.TabIndex   = 17;
            this.GreenCheckBox.Text       = "Green";
            this.GreenCheckBox.UseVisualStyleBackColor = true;
            this.RGBgroupBox.Controls.Add((Control)this.GreenCheckBox);
            this.RGBgroupBox.Controls.Add((Control)this.BlueCheckBox);
            this.RGBgroupBox.Controls.Add((Control)this.RedCheckBox);
            this.RGBgroupBox.Location   = new Point(9, 307);
            this.RGBgroupBox.Name       = "RGBgroupBox";
            this.RGBgroupBox.Size       = new Size(134, 91);
            this.RGBgroupBox.TabIndex   = 18;
            this.RGBgroupBox.TabStop    = false;
            this.RGBgroupBox.Text       = "RGB channels used";
            this.donate_button.Location = new Point(11, 4);
            this.donate_button.Name     = "donate_button";
            this.donate_button.Size     = new Size(158, 25);
            this.donate_button.TabIndex = 12;
            this.donate_button.Text     = "Donate if you like (Paypal)";
            this.donate_button.UseVisualStyleBackColor = true;
            this.donate_button.Click              += new EventHandler(this.donate_button_Click);
            this.donate_button.Enabled             = false;
            this.RotatingFocusserCheckBox.AutoSize = true;
            this.RotatingFocusserCheckBox.Location = new Point(204, 12);
            this.RotatingFocusserCheckBox.Name     = "RotatingFocusserCheckBox";
            this.RotatingFocusserCheckBox.Size     = new Size(107, 17);
            this.RotatingFocusserCheckBox.TabIndex = 7;
            this.RotatingFocusserCheckBox.Text     = "Rotating Focuser";
            this.RotatingFocusserCheckBox.UseVisualStyleBackColor = true;
            this.RotatingFocusserCheckBox.CheckedChanged         += new EventHandler(this.RotatingFocusserCheckBox_CheckedChanged);
            this.AutoScaleDimensions = new SizeF(6f, 13f);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.ClientSize          = new Size(518, 423);
            this.Controls.Add((Control)this.donate_button);
            this.Controls.Add((Control)this.RGBgroupBox);
            this.Controls.Add((Control)this.RotatingFocusserCheckBox);
            this.Controls.Add((Control)this.MaskAnglesLabel);
            this.Controls.Add((Control)this.MaskTypeLabel);
            this.Controls.Add((Control)this.AbsFocusErrorLabel);
            this.Controls.Add((Control)this.WithinCriticalFocusLabel);
            this.Controls.Add((Control)this.AverageFocusErrorLabel);
            this.Controls.Add((Control)this.FocusErrorLabel);
            this.Controls.Add((Control)this.SoundCheckBox);
            this.Controls.Add((Control)this.groupBox2);
            this.Controls.Add((Control)this.pictureBox);
            this.Controls.Add((Control)this.StartButton);
            this.MinimumSize = new Size(526, 450);
            this.Name        = "MainForm";
            this.Text        = "Bahtinov grabber  V17.0 June 23 2011";
            this.Load       += new EventHandler(this.MainForm_Load);
            ((ISupportInitialize)this.pictureBox).EndInit();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.PixelSizeNumericUpDown.EndInit();
            this.DiameterNumericUpDown.EndInit();
            this.FocalLengthNumericUpDown.EndInit();
            this.RGBgroupBox.ResumeLayout(false);
            this.RGBgroupBox.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 2
0
        private void Confirm_Click(object sender, EventArgs e)
        {
            ComponentResourceManager res = new ComponentResourceManager(typeof(ProjectForm));

            if (nameBox.Text == null || nameBox.Text == "")
            {
                errorProvider.SetError(nameLabel, res.GetString("error.NameEmpty"));
                SystemSounds.Beep.Play();
                nameBox.Focus();
                return;
            }
            if (fileBox.Text == null || fileBox.Text == "")
            {
                errorProvider.SetError(fileLabel, res.GetString("error.FileEmpty"));
                SystemSounds.Beep.Play();
                fileBox.Focus();
                return;
            }
            if (((AddMode && securityPanel.Visible) || (!AddMode && !ReturnValue.Encryted)) && passwordBox.Text == "")
            {
                MessageBox.Show(res.GetString("error.EmptyPassword"), res.GetString("error"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                passwordBox.Focus();
                return;
            }

            if (Settings.Default.RecentFolders == null)
            {
                Settings.Default.RecentFolders = new System.Collections.Specialized.StringCollection();
            }
            if (!Settings.Default.RecentFolders.Contains(fileBox.Text))
            {
                Settings.Default.RecentFolders.Add(fileBox.Text);
                Settings.Default.Save();
            }

            DialogResult = DialogResult.OK;
            if (AddMode)
            {
                if (securityPanel.Visible)
                {
                    ReturnValue = new Project(fileBox.Text, nameBox.Text, passwordBox.Text);
                    SyncWorkdaySelections();
                    ReturnValue.DailyAdmins.AddRange(dailyAdmins);
                }
                else
                {
                    ReturnValue = new Project(fileBox.Text, nameBox.Text);
                }
            }
            else
            {
                ReturnValue.Name = nameBox.Text;
                if (passwordBox.Text != "")
                {
                    ReturnValue.Encrypt(passwordBox.Text);
                }
                if (ReturnValue.Encryted)
                {
                    SyncWorkdaySelections();
                    ReturnValue.DailyAdmins = dailyAdmins;
                }
            }
            Close();
        }
Esempio n. 3
0
        private void InitializeComponent()
        {
            _components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MaskDesignerDialog));

            _lblHeader             = new Label();
            _listViewCannedMasks   = new ListView();
            _maskDescriptionHeader = new ColumnHeader(resources.GetString("listViewCannedMasks.Columns"));
            _dataFormatHeader      = new ColumnHeader(resources.GetString("listViewCannedMasks.Columns1"));
            _validatingTypeHeader  = new ColumnHeader(resources.GetString("listViewCannedMasks.Columns2"));
            _btnOK     = new Button();
            _btnCancel = new Button();
            _checkBoxUseValidatingType = new CheckBox();
            _maskTryItTable            = new TableLayoutPanel();
            _lblMask    = new Label();
            _txtBoxMask = new TextBox();
            _lblTryIt   = new Label();
            _overarchingTableLayoutPanel = new TableLayoutPanel();
            _okCancelTableLayoutPanel    = new TableLayoutPanel();
            _errorProvider = new ErrorProvider(_components);
            _maskTryItTable.SuspendLayout();
            _overarchingTableLayoutPanel.SuspendLayout();
            _okCancelTableLayoutPanel.SuspendLayout();
            ((ISupportInitialize)(_errorProvider)).BeginInit();
            SuspendLayout();
            //
            // maskedTextBox
            //
            resources.ApplyResources(_maskedTextBox, "maskedTextBox");
            _maskedTextBox.Margin = new Padding(3, 3, 18, 0);
            _maskedTextBox.Name   = "maskedTextBox";
            //
            // lblHeader
            //
            resources.ApplyResources(_lblHeader, "lblHeader");
            _lblHeader.Margin = new Padding(0, 0, 0, 3);
            _lblHeader.Name   = "lblHeader";
            //
            // listViewCannedMasks
            //
            resources.ApplyResources(_listViewCannedMasks, "listViewCannedMasks");
            _listViewCannedMasks.Columns.AddRange(new ColumnHeader[] {
                _maskDescriptionHeader,
                _dataFormatHeader,
                _validatingTypeHeader
            });
            _listViewCannedMasks.FullRowSelect = true;
            _listViewCannedMasks.HideSelection = false;
            _listViewCannedMasks.Margin        = new Padding(0, 3, 0, 3);
            _listViewCannedMasks.MultiSelect   = false;
            _listViewCannedMasks.Name          = "listViewCannedMasks";
            _listViewCannedMasks.Sorting       = SortOrder.None; // We'll do the sorting ourselves.
            _listViewCannedMasks.View          = View.Details;
            //
            // maskDescriptionHeader
            //
            resources.ApplyResources(_maskDescriptionHeader, "maskDescriptionHeader");
            //
            // dataFormatHeader
            //
            resources.ApplyResources(_dataFormatHeader, "dataFormatHeader");
            //
            // validatingTypeHeader
            //
            resources.ApplyResources(_validatingTypeHeader, "validatingTypeHeader");
            //
            // btnOK
            //
            resources.ApplyResources(_btnOK, "btnOK");
            _btnOK.DialogResult = DialogResult.OK;
            _btnOK.Margin       = new Padding(0, 0, 3, 0);
            _btnOK.MinimumSize  = new Drawing.Size(75, 23);
            _btnOK.Name         = "btnOK";
            _btnOK.Padding      = new Padding(10, 0, 10, 0);
            //
            // btnCancel
            //
            resources.ApplyResources(_btnCancel, "btnCancel");
            _btnCancel.DialogResult = DialogResult.Cancel;
            _btnCancel.Margin       = new Padding(3, 0, 0, 0);
            _btnCancel.MinimumSize  = new Drawing.Size(75, 23);
            _btnCancel.Name         = "btnCancel";
            _btnCancel.Padding      = new Padding(10, 0, 10, 0);
            //
            // checkBoxUseValidatingType
            //
            resources.ApplyResources(_checkBoxUseValidatingType, "checkBoxUseValidatingType");
            _checkBoxUseValidatingType.Checked    = true;
            _checkBoxUseValidatingType.CheckState = CheckState.Checked;
            _checkBoxUseValidatingType.Margin     = new Padding(0, 0, 0, 3);
            _checkBoxUseValidatingType.Name       = "checkBoxUseValidatingType";
            //
            // maskTryItTable
            //
            resources.ApplyResources(_maskTryItTable, "maskTryItTable");
            _maskTryItTable.ColumnStyles.Add(new ColumnStyle());
            _maskTryItTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
            _maskTryItTable.ColumnStyles.Add(new ColumnStyle());
            _maskTryItTable.Controls.Add(_checkBoxUseValidatingType, 2, 0);
            _maskTryItTable.Controls.Add(_lblMask, 0, 0);
            _maskTryItTable.Controls.Add(_txtBoxMask, 1, 0);
            _maskTryItTable.Controls.Add(_lblTryIt, 0, 1);
            _maskTryItTable.Controls.Add(_maskedTextBox, 1, 1);
            _maskTryItTable.Margin = new Padding(0, 3, 0, 3);
            _maskTryItTable.Name   = "maskTryItTable";
            _maskTryItTable.RowStyles.Add(new RowStyle());
            _maskTryItTable.RowStyles.Add(new RowStyle());
            //
            // lblMask
            //
            resources.ApplyResources(_lblMask, "lblMask");
            _lblMask.Margin = new Padding(0, 0, 3, 3);
            _lblMask.Name   = "lblMask";
            //
            // txtBoxMask
            //
            resources.ApplyResources(_txtBoxMask, "txtBoxMask");
            _txtBoxMask.Margin = new Padding(3, 0, 18, 3);
            _txtBoxMask.Name   = "txtBoxMask";
            //
            // lblTryIt
            //
            resources.ApplyResources(_lblTryIt, "lblTryIt");
            _lblTryIt.Margin = new Padding(0, 3, 3, 0);
            _lblTryIt.Name   = "lblTryIt";
            //
            // overarchingTableLayoutPanel
            //
            resources.ApplyResources(_overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
            _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            _overarchingTableLayoutPanel.Controls.Add(_maskTryItTable, 0, 3);
            _overarchingTableLayoutPanel.Controls.Add(_okCancelTableLayoutPanel, 0, 4);
            _overarchingTableLayoutPanel.Controls.Add(_lblHeader, 0, 1);
            _overarchingTableLayoutPanel.Controls.Add(_listViewCannedMasks, 0, 2);
            _overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
            _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
            _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            //
            // okCancelTableLayoutPanel
            //
            resources.ApplyResources(_okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
            _okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            _okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            _okCancelTableLayoutPanel.Controls.Add(_btnCancel, 1, 0);
            _okCancelTableLayoutPanel.Controls.Add(_btnOK, 0, 0);
            _okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0);
            _okCancelTableLayoutPanel.Name   = "okCancelTableLayoutPanel";
            _okCancelTableLayoutPanel.RowStyles.Add(new RowStyle());
            //
            // errorProvider
            //
            _errorProvider.BlinkStyle       = ErrorBlinkStyle.NeverBlink;
            _errorProvider.ContainerControl = this;
            //
            // MaskDesignerDialog
            //
            resources.ApplyResources(this, "$this");
            AcceptButton  = _btnOK;
            CancelButton  = _btnCancel;
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(_overarchingTableLayoutPanel);
            FormBorderStyle = FormBorderStyle.FixedDialog;
            HelpButton      = true;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "MaskDesignerDialog";
            ShowInTaskbar   = false;
            SizeGripStyle   = SizeGripStyle.Hide;
            _maskTryItTable.ResumeLayout(false);
            _maskTryItTable.PerformLayout();
            _overarchingTableLayoutPanel.ResumeLayout(false);
            _overarchingTableLayoutPanel.PerformLayout();
            _okCancelTableLayoutPanel.ResumeLayout(false);
            _okCancelTableLayoutPanel.PerformLayout();
            ((ISupportInitialize)(_errorProvider)).EndInit();
            ResumeLayout(false);
        }
Esempio n. 4
0
        public void ImportMail(Outlook.Explorers explorers, ConfigXML configXML)
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(OpenKMAddIn));

            int mailCount  = 0;
            int mailAttach = 0;

            for (int y = 1; y <= explorers.Count; y++)
            {
                Outlook.Explorer openWindow        = explorers.Item(y);
                String           token             = "";
                OKMAuth          authService       = new OKMAuth(configXML.getHost());
                OKMFolder        folderService     = new OKMFolder(configXML.getHost());
                OKMRepository    repositoryService = new OKMRepository(configXML.getHost());
                OKMMail          mailService       = new OKMMail(configXML.getHost());
                OKMDocument      documentService   = new OKMDocument(configXML.getHost());

                try
                {
                    if (configXML.getUser().Equals("") || configXML.getPassword().Equals("") ||
                        configXML.getHost().Equals(""))
                    {
                        throw new Exception(resources.GetString("error_configuration_empty"));
                    }

                    token = authService.login(configXML.getUser(), configXML.getPassword());

                    for (int i = 1; i <= openWindow.Selection.Count; i++)
                    {
                        Object selObject = openWindow.Selection.Item(i);
                        if (selObject is Outlook.MailItem)
                        {
                            mailCount++;
                            Outlook.MailItem mailItem     = (selObject as Outlook.MailItem);
                            DateTime         receivedTime = mailItem.ReceivedTime;
                            String           user         = configXML.getUser();
                            String           basePath     = "/okm:mail/" + user + "/";
                            String           year         = "" + receivedTime.Year;
                            String           month        = "" + receivedTime.Month;
                            String           day          = "" + receivedTime.Day;

                            // Only creating folders when it's needed
                            if (repositoryService.hasNode(token, basePath + year))
                            {
                                if (repositoryService.hasNode(token, basePath + year + "/" + month))
                                {
                                    if (!repositoryService.hasNode(token, basePath + year + "/" + month + "/" + day))
                                    {
                                        folder dayFolder = new folder();
                                        dayFolder.path = basePath + year + "/" + month + "/" + day;
                                        folderService.create(token, dayFolder);
                                    }
                                }
                                else
                                {
                                    folder monthFolder = new folder();
                                    folder dayFolder   = new folder();
                                    monthFolder.path = basePath + year + "/" + month;
                                    dayFolder.path   = basePath + year + "/" + month + "/" + day;
                                    folderService.create(token, monthFolder);
                                    folderService.create(token, dayFolder);
                                }
                            }
                            else
                            {
                                folder yearFolder  = new folder();
                                folder monthFolder = new folder();
                                folder dayFolder   = new folder();
                                yearFolder.path  = basePath + year;
                                monthFolder.path = basePath + year + "/" + month;
                                dayFolder.path   = basePath + year + "/" + month + "/" + day;
                                folderService.create(token, yearFolder);
                                folderService.create(token, monthFolder);
                                folderService.create(token, dayFolder);
                            }

                            // Adding mail values
                            mail newMail = new mail();
                            newMail.path    = basePath + year + "/" + month + "/" + day + "/" + mailItem.Subject;
                            newMail.subject = mailItem.Subject;

                            newMail.from = mailItem.GetType().InvokeMember("SenderEmailAddress", System.Reflection.BindingFlags.GetProperty, null, mailItem, null).ToString();
                            //newMail.from = mailItem.SenderEmailAddress; // SenderEmailAddress was introduced in outlook 2002
                            newMail.sentDate              = mailItem.SentOn;
                            newMail.sentDateSpecified     = true;
                            newMail.receivedDate          = mailItem.ReceivedTime;
                            newMail.receivedDateSpecified = true;

                            // Setting mail context and type

                            BodyFormat format = (BodyFormat)mailItem.GetType().InvokeMember("BodyFormat", System.Reflection.BindingFlags.GetProperty, null, mailItem, null);
                            if (format.Equals(BodyFormat.olFormatPlain))
                            {
                                newMail.mimeType = "text/plain";
                                newMail.content  = mailItem.Body;
                            }
                            else
                            {
                                newMail.mimeType = "text/html";
                                newMail.content  = mailItem.HTMLBody;
                            }

                            // Initialize count recipient address variables
                            int count          = 0;
                            int countTo        = 0;
                            int countCC        = 0;
                            int countBCC       = 0;
                            int actualCountTo  = 0;
                            int actualCountCC  = 0;
                            int actualCountBCC = 0;

                            // Count each mail addresss type to / cc / bcc
                            for (int x = 1; x <= mailItem.Recipients.Count; x++)
                            {
                                Outlook.Recipient recipient = mailItem.Recipients.Item(x);
                                switch (recipient.Type)
                                {
                                case 1:
                                    countTo++;
                                    break;

                                case 2:
                                    countCC++;
                                    break;

                                case 3:
                                    countBCC++;
                                    break;

                                default:
                                    countTo++;
                                    break;
                                }
                                count++;
                            }

                            // Initialize variables
                            String[] mailTo  = new String[(countTo > 0) ? countTo : 1];
                            String[] mailCC  = new String[(countCC > 0) ? countCC : 1];
                            String[] mailBCC = new String[(countBCC > 0) ? countBCC : 1];

                            // All string[] must have at least one value, it¡s mandatory in webservices
                            if (countTo == 0)
                            {
                                mailTo[0] = "";
                            }
                            if (countCC == 0)
                            {
                                mailCC[0] = "";
                            }
                            if (countBCC == 0)
                            {
                                mailBCC[0] = "";
                            }

                            // Depending mail type each mail is assignede to it own type String[]
                            for (int x = 1; x <= mailItem.Recipients.Count; x++)
                            {
                                Outlook.Recipient recipient = mailItem.Recipients.Item(x);
                                switch (recipient.Type)
                                {
                                case 1:
                                    mailTo[actualCountTo] = recipient.Address;
                                    actualCountTo++;
                                    break;

                                case 2:
                                    mailCC[actualCountCC] = recipient.Address;
                                    actualCountCC++;
                                    break;

                                case 3:
                                    mailBCC[actualCountBCC] = recipient.Address;
                                    actualCountBCC++;
                                    break;

                                default:
                                    mailTo[actualCountTo] = recipient.Address;
                                    actualCountTo++;
                                    break;
                                }
                            }

                            // Assign mail recipients by type
                            newMail.bcc = mailBCC;
                            newMail.cc  = mailCC;
                            newMail.to  = mailTo;

                            // Creating mail
                            newMail = mailService.create(token, newMail);

                            // Setting attachments
                            if (mailItem.Attachments.Count > 0)
                            {
                                for (int x = 1; x <= mailItem.Attachments.Count; x++)
                                {
                                    Outlook.Attachment attachment = mailItem.Attachments.Item(x);

                                    mailAttach++;
                                    document doc = new document();
                                    doc.path = newMail.path + "/" + attachment.FileName;

                                    // save as tempfile for reading
                                    String filename = Environment.GetEnvironmentVariable("TEMP") + "\\" + DateTime.Now.ToString("yymmddHHMMss-") + attachment.FileName;
                                    // save the attachment
                                    attachment.SaveAsFile(filename);

                                    // Uploading document
                                    documentService.create(token, doc, ReadFile(filename));

                                    // Delete a file by using File class static method...
                                    if (File.Exists(filename))
                                    {
                                        // Use a try block to catch IOExceptions, to
                                        // handle the case of the file already being
                                        // opened by another process.
                                        try
                                        {
                                            File.Delete(filename);
                                        }
                                        catch (System.IO.IOException ex)
                                        {
                                            MessageBox.Show(String.Format(resources.GetString("error_deleting_tmp_file"), filename, ex.Message), "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                                        }
                                    }

                                    // Releasing com object
                                    Marshal.ReleaseComObject(attachment);
                                }
                            }

                            // Releasing com object
                            Marshal.ReleaseComObject(mailItem);
                        }

                        // Releasing com object
                        Marshal.ReleaseComObject(selObject);
                    }

                    if (!token.Equals(""))
                    {
                        authService.logout(token);  // Always we logout
                        token = "";                 // Reseting token value
                    }

                    if (mailCount > 0)
                    {
                        MessageBox.Show(String.Format(resources.GetString("email_successful_imported"), mailCount, mailAttach));
                    }
                    else
                    {
                        MessageBox.Show(resources.GetString("error_mail_not_selected"), "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    if (!token.Equals(""))
                    {
                        authService.logout(token); // Always we logout
                    }
                }
            }
        }
Esempio n. 5
0
        private void InitializeComponent()
        {
            Color color;
            Point point1;
            Size  size1;
            SizeF sizeF1;

            components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Licence_Agreement));

            RTheme1       = new RTheme();
            Label1        = new Label();
            RButton2      = new RButton();
            RButton1      = new RButton();
            CypherxLabel1 = new CypherxLabel();
            Timer1        = new Timer(components);
            RTheme1.SuspendLayout();
            SuspendLayout();
            RTheme1.BackColor = Color.FromArgb(28, 28, 28);
            RTheme1.Controls.Add(Label1);
            RTheme1.Controls.Add(RButton2);
            RTheme1.Controls.Add(RButton1);
            RTheme1.Controls.Add(CypherxLabel1);
            RTheme1.Dock      = DockStyle.Fill;
            RTheme1.ForeColor = Color.White;
            RTheme1.Image     = null;
            Point point2 = new Point(0, 0);

            RTheme1.Location   = point2;
            RTheme1.MoveHeight = 26;
            RTheme1.Name       = "RTheme1";
            RTheme1.Resizable  = false;
            Size size2 = new Size(523, 327);

            RTheme1.Size            = size2;
            RTheme1.TabIndex        = 0;
            RTheme1.Text            = "                                                   Terms of Service and License Agreement";
            RTheme1.TransparencyKey = Color.Fuchsia;
            point2                    = new Point(190, 268);
            Label1.Location           = point2;
            Label1.Name               = "Label1";
            size2                     = new Size(143, 48);
            Label1.Size               = size2;
            Label1.TabIndex           = 3;
            Label1.TextAlign          = ContentAlignment.MiddleCenter;
            RButton2.Image            = null;
            point2                    = new Point(12, 268);
            RButton2.Location         = point2;
            RButton2.Name             = "RButton2";
            RButton2.NoRounding       = false;
            size2                     = new Size(172, 48);
            RButton2.Size             = size2;
            RButton2.TabIndex         = 2;
            RButton2.Text             = "Decline";
            RButton1.Enabled          = false;
            RButton1.Image            = null;
            point2                    = new Point(339, 268);
            RButton1.Location         = point2;
            RButton1.Name             = "RButton1";
            RButton1.NoRounding       = false;
            size2                     = new Size(172, 48);
            RButton1.Size             = size2;
            RButton1.TabIndex         = 1;
            RButton1.Text             = "Accept";
            CypherxLabel1.BackColor   = Color.Transparent;
            CypherxLabel1.BorderStyle = BorderStyle.FixedSingle;
            CypherxLabel1.Font        = new Font("Comic Sans MS", 8.5F, FontStyle.Bold);
            CypherxLabel1.ForeColor   = Color.FromArgb(124, 195, 255);
            point2                    = new Point(12, 34);
            CypherxLabel1.Location    = point2;
            CypherxLabel1.Name        = "CypherxLabel1";
            size2                     = new Size(499, 231);
            CypherxLabel1.Size        = size2;
            CypherxLabel1.TabIndex    = 0;
            CypherxLabel1.Text        = componentResourceManager.GetString("CypherxLabel1.Text");
            SizeF sizeF2 = new SizeF(6.0F, 13.0F);

            AutoScaleDimensions = sizeF2;
            AutoScaleMode       = AutoScaleMode.Font;
            size2      = new Size(523, 327);
            ClientSize = size2;
            Controls.Add(RTheme1);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "Licence_Agreement";
            Opacity         = 0.0;
            StartPosition   = FormStartPosition.CenterScreen;
            Text            = "Licence_Agreement";
            TopMost         = true;
            TransparencyKey = Color.Fuchsia;
            RTheme1.ResumeLayout(false);
            ResumeLayout(false);
        }
Esempio n. 6
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FRCBT));

            this.cancelButton    = new Button();
            this.okButton        = new Button();
            this.dateTimePicker1 = new DateTimePicker();
            this.dateTimePicker2 = new DateTimePicker();
            this.label1          = new Label();
            this.label2          = new Label();
            this.c1Report1       = new C1Report();
            ((ISupportInitialize)this.c1Report1).BeginInit();
            base.SuspendLayout();
            this.cancelButton.DialogResult            = DialogResult.Cancel;
            this.cancelButton.Location                = new Point(159, 88);
            this.cancelButton.Name                    = "cancelButton";
            this.cancelButton.Size                    = new Size(95, 25);
            this.cancelButton.TabIndex                = 9;
            this.cancelButton.Text                    = "Cancel";
            this.cancelButton.UseVisualStyleBackColor = true;
            this.cancelButton.Click                  += new EventHandler(this.cancelButton_Click);
            this.okButton.Location                    = new Point(58, 88);
            this.okButton.Name     = "okButton";
            this.okButton.Size     = new Size(95, 25);
            this.okButton.TabIndex = 8;
            this.okButton.Text     = "OK";
            this.okButton.UseVisualStyleBackColor = true;
            this.okButton.Click += new EventHandler(this.okButton_Click);
            this.dateTimePicker1.CustomFormat = "dd/MM/yyyy";
            this.dateTimePicker1.Font         = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.dateTimePicker1.Format       = DateTimePickerFormat.Custom;
            this.dateTimePicker1.Location     = new Point(103, 13);
            this.dateTimePicker1.Name         = "dateTimePicker1";
            this.dateTimePicker1.Size         = new Size(159, 21);
            this.dateTimePicker1.TabIndex     = 10;
            this.dateTimePicker2.CustomFormat = "dd/MM/yyyy";
            this.dateTimePicker2.Font         = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.dateTimePicker2.Format       = DateTimePickerFormat.Custom;
            this.dateTimePicker2.Location     = new Point(103, 49);
            this.dateTimePicker2.Name         = "dateTimePicker2";
            this.dateTimePicker2.Size         = new Size(159, 21);
            this.dateTimePicker2.TabIndex     = 11;
            this.label1.AutoSize            = true;
            this.label1.Font                = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label1.Location            = new Point(13, 13);
            this.label1.Name                = "label1";
            this.label1.Size                = new Size(53, 15);
            this.label1.TabIndex            = 12;
            this.label1.Text                = "Từ ngày:";
            this.label2.AutoSize            = true;
            this.label2.Font                = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label2.Location            = new Point(13, 49);
            this.label2.Name                = "label2";
            this.label2.Size                = new Size(62, 15);
            this.label2.TabIndex            = 12;
            this.label2.Text                = "Đến ngày:";
            this.c1Report1.ReportDefinition = componentResourceManager.GetString("c1Report1.ReportDefinition");
            this.c1Report1.ReportName       = "c1Report1";
            base.AutoScaleDimensions        = new SizeF(6f, 13f);
            base.AutoScaleMode              = AutoScaleMode.Font;
            base.ClientSize = new Size(289, 125);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.dateTimePicker2);
            base.Controls.Add(this.dateTimePicker1);
            base.Controls.Add(this.cancelButton);
            base.Controls.Add(this.okButton);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "FRCBT";
            base.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "FRCBT";
            base.Load           += new EventHandler(this.FRCBT_Load);
            ((ISupportInitialize)this.c1Report1).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 7
0
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            try
            {
                //this.DialogResult = DialogResult.Cancel;
                string userName = txtUserName.Text.Trim();
                if (string.IsNullOrEmpty(userName))
                {
                    txtUserName.Focus();
                    txtUserName.SelectAll();

                    MessageBox.Show(mResources.GetString("txtUserNameEmpty"), mResources.GetString("error"));
                    return;
                }
                string oldPassword = txtOldPassword.Text.Trim();
                string newPassword = txtNewPassword.Text.Trim();

                if (oldPassword.Length != 6)
                {
                    txtOldPassword.Focus();
                    txtOldPassword.SelectAll();
                    MessageBox.Show(mResources.GetString("txtPasswordLengthError"), mResources.GetString("error"));
                    return;
                }
                if (newPassword.Length != 6)
                {
                    txtNewPassword.Focus();
                    txtNewPassword.SelectAll();
                    MessageBox.Show(mResources.GetString("txtPasswordLengthError"), mResources.GetString("error"));
                    return;
                }
                if (mUserConfiguration.User.ContainsKey(userName))
                {
                    UserAuthority userAuthority = mUserConfiguration.User[userName];
                    if (oldPassword.Equals(userAuthority.Password))
                    {
                        userAuthority.Set(userName, newPassword, userAuthority.UserType);
                        mUserConfiguration.SaveConfigurationFile();
                        MessageBox.Show(mResources.GetString("txtChangePasswordSuccess"), mResources.GetString("hint"));
                        this.DialogResult = DialogResult.OK;
                        this.Close();
                    }
                    else
                    {
                        txtOldPassword.Focus();
                        txtOldPassword.SelectAll();

                        MessageBox.Show(mResources.GetString("txtWrongPassword"), mResources.GetString("error"));
                    }
                }
                else
                {
                    txtUserName.Focus();
                    txtUserName.SelectAll();
                    MessageBox.Show(mResources.GetString("txtWrongUserName"), mResources.GetString("error"));
                    return;
                }
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.ToString(), mResources.GetString("error"));
            }
        }
        // Token: 0x060019E6 RID: 6630 RVA: 0x00047DF0 File Offset: 0x00045FF0
        private void InitializeComponent_1()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(WayPointEditor));

            this.RemoveWayPoint               = new Button();
            this.HelpDescription              = new Label();
            this.WayPointTypeComboBox         = new ComboBox();
            this.WayPointList                 = new ListView();
            this.columnHeader_0               = new ColumnHeader();
            this.columnHeader_1               = new ColumnHeader();
            this.contextMenu_0                = new ContextMenu();
            this.menuItem_0                   = new MenuItem();
            this.menuItem_1                   = new MenuItem();
            this.AddWayPoint                  = new Class479();
            this.PlaygroundList               = new ListView();
            this.columnHeader_2               = new ColumnHeader();
            this.Playgrounds                  = new ComboBox();
            this.ChangeCoordinates            = new Button();
            this.WayPointEditorMenu           = new MenuStrip();
            this.FileMenuItem                 = new ToolStripMenuItem();
            this.NewMenuItem                  = new ToolStripMenuItem();
            this.OpenMenuItem                 = new ToolStripMenuItem();
            this.OpenSaveSplitItem            = new ToolStripSeparator();
            this.SaveMenuItem                 = new ToolStripMenuItem();
            this.SaveAsMenuItem               = new ToolStripMenuItem();
            this.SaveAsCloseSplitItem         = new ToolStripSeparator();
            this.CloseMenuItem                = new ToolStripMenuItem();
            this.WindowMenuItem               = new ToolStripMenuItem();
            this.SelectToonTownWindowMenuItem = new ToolStripMenuItem();
            this.HelpMenuItem                 = new ToolStripMenuItem();
            this.GuideMenuItem                = new ToolStripMenuItem();
            this.WayPointEditorMenu.SuspendLayout();
            base.SuspendLayout();
            this.saveFileDialog_0.Filter = "Way Point Settings|*.wps";
            this.openFileDialog_0.Filter = "Way Point Settings|*.wps";
            this.RemoveWayPoint.Enabled  = false;
            this.RemoveWayPoint.Location = new Point(397, 219);
            this.RemoveWayPoint.Name     = "RemoveWayPoint";
            this.RemoveWayPoint.Size     = new Size(75, 23);
            this.RemoveWayPoint.TabIndex = 4;
            this.RemoveWayPoint.Text     = "Remove";
            this.RemoveWayPoint.UseVisualStyleBackColor = true;
            this.RemoveWayPoint.Click                      += this.RemoveWayPoint_Click;
            this.HelpDescription.BackColor                  = Color.Transparent;
            this.HelpDescription.ForeColor                  = Color.DimGray;
            this.HelpDescription.Location                   = new Point(7, 250);
            this.HelpDescription.Name                       = "HelpDescription";
            this.HelpDescription.Size                       = new Size(609, 57);
            this.HelpDescription.TabIndex                   = 34;
            this.HelpDescription.Text                       = componentResourceManager.GetString("HelpDescription.Text");
            this.WayPointTypeComboBox.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.WayPointTypeComboBox.Enabled               = false;
            this.WayPointTypeComboBox.FormattingEnabled     = true;
            this.WayPointTypeComboBox.Location              = new Point(516, 220);
            this.WayPointTypeComboBox.Name                  = "WayPointTypeComboBox";
            this.WayPointTypeComboBox.Size                  = new Size(100, 21);
            this.WayPointTypeComboBox.TabIndex              = 6;
            this.WayPointTypeComboBox.SelectedIndexChanged += this.WayPointTypeComboBox_SelectedIndexChanged;
            this.WayPointList.Columns.AddRange(new ColumnHeader[]
            {
                this.columnHeader_0,
                this.columnHeader_1
            });
            this.WayPointList.FullRowSelect = true;
            this.WayPointList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.WayPointList.HideSelection = false;
            this.WayPointList.Location      = new Point(316, 31);
            this.WayPointList.MultiSelect   = false;
            this.WayPointList.Name          = "WayPointList";
            this.WayPointList.Size          = new Size(300, 183);
            this.WayPointList.TabIndex      = 2;
            this.WayPointList.UseCompatibleStateImageBehavior = false;
            this.WayPointList.View = View.Details;
            this.WayPointList.SelectedIndexChanged += this.WayPointList_SelectedIndexChanged;
            this.columnHeader_0.Text  = "Point";
            this.columnHeader_0.Width = 160;
            this.columnHeader_1.Text  = "Type";
            this.columnHeader_1.Width = 110;
            this.contextMenu_0.MenuItems.AddRange(new MenuItem[]
            {
                this.menuItem_0,
                this.menuItem_1
            });
            this.menuItem_0.Index      = 0;
            this.menuItem_0.Text       = "Add From ToonTown";
            this.menuItem_0.Click     += this.menuItem_0_Click;
            this.menuItem_1.Enabled    = false;
            this.menuItem_1.Index      = 1;
            this.menuItem_1.Text       = "Add Custom";
            this.menuItem_1.Click     += this.menuItem_1_Click;
            this.AddWayPoint.AutoSize  = true;
            this.AddWayPoint.Location  = new Point(316, 219);
            this.AddWayPoint.Name      = "AddWayPoint";
            this.AddWayPoint.ShowSplit = true;
            this.AddWayPoint.Size      = new Size(75, 23);
            this.AddWayPoint.SplitMenu = this.contextMenu_0;
            this.AddWayPoint.TabIndex  = 3;
            this.AddWayPoint.Text      = "Add";
            this.AddWayPoint.UseVisualStyleBackColor = true;
            this.AddWayPoint.Click += this.AddWayPoint_Click;
            this.PlaygroundList.Columns.AddRange(new ColumnHeader[]
            {
                this.columnHeader_2
            });
            this.PlaygroundList.FullRowSelect = true;
            this.PlaygroundList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.PlaygroundList.HideSelection = false;
            this.PlaygroundList.Location      = new Point(10, 31);
            this.PlaygroundList.MultiSelect   = false;
            this.PlaygroundList.Name          = "PlaygroundList";
            this.PlaygroundList.Size          = new Size(300, 183);
            this.PlaygroundList.TabIndex      = 0;
            this.PlaygroundList.UseCompatibleStateImageBehavior = false;
            this.PlaygroundList.View = View.Details;
            this.PlaygroundList.SelectedIndexChanged += this.PlaygroundList_SelectedIndexChanged;
            this.columnHeader_2.Text           = "Playgrounds";
            this.columnHeader_2.Width          = 270;
            this.Playgrounds.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.Playgrounds.FormattingEnabled = true;
            this.Playgrounds.Location          = new Point(12, 220);
            this.Playgrounds.Name                          = "Playgrounds";
            this.Playgrounds.Size                          = new Size(298, 21);
            this.Playgrounds.Sorted                        = true;
            this.Playgrounds.TabIndex                      = 1;
            this.Playgrounds.SelectedIndexChanged         += this.Playgrounds_SelectedIndexChanged;
            this.ChangeCoordinates.Enabled                 = false;
            this.ChangeCoordinates.Location                = new Point(478, 219);
            this.ChangeCoordinates.Name                    = "ChangeCoordinates";
            this.ChangeCoordinates.Size                    = new Size(32, 23);
            this.ChangeCoordinates.TabIndex                = 5;
            this.ChangeCoordinates.Text                    = "...";
            this.ChangeCoordinates.UseVisualStyleBackColor = true;
            this.ChangeCoordinates.Click                  += this.ChangeCoordinates_Click;
            this.WayPointEditorMenu.Items.AddRange(new ToolStripItem[]
            {
                this.FileMenuItem,
                this.WindowMenuItem,
                this.HelpMenuItem
            });
            this.WayPointEditorMenu.Location = new Point(0, 0);
            this.WayPointEditorMenu.Name     = "WayPointEditorMenu";
            this.WayPointEditorMenu.Size     = new Size(623, 24);
            this.WayPointEditorMenu.TabIndex = 35;
            this.WayPointEditorMenu.Text     = "menuStrip1";
            this.FileMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                this.NewMenuItem,
                this.OpenMenuItem,
                this.OpenSaveSplitItem,
                this.SaveMenuItem,
                this.SaveAsMenuItem,
                this.SaveAsCloseSplitItem,
                this.CloseMenuItem
            });
            this.FileMenuItem.Name           = "FileMenuItem";
            this.FileMenuItem.Size           = new Size(37, 20);
            this.FileMenuItem.Text           = "&File";
            this.NewMenuItem.Name            = "NewMenuItem";
            this.NewMenuItem.ShortcutKeys    = (Keys)131150;
            this.NewMenuItem.Size            = new Size(192, 22);
            this.NewMenuItem.Text            = "&New";
            this.OpenMenuItem.Name           = "OpenMenuItem";
            this.OpenMenuItem.ShortcutKeys   = (Keys)131151;
            this.OpenMenuItem.Size           = new Size(192, 22);
            this.OpenMenuItem.Text           = "&Open";
            this.OpenSaveSplitItem.Name      = "OpenSaveSplitItem";
            this.OpenSaveSplitItem.Size      = new Size(189, 6);
            this.SaveMenuItem.Name           = "SaveMenuItem";
            this.SaveMenuItem.ShortcutKeys   = (Keys)131155;
            this.SaveMenuItem.Size           = new Size(192, 22);
            this.SaveMenuItem.Text           = "&Save";
            this.SaveAsMenuItem.Name         = "SaveAsMenuItem";
            this.SaveAsMenuItem.ShortcutKeys = (Keys)196691;
            this.SaveAsMenuItem.Size         = new Size(192, 22);
            this.SaveAsMenuItem.Text         = "Save &As..";
            this.SaveAsCloseSplitItem.Name   = "SaveAsCloseSplitItem";
            this.SaveAsCloseSplitItem.Size   = new Size(189, 6);
            this.CloseMenuItem.Name          = "CloseMenuItem";
            this.CloseMenuItem.ShortcutKeys  = (Keys)131159;
            this.CloseMenuItem.Size          = new Size(192, 22);
            this.CloseMenuItem.Text          = "&Close";
            this.WindowMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                this.SelectToonTownWindowMenuItem
            });
            this.WindowMenuItem.Name = "WindowMenuItem";
            this.WindowMenuItem.Size = new Size(63, 20);
            this.WindowMenuItem.Text = "&Window";
            this.SelectToonTownWindowMenuItem.Name   = "SelectToonTownWindowMenuItem";
            this.SelectToonTownWindowMenuItem.Size   = new Size(213, 22);
            this.SelectToonTownWindowMenuItem.Text   = "&Select ToonTown Window";
            this.SelectToonTownWindowMenuItem.Click += this.SelectToonTownWindowMenuItem_Click;
            this.HelpMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                this.GuideMenuItem
            });
            this.HelpMenuItem.Name          = "HelpMenuItem";
            this.HelpMenuItem.Size          = new Size(44, 20);
            this.HelpMenuItem.Text          = "&Help";
            this.GuideMenuItem.Name         = "GuideMenuItem";
            this.GuideMenuItem.ShortcutKeys = Keys.F1;
            this.GuideMenuItem.Size         = new Size(124, 22);
            this.GuideMenuItem.Text         = "&Guide";
            this.GuideMenuItem.Click       += this.GuideMenuItem_Click;
            base.AutoScaleDimensions        = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize    = new Size(623, 313);
            base.Controls.Add(this.ChangeCoordinates);
            base.Controls.Add(this.Playgrounds);
            base.Controls.Add(this.PlaygroundList);
            base.Controls.Add(this.AddWayPoint);
            base.Controls.Add(this.WayPointList);
            base.Controls.Add(this.WayPointTypeComboBox);
            base.Controls.Add(this.HelpDescription);
            base.Controls.Add(this.RemoveWayPoint);
            base.Controls.Add(this.WayPointEditorMenu);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.MainMenuStrip   = this.WayPointEditorMenu;
            base.MaximizeBox     = false;
            base.Name            = "WayPointEditor";
            base.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "Way Point Editor : New File";
            this.WayPointEditorMenu.ResumeLayout(false);
            this.WayPointEditorMenu.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 9
0
 private void ChangeToolTipLanguage(ComponentResourceManager resources)
 {
     toolTip.SetToolTip(checkedListBoxDrives, resources.GetString("checkedListBoxDrives.ToolTip"));
 }
Esempio n. 10
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(NetoUBrutoObracun));
            UltraGridBand            band    = new UltraGridBand("Podaci", -1);
            UltraGridColumn          column  = new UltraGridColumn("pb");

            Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
            UltraGridColumn             column2    = new UltraGridColumn("pn");

            Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
            UltraGridColumn             column3     = new UltraGridColumn("oo");

            Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
            UltraGridColumn             column4     = new UltraGridColumn("prirez");

            Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
            UltraGridColumn             column5     = new UltraGridColumn("trazenineto");

            Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
            UltraGridColumn             column6     = new UltraGridColumn("izracunatibruto");

            Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
            UltraGridColumn             column7     = new UltraGridColumn("PREZIMEIIME");
            UltraGridColumn             column8     = new UltraGridColumn("nazivbaze");

            this.PregledRadnikaDataSet1 = new PregledRadnikaDataSet();
            this.Label8             = new Label();
            this.Label7             = new Label();
            this.daPodaci           = new SqlDataAdapter();
            this.SqlInsertCommand1  = new SqlCommand();
            this.SqlSelectCommand1  = new SqlCommand();
            this.SqlConnection1     = new SqlConnection();
            this.UltraGrid1         = new UltraGrid();
            this.Baze1BindingSource = new BindingSource(this.components);
            this.Baze1                   = new Baze();
            this.UltraDataSource1        = new UltraDataSource(this.components);
            this.UltraButton1            = new UltraButton();
            this.UltraGridExcelExporter1 = new UltraGridExcelExporter(this.components);
            this.PregledRadnikaDataSet1.BeginInit();
            ((ISupportInitialize)this.UltraGrid1).BeginInit();
            ((ISupportInitialize)this.Baze1BindingSource).BeginInit();
            this.Baze1.BeginInit();
            ((ISupportInitialize)this.UltraDataSource1).BeginInit();
            this.SuspendLayout();
            this.PregledRadnikaDataSet1.DataSetName = "PregledRadnikaDataSet";
            this.Label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
            System.Drawing.Point point = new System.Drawing.Point(3, 0x22);
            this.Label8.Location = point;
            this.Label8.Name     = "Label8";
            Size size = new System.Drawing.Size(0x161, 0x17);

            this.Label8.Size      = size;
            this.Label8.TabIndex  = 0x75;
            this.Label7.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee);
            this.Label7.ForeColor = Color.Black;
            point = new System.Drawing.Point(3, 0);
            this.Label7.Location = point;
            this.Label7.Name     = "Label7";
            size                        = new System.Drawing.Size(0x175, 0x17);
            this.Label7.Size            = size;
            this.Label7.TabIndex        = 0x76;
            this.daPodaci.InsertCommand = this.SqlInsertCommand1;
            this.daPodaci.SelectCommand = this.SqlSelectCommand1;
            this.daPodaci.TableMappings.AddRange(new DataTableMapping[] { new DataTableMapping("Table", "V_OD_OBRACUN_RADNIK_TOTALI_PO_MJESECU_ISPLATE", new DataColumnMapping[] {
                    new DataColumnMapping("MJESECISPLATE", "MJESECISPLATE"), new DataColumnMapping("GODINAISPLATE", "GODINAISPLATE"), new DataColumnMapping("IDRADNIK", "IDRADNIK"), new DataColumnMapping("UKUPNOBRUTO", "UKUPNOBRUTO"), new DataColumnMapping("UKUPNOOSNOVICAZADOPRINOS", "UKUPNOOSNOVICAZADOPRINOS"), new DataColumnMapping("UKUPNODOPRINOSI", "UKUPNODOPRINOSI"), new DataColumnMapping("UKUPNOOO", "UKUPNOOO"), new DataColumnMapping("UKUPNOOLAKSICE", "UKUPNOOLAKSICE"), new DataColumnMapping("UKUPNOPOREZNOPRIZNATEOLAKSICE", "UKUPNOPOREZNOPRIZNATEOLAKSICE"), new DataColumnMapping("POREZNAOSNOVICA", "POREZNAOSNOVICA"), new DataColumnMapping("UKUPNOPOREZ", "UKUPNOPOREZ"), new DataColumnMapping("UKUPNOPRIREZ", "UKUPNOPRIREZ"), new DataColumnMapping("UKUPNOPOREZIPRIREZ", "UKUPNOPOREZIPRIREZ"), new DataColumnMapping("NETOPLACA", "NETOPLACA"), new DataColumnMapping("UKUPNONETONAKNADE", "UKUPNONETONAKNADE"), new DataColumnMapping("NETOPRIMANJA", "NETOPRIMANJA"),
                    new DataColumnMapping("UKUPNOOBUSTAVE", "UKUPNOOBUSTAVE"), new DataColumnMapping("UKUPNOZAISPLATU", "UKUPNOZAISPLATU")
                }) });
            this.SqlInsertCommand1.CommandText = manager.GetString("SqlInsertCommand1.CommandText");
            this.SqlInsertCommand1.Parameters.AddRange(new SqlParameter[] {
                new SqlParameter("@MJESECISPLATE", SqlDbType.NVarChar, 2, "MJESECISPLATE"), new SqlParameter("@GODINAISPLATE", SqlDbType.NVarChar, 4, "GODINAISPLATE"), new SqlParameter("@IDRADNIK", SqlDbType.Int, 4, "IDRADNIK"), new SqlParameter("@UKUPNOBRUTO", SqlDbType.Money, 8, "UKUPNOBRUTO"), new SqlParameter("@UKUPNOOSNOVICAZADOPRINOS", SqlDbType.Money, 8, "UKUPNOOSNOVICAZADOPRINOS"), new SqlParameter("@UKUPNODOPRINOSI", SqlDbType.Money, 8, "UKUPNODOPRINOSI"), new SqlParameter("@UKUPNOOO", SqlDbType.Money, 8, "UKUPNOOO"), new SqlParameter("@UKUPNOOLAKSICE", SqlDbType.Money, 8, "UKUPNOOLAKSICE"), new SqlParameter("@UKUPNOPOREZNOPRIZNATEOLAKSICE", SqlDbType.Money, 8, "UKUPNOPOREZNOPRIZNATEOLAKSICE"), new SqlParameter("@POREZNAOSNOVICA", SqlDbType.Money, 8, "POREZNAOSNOVICA"), new SqlParameter("@UKUPNOPOREZ", SqlDbType.Money, 8, "UKUPNOPOREZ"), new SqlParameter("@UKUPNOPRIREZ", SqlDbType.Money, 8, "UKUPNOPRIREZ"), new SqlParameter("@UKUPNOPOREZIPRIREZ", SqlDbType.Money, 8, "UKUPNOPOREZIPRIREZ"), new SqlParameter("@NETOPLACA", SqlDbType.Money, 8, "NETOPLACA"), new SqlParameter("@UKUPNONETONAKNADE", SqlDbType.Money, 8, "UKUPNONETONAKNADE"), new SqlParameter("@NETOPRIMANJA", SqlDbType.Money, 8, "NETOPRIMANJA"),
                new SqlParameter("@UKUPNOOBUSTAVE", SqlDbType.Money, 8, "UKUPNOOBUSTAVE"), new SqlParameter("@UKUPNOZAISPLATU", SqlDbType.Money, 8, "UKUPNOZAISPLATU")
            });
            this.SqlSelectCommand1.CommandText = manager.GetString("SqlSelectCommand1.CommandText");
            this.SqlSelectCommand1.Connection  = this.SqlConnection1;
            this.SqlSelectCommand1.Parameters.AddRange(new SqlParameter[] { new SqlParameter("@mjesec", SqlDbType.Variant, 0x400, "MJESECISPLATE"), new SqlParameter("@idradnik", SqlDbType.Int, 0x400, "IDRADNIK"), new SqlParameter("@godina", SqlDbType.Variant, 0x400, "GODINAISPLATE") });
            this.SqlConnection1.ConnectionString = @"Data Source=srecko\sqlexpress;Initial Catalog=rudes;Integrated Security=True";
            this.SqlConnection1.FireInfoMessageEventOnUserErrors = false;
            this.UltraGrid1.DataMember = "Podaci";
            this.UltraGrid1.DataSource = this.Baze1BindingSource;
            this.UltraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;
            column.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance.TextHAlignAsString = "Right";
            column.CellAppearance         = appearance;
            column.Header.Caption         = "Prethodni bruto";
            column.Header.VisiblePosition = 1;
            column.MaskInput               = "{LOC} n,nnn,nnn.nn";
            column.Width                   = 0x7e;
            column2.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance2.TextHAlignAsString = "Right";
            column2.CellAppearance         = appearance2;
            column2.Header.Caption         = "Prethodni neto";
            column2.Header.VisiblePosition = 2;
            column2.MaskInput              = "{LOC} n,nnn,nnn.nn";
            column2.Width                  = 0x7d;
            column3.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance3.TextHAlignAsString = "Right";
            column3.CellAppearance         = appearance3;
            column3.Header.Caption         = "Odbici";
            column3.Header.VisiblePosition = 3;
            column3.MaskInput              = "{LOC} n,nnn,nnn.nn";
            column3.Width                  = 0x84;
            column4.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance4.TextHAlignAsString = "Right";
            column4.CellAppearance         = appearance4;
            column4.Header.Caption         = "Prirez";
            column4.Header.VisiblePosition = 4;
            column4.MaskInput              = "{LOC} n,nnn,nnn.nn";
            column4.Width                  = 0x7f;
            column5.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance5.TextHAlignAsString = "Right";
            column5.CellAppearance         = appearance5;
            column5.Header.Caption         = "Traženi neto";
            column5.Header.VisiblePosition = 5;
            column5.MaskInput              = "{LOC} n,nnn,nnn.nn";
            column5.Width                  = 130;
            column6.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            appearance6.TextHAlignAsString = "Right";
            column6.CellAppearance         = appearance6;
            column6.Header.Caption         = "Bruto po formuli";
            column6.Header.VisiblePosition = 6;
            column6.MaskInput              = "{LOC} n,nnn,nnn.nn";
            column6.Width                  = 140;
            column7.AutoCompleteMode       = Infragistics.Win.AutoCompleteMode.Append;
            column7.AutoSizeMode           = ColumnAutoSizeMode.AllRowsInBand;
            column7.CellActivation         = Activation.NoEdit;
            column7.Header.Caption         = "Prezime i ime zaposlenika";
            column7.Header.VisiblePosition = 0;
            column7.Width                  = 0xd7;
            column8.Header.VisiblePosition = 7;
            column8.Hidden                 = true;
            column8.Width                  = 0x5b;
            band.Columns.AddRange(new object[] { column, column2, column3, column4, column5, column6, column7, column8 });
            band.Override.RowSelectorStyle = HeaderStyle.WindowsVista;
            this.UltraGrid1.DisplayLayout.BandsSerializer.Add(band);
            this.UltraGrid1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xee);
            point = new System.Drawing.Point(0, 0x22);
            this.UltraGrid1.Location = point;
            this.UltraGrid1.Name     = "UltraGrid1";
            size = new System.Drawing.Size(0x3f8, 250);
            this.UltraGrid1.Size               = size;
            this.UltraGrid1.TabIndex           = 120;
            this.UltraGrid1.Text               = "Popis zaposlenika za NETO u BRUTO izračun";
            this.Baze1BindingSource.DataSource = this.Baze1;
            this.Baze1BindingSource.Position   = 0;
            this.Baze1.DataSetName             = "Baze";
            this.Baze1.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
            point = new System.Drawing.Point(6, 5);
            this.UltraButton1.Location = point;
            this.UltraButton1.Name     = "UltraButton1";
            size = new System.Drawing.Size(0x99, 0x17);
            this.UltraButton1.Size          = size;
            this.UltraButton1.TabIndex      = 0x79;
            this.UltraButton1.Text          = "Izvoz u MS EXCEL format";
            this.UltraButton1.UseAppStyling = false;
            this.UltraButton1.UseFlatMode   = DefaultableBoolean.True;
            SizeF ef = new System.Drawing.SizeF(6f, 13f);

            this.AutoScaleDimensions = ef;
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSize            = true;
            this.BackColor           = System.Drawing.SystemColors.MenuBar;
            this.Controls.Add(this.UltraButton1);
            this.Controls.Add(this.UltraGrid1);
            this.Controls.Add(this.Label7);
            this.Controls.Add(this.Label8);
            this.Name = "NetoUBrutoObracun";
            size      = new System.Drawing.Size(0x3fb, 0x11f);
            this.Size = size;
            this.PregledRadnikaDataSet1.EndInit();
            ((ISupportInitialize)this.UltraGrid1).EndInit();
            ((ISupportInitialize)this.Baze1BindingSource).EndInit();
            this.Baze1.EndInit();
            ((ISupportInitialize)this.UltraDataSource1).EndInit();
            this.ResumeLayout(false);
        }
Esempio n. 11
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ThermRptManage));
            DataGridViewCellStyle    dataGridViewCellStyle    = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle2   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle3   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle4   = new DataGridViewCellStyle();

            this.panellist      = new Panel();
            this.groupBoxLoc    = new GroupBox();
            this.txtpath        = new TextBox();
            this.lbpath         = new Label();
            this.btnSave        = new Button();
            this.btnBrowse      = new Button();
            this.groupBoxSearch = new GroupBox();
            this.txtkey         = new TextBox();
            this.cboby          = new ComboBox();
            this.btnAll         = new Button();
            this.label365       = new Label();
            this.label3         = new Label();
            this.dtpFrom        = new DateTimePicker();
            this.label363       = new Label();
            this.dtpTo          = new DateTimePicker();
            this.btnSearch      = new Button();
            this.label1         = new Label();
            this.btndel         = new Button();
            this.dgvwReport     = new DataGridView();
            this.lblTitle       = new Label();
            this.No             = new DataGridViewTextBoxColumn();
            this.id             = new DataGridViewTextBoxColumn();
            this.Title          = new DataGridViewTextBoxColumn();
            this.Writer         = new DataGridViewTextBoxColumn();
            this.ReportTime     = new DataGridViewTextBoxColumn();
            this.ReportPath     = new DataGridViewTextBoxColumn();
            this.Reports        = new DataGridViewLinkColumn();
            this.Folder         = new DataGridViewLinkColumn();
            this.panellist.SuspendLayout();
            this.groupBoxLoc.SuspendLayout();
            this.groupBoxSearch.SuspendLayout();
            ((ISupportInitialize)this.dgvwReport).BeginInit();
            base.SuspendLayout();
            this.panellist.Controls.Add(this.groupBoxLoc);
            this.panellist.Controls.Add(this.groupBoxSearch);
            this.panellist.Controls.Add(this.btndel);
            this.panellist.Controls.Add(this.dgvwReport);
            this.panellist.Controls.Add(this.lblTitle);
            componentResourceManager.ApplyResources(this.panellist, "panellist");
            this.panellist.Name = "panellist";
            this.groupBoxLoc.Controls.Add(this.txtpath);
            this.groupBoxLoc.Controls.Add(this.lbpath);
            this.groupBoxLoc.Controls.Add(this.btnSave);
            this.groupBoxLoc.Controls.Add(this.btnBrowse);
            componentResourceManager.ApplyResources(this.groupBoxLoc, "groupBoxLoc");
            this.groupBoxLoc.ForeColor = Color.FromArgb(20, 73, 160);
            this.groupBoxLoc.Name      = "groupBoxLoc";
            this.groupBoxLoc.TabStop   = false;
            this.txtpath.BackColor     = SystemColors.ControlLightLight;
            componentResourceManager.ApplyResources(this.txtpath, "txtpath");
            this.txtpath.Name     = "txtpath";
            this.txtpath.ReadOnly = true;
            componentResourceManager.ApplyResources(this.lbpath, "lbpath");
            this.lbpath.ForeColor  = SystemColors.ControlText;
            this.lbpath.Name       = "lbpath";
            this.btnSave.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnSave, "btnSave");
            this.btnSave.ForeColor = SystemColors.ControlText;
            this.btnSave.Name      = "btnSave";
            this.btnSave.UseVisualStyleBackColor = false;
            this.btnSave.Click      += new System.EventHandler(this.btnSave_Click);
            this.btnBrowse.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnBrowse, "btnBrowse");
            this.btnBrowse.ForeColor = SystemColors.ControlText;
            this.btnBrowse.Name      = "btnBrowse";
            this.btnBrowse.UseVisualStyleBackColor = false;
            this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
            this.groupBoxSearch.Controls.Add(this.txtkey);
            this.groupBoxSearch.Controls.Add(this.cboby);
            this.groupBoxSearch.Controls.Add(this.btnAll);
            this.groupBoxSearch.Controls.Add(this.label365);
            this.groupBoxSearch.Controls.Add(this.label3);
            this.groupBoxSearch.Controls.Add(this.dtpFrom);
            this.groupBoxSearch.Controls.Add(this.label363);
            this.groupBoxSearch.Controls.Add(this.dtpTo);
            this.groupBoxSearch.Controls.Add(this.btnSearch);
            this.groupBoxSearch.Controls.Add(this.label1);
            componentResourceManager.ApplyResources(this.groupBoxSearch, "groupBoxSearch");
            this.groupBoxSearch.ForeColor = Color.FromArgb(20, 73, 160);
            this.groupBoxSearch.Name      = "groupBoxSearch";
            this.groupBoxSearch.TabStop   = false;
            componentResourceManager.ApplyResources(this.txtkey, "txtkey");
            this.txtkey.Name         = "txtkey";
            this.txtkey.KeyPress    += new KeyPressEventHandler(this.txtkey_KeyPress);
            this.cboby.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cboby, "cboby");
            this.cboby.FormattingEnabled = true;
            this.cboby.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cboby.Items"),
                componentResourceManager.GetString("cboby.Items1"),
                componentResourceManager.GetString("cboby.Items2")
            });
            this.cboby.Name = "cboby";
            this.cboby.SelectedIndexChanged += new System.EventHandler(this.cboby_SelectedIndexChanged);
            this.btnAll.BackColor            = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnAll, "btnAll");
            this.btnAll.ForeColor = SystemColors.ControlText;
            this.btnAll.Name      = "btnAll";
            this.btnAll.UseVisualStyleBackColor = false;
            this.btnAll.Click += new System.EventHandler(this.btnAll_Click);
            componentResourceManager.ApplyResources(this.label365, "label365");
            this.label365.ForeColor = SystemColors.ControlText;
            this.label365.Name      = "label365";
            componentResourceManager.ApplyResources(this.label3, "label3");
            this.label3.ForeColor = SystemColors.ControlText;
            this.label3.Name      = "label3";
            componentResourceManager.ApplyResources(this.dtpFrom, "dtpFrom");
            this.dtpFrom.Format     = DateTimePickerFormat.Custom;
            this.dtpFrom.Name       = "dtpFrom";
            this.dtpFrom.ShowUpDown = true;
            componentResourceManager.ApplyResources(this.label363, "label363");
            this.label363.ForeColor = SystemColors.ControlText;
            this.label363.Name      = "label363";
            componentResourceManager.ApplyResources(this.dtpTo, "dtpTo");
            this.dtpTo.Format        = DateTimePickerFormat.Custom;
            this.dtpTo.Name          = "dtpTo";
            this.dtpTo.ShowUpDown    = true;
            this.btnSearch.BackColor = Color.Gainsboro;
            this.btnSearch.FlatAppearance.BorderColor        = Color.White;
            this.btnSearch.FlatAppearance.BorderSize         = 0;
            this.btnSearch.FlatAppearance.MouseDownBackColor = Color.White;
            this.btnSearch.FlatAppearance.MouseOverBackColor = Color.White;
            componentResourceManager.ApplyResources(this.btnSearch, "btnSearch");
            this.btnSearch.ForeColor = SystemColors.ControlText;
            this.btnSearch.Name      = "btnSearch";
            this.btnSearch.UseVisualStyleBackColor = false;
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.ForeColor = SystemColors.ControlText;
            this.label1.Name      = "label1";
            this.btndel.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btndel, "btndel");
            this.btndel.Name = "btndel";
            this.btndel.UseVisualStyleBackColor = false;
            this.btndel.Click += new System.EventHandler(this.btndel_Click);
            this.dgvwReport.AllowUserToAddRows       = false;
            this.dgvwReport.AllowUserToDeleteRows    = false;
            this.dgvwReport.AllowUserToResizeRows    = false;
            this.dgvwReport.BackgroundColor          = Color.WhiteSmoke;
            this.dgvwReport.CellBorderStyle          = DataGridViewCellBorderStyle.Raised;
            this.dgvwReport.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
            dataGridViewCellStyle.Alignment          = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor          = Color.Gainsboro;
            dataGridViewCellStyle.Font                    = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle.ForeColor               = SystemColors.WindowText;
            dataGridViewCellStyle.SelectionBackColor      = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor      = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode                = DataGridViewTriState.True;
            this.dgvwReport.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            componentResourceManager.ApplyResources(this.dgvwReport, "dgvwReport");
            this.dgvwReport.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvwReport.Columns.AddRange(new DataGridViewColumn[]
            {
                this.No,
                this.id,
                this.Title,
                this.Writer,
                this.ReportTime,
                this.ReportPath,
                this.Reports,
                this.Folder
            });
            dataGridViewCellStyle2.Alignment          = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor          = SystemColors.Window;
            dataGridViewCellStyle2.Font               = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle2.ForeColor          = SystemColors.ControlText;
            dataGridViewCellStyle2.SelectionBackColor = Color.Transparent;
            dataGridViewCellStyle2.SelectionForeColor = Color.Transparent;
            dataGridViewCellStyle2.WrapMode           = DataGridViewTriState.False;
            this.dgvwReport.DefaultCellStyle          = dataGridViewCellStyle2;
            this.dgvwReport.EditMode                   = DataGridViewEditMode.EditOnF2;
            this.dgvwReport.GridColor                  = Color.White;
            this.dgvwReport.MultiSelect                = false;
            this.dgvwReport.Name                       = "dgvwReport";
            dataGridViewCellStyle3.Alignment           = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor           = Color.Gainsboro;
            dataGridViewCellStyle3.Font                = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle3.ForeColor           = SystemColors.WindowText;
            dataGridViewCellStyle3.SelectionBackColor  = SystemColors.Highlight;
            dataGridViewCellStyle3.SelectionForeColor  = SystemColors.HighlightText;
            dataGridViewCellStyle3.WrapMode            = DataGridViewTriState.True;
            this.dgvwReport.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
            this.dgvwReport.RowHeadersVisible          = false;
            dataGridViewCellStyle4.SelectionBackColor  = SystemColors.MenuHighlight;
            dataGridViewCellStyle4.SelectionForeColor  = SystemColors.ControlText;
            this.dgvwReport.RowsDefaultCellStyle       = dataGridViewCellStyle4;
            this.dgvwReport.RowTemplate.Height         = 25;
            this.dgvwReport.RowTemplate.ReadOnly       = true;
            this.dgvwReport.SelectionMode              = DataGridViewSelectionMode.FullRowSelect;
            this.dgvwReport.ShowCellErrors             = false;
            this.dgvwReport.ShowCellToolTips           = false;
            this.dgvwReport.ShowEditingIcon            = false;
            this.dgvwReport.ShowRowErrors              = false;
            this.dgvwReport.StandardTab                = true;
            this.dgvwReport.TabStop                    = false;
            this.dgvwReport.CellContentClick          += new DataGridViewCellEventHandler(this.dgvwReport_CellContentClick);
            this.lblTitle.BackColor                    = Color.Gainsboro;
            this.lblTitle.BorderStyle                  = BorderStyle.FixedSingle;
            componentResourceManager.ApplyResources(this.lblTitle, "lblTitle");
            this.lblTitle.ForeColor = Color.FromArgb(20, 73, 160);
            this.lblTitle.Name      = "lblTitle";
            this.No.AutoSizeMode    = DataGridViewAutoSizeColumnMode.AllCells;
            componentResourceManager.ApplyResources(this.No, "No");
            this.No.Name = "No";
            componentResourceManager.ApplyResources(this.id, "id");
            this.id.Name            = "id";
            this.Title.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            componentResourceManager.ApplyResources(this.Title, "Title");
            this.Title.Name          = "Title";
            this.Writer.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            componentResourceManager.ApplyResources(this.Writer, "Writer");
            this.Writer.Name             = "Writer";
            this.ReportTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            componentResourceManager.ApplyResources(this.ReportTime, "ReportTime");
            this.ReportTime.Name = "ReportTime";
            componentResourceManager.ApplyResources(this.ReportPath, "ReportPath");
            this.ReportPath.Name      = "ReportPath";
            this.Reports.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            componentResourceManager.ApplyResources(this.Reports, "Reports");
            this.Reports.Name        = "Reports";
            this.Reports.Resizable   = DataGridViewTriState.True;
            this.Reports.SortMode    = DataGridViewColumnSortMode.Automatic;
            this.Folder.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            componentResourceManager.ApplyResources(this.Folder, "Folder");
            this.Folder.Name     = "Folder";
            this.Folder.SortMode = DataGridViewColumnSortMode.Automatic;
            base.AutoScaleMode   = AutoScaleMode.None;
            this.BackColor       = Color.WhiteSmoke;
            base.Controls.Add(this.panellist);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "ThermRptManage";
            this.panellist.ResumeLayout(false);
            this.groupBoxLoc.ResumeLayout(false);
            this.groupBoxLoc.PerformLayout();
            this.groupBoxSearch.ResumeLayout(false);
            this.groupBoxSearch.PerformLayout();
            ((ISupportInitialize)this.dgvwReport).EndInit();
            base.ResumeLayout(false);
        }
Esempio n. 12
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MeasureDialog));

            this.toolStrip1      = new ToolStrip();
            this.tsbDistance     = new ToolStripButton();
            this.tsbArea         = new ToolStripButton();
            this.tsbClear        = new ToolStripButton();
            this.ttHelp          = new ToolTip(this.components);
            this.lblPartialValue = new Label();
            this.lblTotalValue   = new Label();
            this.cmbUnits        = new ComboBox();
            this.label1          = new Label();
            this.lblMeasure      = new Label();
            this.label2          = new Label();
            this.label3          = new Label();
            this.lblTotalUnits   = new Label();
            this.label4          = new Label();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();

            // toolStrip1
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsbDistance, this.tsbArea, this.tsbClear });
            resources.ApplyResources(this.toolStrip1, "toolStrip1");
            this.toolStrip1.Name = "toolStrip1";

            // tsbDistance
            this.tsbDistance.Checked      = true;
            this.tsbDistance.CheckOnClick = true;
            this.tsbDistance.CheckState   = CheckState.Checked;
            this.tsbDistance.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsbDistance.Image        = Resources.Line;
            resources.ApplyResources(this.tsbDistance, "tsbDistance");
            this.tsbDistance.Name   = "tsbDistance";
            this.tsbDistance.Click += new EventHandler(this.DistanceButtonClick);

            // tsbArea
            this.tsbArea.CheckOnClick = true;
            this.tsbArea.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsbArea.Image        = Resources.Area;
            resources.ApplyResources(this.tsbArea, "tsbArea");
            this.tsbArea.Name   = "tsbArea";
            this.tsbArea.Click += new EventHandler(this.AreaButtonClick);

            // tsbClear
            this.tsbClear.DisplayStyle = ToolStripItemDisplayStyle.Image;
            resources.ApplyResources(this.tsbClear, "tsbClear");
            this.tsbClear.Name   = "tsbClear";
            this.tsbClear.Click += new EventHandler(this.TsbClearClick);

            // lblPartialValue
            resources.ApplyResources(this.lblPartialValue, "lblPartialValue");
            this.lblPartialValue.Name = "lblPartialValue";
            this.ttHelp.SetToolTip(this.lblPartialValue, resources.GetString("lblPartialValue.ToolTip"));

            // lblTotalValue
            resources.ApplyResources(this.lblTotalValue, "lblTotalValue");
            this.lblTotalValue.Name = "lblTotalValue";
            this.ttHelp.SetToolTip(this.lblTotalValue, resources.GetString("lblTotalValue.ToolTip"));

            // cmbUnits
            this.cmbUnits.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbUnits.FormattingEnabled = true;
            resources.ApplyResources(this.cmbUnits, "cmbUnits");
            this.cmbUnits.Name = "cmbUnits";
            this.ttHelp.SetToolTip(this.cmbUnits, resources.GetString("cmbUnits.ToolTip"));
            this.cmbUnits.SelectedIndexChanged += new EventHandler(this.CmbUnitsSelectedIndexChanged);

            // label1
            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";

            // lblMeasure
            resources.ApplyResources(this.lblMeasure, "lblMeasure");
            this.lblMeasure.Name = "lblMeasure";

            // label2
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";

            // label3
            resources.ApplyResources(this.label3, "label3");
            this.label3.Name = "label3";

            // lblTotalUnits
            this.lblTotalUnits.BackColor = System.Drawing.SystemColors.Control;
            resources.ApplyResources(this.lblTotalUnits, "lblTotalUnits");
            this.lblTotalUnits.Name = "lblTotalUnits";

            // label4
            resources.ApplyResources(this.label4, "label4");
            this.label4.Name = "label4";

            // MeasureDialog
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this.label4);
            this.Controls.Add(this.lblTotalUnits);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.cmbUnits);
            this.Controls.Add(this.lblTotalValue);
            this.Controls.Add(this.lblPartialValue);
            this.Controls.Add(this.lblMeasure);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.toolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "MeasureDialog";
            this.ShowIcon        = false;
            this.TopMost         = true;
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 13
0
        private void Draw(Project project)
        {
            if (LastDrawEvent != null)
            {
                project.OperationHeaderChanged -= LastDrawEvent;
            }
            LastProject = project;

            Location = Info.Position;
            TopMost  = Info.Overflow;

            SuspendLayout();
            Controls.Clear();
            ComponentResourceManager res = new ComponentResourceManager(typeof(ScoreboardForm));

            if (project != null)
            {
                Text = (Info.Name == "" ? res.GetString("this.Text") : Info.Name) + " - " + project.Name;

                if (Info.Type == Scoreboard.ScoreboardType.Charts)
                {
                    ListView listView = new ListView();
                    listView.Columns.Add(res.GetString("col.Name"), 240);
                    listView.Columns.Add(res.GetString("col.Score"), 120);
                    List <Person> chart = project.ChartedPeople;
                    foreach (Person person in chart)
                    {
                        listView.Items.Add(person.Name).SubItems.Add(person.Score.ToString());
                    }

                    LastDrawEvent = () =>
                    {
                        chart = project.ChartedPeople;
                        for (int i = 0; i < chart.Count; i++)
                        {
                            if (listView.Items.Count <= i || listView.Items[i].Text != chart[i].Name)
                            {
                                listView.Items.Insert(i, chart[i].Name).SubItems.Add(chart[i].Score.ToString());
                                for (int j = i + 1; j < listView.Items.Count; j++)
                                {
                                    if (listView.Items[j].Text == chart[i].Name)
                                    {
                                        listView.Items.RemoveAt(j);
                                        break;
                                    }
                                }
                            }
                            else
                            {
                                string          newSore = chart[i].Score.ToString();
                                ListViewSubItem subItem = listView.Items[i].SubItems[1];
                                if (subItem.Text != newSore)
                                {
                                    subItem.Text = newSore;
                                }
                            }
                        }
                        for (int i = chart.Count; i < listView.Items.Count; i++)
                        {
                            listView.Items.RemoveAt(i);
                        }
                    };

                    listView.Dock = DockStyle.Fill;
                    listView.View = System.Windows.Forms.View.Details;
                    Controls.Add(listView);
                }
                else
                {
                    Chart     chart = new Chart();
                    ChartArea area  = chart.ChartAreas.Add("MainArea");
                    chart.Legends.Add("MainLegend");

                    string score = res.GetString("col.Score");
                    switch (Info.Type)
                    {
                    case Scoreboard.ScoreboardType.GroupScale:
                        LastDrawEvent = () =>
                        {
                            chart.BeginInit();
                            chart.Series.Clear();
                            Series series = chart.Series.Add(score);
                            foreach (Group group in project.Groups)
                            {
                                series.Points.AddXY(group.Name, group.Score);
                                series.Color = group.ChosenColor;
                            }
                            series.ChartType = SeriesChartType.Pie;
                            area.RecalculateAxesScale();
                            chart.EndInit();
                        };
                        LastDrawEvent();
                        break;

                    case Scoreboard.ScoreboardType.GroupRanking:
                        LastDrawEvent = () =>
                        {
                            chart.BeginInit();
                            chart.Series.Clear();
                            foreach (Group group in project.Groups)
                            {
                                Series series = chart.Series.Add(group.Name);
                                long   ach    = group.Score;
                                series.Points.AddXY(score, ach);
                                series.Label     = ach.ToString();
                                series.Color     = group.ChosenColor;
                                series.ChartType = SeriesChartType.Column;
                            }
                            area.RecalculateAxesScale();
                            chart.EndInit();
                        };
                        LastDrawEvent();
                        break;
                    }
                    chart.Dock = DockStyle.Fill;
                    Controls.Add(chart);
                }
                project.OperationHeaderChanged += LastDrawEvent;
            }
            else
            {
                Label label = new Label()
                {
                    Name      = "noData",
                    Text      = res.GetString("noData"),
                    TextAlign = ContentAlignment.MiddleCenter
                };
                Controls.Add(label);
                label.Dock = DockStyle.Fill;
            }
            ResumeLayout();
        }
Esempio n. 14
0
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmPictureEdit));

            elementHost1         = new ElementHost();
            barManager1          = new BarManager(components);
            bar1                 = new Bar();
            btOpen               = new BarButtonItem();
            btSave               = new BarButtonItem();
            btCancelEdit         = new BarButtonItem();
            btSelect             = new BarButtonItem();
            btEye                = new BarButtonItem();
            btRotateLeft         = new BarButtonItem();
            btRotateRight        = new BarButtonItem();
            btMirrow             = new BarButtonItem();
            btCutSelection       = new BarButtonItem();
            barDockControlTop    = new BarDockControl();
            barDockControlBottom = new BarDockControl();
            barDockControlLeft   = new BarDockControl();
            barDockControlRight  = new BarDockControl();
            barButtonItem5       = new BarButtonItem();
            btAccept             = new SimpleButton();
            btCancel             = new SimpleButton();
            btBrightness         = new TrackBarControl();
            lbBrightness         = new LabelControl();
            lbContrast           = new LabelControl();
            btContrast           = new TrackBarControl();
            lbSize               = new LabelControl();
            btSize               = new TrackBarControl();
            barManager1.BeginInit();
            ((ISupportInitialize)btBrightness).BeginInit();
            btBrightness.Properties.BeginInit();
            ((ISupportInitialize)btContrast).BeginInit();
            btContrast.Properties.BeginInit();
            ((ISupportInitialize)btSize).BeginInit();
            btSize.Properties.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(elementHost1, "elementHost1");
            elementHost1.Name  = "elementHost1";
            elementHost1.Child = null;
            barManager1.Bars.AddRange(new Bar[1]
            {
                bar1
            });
            barManager1.DockControls.Add(barDockControlTop);
            barManager1.DockControls.Add(barDockControlBottom);
            barManager1.DockControls.Add(barDockControlLeft);
            barManager1.DockControls.Add(barDockControlRight);
            barManager1.Form = this;
            barManager1.Items.AddRange(new BarItem[10]
            {
                btOpen,
                btSave,
                btCancelEdit,
                btSelect,
                btEye,
                barButtonItem5,
                btRotateLeft,
                btRotateRight,
                btMirrow,
                btCutSelection
            });
            barManager1.MaxItemId = 20;
            bar1.BarName          = "Tools";
            bar1.DockCol          = 0;
            bar1.DockRow          = 0;
            bar1.DockStyle        = BarDockStyle.Top;
            bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[9]
            {
                new LinkPersistInfo(btOpen),
                new LinkPersistInfo(btSave),
                new LinkPersistInfo(btCancelEdit),
                new LinkPersistInfo(btSelect),
                new LinkPersistInfo(btEye),
                new LinkPersistInfo(btRotateLeft),
                new LinkPersistInfo(btRotateRight),
                new LinkPersistInfo(btMirrow),
                new LinkPersistInfo(btCutSelection)
            });
            bar1.OptionsBar.AllowQuickCustomization = false;
            bar1.OptionsBar.MultiLine   = true;
            bar1.OptionsBar.UseWholeRow = true;
            componentResourceManager.ApplyResources(bar1, "bar1");
            componentResourceManager.ApplyResources(btOpen, "btOpen");
            btOpen.Border = BorderStyles.Default;
            btOpen.Glyph  = Resources._10;
            btOpen.Id     = 8;
            btOpen.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.Font");
            btOpen.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.FontSizeDelta");
            btOpen.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btOpen.ItemAppearance.Normal.FontStyleDelta");
            btOpen.ItemAppearance.Normal.Options.UseFont = true;
            btOpen.Name       = "btOpen";
            btOpen.ItemClick += btOpen_ItemClick;
            componentResourceManager.ApplyResources(btSave, "btSave");
            btSave.Border = BorderStyles.Default;
            btSave.Glyph  = Resources._13;
            btSave.Id     = 9;
            btSave.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.Font");
            btSave.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.FontSizeDelta");
            btSave.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btSave.ItemAppearance.Normal.FontStyleDelta");
            btSave.ItemAppearance.Normal.Options.UseFont = true;
            btSave.Name       = "btSave";
            btSave.ItemClick += btSave_ItemClick;
            componentResourceManager.ApplyResources(btCancelEdit, "btCancelEdit");
            btCancelEdit.Border = BorderStyles.Default;
            btCancelEdit.Glyph  = Resources._11;
            btCancelEdit.Id     = 10;
            btCancelEdit.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.Font");
            btCancelEdit.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.FontSizeDelta");
            btCancelEdit.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btCancelEdit.ItemAppearance.Normal.FontStyleDelta");
            btCancelEdit.ItemAppearance.Normal.Options.UseFont = true;
            btCancelEdit.Name       = "btCancelEdit";
            btCancelEdit.ItemClick += btCancelEdit_ItemClick;
            componentResourceManager.ApplyResources(btSelect, "btSelect");
            btSelect.Border      = BorderStyles.Default;
            btSelect.ButtonStyle = BarButtonStyle.Check;
            btSelect.Glyph       = Resources._08;
            btSelect.Id          = 11;
            btSelect.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.Font");
            btSelect.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.FontSizeDelta");
            btSelect.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btSelect.ItemAppearance.Normal.FontStyleDelta");
            btSelect.ItemAppearance.Normal.Options.UseFont = true;
            btSelect.Name       = "btSelect";
            btSelect.ItemClick += btSelect_ItemClick;
            componentResourceManager.ApplyResources(btEye, "btEye");
            btEye.Border      = BorderStyles.Default;
            btEye.ButtonStyle = BarButtonStyle.Check;
            btEye.Glyph       = Resources._01;
            btEye.Id          = 12;
            btEye.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.Font");
            btEye.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.FontSizeDelta");
            btEye.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btEye.ItemAppearance.Normal.FontStyleDelta");
            btEye.ItemAppearance.Normal.Options.UseFont = true;
            btEye.Name       = "btEye";
            btEye.ItemClick += btEye_ItemClick;
            componentResourceManager.ApplyResources(btRotateLeft, "btRotateLeft");
            btRotateLeft.Border = BorderStyles.Default;
            btRotateLeft.Glyph  = Resources._09;
            btRotateLeft.Id     = 14;
            btRotateLeft.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.Font");
            btRotateLeft.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.FontSizeDelta");
            btRotateLeft.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btRotateLeft.ItemAppearance.Normal.FontStyleDelta");
            btRotateLeft.ItemAppearance.Normal.Options.UseFont = true;
            btRotateLeft.Name       = "btRotateLeft";
            btRotateLeft.ItemClick += btRotateLeft_ItemClick;
            componentResourceManager.ApplyResources(btRotateRight, "btRotateRight");
            btRotateRight.Border = BorderStyles.Default;
            btRotateRight.Glyph  = Resources._12;
            btRotateRight.Id     = 15;
            btRotateRight.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.Font");
            btRotateRight.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.FontSizeDelta");
            btRotateRight.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btRotateRight.ItemAppearance.Normal.FontStyleDelta");
            btRotateRight.ItemAppearance.Normal.Options.UseFont = true;
            btRotateRight.Name       = "btRotateRight";
            btRotateRight.ItemClick += btRotateRight_ItemClick;
            componentResourceManager.ApplyResources(btMirrow, "btMirrow");
            btMirrow.Border = BorderStyles.Default;
            btMirrow.Glyph  = Resources._07;
            btMirrow.Id     = 16;
            btMirrow.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.Font");
            btMirrow.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.FontSizeDelta");
            btMirrow.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btMirrow.ItemAppearance.Normal.FontStyleDelta");
            btMirrow.ItemAppearance.Normal.Options.UseFont = true;
            btMirrow.Name       = "btMirrow";
            btMirrow.ItemClick += btMirrow_ItemClick;
            componentResourceManager.ApplyResources(btCutSelection, "btCutSelection");
            btCutSelection.Border = BorderStyles.Default;
            btCutSelection.Glyph  = Resources._06;
            btCutSelection.Id     = 17;
            btCutSelection.ItemAppearance.Normal.Font            = (Font)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.Font");
            btCutSelection.ItemAppearance.Normal.FontSizeDelta   = (int)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.FontSizeDelta");
            btCutSelection.ItemAppearance.Normal.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btCutSelection.ItemAppearance.Normal.FontStyleDelta");
            btCutSelection.ItemAppearance.Normal.Options.UseFont = true;
            btCutSelection.Name       = "btCutSelection";
            btCutSelection.ItemClick += btCutSelection_ItemClick;
            componentResourceManager.ApplyResources(barDockControlTop, "barDockControlTop");
            barDockControlTop.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlTop.Appearance.FontSizeDelta");
            barDockControlTop.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlTop.Appearance.FontStyleDelta");
            barDockControlTop.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlTop.Appearance.GradientMode");
            barDockControlTop.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlTop.Appearance.Image");
            barDockControlTop.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlBottom, "barDockControlBottom");
            barDockControlBottom.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlBottom.Appearance.FontSizeDelta");
            barDockControlBottom.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlBottom.Appearance.FontStyleDelta");
            barDockControlBottom.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlBottom.Appearance.GradientMode");
            barDockControlBottom.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlBottom.Appearance.Image");
            barDockControlBottom.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlLeft, "barDockControlLeft");
            barDockControlLeft.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlLeft.Appearance.FontSizeDelta");
            barDockControlLeft.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlLeft.Appearance.FontStyleDelta");
            barDockControlLeft.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlLeft.Appearance.GradientMode");
            barDockControlLeft.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlLeft.Appearance.Image");
            barDockControlLeft.CausesValidation          = false;
            componentResourceManager.ApplyResources(barDockControlRight, "barDockControlRight");
            barDockControlRight.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("barDockControlRight.Appearance.FontSizeDelta");
            barDockControlRight.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("barDockControlRight.Appearance.FontStyleDelta");
            barDockControlRight.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("barDockControlRight.Appearance.GradientMode");
            barDockControlRight.Appearance.Image          = (Image)componentResourceManager.GetObject("barDockControlRight.Appearance.Image");
            barDockControlRight.CausesValidation          = false;
            componentResourceManager.ApplyResources(barButtonItem5, "barButtonItem5");
            barButtonItem5.Glyph = Resources._09;
            barButtonItem5.Id    = 13;
            barButtonItem5.Name  = "barButtonItem5";
            componentResourceManager.ApplyResources(btAccept, "btAccept");
            btAccept.DialogResult = DialogResult.OK;
            btAccept.Name         = "btAccept";
            btAccept.Click       += btAccept_Click;
            componentResourceManager.ApplyResources(btCancel, "btCancel");
            btCancel.DialogResult = DialogResult.Cancel;
            btCancel.Name         = "btCancel";
            btCancel.Click       += btCancel_Click;
            componentResourceManager.ApplyResources(btBrightness, "btBrightness");
            btBrightness.MenuManager = barManager1;
            btBrightness.Name        = "btBrightness";
            btBrightness.Properties.AccessibleDescription = componentResourceManager.GetString("btBrightness.Properties.AccessibleDescription");
            btBrightness.Properties.AccessibleName        = componentResourceManager.GetString("btBrightness.Properties.AccessibleName");
            btBrightness.Properties.AutoSize    = false;
            btBrightness.Properties.Maximum     = byte.MaxValue;
            btBrightness.Properties.Minimum     = -255;
            btBrightness.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btBrightness.Properties.Orientation");
            btBrightness.Value             = -255;
            btBrightness.EditValueChanged += btBrightness_EditValueChanged;
            componentResourceManager.ApplyResources(lbBrightness, "lbBrightness");
            lbBrightness.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.DisabledImage");
            lbBrightness.Appearance.Font           = (Font)componentResourceManager.GetObject("lbBrightness.Appearance.Font");
            lbBrightness.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbBrightness.Appearance.FontSizeDelta");
            lbBrightness.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbBrightness.Appearance.FontStyleDelta");
            lbBrightness.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbBrightness.Appearance.GradientMode");
            lbBrightness.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.HoverImage");
            lbBrightness.Appearance.Image          = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.Image");
            lbBrightness.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbBrightness.Appearance.PressedImage");
            lbBrightness.Name = "lbBrightness";
            componentResourceManager.ApplyResources(lbContrast, "lbContrast");
            lbContrast.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbContrast.Appearance.DisabledImage");
            lbContrast.Appearance.Font           = (Font)componentResourceManager.GetObject("lbContrast.Appearance.Font");
            lbContrast.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbContrast.Appearance.FontSizeDelta");
            lbContrast.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbContrast.Appearance.FontStyleDelta");
            lbContrast.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbContrast.Appearance.GradientMode");
            lbContrast.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbContrast.Appearance.HoverImage");
            lbContrast.Appearance.Image          = (Image)componentResourceManager.GetObject("lbContrast.Appearance.Image");
            lbContrast.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbContrast.Appearance.PressedImage");
            lbContrast.Name = "lbContrast";
            componentResourceManager.ApplyResources(btContrast, "btContrast");
            btContrast.MenuManager = barManager1;
            btContrast.Name        = "btContrast";
            btContrast.Properties.AccessibleDescription = componentResourceManager.GetString("btContrast.Properties.AccessibleDescription");
            btContrast.Properties.AccessibleName        = componentResourceManager.GetString("btContrast.Properties.AccessibleName");
            btContrast.Properties.AutoSize    = false;
            btContrast.Properties.Maximum     = sbyte.MaxValue;
            btContrast.Properties.Minimum     = -127;
            btContrast.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btContrast.Properties.Orientation");
            btContrast.Value             = -127;
            btContrast.EditValueChanged += btContrast_EditValueChanged;
            componentResourceManager.ApplyResources(lbSize, "lbSize");
            lbSize.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbSize.Appearance.DisabledImage");
            lbSize.Appearance.Font           = (Font)componentResourceManager.GetObject("lbSize.Appearance.Font");
            lbSize.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbSize.Appearance.FontSizeDelta");
            lbSize.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbSize.Appearance.FontStyleDelta");
            lbSize.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbSize.Appearance.GradientMode");
            lbSize.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbSize.Appearance.HoverImage");
            lbSize.Appearance.Image          = (Image)componentResourceManager.GetObject("lbSize.Appearance.Image");
            lbSize.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbSize.Appearance.PressedImage");
            lbSize.Name = "lbSize";
            componentResourceManager.ApplyResources(btSize, "btSize");
            btSize.MenuManager = barManager1;
            btSize.Name        = "btSize";
            btSize.Properties.AccessibleDescription = componentResourceManager.GetString("btSize.Properties.AccessibleDescription");
            btSize.Properties.AccessibleName        = componentResourceManager.GetString("btSize.Properties.AccessibleName");
            btSize.Properties.AutoSize    = false;
            btSize.Properties.Maximum     = 500;
            btSize.Properties.Orientation = (Orientation)componentResourceManager.GetObject("btSize.Properties.Orientation");
            btSize.Value             = 100;
            btSize.EditValueChanged += btSize_EditValueChanged_1;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(lbSize);
            Controls.Add(btSize);
            Controls.Add(lbContrast);
            Controls.Add(btContrast);
            Controls.Add(lbBrightness);
            Controls.Add(btBrightness);
            Controls.Add(btCancel);
            Controls.Add(btAccept);
            Controls.Add(elementHost1);
            Controls.Add(barDockControlLeft);
            Controls.Add(barDockControlRight);
            Controls.Add(barDockControlBottom);
            Controls.Add(barDockControlTop);
            Name     = "FrmPictureEdit";
            ShowIcon = false;
            Load    += frmPictureEdit_Load;
            barManager1.EndInit();
            btBrightness.Properties.EndInit();
            ((ISupportInitialize)btBrightness).EndInit();
            btContrast.Properties.EndInit();
            ((ISupportInitialize)btContrast).EndInit();
            btSize.Properties.EndInit();
            ((ISupportInitialize)btSize).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Esempio n. 15
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmMining));

            this.radLabel1   = new RadLabel();
            this.label1      = new RadLabel();
            this.pictureBox1 = new PictureBox();
            this.cmdYes      = new RadButton();
            this.cmdNo       = new RadButton();
            this.pictureBox2 = new PictureBox();
            this.pictureBox3 = new PictureBox();
            this.radPause    = new RadCheckBox();
            this.radLabel1.BeginInit();
            this.label1.BeginInit();
            ((ISupportInitialize)this.pictureBox1).BeginInit();
            this.cmdYes.BeginInit();
            this.cmdNo.BeginInit();
            ((ISupportInitialize)this.pictureBox2).BeginInit();
            ((ISupportInitialize)this.pictureBox3).BeginInit();
            this.radPause.BeginInit();
            this.BeginInit();
            this.SuspendLayout();
            this.radLabel1.AutoSize      = false;
            this.radLabel1.Font          = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.radLabel1.Location      = new Point(106, 32);
            this.radLabel1.Name          = "radLabel1";
            this.radLabel1.Size          = new Size(502, 433);
            this.radLabel1.TabIndex      = 5;
            this.radLabel1.Text          = componentResourceManager.GetString("radLabel1.Text");
            this.radLabel1.TextAlignment = ContentAlignment.MiddleLeft;
            this.radLabel1.ThemeName     = "VisualStudio2012Dark";
            this.label1.Font             = new Font("Segoe UI", 11.25f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.label1.Location         = new Point(106, 2);
            this.label1.Name             = "label1";
            this.label1.Size             = new Size(286, 24);
            this.label1.TabIndex         = 4;
            this.label1.Text             = "Thank you for wanting to support me!";
            this.label1.ThemeName        = "VisualStudio2012Dark";
            this.pictureBox1.Image       = (Image)Class123.logo;
            this.pictureBox1.Location    = new Point(6, 32);
            this.pictureBox1.Name        = "pictureBox1";
            this.pictureBox1.Size        = new Size(94, 91);
            this.pictureBox1.TabIndex    = 3;
            this.pictureBox1.TabStop     = false;
            this.cmdYes.Location         = new Point(128, 471);
            this.cmdYes.Name             = "cmdYes";
            this.cmdYes.Size             = new Size(180, 24);
            this.cmdYes.TabIndex         = 6;
            this.cmdYes.Text             = "Sure!";
            this.cmdYes.Click           += new EventHandler(this.cmdYes_Click);
            this.cmdNo.Location          = new Point(314, 471);
            this.cmdNo.Name                   = "cmdNo";
            this.cmdNo.Size                   = new Size(180, 24);
            this.cmdNo.TabIndex               = 7;
            this.cmdNo.Text                   = "Maybe some other time";
            this.cmdNo.Click                 += new EventHandler(this.cmdNo_Click);
            this.pictureBox2.Image            = (Image)Class123.stopMiner;
            this.pictureBox2.Location         = new Point(405, 501);
            this.pictureBox2.Name             = "pictureBox2";
            this.pictureBox2.Size             = new Size(212, 69);
            this.pictureBox2.TabIndex         = 8;
            this.pictureBox2.TabStop          = false;
            this.pictureBox3.Image            = (Image)Class123.startMiner;
            this.pictureBox3.Location         = new Point(26, 501);
            this.pictureBox3.Name             = "pictureBox3";
            this.pictureBox3.Size             = new Size(202, 78);
            this.pictureBox3.TabIndex         = 9;
            this.pictureBox3.TabStop          = false;
            this.radPause.Location            = new Point(5, 561);
            this.radPause.Name                = "radPause";
            this.radPause.Size                = new Size(303, 18);
            this.radPause.TabIndex            = 10;
            this.radPause.Text                = "Pause the miner when using the \"Play this game\" feature";
            this.radPause.ToggleStateChanged += new StateChangedEventHandler(this.radPause_ToggleStateChanged);
            this.AutoScaleDimensions          = new SizeF(6f, 13f);
            this.AutoScaleMode                = AutoScaleMode.Font;
            this.ClientSize                   = new Size(636, 579);
            this.Controls.Add((Control)this.radPause);
            this.Controls.Add((Control)this.pictureBox3);
            this.Controls.Add((Control)this.pictureBox2);
            this.Controls.Add((Control)this.cmdNo);
            this.Controls.Add((Control)this.radLabel1);
            this.Controls.Add((Control)this.cmdYes);
            this.Controls.Add((Control)this.label1);
            this.Controls.Add((Control)this.pictureBox1);
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.Name            = nameof(frmMining);
            this.RootElement.ApplyShapeToControl = true;
            this.ShowIcon      = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "I want to help!";
            this.Load         += new EventHandler(this.frmMining_Load);
            this.radLabel1.EndInit();
            this.label1.EndInit();
            ((ISupportInitialize)this.pictureBox1).EndInit();
            this.cmdYes.EndInit();
            this.cmdNo.EndInit();
            ((ISupportInitialize)this.pictureBox2).EndInit();
            ((ISupportInitialize)this.pictureBox3).EndInit();
            this.radPause.EndInit();
            this.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 16
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmMain));

            this.Timer                 = new System.Windows.Forms.Timer(this.components);
            this.cmdStop               = new Button();
            this.cmbPW                 = new ComboBox();
            this.cmdRefreshPW          = new Button();
            this.tabControl1           = new TabControl();
            this.tabPage1              = new TabPage();
            this.cmdClearList          = new Button();
            this.SaveToBin             = new Button();
            this.SaveToTXT             = new Button();
            this.lstPackets            = new ListBox();
            this.tab_PacketProcessor   = new TabPage();
            this.webPacket             = new WebBrowser();
            this.cmbKnownPackets       = new ComboBox();
            this.tabPage4              = new TabPage();
            this.groupBox3             = new GroupBox();
            this.cmdTimerSendPacketOff = new Button();
            this.cmdTimerSendPacketOn  = new Button();
            this.label8                = new Label();
            this.txtSendPacketInterval = new TextBox();
            this.lblSendPacket         = new Label();
            this.label6                = new Label();
            this.txtSendPacket         = new TextBox();
            this.label5                = new Label();
            this.label4                = new Label();
            this.label3                = new Label();
            this.label2                = new Label();
            this.label1                = new Label();
            this.cmdSendPacket         = new Button();
            this.tabPage5              = new TabPage();
            this.label7                = new Label();
            this.contextMenulstPackets = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.menuPacketCopy        = new ToolStripMenuItem();
            this.menuPacketSend        = new ToolStripMenuItem();
            this.groupBox1             = new GroupBox();
            this.cmdStart              = new Button();
            this.groupBox2             = new GroupBox();
            this.cmdInjectOn           = new Button();
            this.cmdInjectOff          = new Button();
            this.timPacketSend         = new System.Windows.Forms.Timer(this.components);
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.tab_PacketProcessor.SuspendLayout();
            this.tabPage4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.tabPage5.SuspendLayout();
            this.contextMenulstPackets.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            base.SuspendLayout();
            this.Timer.Interval   = 1;
            this.Timer.Tick      += new EventHandler(this.Timer_Tick);
            this.cmdStop.Location = new Point(4, 69);
            this.cmdStop.Name     = "cmdStop";
            this.cmdStop.Size     = new System.Drawing.Size(189, 46);
            this.cmdStop.TabIndex = 1;
            this.cmdStop.Text     = "Стоп";
            this.cmdStop.UseVisualStyleBackColor = true;
            this.cmdStop.Click          += new EventHandler(this.cmdStop_Click);
            this.cmbPW.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbPW.FormattingEnabled = true;
            this.cmbPW.Location          = new Point(12, 12);
            this.cmbPW.Name            = "cmbPW";
            this.cmbPW.Size            = new System.Drawing.Size(199, 21);
            this.cmbPW.TabIndex        = 2;
            this.cmdRefreshPW.Location = new Point(12, 418);
            this.cmdRefreshPW.Name     = "cmdRefreshPW";
            this.cmdRefreshPW.Size     = new System.Drawing.Size(199, 23);
            this.cmdRefreshPW.TabIndex = 3;
            this.cmdRefreshPW.Text     = "Поискать окна PW еще разок";
            this.cmdRefreshPW.UseVisualStyleBackColor = true;
            this.cmdRefreshPW.Click += new EventHandler(this.cmdRefreshPW_Click);
            this.tabControl1.Anchor  = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tab_PacketProcessor);
            this.tabControl1.Controls.Add(this.tabPage4);
            this.tabControl1.Controls.Add(this.tabPage5);
            this.tabControl1.Location      = new Point(217, 12);
            this.tabControl1.Name          = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size          = new System.Drawing.Size(652, 429);
            this.tabControl1.TabIndex      = 4;
            this.tabPage1.Controls.Add(this.cmdClearList);
            this.tabPage1.Controls.Add(this.SaveToBin);
            this.tabPage1.Controls.Add(this.SaveToTXT);
            this.tabPage1.Controls.Add(this.lstPackets);
            this.tabPage1.Location = new Point(4, 22);
            this.tabPage1.Name     = "tabPage1";
            this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size     = new System.Drawing.Size(644, 403);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text     = "Пакеты";
            this.tabPage1.UseVisualStyleBackColor = true;
            this.cmdClearList.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
            this.cmdClearList.Location = new Point(502, 374);
            this.cmdClearList.Name     = "cmdClearList";
            this.cmdClearList.Size     = new System.Drawing.Size(136, 23);
            this.cmdClearList.TabIndex = 4;
            this.cmdClearList.Text     = "Очистить список";
            this.cmdClearList.UseVisualStyleBackColor = true;
            this.cmdClearList.Click += new EventHandler(this.cmdClearList_Click);
            this.SaveToBin.Anchor    = AnchorStyles.Bottom | AnchorStyles.Right;
            this.SaveToBin.Enabled   = false;
            this.SaveToBin.Location  = new Point(360, 374);
            this.SaveToBin.Name      = "SaveToBin";
            this.SaveToBin.Size      = new System.Drawing.Size(136, 23);
            this.SaveToBin.TabIndex  = 3;
            this.SaveToBin.Text      = "Сохранить пакеты в bin";
            this.SaveToBin.UseVisualStyleBackColor = true;
            this.SaveToTXT.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
            this.SaveToTXT.Location = new Point(218, 374);
            this.SaveToTXT.Name     = "SaveToTXT";
            this.SaveToTXT.Size     = new System.Drawing.Size(136, 23);
            this.SaveToTXT.TabIndex = 2;
            this.SaveToTXT.Text     = "Сохранить пакеты в txt";
            this.SaveToTXT.UseVisualStyleBackColor = true;
            this.SaveToTXT.Click                 += new EventHandler(this.SaveToTXT_Click);
            this.lstPackets.Anchor                = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.lstPackets.Font                  = new System.Drawing.Font("Lucida Console", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.lstPackets.FormattingEnabled     = true;
            this.lstPackets.Location              = new Point(3, 3);
            this.lstPackets.Name                  = "lstPackets";
            this.lstPackets.Size                  = new System.Drawing.Size(638, 368);
            this.lstPackets.TabIndex              = 0;
            this.lstPackets.SelectedIndexChanged += new EventHandler(this.lstPackets_SelectedIndexChanged);
            this.lstPackets.MouseDown            += new MouseEventHandler(this.lstPackets_MouseDown);
            this.lstPackets.MouseUp              += new MouseEventHandler(this.lstPackets_MouseUp);
            this.tab_PacketProcessor.Controls.Add(this.webPacket);
            this.tab_PacketProcessor.Controls.Add(this.cmbKnownPackets);
            this.tab_PacketProcessor.Location = new Point(4, 22);
            this.tab_PacketProcessor.Name     = "tab_PacketProcessor";
            this.tab_PacketProcessor.Size     = new System.Drawing.Size(644, 403);
            this.tab_PacketProcessor.TabIndex = 2;
            this.tab_PacketProcessor.Text     = "Распознавание пакетов";
            this.tab_PacketProcessor.UseVisualStyleBackColor = true;
            this.webPacket.Location                    = new Point(3, 33);
            this.webPacket.MinimumSize                 = new System.Drawing.Size(20, 20);
            this.webPacket.Name                        = "webPacket";
            this.webPacket.ScriptErrorsSuppressed      = true;
            this.webPacket.Size                        = new System.Drawing.Size(638, 367);
            this.webPacket.TabIndex                    = 1;
            this.cmbKnownPackets.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cmbKnownPackets.FormattingEnabled     = true;
            this.cmbKnownPackets.Location              = new Point(3, 6);
            this.cmbKnownPackets.Name                  = "cmbKnownPackets";
            this.cmbKnownPackets.Size                  = new System.Drawing.Size(273, 21);
            this.cmbKnownPackets.TabIndex              = 0;
            this.cmbKnownPackets.SelectedIndexChanged += new EventHandler(this.cmbKnownPackets_SelectedIndexChanged);
            this.tabPage4.Controls.Add(this.groupBox3);
            this.tabPage4.Controls.Add(this.lblSendPacket);
            this.tabPage4.Controls.Add(this.label6);
            this.tabPage4.Controls.Add(this.txtSendPacket);
            this.tabPage4.Controls.Add(this.label5);
            this.tabPage4.Controls.Add(this.label4);
            this.tabPage4.Controls.Add(this.label3);
            this.tabPage4.Controls.Add(this.label2);
            this.tabPage4.Controls.Add(this.label1);
            this.tabPage4.Controls.Add(this.cmdSendPacket);
            this.tabPage4.Location = new Point(4, 22);
            this.tabPage4.Name     = "tabPage4";
            this.tabPage4.Size     = new System.Drawing.Size(644, 403);
            this.tabPage4.TabIndex = 3;
            this.tabPage4.Text     = "Отправка пакетов";
            this.tabPage4.UseVisualStyleBackColor = true;
            this.groupBox3.Controls.Add(this.cmdTimerSendPacketOff);
            this.groupBox3.Controls.Add(this.cmdTimerSendPacketOn);
            this.groupBox3.Controls.Add(this.label8);
            this.groupBox3.Controls.Add(this.txtSendPacketInterval);
            this.groupBox3.Location             = new Point(349, 93);
            this.groupBox3.Name                 = "groupBox3";
            this.groupBox3.Size                 = new System.Drawing.Size(284, 79);
            this.groupBox3.TabIndex             = 9;
            this.groupBox3.TabStop              = false;
            this.groupBox3.Text                 = "Повторяющаяся отправка";
            this.groupBox3.Visible              = false;
            this.cmdTimerSendPacketOff.Enabled  = false;
            this.cmdTimerSendPacketOff.Location = new Point(96, 50);
            this.cmdTimerSendPacketOff.Name     = "cmdTimerSendPacketOff";
            this.cmdTimerSendPacketOff.Size     = new System.Drawing.Size(75, 23);
            this.cmdTimerSendPacketOff.TabIndex = 3;
            this.cmdTimerSendPacketOff.Text     = "Выкл";
            this.cmdTimerSendPacketOff.UseVisualStyleBackColor = true;
            this.cmdTimerSendPacketOff.Visible = false;
            this.cmdTimerSendPacketOff.Click  += new EventHandler(this.cmdTimerSendPacketOff_Click);
            this.cmdTimerSendPacketOn.Location = new Point(6, 50);
            this.cmdTimerSendPacketOn.Name     = "cmdTimerSendPacketOn";
            this.cmdTimerSendPacketOn.Size     = new System.Drawing.Size(75, 23);
            this.cmdTimerSendPacketOn.TabIndex = 2;
            this.cmdTimerSendPacketOn.Text     = "Вкл";
            this.cmdTimerSendPacketOn.UseVisualStyleBackColor = true;
            this.cmdTimerSendPacketOn.Visible = false;
            this.cmdTimerSendPacketOn.Click  += new EventHandler(this.cmdTimerSendPacketOn_Click);
            this.label8.AutoSize = true;
            this.label8.Location = new Point(77, 20);
            this.label8.Name     = "label8";
            this.label8.Size     = new System.Drawing.Size(68, 13);
            this.label8.TabIndex = 1;
            this.label8.Text     = "милисекунд";
            this.label8.Visible  = false;
            this.txtSendPacketInterval.Location = new Point(6, 17);
            this.txtSendPacketInterval.Name     = "txtSendPacketInterval";
            this.txtSendPacketInterval.Size     = new System.Drawing.Size(65, 20);
            this.txtSendPacketInterval.TabIndex = 0;
            this.txtSendPacketInterval.Text     = "200";
            this.txtSendPacketInterval.Visible  = false;
            this.lblSendPacket.AutoSize         = true;
            this.lblSendPacket.Location         = new Point(6, 302);
            this.lblSendPacket.Name             = "lblSendPacket";
            this.lblSendPacket.Size             = new System.Drawing.Size(0, 13);
            this.lblSendPacket.TabIndex         = 8;
            this.label6.AutoSize                       = true;
            this.label6.Location                       = new Point(6, 280);
            this.label6.Name                           = "label6";
            this.label6.Size                           = new System.Drawing.Size(242, 13);
            this.label6.TabIndex                       = 7;
            this.label6.Text                           = "Таким Ваш пакет увидела данная программа:";
            this.txtSendPacket.Location                = new Point(9, 217);
            this.txtSendPacket.Name                    = "txtSendPacket";
            this.txtSendPacket.Size                    = new System.Drawing.Size(632, 20);
            this.txtSendPacket.TabIndex                = 6;
            this.txtSendPacket.TextChanged            += new EventHandler(this.txtSendPacket_TextChanged);
            this.label5.AutoSize                       = true;
            this.label5.Location                       = new Point(6, 175);
            this.label5.Name                           = "label5";
            this.label5.Size                           = new System.Drawing.Size(435, 39);
            this.label5.TabIndex                       = 5;
            this.label5.Text                           = "Отправленный пакет также будет пойман программой, если включен режим ловли.\r\n\r\nВведите свой пакет в поле:\r\n";
            this.label4.AutoSize                       = true;
            this.label4.Location                       = new Point(6, 110);
            this.label4.Name                           = "label4";
            this.label4.Size                           = new System.Drawing.Size(34, 52);
            this.label4.TabIndex                       = 4;
            this.label4.Text                           = "55 00\r\n0800\r\n2e 00\r\n2f00";
            this.label3.Location                       = new Point(6, 72);
            this.label3.Name                           = "label3";
            this.label3.Size                           = new System.Drawing.Size(638, 30);
            this.label3.TabIndex                       = 3;
            this.label3.Text                           = "Пакеты вводить в шестандцатеричном виде. Пробел между байтами можно оставлять, можно и убирать. Ниже пример правильных пакетов:";
            this.label2.Location                       = new Point(3, 40);
            this.label2.Name                           = "label2";
            this.label2.Size                           = new System.Drawing.Size(638, 32);
            this.label2.TabIndex                       = 2;
            this.label2.Text                           = componentResourceManager.GetString("label2.Text");
            this.label1.AutoSize                       = true;
            this.label1.Font                           = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 204);
            this.label1.Location                       = new Point(3, 6);
            this.label1.Name                           = "label1";
            this.label1.Size                           = new System.Drawing.Size(77, 13);
            this.label1.TabIndex                       = 1;
            this.label1.Text                           = "ВНИМАНИЕ";
            this.cmdSendPacket.Location                = new Point(9, 243);
            this.cmdSendPacket.Name                    = "cmdSendPacket";
            this.cmdSendPacket.Size                    = new System.Drawing.Size(122, 23);
            this.cmdSendPacket.TabIndex                = 0;
            this.cmdSendPacket.Text                    = "Отправить";
            this.cmdSendPacket.UseVisualStyleBackColor = true;
            this.cmdSendPacket.Click                  += new EventHandler(this.cmdSendPacket_Click);
            this.tabPage5.Controls.Add(this.label7);
            this.tabPage5.Location = new Point(4, 22);
            this.tabPage5.Name     = "tabPage5";
            this.tabPage5.Size     = new System.Drawing.Size(644, 403);
            this.tabPage5.TabIndex = 4;
            this.tabPage5.Text     = "Помощь";
            this.tabPage5.UseVisualStyleBackColor = true;
            this.label7.Dock     = DockStyle.Fill;
            this.label7.Location = new Point(0, 0);
            this.label7.Name     = "label7";
            this.label7.Size     = new System.Drawing.Size(644, 403);
            this.label7.TabIndex = 0;
            this.label7.Text     = "1. Сначала выберите окно игры в списке в левом верхнем углу.\r\n2. Далее надо внедриться в процесс\r\n3. После этого можно либо отправлять пакеты в игру, либо запустить прослушку отправленных пакетов.";
            ToolStripItemCollection items = this.contextMenulstPackets.Items;

            ToolStripItem[] toolStripItemArray = new ToolStripItem[] { this.menuPacketCopy, this.menuPacketSend };
            items.AddRange(toolStripItemArray);
            this.contextMenulstPackets.Name = "contextMenulstPackets";
            this.contextMenulstPackets.Size = new System.Drawing.Size(140, 48);
            this.menuPacketCopy.Name        = "menuPacketCopy";
            this.menuPacketCopy.Size        = new System.Drawing.Size(139, 22);
            this.menuPacketCopy.Text        = "Копировать";
            this.menuPacketCopy.Click      += new EventHandler(this.menuPacketCopy_Click);
            this.menuPacketSend.Name        = "menuPacketSend";
            this.menuPacketSend.Size        = new System.Drawing.Size(139, 22);
            this.menuPacketSend.Text        = "Отправить";
            this.menuPacketSend.Click      += new EventHandler(this.menuPacketSend_Click);
            this.groupBox1.Controls.Add(this.cmdStart);
            this.groupBox1.Controls.Add(this.cmdStop);
            this.groupBox1.Location = new Point(12, 176);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(199, 124);
            this.groupBox1.TabIndex = 5;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "Захват пакетов";
            this.cmdStart.Location  = new Point(6, 17);
            this.cmdStart.Name      = "cmdStart";
            this.cmdStart.Size      = new System.Drawing.Size(187, 46);
            this.cmdStart.TabIndex  = 1;
            this.cmdStart.Text      = "Старт";
            this.cmdStart.UseVisualStyleBackColor = true;
            this.cmdStart.Click += new EventHandler(this.cmdStart_Click);
            this.groupBox2.Controls.Add(this.cmdInjectOn);
            this.groupBox2.Controls.Add(this.cmdInjectOff);
            this.groupBox2.Location   = new Point(12, 40);
            this.groupBox2.Name       = "groupBox2";
            this.groupBox2.Size       = new System.Drawing.Size(199, 124);
            this.groupBox2.TabIndex   = 6;
            this.groupBox2.TabStop    = false;
            this.groupBox2.Text       = "Внедрение в процесс";
            this.cmdInjectOn.Location = new Point(6, 17);
            this.cmdInjectOn.Name     = "cmdInjectOn";
            this.cmdInjectOn.Size     = new System.Drawing.Size(187, 46);
            this.cmdInjectOn.TabIndex = 1;
            this.cmdInjectOn.Text     = "Вкл";
            this.cmdInjectOn.UseVisualStyleBackColor = true;
            this.cmdInjectOn.Click    += new EventHandler(this.cmdInjectOn_Click);
            this.cmdInjectOff.Location = new Point(4, 69);
            this.cmdInjectOff.Name     = "cmdInjectOff";
            this.cmdInjectOff.Size     = new System.Drawing.Size(189, 46);
            this.cmdInjectOff.TabIndex = 1;
            this.cmdInjectOff.Text     = "Выкл";
            this.cmdInjectOff.UseVisualStyleBackColor = true;
            this.cmdInjectOff.Click += new EventHandler(this.cmdInjectOff_Click);
            this.timPacketSend.Tick += new EventHandler(this.timPacketSend_Tick);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(881, 453);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox1);
            base.Controls.Add(this.cmdRefreshPW);
            base.Controls.Add(this.tabControl1);
            base.Controls.Add(this.cmbPW);
            base.HelpButton         = true;
            base.MaximizeBox        = false;
            base.MinimizeBox        = false;
            this.MinimumSize        = new System.Drawing.Size(897, 491);
            base.Name               = "frmMain";
            base.StartPosition      = FormStartPosition.CenterScreen;
            this.Text               = "PWPacketListener";
            base.HelpButtonClicked += new CancelEventHandler(this.frmMain_HelpButtonClicked);
            base.FormClosing       += new FormClosingEventHandler(this.frmMain_FormClosing);
            base.Load              += new EventHandler(this.frmMain_Load);
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.tab_PacketProcessor.ResumeLayout(false);
            this.tabPage4.ResumeLayout(false);
            this.tabPage4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.tabPage5.ResumeLayout(false);
            this.contextMenulstPackets.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Esempio n. 17
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(dlgCopySections));

            this.ToolTip1               = new ToolTip(this.components);
            this.txtInstructions        = new TextBox();
            this.txtNewName             = new TextBox();
            this.lblReplacementName     = new Label();
            this.lblOriginalName        = new Label();
            this.cboNameSource          = new ComboBox();
            this.HelpProvider           = new HelpProvider();
            this.tblCopySections        = new TableLayoutPanel();
            this.tblCopyBuilding        = new TableLayoutPanel();
            this.cboBuildingDest        = new ComboBox();
            this.TextBox2               = new TextBox();
            this.cboBuildingSource      = new ComboBox();
            this.lblBuildingDest        = new Label();
            this.lblBuildingSource      = new Label();
            this.rbInventoryCopySection = new RadioButton();
            this.cmdCancel              = new Button();
            this.cmdOK = new Button();
            this.rbInventoryCopyBuilding = new RadioButton();
            this.chkCopyComments         = new CheckBox();
            this.chkEstimateDates        = new CheckBox();
            this.frmOptions = new GroupBox();
            this.tblCopySections.SuspendLayout();
            this.tblCopyBuilding.SuspendLayout();
            this.frmOptions.SuspendLayout();
            this.SuspendLayout();
            this.txtInstructions.AcceptsReturn = true;
            this.txtInstructions.BackColor     = SystemColors.Window;
            this.tblCopySections.SetColumnSpan((Control)this.txtInstructions, 2);
            this.txtInstructions.Cursor      = Cursors.IBeam;
            this.txtInstructions.ForeColor   = SystemColors.WindowText;
            this.txtInstructions.Location    = new Point(3, 3);
            this.txtInstructions.MaxLength   = 0;
            this.txtInstructions.Multiline   = true;
            this.txtInstructions.Name        = "txtInstructions";
            this.txtInstructions.ReadOnly    = true;
            this.txtInstructions.RightToLeft = RightToLeft.No;
            this.tblCopySections.SetRowSpan((Control)this.txtInstructions, 2);
            this.txtInstructions.Size           = new Size(524, 65);
            this.txtInstructions.TabIndex       = 3;
            this.txtInstructions.Text           = componentResourceManager.GetString("txtInstructions.Text");
            this.txtNewName.AcceptsReturn       = true;
            this.txtNewName.BackColor           = SystemColors.Window;
            this.txtNewName.Cursor              = Cursors.IBeam;
            this.txtNewName.ForeColor           = SystemColors.WindowText;
            this.txtNewName.Location            = new Point(113, 101);
            this.txtNewName.MaxLength           = 0;
            this.txtNewName.Name                = "txtNewName";
            this.txtNewName.RightToLeft         = RightToLeft.No;
            this.txtNewName.Size                = new Size(404, 20);
            this.txtNewName.TabIndex            = 2;
            this.lblReplacementName.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.lblReplacementName.AutoSize    = true;
            this.lblReplacementName.BackColor   = SystemColors.Control;
            this.lblReplacementName.Cursor      = Cursors.Default;
            this.lblReplacementName.ForeColor   = SystemColors.ControlText;
            this.lblReplacementName.Location    = new Point(3, 98);
            this.lblReplacementName.Name        = "lblReplacementName";
            this.lblReplacementName.RightToLeft = RightToLeft.No;
            this.lblReplacementName.Size        = new Size(104, 26);
            this.lblReplacementName.TabIndex    = 4;
            this.lblReplacementName.Text        = "Replacement Name:";
            this.lblReplacementName.TextAlign   = ContentAlignment.MiddleRight;
            this.lblOriginalName.Anchor         = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.lblOriginalName.AutoSize       = true;
            this.lblOriginalName.BackColor      = SystemColors.Control;
            this.lblOriginalName.Cursor         = Cursors.Default;
            this.lblOriginalName.ForeColor      = SystemColors.ControlText;
            this.lblOriginalName.Location       = new Point(30, 71);
            this.lblOriginalName.Name           = "lblOriginalName";
            this.lblOriginalName.RightToLeft    = RightToLeft.No;
            this.lblOriginalName.Size           = new Size(77, 27);
            this.lblOriginalName.TabIndex       = 1;
            this.lblOriginalName.Text           = "Name to Copy:";
            this.lblOriginalName.TextAlign      = ContentAlignment.MiddleRight;
            this.cboNameSource.DropDownStyle    = ComboBoxStyle.DropDownList;
            this.cboNameSource.Location         = new Point(113, 74);
            this.cboNameSource.Name             = "cboNameSource";
            this.cboNameSource.Size             = new Size(404, 21);
            this.cboNameSource.TabIndex         = 10;
            this.tblCopySections.Anchor         = AnchorStyles.None;
            this.tblCopySections.AutoSizeMode   = AutoSizeMode.GrowAndShrink;
            this.tblCopySections.ColumnCount    = 2;
            this.tblCopySections.ColumnStyles.Add(new ColumnStyle());
            this.tblCopySections.ColumnStyles.Add(new ColumnStyle());
            this.tblCopySections.Controls.Add((Control)this.txtInstructions, 0, 0);
            this.tblCopySections.Controls.Add((Control)this.cboNameSource, 1, 2);
            this.tblCopySections.Controls.Add((Control)this.txtNewName, 1, 3);
            this.tblCopySections.Controls.Add((Control)this.lblReplacementName, 0, 3);
            this.tblCopySections.Controls.Add((Control)this.lblOriginalName, 0, 2);
            this.tblCopySections.Controls.Add((Control)this.frmOptions, 1, 4);
            this.tblCopySections.Location = new Point(12, 50);
            this.tblCopySections.Name     = "tblCopySections";
            this.tblCopySections.RowCount = 5;
            this.tblCopySections.RowStyles.Add(new RowStyle());
            this.tblCopySections.RowStyles.Add(new RowStyle());
            this.tblCopySections.RowStyles.Add(new RowStyle());
            this.tblCopySections.RowStyles.Add(new RowStyle());
            this.tblCopySections.RowStyles.Add(new RowStyle());
            this.tblCopySections.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
            this.tblCopySections.Size         = new Size(530, 233);
            this.tblCopySections.TabIndex     = 11;
            this.tblCopyBuilding.Anchor       = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.tblCopyBuilding.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.tblCopyBuilding.ColumnCount  = 2;
            this.tblCopyBuilding.ColumnStyles.Add(new ColumnStyle());
            this.tblCopyBuilding.ColumnStyles.Add(new ColumnStyle());
            this.tblCopyBuilding.Controls.Add((Control)this.cboBuildingDest, 1, 3);
            this.tblCopyBuilding.Controls.Add((Control)this.TextBox2, 0, 0);
            this.tblCopyBuilding.Controls.Add((Control)this.cboBuildingSource, 1, 2);
            this.tblCopyBuilding.Controls.Add((Control)this.lblBuildingDest, 0, 3);
            this.tblCopyBuilding.Controls.Add((Control)this.lblBuildingSource, 0, 2);
            this.tblCopyBuilding.Location = new Point(12, 50);
            this.tblCopyBuilding.Name     = "tblCopyBuilding";
            this.tblCopyBuilding.RowCount = 4;
            this.tblCopyBuilding.RowStyles.Add(new RowStyle());
            this.tblCopyBuilding.RowStyles.Add(new RowStyle());
            this.tblCopyBuilding.RowStyles.Add(new RowStyle());
            this.tblCopyBuilding.RowStyles.Add(new RowStyle());
            this.tblCopyBuilding.Size          = new Size(530, 161);
            this.tblCopyBuilding.TabIndex      = 12;
            this.cboBuildingDest.DropDownStyle = ComboBoxStyle.DropDownList;
            this.cboBuildingDest.DropDownWidth = 414;
            this.cboBuildingDest.Location      = new Point(112, 101);
            this.cboBuildingDest.Name          = "cboBuildingDest";
            this.cboBuildingDest.Size          = new Size(405, 21);
            this.cboBuildingDest.TabIndex      = 11;
            this.TextBox2.AcceptsReturn        = true;
            this.TextBox2.BackColor            = SystemColors.Window;
            this.tblCopyBuilding.SetColumnSpan((Control)this.TextBox2, 2);
            this.TextBox2.Cursor      = Cursors.IBeam;
            this.TextBox2.ForeColor   = SystemColors.WindowText;
            this.TextBox2.Location    = new Point(3, 3);
            this.TextBox2.MaxLength   = 0;
            this.TextBox2.Multiline   = true;
            this.TextBox2.Name        = "TextBox2";
            this.TextBox2.ReadOnly    = true;
            this.TextBox2.RightToLeft = RightToLeft.No;
            this.tblCopyBuilding.SetRowSpan((Control)this.TextBox2, 2);
            this.TextBox2.Size     = new Size(524, 65);
            this.TextBox2.TabIndex = 3;
            this.TextBox2.Text     = "Use the Building Copy tool to copy inventory from one building to another.";
            this.cboBuildingSource.DropDownStyle = ComboBoxStyle.DropDownList;
            this.cboBuildingSource.DropDownWidth = 414;
            this.cboBuildingSource.Location      = new Point(112, 74);
            this.cboBuildingSource.Name          = "cboBuildingSource";
            this.cboBuildingSource.Size          = new Size(405, 21);
            this.cboBuildingSource.TabIndex      = 10;
            this.lblBuildingDest.AutoSize        = true;
            this.lblBuildingDest.BackColor       = SystemColors.Control;
            this.lblBuildingDest.Cursor          = Cursors.Default;
            this.lblBuildingDest.ForeColor       = SystemColors.ControlText;
            this.lblBuildingDest.Location        = new Point(3, 98);
            this.lblBuildingDest.Name            = "lblBuildingDest";
            this.lblBuildingDest.RightToLeft     = RightToLeft.No;
            this.lblBuildingDest.Size            = new Size(103, 13);
            this.lblBuildingDest.TabIndex        = 4;
            this.lblBuildingDest.Text            = "Destination Building:";
            this.lblBuildingDest.TextAlign       = ContentAlignment.MiddleRight;
            this.lblBuildingSource.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.lblBuildingSource.AutoSize      = true;
            this.lblBuildingSource.BackColor     = SystemColors.Control;
            this.lblBuildingSource.Cursor        = Cursors.Default;
            this.lblBuildingSource.ForeColor     = SystemColors.ControlText;
            this.lblBuildingSource.Location      = new Point(22, 71);
            this.lblBuildingSource.Name          = "lblBuildingSource";
            this.lblBuildingSource.RightToLeft   = RightToLeft.No;
            this.lblBuildingSource.Size          = new Size(84, 27);
            this.lblBuildingSource.TabIndex      = 1;
            this.lblBuildingSource.Text          = "Source Building:";
            this.lblBuildingSource.TextAlign     = ContentAlignment.MiddleRight;
            this.rbInventoryCopySection.AutoSize = true;
            this.rbInventoryCopySection.Location = new Point(171, 20);
            this.rbInventoryCopySection.Name     = "rbInventoryCopySection";
            this.rbInventoryCopySection.Size     = new Size(88, 17);
            this.rbInventoryCopySection.TabIndex = 13;
            this.rbInventoryCopySection.Text     = "Copy Section";
            this.rbInventoryCopySection.UseVisualStyleBackColor = true;
            this.cmdCancel.Anchor                  = AnchorStyles.Top | AnchorStyles.Right;
            this.cmdCancel.BackColor               = SystemColors.Control;
            this.cmdCancel.Cursor                  = Cursors.Default;
            this.cmdCancel.FlatStyle               = FlatStyle.System;
            this.cmdCancel.ForeColor               = SystemColors.ControlText;
            this.cmdCancel.Location                = new Point(450, 13);
            this.cmdCancel.Name                    = "cmdCancel";
            this.cmdCancel.RightToLeft             = RightToLeft.No;
            this.cmdCancel.Size                    = new Size(92, 31);
            this.cmdCancel.TabIndex                = 10;
            this.cmdCancel.Text                    = "Cancel";
            this.cmdCancel.UseVisualStyleBackColor = false;
            this.cmdOK.Anchor                     = AnchorStyles.Top | AnchorStyles.Right;
            this.cmdOK.BackColor                  = SystemColors.Control;
            this.cmdOK.Cursor                     = Cursors.Default;
            this.cmdOK.FlatStyle                  = FlatStyle.System;
            this.cmdOK.ForeColor                  = SystemColors.ControlText;
            this.cmdOK.Location                   = new Point(339, 13);
            this.cmdOK.Name                       = "cmdOK";
            this.cmdOK.RightToLeft                = RightToLeft.No;
            this.cmdOK.Size                       = new Size(92, 31);
            this.cmdOK.TabIndex                   = 11;
            this.cmdOK.Text                       = "OK";
            this.cmdOK.UseVisualStyleBackColor    = false;
            this.rbInventoryCopyBuilding.AutoSize = true;
            this.rbInventoryCopyBuilding.Checked  = true;
            this.rbInventoryCopyBuilding.Location = new Point(54, 20);
            this.rbInventoryCopyBuilding.Name     = "rbInventoryCopyBuilding";
            this.rbInventoryCopyBuilding.Size     = new Size(89, 17);
            this.rbInventoryCopyBuilding.TabIndex = 12;
            this.rbInventoryCopyBuilding.TabStop  = true;
            this.rbInventoryCopyBuilding.Text     = "Copy Building";
            this.rbInventoryCopyBuilding.UseVisualStyleBackColor = true;
            this.chkCopyComments.Cursor                   = Cursors.Default;
            this.chkCopyComments.FlatStyle                = FlatStyle.System;
            this.chkCopyComments.Location                 = new Point(32, 16);
            this.chkCopyComments.Name                     = "chkCopyComments";
            this.chkCopyComments.RightToLeft              = RightToLeft.No;
            this.chkCopyComments.Size                     = new Size(105, 25);
            this.chkCopyComments.TabIndex                 = 6;
            this.chkCopyComments.Text                     = "Copy Comments";
            this.chkEstimateDates.BackColor               = SystemColors.Control;
            this.chkEstimateDates.Cursor                  = Cursors.Default;
            this.chkEstimateDates.FlatStyle               = FlatStyle.System;
            this.chkEstimateDates.Location                = new Point(32, 40);
            this.chkEstimateDates.Name                    = "chkEstimateDates";
            this.chkEstimateDates.RightToLeft             = RightToLeft.No;
            this.chkEstimateDates.Size                    = new Size(344, 17);
            this.chkEstimateDates.TabIndex                = 7;
            this.chkEstimateDates.Text                    = "Set Installed Date as \"Estimated\" for all sections being copied";
            this.chkEstimateDates.UseVisualStyleBackColor = false;
            this.frmOptions.BackColor                     = SystemColors.Control;
            this.tblCopySections.SetColumnSpan((Control)this.frmOptions, 2);
            this.frmOptions.Controls.Add((Control)this.chkEstimateDates);
            this.frmOptions.Controls.Add((Control)this.chkCopyComments);
            this.frmOptions.FlatStyle   = FlatStyle.System;
            this.frmOptions.ForeColor   = SystemColors.ControlText;
            this.frmOptions.Location    = new Point(3, (int)sbyte.MaxValue);
            this.frmOptions.Name        = "frmOptions";
            this.frmOptions.RightToLeft = RightToLeft.No;
            this.frmOptions.Size        = new Size(524, 103);
            this.frmOptions.TabIndex    = 5;
            this.frmOptions.TabStop     = false;
            this.frmOptions.Text        = "Options";
            this.AutoScaleBaseSize      = new Size(5, 13);
            this.BackColor  = SystemColors.Control;
            this.ClientSize = new Size(564, 329);
            this.ControlBox = false;
            this.Controls.Add((Control)this.tblCopySections);
            this.Controls.Add((Control)this.tblCopyBuilding);
            this.Controls.Add((Control)this.rbInventoryCopyBuilding);
            this.Controls.Add((Control)this.rbInventoryCopySection);
            this.Controls.Add((Control)this.cmdCancel);
            this.Controls.Add((Control)this.cmdOK);
            this.Cursor        = Cursors.Default;
            this.Location      = new Point(184, 250);
            this.MaximizeBox   = false;
            this.MinimizeBox   = false;
            this.MinimumSize   = new Size(580, 345);
            this.Name          = nameof(dlgCopySections);
            this.RightToLeft   = RightToLeft.No;
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Section Copy Tool";
            this.tblCopySections.ResumeLayout(false);
            this.tblCopySections.PerformLayout();
            this.tblCopyBuilding.ResumeLayout(false);
            this.tblCopyBuilding.PerformLayout();
            this.frmOptions.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 18
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(FormSetting));

            this.toolStripSetting    = new ToolStrip();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.ButtonSaveSetting   = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.tabSetting          = new TabControl();
            this.tabProxy            = new TabPage();
            this.label10             = new Label();
            this.chkUseProxy         = new CheckBox();
            this.txtProxyPassword    = new TextBox();
            this.txtProxyUsername    = new TextBox();
            this.label4                = new Label();
            this.label3                = new Label();
            this.txtProxyPort          = new TextBox();
            this.label2                = new Label();
            this.label1                = new Label();
            this.txtProxyAddr          = new TextBox();
            this.tabScanner            = new TabPage();
            this.GroupBoxScanSetting   = new GroupBox();
            this.label6                = new Label();
            this.txtUserAgent          = new TextBox();
            this.label13               = new Label();
            this.txtScanDepth          = new TextBox();
            this.lblDelay              = new Label();
            this.label14               = new Label();
            this.txtMaxThread          = new TextBox();
            this.txtCrawlableExt       = new TextBox();
            this.txtDelay              = new TextBox();
            this.label18               = new Label();
            this.label7                = new Label();
            this.txtMultiSitesNum      = new TextBox();
            this.GroupBoxVulSetting    = new GroupBox();
            this.CheckBoxScanCookieSQL = new CheckBox();
            this.CheckBoxScanPostSQL   = new CheckBox();
            this.CheckBoxScanURLSQL    = new CheckBox();
            this.CheckBoxXPath         = new CheckBox();
            this.CheckBoxXSS           = new CheckBox();
            this.CheckBoxSQLInjection  = new CheckBox();
            this.tabAdvanced           = new TabPage();
            this.txtRepExpr3           = new TextBox();
            this.label12               = new Label();
            this.txtFiltExpr3          = new TextBox();
            this.chkReplace3           = new CheckBox();
            this.txtRepExpr2           = new TextBox();
            this.label9                = new Label();
            this.txtFiltExpr2          = new TextBox();
            this.chkReplace2           = new CheckBox();
            this.txtRepExpr1           = new TextBox();
            this.label5                = new Label();
            this.txtFiltExpr1          = new TextBox();
            this.chkReplace1           = new CheckBox();
            this.tabAccess             = new TabPage();
            this.txtAccessColumns      = new TextBox();
            this.label11               = new Label();
            this.label8                = new Label();
            this.txtAccessTables       = new TextBox();
            this.tabXSInj              = new TabPage();
            this.txtXSRecord           = new TextBox();
            this.txtXSInjURL           = new TextBox();
            this.label20               = new Label();
            this.label19               = new Label();
            this.txtXSinjUsage         = new TextBox();
            this.tabAdmin              = new TabPage();
            this.label17               = new Label();
            this.txtAdminPage          = new TextBox();
            this.label16               = new Label();
            this.txtAdminPath          = new TextBox();
            this.ToolTipSetting        = new ToolTip(this.components);
            this.toolStripSetting.SuspendLayout();
            this.tabSetting.SuspendLayout();
            this.tabProxy.SuspendLayout();
            this.tabScanner.SuspendLayout();
            this.GroupBoxScanSetting.SuspendLayout();
            this.GroupBoxVulSetting.SuspendLayout();
            this.tabAdvanced.SuspendLayout();
            this.tabAccess.SuspendLayout();
            this.tabXSInj.SuspendLayout();
            this.tabAdmin.SuspendLayout();
            base.SuspendLayout();
            this.toolStripSetting.BackColor = SystemColors.ButtonFace;
            this.toolStripSetting.Dock      = DockStyle.Bottom;
            this.toolStripSetting.GripStyle = ToolStripGripStyle.Hidden;
            this.toolStripSetting.Items.AddRange(new ToolStripItem[]
            {
                this.toolStripSeparator1,
                this.ButtonSaveSetting,
                this.toolStripSeparator2
            });
            this.toolStripSetting.Location               = new Point(0, 425);
            this.toolStripSetting.Name                   = "toolStripSetting";
            this.toolStripSetting.Size                   = new Size(1036, 25);
            this.toolStripSetting.TabIndex               = 0;
            this.toolStripSetting.Text                   = "toolStrip1";
            this.toolStripSeparator1.Name                = "toolStripSeparator1";
            this.toolStripSeparator1.Size                = new Size(6, 25);
            this.ButtonSaveSetting.AutoSize              = false;
            this.ButtonSaveSetting.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.ButtonSaveSetting.Image                 = (Image)resources.GetObject("ButtonSaveSetting.Image");
            this.ButtonSaveSetting.ImageTransparentColor = Color.Magenta;
            this.ButtonSaveSetting.Name                  = "ButtonSaveSetting";
            this.ButtonSaveSetting.Size                  = new Size(150, 22);
            this.ButtonSaveSetting.Text                  = "保存设置信息";
            this.ButtonSaveSetting.Click                += new EventHandler(this.ButtonSaveSetting_Click);
            this.toolStripSeparator2.Name                = "toolStripSeparator2";
            this.toolStripSeparator2.Size                = new Size(6, 25);
            this.tabSetting.Controls.Add(this.tabProxy);
            this.tabSetting.Controls.Add(this.tabScanner);
            this.tabSetting.Controls.Add(this.tabAdvanced);
            this.tabSetting.Controls.Add(this.tabAccess);
            this.tabSetting.Controls.Add(this.tabXSInj);
            this.tabSetting.Controls.Add(this.tabAdmin);
            this.tabSetting.Dock          = DockStyle.Fill;
            this.tabSetting.Location      = new Point(0, 0);
            this.tabSetting.Name          = "tabSetting";
            this.tabSetting.SelectedIndex = 0;
            this.tabSetting.Size          = new Size(1036, 425);
            this.tabSetting.TabIndex      = 1;
            this.tabProxy.Controls.Add(this.label10);
            this.tabProxy.Controls.Add(this.chkUseProxy);
            this.tabProxy.Controls.Add(this.txtProxyPassword);
            this.tabProxy.Controls.Add(this.txtProxyUsername);
            this.tabProxy.Controls.Add(this.label4);
            this.tabProxy.Controls.Add(this.label3);
            this.tabProxy.Controls.Add(this.txtProxyPort);
            this.tabProxy.Controls.Add(this.label2);
            this.tabProxy.Controls.Add(this.label1);
            this.tabProxy.Controls.Add(this.txtProxyAddr);
            this.tabProxy.Location = new Point(4, 21);
            this.tabProxy.Name     = "tabProxy";
            this.tabProxy.Padding  = new Padding(3);
            this.tabProxy.Size     = new Size(1028, 400);
            this.tabProxy.TabIndex = 0;
            this.tabProxy.Text     = "代理";
            this.tabProxy.UseVisualStyleBackColor = true;
            this.label10.AutoSize     = true;
            this.label10.Location     = new Point(6, 134);
            this.label10.Name         = "label10";
            this.label10.Size         = new Size(0, 12);
            this.label10.TabIndex     = 9;
            this.chkUseProxy.AutoSize = true;
            this.chkUseProxy.Location = new Point(68, 17);
            this.chkUseProxy.Name     = "chkUseProxy";
            this.chkUseProxy.Size     = new Size(108, 16);
            this.chkUseProxy.TabIndex = 8;
            this.chkUseProxy.Text     = "设置代理服务器";
            this.chkUseProxy.UseVisualStyleBackColor = true;
            this.txtProxyPassword.Location           = new Point(67, 105);
            this.txtProxyPassword.Name         = "txtProxyPassword";
            this.txtProxyPassword.PasswordChar = '*';
            this.txtProxyPassword.Size         = new Size(129, 21);
            this.txtProxyPassword.TabIndex     = 7;
            this.txtProxyUsername.Location     = new Point(67, 76);
            this.txtProxyUsername.Name         = "txtProxyUsername";
            this.txtProxyUsername.Size         = new Size(129, 21);
            this.txtProxyUsername.TabIndex     = 6;
            this.label4.AutoSize       = true;
            this.label4.Location       = new Point(6, 109);
            this.label4.Name           = "label4";
            this.label4.Size           = new Size(41, 12);
            this.label4.TabIndex       = 5;
            this.label4.Text           = "密 码:";
            this.label3.AutoSize       = true;
            this.label3.Location       = new Point(6, 81);
            this.label3.Name           = "label3";
            this.label3.Size           = new Size(47, 12);
            this.label3.TabIndex       = 4;
            this.label3.Text           = "用户名:";
            this.txtProxyPort.Location = new Point(241, 47);
            this.txtProxyPort.Name     = "txtProxyPort";
            this.txtProxyPort.Size     = new Size(44, 21);
            this.txtProxyPort.TabIndex = 3;
            this.label2.AutoSize       = true;
            this.label2.Location       = new Point(203, 51);
            this.label2.Name           = "label2";
            this.label2.Size           = new Size(35, 12);
            this.label2.TabIndex       = 2;
            this.label2.Text           = "端口:";
            this.label1.AutoSize       = true;
            this.label1.Location       = new Point(6, 51);
            this.label1.Name           = "label1";
            this.label1.Size           = new Size(47, 12);
            this.label1.TabIndex       = 1;
            this.label1.Text           = "IP地址:";
            this.txtProxyAddr.Location = new Point(67, 47);
            this.txtProxyAddr.Name     = "txtProxyAddr";
            this.txtProxyAddr.Size     = new Size(129, 21);
            this.txtProxyAddr.TabIndex = 0;
            this.tabScanner.Controls.Add(this.GroupBoxScanSetting);
            this.tabScanner.Controls.Add(this.GroupBoxVulSetting);
            this.tabScanner.Location = new Point(4, 21);
            this.tabScanner.Name     = "tabScanner";
            this.tabScanner.Size     = new Size(1028, 400);
            this.tabScanner.TabIndex = 2;
            this.tabScanner.Text     = "扫描设置";
            this.tabScanner.UseVisualStyleBackColor = true;
            this.GroupBoxScanSetting.Controls.Add(this.label6);
            this.GroupBoxScanSetting.Controls.Add(this.txtUserAgent);
            this.GroupBoxScanSetting.Controls.Add(this.label13);
            this.GroupBoxScanSetting.Controls.Add(this.txtScanDepth);
            this.GroupBoxScanSetting.Controls.Add(this.lblDelay);
            this.GroupBoxScanSetting.Controls.Add(this.label14);
            this.GroupBoxScanSetting.Controls.Add(this.txtMaxThread);
            this.GroupBoxScanSetting.Controls.Add(this.txtCrawlableExt);
            this.GroupBoxScanSetting.Controls.Add(this.txtDelay);
            this.GroupBoxScanSetting.Controls.Add(this.label18);
            this.GroupBoxScanSetting.Controls.Add(this.label7);
            this.GroupBoxScanSetting.Controls.Add(this.txtMultiSitesNum);
            this.GroupBoxScanSetting.Location = new Point(13, 5);
            this.GroupBoxScanSetting.Name     = "GroupBoxScanSetting";
            this.GroupBoxScanSetting.Size     = new Size(490, 201);
            this.GroupBoxScanSetting.TabIndex = 35;
            this.GroupBoxScanSetting.TabStop  = false;
            this.GroupBoxScanSetting.Text     = "Parameter Setting";
            this.label6.AutoSize           = true;
            this.label6.Location           = new Point(18, 28);
            this.label6.Name               = "label6";
            this.label6.Size               = new Size(71, 12);
            this.label6.TabIndex           = 33;
            this.label6.Text               = "User-Agent:";
            this.txtUserAgent.Location     = new Point(95, 25);
            this.txtUserAgent.Name         = "txtUserAgent";
            this.txtUserAgent.Size         = new Size(358, 21);
            this.txtUserAgent.TabIndex     = 34;
            this.label13.AutoSize          = true;
            this.label13.Location          = new Point(18, 178);
            this.label13.Name              = "label13";
            this.label13.Size              = new Size(95, 12);
            this.label13.TabIndex          = 0;
            this.label13.Text              = "Scanning Depth:";
            this.txtScanDepth.Location     = new Point(114, 174);
            this.txtScanDepth.Name         = "txtScanDepth";
            this.txtScanDepth.Size         = new Size(39, 21);
            this.txtScanDepth.TabIndex     = 1;
            this.lblDelay.AutoSize         = true;
            this.lblDelay.Location         = new Point(174, 178);
            this.lblDelay.Name             = "lblDelay";
            this.lblDelay.Size             = new Size(233, 12);
            this.lblDelay.TabIndex         = 32;
            this.lblDelay.Text             = "Seconds Delay For Each Search Request:";
            this.label14.AutoSize          = true;
            this.label14.Location          = new Point(18, 121);
            this.label14.Name              = "label14";
            this.label14.Size              = new Size(299, 12);
            this.label14.TabIndex          = 2;
            this.label14.Text              = "Crawling Pages With Extension (Seperated By ':'):";
            this.txtMaxThread.Location     = new Point(413, 61);
            this.txtMaxThread.Name         = "txtMaxThread";
            this.txtMaxThread.Size         = new Size(40, 21);
            this.txtMaxThread.TabIndex     = 30;
            this.txtCrawlableExt.Location  = new Point(18, 139);
            this.txtCrawlableExt.Name      = "txtCrawlableExt";
            this.txtCrawlableExt.Size      = new Size(435, 21);
            this.txtCrawlableExt.TabIndex  = 3;
            this.txtDelay.Location         = new Point(413, 174);
            this.txtDelay.MaxLength        = 4;
            this.txtDelay.Name             = "txtDelay";
            this.txtDelay.Size             = new Size(39, 21);
            this.txtDelay.TabIndex         = 31;
            this.label18.AutoSize          = true;
            this.label18.Location          = new Point(18, 94);
            this.label18.Name              = "label18";
            this.label18.Size              = new Size(389, 12);
            this.label18.TabIndex          = 5;
            this.label18.Text              = "Maximum Site Thread Number for Multi-Site Scanning (Default: 3):";
            this.label7.AutoSize           = true;
            this.label7.Location           = new Point(18, 64);
            this.label7.Name               = "label7";
            this.label7.Size               = new Size(389, 12);
            this.label7.TabIndex           = 29;
            this.label7.Text               = "Maximum HTTP Thread Number for Single-Site Scanning(Default: 5):";
            this.txtMultiSitesNum.Location = new Point(413, 88);
            this.txtMultiSitesNum.Name     = "txtMultiSitesNum";
            this.txtMultiSitesNum.Size     = new Size(40, 21);
            this.txtMultiSitesNum.TabIndex = 6;
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxScanCookieSQL);
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxScanPostSQL);
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxScanURLSQL);
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxXPath);
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxXSS);
            this.GroupBoxVulSetting.Controls.Add(this.CheckBoxSQLInjection);
            this.GroupBoxVulSetting.Location    = new Point(13, 210);
            this.GroupBoxVulSetting.Name        = "GroupBoxVulSetting";
            this.GroupBoxVulSetting.Size        = new Size(490, 158);
            this.GroupBoxVulSetting.TabIndex    = 7;
            this.GroupBoxVulSetting.TabStop     = false;
            this.GroupBoxVulSetting.Text        = "Vulnerabilities Setting";
            this.CheckBoxScanCookieSQL.AutoSize = true;
            this.CheckBoxScanCookieSQL.Location = new Point(38, 92);
            this.CheckBoxScanCookieSQL.Name     = "CheckBoxScanCookieSQL";
            this.CheckBoxScanCookieSQL.Size     = new Size(174, 16);
            this.CheckBoxScanCookieSQL.TabIndex = 5;
            this.CheckBoxScanCookieSQL.Text     = "Scan Cookie SQL Injection";
            this.CheckBoxScanCookieSQL.UseVisualStyleBackColor = true;
            this.CheckBoxScanPostSQL.AutoSize = true;
            this.CheckBoxScanPostSQL.Location = new Point(38, 67);
            this.CheckBoxScanPostSQL.Name     = "CheckBoxScanPostSQL";
            this.CheckBoxScanPostSQL.Size     = new Size(162, 16);
            this.CheckBoxScanPostSQL.TabIndex = 4;
            this.CheckBoxScanPostSQL.Text     = "Scan Post SQL Injection";
            this.CheckBoxScanPostSQL.UseVisualStyleBackColor = true;
            this.CheckBoxScanURLSQL.AutoSize = true;
            this.CheckBoxScanURLSQL.Location = new Point(38, 42);
            this.CheckBoxScanURLSQL.Name     = "CheckBoxScanURLSQL";
            this.CheckBoxScanURLSQL.Size     = new Size(156, 16);
            this.CheckBoxScanURLSQL.TabIndex = 3;
            this.CheckBoxScanURLSQL.Text     = "Scan URL SQL Injection";
            this.CheckBoxScanURLSQL.UseVisualStyleBackColor = true;
            this.CheckBoxXPath.AutoSize = true;
            this.CheckBoxXPath.Location = new Point(18, 139);
            this.CheckBoxXPath.Name     = "CheckBoxXPath";
            this.CheckBoxXPath.Size     = new Size(144, 16);
            this.CheckBoxXPath.TabIndex = 2;
            this.CheckBoxXPath.Text     = "Scan XPath Injection";
            this.CheckBoxXPath.UseVisualStyleBackColor = true;
            this.CheckBoxXSS.AutoSize = true;
            this.CheckBoxXSS.Location = new Point(18, 114);
            this.CheckBoxXSS.Name     = "CheckBoxXSS";
            this.CheckBoxXSS.Size     = new Size(174, 16);
            this.CheckBoxXSS.TabIndex = 1;
            this.CheckBoxXSS.Text     = "Scan Cross Site Scripting";
            this.CheckBoxXSS.UseVisualStyleBackColor          = true;
            this.CheckBoxSQLInjection.AutoSize                = true;
            this.CheckBoxSQLInjection.Location                = new Point(18, 20);
            this.CheckBoxSQLInjection.Name                    = "CheckBoxSQLInjection";
            this.CheckBoxSQLInjection.Size                    = new Size(132, 16);
            this.CheckBoxSQLInjection.TabIndex                = 0;
            this.CheckBoxSQLInjection.Text                    = "Scan SQL Injection";
            this.CheckBoxSQLInjection.UseVisualStyleBackColor = true;
            this.CheckBoxSQLInjection.CheckedChanged         += new EventHandler(this.CheckBoxSQLInjection_CheckedChanged);
            this.tabAdvanced.Controls.Add(this.txtRepExpr3);
            this.tabAdvanced.Controls.Add(this.label12);
            this.tabAdvanced.Controls.Add(this.txtFiltExpr3);
            this.tabAdvanced.Controls.Add(this.chkReplace3);
            this.tabAdvanced.Controls.Add(this.txtRepExpr2);
            this.tabAdvanced.Controls.Add(this.label9);
            this.tabAdvanced.Controls.Add(this.txtFiltExpr2);
            this.tabAdvanced.Controls.Add(this.chkReplace2);
            this.tabAdvanced.Controls.Add(this.txtRepExpr1);
            this.tabAdvanced.Controls.Add(this.label5);
            this.tabAdvanced.Controls.Add(this.txtFiltExpr1);
            this.tabAdvanced.Controls.Add(this.chkReplace1);
            this.tabAdvanced.Location = new Point(4, 21);
            this.tabAdvanced.Name     = "tabAdvanced";
            this.tabAdvanced.Padding  = new Padding(3);
            this.tabAdvanced.Size     = new Size(1028, 400);
            this.tabAdvanced.TabIndex = 1;
            this.tabAdvanced.Text     = "字符串替换";
            this.tabAdvanced.UseVisualStyleBackColor = true;
            this.txtRepExpr3.Location  = new Point(169, 88);
            this.txtRepExpr3.Name      = "txtRepExpr3";
            this.txtRepExpr3.Size      = new Size(90, 21);
            this.txtRepExpr3.TabIndex  = 23;
            this.label12.AutoSize      = true;
            this.label12.Location      = new Point(145, 92);
            this.label12.Name          = "label12";
            this.label12.Size          = new Size(17, 12);
            this.label12.TabIndex      = 22;
            this.label12.Text          = "为";
            this.txtFiltExpr3.Location = new Point(88, 88);
            this.txtFiltExpr3.Name     = "txtFiltExpr3";
            this.txtFiltExpr3.Size     = new Size(50, 21);
            this.txtFiltExpr3.TabIndex = 21;
            this.chkReplace3.AutoSize  = true;
            this.chkReplace3.Location  = new Point(24, 90);
            this.chkReplace3.Name      = "chkReplace3";
            this.chkReplace3.Size      = new Size(48, 16);
            this.chkReplace3.TabIndex  = 20;
            this.chkReplace3.Text      = "替换";
            this.chkReplace3.UseVisualStyleBackColor = true;
            this.txtRepExpr2.Location  = new Point(169, 59);
            this.txtRepExpr2.Name      = "txtRepExpr2";
            this.txtRepExpr2.Size      = new Size(90, 21);
            this.txtRepExpr2.TabIndex  = 18;
            this.label9.AutoSize       = true;
            this.label9.Location       = new Point(145, 63);
            this.label9.Name           = "label9";
            this.label9.Size           = new Size(17, 12);
            this.label9.TabIndex       = 17;
            this.label9.Text           = "为";
            this.txtFiltExpr2.Location = new Point(88, 59);
            this.txtFiltExpr2.Name     = "txtFiltExpr2";
            this.txtFiltExpr2.Size     = new Size(50, 21);
            this.txtFiltExpr2.TabIndex = 16;
            this.chkReplace2.AutoSize  = true;
            this.chkReplace2.Location  = new Point(24, 61);
            this.chkReplace2.Name      = "chkReplace2";
            this.chkReplace2.Size      = new Size(48, 16);
            this.chkReplace2.TabIndex  = 15;
            this.chkReplace2.Text      = "替换";
            this.chkReplace2.UseVisualStyleBackColor = true;
            this.txtRepExpr1.Location  = new Point(169, 30);
            this.txtRepExpr1.Name      = "txtRepExpr1";
            this.txtRepExpr1.Size      = new Size(90, 21);
            this.txtRepExpr1.TabIndex  = 13;
            this.label5.AutoSize       = true;
            this.label5.Location       = new Point(145, 34);
            this.label5.Name           = "label5";
            this.label5.Size           = new Size(17, 12);
            this.label5.TabIndex       = 12;
            this.label5.Text           = "为";
            this.txtFiltExpr1.Location = new Point(88, 30);
            this.txtFiltExpr1.Name     = "txtFiltExpr1";
            this.txtFiltExpr1.Size     = new Size(50, 21);
            this.txtFiltExpr1.TabIndex = 11;
            this.chkReplace1.AutoSize  = true;
            this.chkReplace1.Location  = new Point(24, 32);
            this.chkReplace1.Name      = "chkReplace1";
            this.chkReplace1.Size      = new Size(48, 16);
            this.chkReplace1.TabIndex  = 10;
            this.chkReplace1.Text      = "替换";
            this.chkReplace1.UseVisualStyleBackColor = true;
            this.tabAccess.Controls.Add(this.txtAccessColumns);
            this.tabAccess.Controls.Add(this.label11);
            this.tabAccess.Controls.Add(this.label8);
            this.tabAccess.Controls.Add(this.txtAccessTables);
            this.tabAccess.Location = new Point(4, 21);
            this.tabAccess.Name     = "tabAccess";
            this.tabAccess.Size     = new Size(1028, 400);
            this.tabAccess.TabIndex = 4;
            this.tabAccess.Text     = "注入字典";
            this.tabAccess.UseVisualStyleBackColor = true;
            this.txtAccessColumns.Anchor           = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            this.txtAccessColumns.Location         = new Point(241, 19);
            this.txtAccessColumns.Multiline        = true;
            this.txtAccessColumns.Name             = "txtAccessColumns";
            this.txtAccessColumns.ScrollBars       = ScrollBars.Vertical;
            this.txtAccessColumns.Size             = new Size(200, 362);
            this.txtAccessColumns.TabIndex         = 3;
            this.ToolTipSetting.SetToolTip(this.txtAccessColumns, "Editable");
            this.label11.AutoSize           = true;
            this.label11.Location           = new Point(243, 4);
            this.label11.Name               = "label11";
            this.label11.Size               = new Size(59, 12);
            this.label11.TabIndex           = 2;
            this.label11.Text               = "字段字典:";
            this.label8.AutoSize            = true;
            this.label8.Location            = new Point(4, 4);
            this.label8.Name                = "label8";
            this.label8.Size                = new Size(47, 12);
            this.label8.TabIndex            = 1;
            this.label8.Text                = "表字典:";
            this.txtAccessTables.Anchor     = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            this.txtAccessTables.Location   = new Point(3, 19);
            this.txtAccessTables.Multiline  = true;
            this.txtAccessTables.Name       = "txtAccessTables";
            this.txtAccessTables.ScrollBars = ScrollBars.Vertical;
            this.txtAccessTables.Size       = new Size(200, 362);
            this.txtAccessTables.TabIndex   = 0;
            this.ToolTipSetting.SetToolTip(this.txtAccessTables, "Editable");
            this.tabXSInj.Controls.Add(this.txtXSRecord);
            this.tabXSInj.Controls.Add(this.txtXSInjURL);
            this.tabXSInj.Controls.Add(this.label20);
            this.tabXSInj.Controls.Add(this.label19);
            this.tabXSInj.Controls.Add(this.txtXSinjUsage);
            this.tabXSInj.Location = new Point(4, 21);
            this.tabXSInj.Name     = "tabXSInj";
            this.tabXSInj.Size     = new Size(1028, 400);
            this.tabXSInj.TabIndex = 6;
            this.tabXSInj.Text     = "XSS设置";
            this.tabXSInj.UseVisualStyleBackColor = true;
            this.txtXSRecord.Location             = new Point(130, 41);
            this.txtXSRecord.Name        = "txtXSRecord";
            this.txtXSRecord.Size        = new Size(351, 21);
            this.txtXSRecord.TabIndex    = 4;
            this.txtXSInjURL.Location    = new Point(130, 15);
            this.txtXSInjURL.Name        = "txtXSInjURL";
            this.txtXSInjURL.Size        = new Size(351, 21);
            this.txtXSInjURL.TabIndex    = 3;
            this.label20.AutoSize        = true;
            this.label20.Location        = new Point(9, 44);
            this.label20.Name            = "label20";
            this.label20.Size            = new Size(113, 12);
            this.label20.TabIndex        = 2;
            this.label20.Text            = "Cross Site Record:";
            this.label19.AutoSize        = true;
            this.label19.Location        = new Point(9, 17);
            this.label19.Name            = "label19";
            this.label19.Size            = new Size(95, 12);
            this.label19.TabIndex        = 1;
            this.label19.Text            = "Cross Site URL:";
            this.txtXSinjUsage.Location  = new Point(9, 68);
            this.txtXSinjUsage.Multiline = true;
            this.txtXSinjUsage.Name      = "txtXSinjUsage";
            this.txtXSinjUsage.ReadOnly  = true;
            this.txtXSinjUsage.Size      = new Size(472, 203);
            this.txtXSinjUsage.TabIndex  = 0;
            this.txtXSinjUsage.Text      = resources.GetString("txtXSinjUsage.Text");
            this.tabAdmin.Controls.Add(this.label17);
            this.tabAdmin.Controls.Add(this.txtAdminPage);
            this.tabAdmin.Controls.Add(this.label16);
            this.tabAdmin.Controls.Add(this.txtAdminPath);
            this.tabAdmin.Location = new Point(4, 21);
            this.tabAdmin.Name     = "tabAdmin";
            this.tabAdmin.Size     = new Size(1028, 400);
            this.tabAdmin.TabIndex = 5;
            this.tabAdmin.Text     = "后台路径和页面";
            this.tabAdmin.UseVisualStyleBackColor = true;
            this.label17.AutoSize        = true;
            this.label17.Location        = new Point(240, 4);
            this.label17.Name            = "label17";
            this.label17.Size            = new Size(59, 12);
            this.label17.TabIndex        = 3;
            this.label17.Text            = "管理页面:";
            this.txtAdminPage.Anchor     = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            this.txtAdminPage.Location   = new Point(241, 19);
            this.txtAdminPage.Multiline  = true;
            this.txtAdminPage.Name       = "txtAdminPage";
            this.txtAdminPage.ScrollBars = ScrollBars.Vertical;
            this.txtAdminPage.Size       = new Size(200, 365);
            this.txtAdminPage.TabIndex   = 2;
            this.ToolTipSetting.SetToolTip(this.txtAdminPage, "Editable");
            this.label16.AutoSize        = true;
            this.label16.Location        = new Point(5, 4);
            this.label16.Name            = "label16";
            this.label16.Size            = new Size(143, 12);
            this.label16.TabIndex        = 1;
            this.label16.Text            = "文件夹路径必须 '/'结尾:";
            this.txtAdminPath.Anchor     = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            this.txtAdminPath.Location   = new Point(3, 19);
            this.txtAdminPath.Multiline  = true;
            this.txtAdminPath.Name       = "txtAdminPath";
            this.txtAdminPath.ScrollBars = ScrollBars.Vertical;
            this.txtAdminPath.Size       = new Size(200, 365);
            this.txtAdminPath.TabIndex   = 0;
            this.ToolTipSetting.SetToolTip(this.txtAdminPath, "Editable");
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new Size(1036, 450);
            base.Controls.Add(this.tabSetting);
            base.Controls.Add(this.toolStripSetting);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            base.Name            = "FormSetting";
            this.Text            = "FormSetting";
            this.toolStripSetting.ResumeLayout(false);
            this.toolStripSetting.PerformLayout();
            this.tabSetting.ResumeLayout(false);
            this.tabProxy.ResumeLayout(false);
            this.tabProxy.PerformLayout();
            this.tabScanner.ResumeLayout(false);
            this.GroupBoxScanSetting.ResumeLayout(false);
            this.GroupBoxScanSetting.PerformLayout();
            this.GroupBoxVulSetting.ResumeLayout(false);
            this.GroupBoxVulSetting.PerformLayout();
            this.tabAdvanced.ResumeLayout(false);
            this.tabAdvanced.PerformLayout();
            this.tabAccess.ResumeLayout(false);
            this.tabAccess.PerformLayout();
            this.tabXSInj.ResumeLayout(false);
            this.tabXSInj.PerformLayout();
            this.tabAdmin.ResumeLayout(false);
            this.tabAdmin.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 19
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmQueryTemplates));

            splitContainerControl1 = new SplitContainerControl();
            gcMain        = new GridControl();
            gridView1     = new GridView();
            btOk          = new SimpleButton();
            labelControl3 = new LabelControl();
            tbQuery       = new MemoEdit();
            labelControl2 = new LabelControl();
            tbComment     = new MemoEdit();
            cbTemplates   = new ComboBoxEdit();
            labelControl1 = new LabelControl();
            splitContainerControl1.BeginInit();
            splitContainerControl1.SuspendLayout();
            gcMain.BeginInit();
            gridView1.BeginInit();
            tbQuery.Properties.BeginInit();
            tbComment.Properties.BeginInit();
            cbTemplates.Properties.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(splitContainerControl1, "splitContainerControl1");
            splitContainerControl1.Name = "splitContainerControl1";
            componentResourceManager.ApplyResources(splitContainerControl1.Panel1, "splitContainerControl1.Panel1");
            componentResourceManager.ApplyResources(splitContainerControl1.Panel2, "splitContainerControl1.Panel2");
            splitContainerControl1.Panel2.Controls.Add(gcMain);
            splitContainerControl1.SplitterPosition = 363;
            componentResourceManager.ApplyResources(gcMain, "gcMain");
            gcMain.EmbeddedNavigator.AccessibleDescription  = componentResourceManager.GetString("gcMain.EmbeddedNavigator.AccessibleDescription");
            gcMain.EmbeddedNavigator.AccessibleName         = componentResourceManager.GetString("gcMain.EmbeddedNavigator.AccessibleName");
            gcMain.EmbeddedNavigator.AllowHtmlTextInToolTip = (DefaultBoolean)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.AllowHtmlTextInToolTip");
            gcMain.EmbeddedNavigator.Anchor                = (AnchorStyles)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.Anchor");
            gcMain.EmbeddedNavigator.BackgroundImage       = (Image)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.BackgroundImage");
            gcMain.EmbeddedNavigator.BackgroundImageLayout = (ImageLayout)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.BackgroundImageLayout");
            gcMain.EmbeddedNavigator.ImeMode               = (ImeMode)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.ImeMode");
            gcMain.EmbeddedNavigator.MaximumSize           = (Size)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.MaximumSize");
            gcMain.EmbeddedNavigator.TextLocation          = (NavigatorButtonsTextLocation)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.TextLocation");
            gcMain.EmbeddedNavigator.ToolTip               = componentResourceManager.GetString("gcMain.EmbeddedNavigator.ToolTip");
            gcMain.EmbeddedNavigator.ToolTipIconType       = (ToolTipIconType)componentResourceManager.GetObject("gcMain.EmbeddedNavigator.ToolTipIconType");
            gcMain.EmbeddedNavigator.ToolTipTitle          = componentResourceManager.GetString("gcMain.EmbeddedNavigator.ToolTipTitle");
            gcMain.MainView = gridView1;
            gcMain.Name     = "gcMain";
            gcMain.ViewCollection.AddRange(new BaseView[1]
            {
                gridView1
            });
            componentResourceManager.ApplyResources(gridView1, "gridView1");
            gridView1.GridControl = gcMain;
            gridView1.Name        = "gridView1";
            gridView1.OptionsView.ShowGroupPanel = false;
            componentResourceManager.ApplyResources(btOk, "btOk");
            btOk.Name   = "btOk";
            btOk.Click += btOk_Click;
            componentResourceManager.ApplyResources(labelControl3, "labelControl3");
            labelControl3.Name = "labelControl3";
            componentResourceManager.ApplyResources(tbQuery, "tbQuery");
            tbQuery.Name = "tbQuery";
            tbQuery.Properties.AccessibleDescription            = componentResourceManager.GetString("tbQuery.Properties.AccessibleDescription");
            tbQuery.Properties.AccessibleName                   = componentResourceManager.GetString("tbQuery.Properties.AccessibleName");
            tbQuery.Properties.NullValuePrompt                  = componentResourceManager.GetString("tbQuery.Properties.NullValuePrompt");
            tbQuery.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbQuery.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(labelControl2, "labelControl2");
            labelControl2.Name = "labelControl2";
            componentResourceManager.ApplyResources(tbComment, "tbComment");
            tbComment.Name = "tbComment";
            tbComment.Properties.AccessibleDescription            = componentResourceManager.GetString("tbComment.Properties.AccessibleDescription");
            tbComment.Properties.AccessibleName                   = componentResourceManager.GetString("tbComment.Properties.AccessibleName");
            tbComment.Properties.NullValuePrompt                  = componentResourceManager.GetString("tbComment.Properties.NullValuePrompt");
            tbComment.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbComment.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(cbTemplates, "cbTemplates");
            cbTemplates.Name = "cbTemplates";
            cbTemplates.Properties.AccessibleDescription = componentResourceManager.GetString("cbTemplates.Properties.AccessibleDescription");
            cbTemplates.Properties.AccessibleName        = componentResourceManager.GetString("cbTemplates.Properties.AccessibleName");
            cbTemplates.Properties.AutoHeight            = (bool)componentResourceManager.GetObject("cbTemplates.Properties.AutoHeight");
            cbTemplates.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbTemplates.Properties.Buttons"))
            });
            cbTemplates.Properties.NullValuePrompt = componentResourceManager.GetString("cbTemplates.Properties.NullValuePrompt");
            cbTemplates.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbTemplates.Properties.NullValuePromptShowForEmptyValue");
            cbTemplates.SelectedIndexChanged += cbTemplates_SelectedIndexChanged;
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Name = "labelControl1";
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            ControlBox    = false;
            Controls.Add(splitContainerControl1);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "FrmQueryTemplates";
            ShowIcon        = false;
            Load           += frmQueryTemplates_Load;
            Resize         += frmQueryTemplates_Resize;
            splitContainerControl1.EndInit();
            splitContainerControl1.ResumeLayout(false);
            gcMain.EndInit();
            gridView1.EndInit();
            tbQuery.Properties.EndInit();
            tbComment.Properties.EndInit();
            cbTemplates.Properties.EndInit();
            ResumeLayout(false);
        }
Esempio n. 20
0
 private void InitializeComponent(string lang)
 {
     this.components = new Container();
     CustomSqlQuery customSqlQuery = new CustomSqlQuery();
     QueryParameter queryParameter = new QueryParameter();
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PdfReport));
     CustomSqlQuery customSqlQuery2 = new CustomSqlQuery();
     CustomSqlQuery customSqlQuery3 = new CustomSqlQuery();
     MasterDetailInfo masterDetailInfo = new MasterDetailInfo();
     RelationColumnInfo relationColumnInfo = new RelationColumnInfo();
     MasterDetailInfo masterDetailInfo2 = new MasterDetailInfo();
     RelationColumnInfo relationColumnInfo2 = new RelationColumnInfo();
     RelationColumnInfo relationColumnInfo3 = new RelationColumnInfo();
     RelationColumnInfo relationColumnInfo4 = new RelationColumnInfo();
     RelationColumnInfo relationColumnInfo5 = new RelationColumnInfo();
     this.Detail = new DetailBand();
     this.TopMargin = new TopMarginBand();
     this.BottomMargin = new BottomMarginBand();
     this.sdsData = new SqlDataSource(this.components);
     this.xrTable1 = new XRTable();
     this.xrTableRow1 = new XRTableRow();
     this.xrTableCell1 = new XRTableCell();
     this.xrTableCell2 = new XRTableCell();
     this.xrTableRow2 = new XRTableRow();
     this.xrTableCell3 = new XRTableCell();
     this.xrTableCell4 = new XRTableCell();
     this.xrLabel1 = new XRLabel();
     this.xrLabel2 = new XRLabel();
     this.xrPageInfo2 = new XRPageInfo();
     this.xrPageInfo1 = new XRPageInfo();
     this.xrTable2 = new XRTable();
     this.xrTableRow5 = new XRTableRow();
     this.xrTableCell10 = new XRTableCell();
     this.xrTableCell11 = new XRTableCell();
     this.xrTableCell12 = new XRTableCell();
     this.xrTable3 = new XRTable();
     this.xrTableRow6 = new XRTableRow();
     this.xrTableCell14 = new XRTableCell();
     this.xrTableCell15 = new XRTableCell();
     this.xrTableCell16 = new XRTableCell();
     this.ReportHeader = new ReportHeaderBand();
     this.Detail2 = new DetailBand();
     this.DetailReport1 = new DetailReportBand();
     this.Detail1 = new DetailBand();
     this.DetailReport = new DetailReportBand();
     this.xrTable4 = new XRTable();
     this.xrTableRow9 = new XRTableRow();
     this.xrTableCell21 = new XRTableCell();
     this.xrTableCell22 = new XRTableCell();
     this.xrTableRow10 = new XRTableRow();
     this.xrTableCell23 = new XRTableCell();
     this.xrTableCell24 = new XRTableCell();
     this.id = new Parameter();
     ((ISupportInitialize)this.xrTable1).BeginInit();
     ((ISupportInitialize)this.xrTable2).BeginInit();
     ((ISupportInitialize)this.xrTable3).BeginInit();
     ((ISupportInitialize)this.xrTable4).BeginInit();
     ((ISupportInitialize)this).BeginInit();
     this.Detail.Expanded = false;
     this.Detail.HeightF = 100f;
     this.Detail.Name = "Detail";
     this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
     this.Detail.TextAlignment = TextAlignment.TopLeft;
     this.TopMargin.Controls.AddRange(new XRControl[]
     {
            this.xrTable4,
            this.xrTable1
     });
     this.TopMargin.HeightF = 110f;
     this.TopMargin.Name = "TopMargin";
     this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
     this.TopMargin.TextAlignment = TextAlignment.TopLeft;
     this.BottomMargin.Controls.AddRange(new XRControl[]
     {
            this.xrPageInfo1,
            this.xrPageInfo2
     });
     this.BottomMargin.HeightF = 70f;
     this.BottomMargin.Name = "BottomMargin";
     this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
     this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
     this.sdsData.ConnectionName = "csApp";
     this.sdsData.Name = "sdsData";
     customSqlQuery.Name = "audits";
     queryParameter.Name = "id";
     queryParameter.Type = typeof(Expression);
     queryParameter.Value = new Expression("[Parameters.id]", typeof(int));
     customSqlQuery.Parameters.Add(queryParameter);
     customSqlQuery.Sql = componentResourceManager.GetString("customSqlQuery1.Sql");
     customSqlQuery2.Name = "audit_details";
     customSqlQuery2.Sql = componentResourceManager.GetString("customSqlQuery2.Sql");
     customSqlQuery3.MetaSerializable = "<Meta X=\"90\" Y=\"70\" Width=\"100\" Height=\"105\" />";
     customSqlQuery3.Name = "audit_groups";
     customSqlQuery3.Sql = componentResourceManager.GetString("customSqlQuery3.Sql");
     this.sdsData.Queries.AddRange(new SqlQuery[]
     {
            customSqlQuery,
            customSqlQuery2,
            customSqlQuery3
     });
     masterDetailInfo.DetailQueryName = "audit_groups";
     relationColumnInfo.NestedKeyColumn = "audit_id";
     relationColumnInfo.ParentKeyColumn = "id";
     masterDetailInfo.KeyColumns.Add(relationColumnInfo);
     masterDetailInfo.MasterQueryName = "audits";
     masterDetailInfo2.DetailQueryName = "audit_details";
     relationColumnInfo2.NestedKeyColumn = "audit_id";
     relationColumnInfo2.ParentKeyColumn = "audit_id";
     relationColumnInfo3.NestedKeyColumn = "group_position";
     relationColumnInfo3.ParentKeyColumn = "group_position";
     relationColumnInfo4.NestedKeyColumn = "group_name";
     relationColumnInfo4.ParentKeyColumn = "group_name";
     relationColumnInfo5.NestedKeyColumn = "group_name_ENG";
     relationColumnInfo5.ParentKeyColumn = "group_name_ENG";
     masterDetailInfo2.KeyColumns.Add(relationColumnInfo2);
     masterDetailInfo2.KeyColumns.Add(relationColumnInfo3);
     masterDetailInfo2.KeyColumns.Add(relationColumnInfo4);
     masterDetailInfo2.KeyColumns.Add(relationColumnInfo5);
     masterDetailInfo2.MasterQueryName = "audit_groups";
     this.sdsData.Relations.AddRange(new MasterDetailInfo[]
     {
            masterDetailInfo,
            masterDetailInfo2
     });
     this.sdsData.ResultSchemaSerializable = componentResourceManager.GetString("sdsData.ResultSchemaSerializable");
     this.xrTable1.Borders = BorderSide.All;
     this.xrTable1.LocationFloat = new PointFloat(0f, 35.00001f);
     this.xrTable1.Name = "xrTable1";
     this.xrTable1.Padding = new PaddingInfo(3, 3, 3, 3, 100f);
     this.xrTable1.Rows.AddRange(new XRTableRow[]
     {
            this.xrTableRow1,
            this.xrTableRow2
     });
     this.xrTable1.SizeF = new SizeF(402.0833f, 50f);
     this.xrTable1.StylePriority.UseBorders = false;
     this.xrTable1.StylePriority.UseFont = false;
     this.xrTable1.StylePriority.UsePadding = false;
     this.xrTableRow1.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell1,
            this.xrTableCell2
     });
     this.xrTableRow1.Name = "xrTableRow1";
     this.xrTableRow1.Weight = 1.0;
     this.xrTableCell1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
     this.xrTableCell1.Name = "xrTableCell1";
     this.xrTableCell1.StylePriority.UseFont = false;
     this.xrTableCell1.StylePriority.UsePadding = false;
     this.xrTableCell1.StylePriority.UseTextAlignment = false;
     this.xrTableCell1.Text = "AUDIT TYPE";
     this.xrTableCell1.TextAlignment = TextAlignment.MiddleLeft;
     this.xrTableCell1.Weight = 1.1564766917064278;
     this.xrTableCell2.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[audit_type_name]")
     });
     this.xrTableCell2.Name = "xrTableCell2";
     this.xrTableCell2.StylePriority.UseTextAlignment = false;
     this.xrTableCell2.Text = "xrTableCell2";
     this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
     this.xrTableCell2.Weight = 1.8435233082935722;
     this.xrTableRow2.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell3,
            this.xrTableCell4
     });
     this.xrTableRow2.Name = "xrTableRow2";
     this.xrTableRow2.Weight = 1.0;
     this.xrTableCell3.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
     this.xrTableCell3.Name = "xrTableCell3";
     this.xrTableCell3.StylePriority.UseFont = false;
     this.xrTableCell3.StylePriority.UsePadding = false;
     this.xrTableCell3.StylePriority.UseTextAlignment = false;
     this.xrTableCell3.Text = "AUDIT TARGET";
     this.xrTableCell3.TextAlignment = TextAlignment.MiddleLeft;
     this.xrTableCell3.Weight = 1.1564766917064278;
     this.xrTableCell4.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[audit_target]")
     });
     this.xrTableCell4.Name = "xrTableCell4";
     this.xrTableCell4.StylePriority.UseTextAlignment = false;
     this.xrTableCell4.Text = "xrTableCell4";
     this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
     this.xrTableCell4.Weight = 1.8435233082935722;
     this.xrLabel1.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[group_position]")
     });
     this.xrLabel1.Font = new Font("Times New Roman", 11f, FontStyle.Bold);
     this.xrLabel1.LocationFloat = new PointFloat(0f, 5f);
     this.xrLabel1.Name = "xrLabel1";
     this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
     this.xrLabel1.SizeF = new SizeF(36.46f, 20f);
     this.xrLabel1.StylePriority.UseFont = false;
     this.xrLabel1.Text = "xrLabel1";
     this.xrLabel1.TextFormatString = "{0}.";
     if (lang == "ENG")
     {
         this.xrLabel2.ExpressionBindings.AddRange(new ExpressionBinding[]
         {
                 new ExpressionBinding("BeforePrint", "Text", "[group_name_ENG]")
         });
     }
     else
     {
         this.xrLabel2.ExpressionBindings.AddRange(new ExpressionBinding[]
         {
                 new ExpressionBinding("BeforePrint", "Text", "[group_name]")
         });
     }
     this.xrLabel2.Font = new Font("Times New Roman", 11f, FontStyle.Bold);
     this.xrLabel2.LocationFloat = new PointFloat(36.46008f, 4.999987f);
     this.xrLabel2.Name = "xrLabel2";
     this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
     this.xrLabel2.SizeF = new SizeF(690.54f, 20f);
     this.xrLabel2.StylePriority.UseFont = false;
     this.xrLabel2.Text = "xrLabel2";
     this.xrPageInfo2.Font = new Font("Times New Roman", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 238);
     this.xrPageInfo2.LocationFloat = new PointFloat(0f, 20f);
     this.xrPageInfo2.Name = "xrPageInfo2";
     this.xrPageInfo2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
     this.xrPageInfo2.PageInfo = PageInfo.DateTime;
     this.xrPageInfo2.SizeF = new SizeF(208.3333f, 25f);
     this.xrPageInfo2.StylePriority.UseFont = false;
     this.xrPageInfo1.Font = new Font("Times New Roman", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.xrPageInfo1.LocationFloat = new PointFloat(677.0001f, 20.00001f);
     this.xrPageInfo1.Name = "xrPageInfo1";
     this.xrPageInfo1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
     this.xrPageInfo1.SizeF = new SizeF(100f, 25f);
     this.xrPageInfo1.StylePriority.UseFont = false;
     this.xrPageInfo1.StylePriority.UseTextAlignment = false;
     this.xrPageInfo1.TextAlignment = TextAlignment.TopRight;
     this.xrTable2.BackColor = Color.Gray;
     this.xrTable2.Borders = BorderSide.All;
     this.xrTable2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
     this.xrTable2.ForeColor = Color.White;
     this.xrTable2.LocationFloat = new PointFloat(0f, 25f);
     this.xrTable2.Name = "xrTable2";
     this.xrTable2.Rows.AddRange(new XRTableRow[]
     {
            this.xrTableRow5
     });
     this.xrTable2.SizeF = new SizeF(777.0001f, 40f);
     this.xrTable2.StylePriority.UseBackColor = false;
     this.xrTable2.StylePriority.UseBorders = false;
     this.xrTable2.StylePriority.UseFont = false;
     this.xrTable2.StylePriority.UseForeColor = false;
     this.xrTable2.StylePriority.UseTextAlignment = false;
     this.xrTable2.TextAlignment = TextAlignment.MiddleCenter;
     this.xrTableRow5.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell10,
            this.xrTableCell11,
            this.xrTableCell12
     });
     this.xrTableRow5.Name = "xrTableRow5";
     this.xrTableRow5.Weight = 1.0;
     this.xrTableCell10.Name = "xrTableCell10";
     this.xrTableCell10.Text = "QUESTION";
     this.xrTableCell10.Weight = 2.8681152485956667;
     this.xrTableCell11.Multiline = true;
     this.xrTableCell11.Name = "xrTableCell11";
     this.xrTableCell11.Text = "ANSWER\r\nOK/NOK/NC/NA";
     this.xrTableCell11.Weight = 0.70283106238354953;
     this.xrTableCell12.Name = "xrTableCell12";
     this.xrTableCell12.Text = "COMMENT";
     this.xrTableCell12.Weight = 1.3721416953281411;
     this.xrTable3.Borders = (BorderSide.Left | BorderSide.Right | BorderSide.Bottom);
     this.xrTable3.LocationFloat = new PointFloat(0f, 0f);
     this.xrTable3.Name = "xrTable3";
     this.xrTable3.Padding = new PaddingInfo(3, 3, 3, 3, 100f);
     this.xrTable3.Rows.AddRange(new XRTableRow[]
     {
            this.xrTableRow6
     });
     this.xrTable3.SizeF = new SizeF(777.0001f, 20f);
     this.xrTable3.StylePriority.UseBorders = false;
     this.xrTable3.StylePriority.UsePadding = false;
     this.xrTableRow6.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell14,
            this.xrTableCell15,
            this.xrTableCell16
     });
     this.xrTableRow6.Name = "xrTableRow6";
     this.xrTableRow6.StylePriority.UseTextAlignment = false;
     this.xrTableRow6.TextAlignment = TextAlignment.MiddleLeft;
     this.xrTableRow6.Weight = 1.0;
     if (lang == "ENG")
     {
         this.xrTableCell14.ExpressionBindings.AddRange(new ExpressionBinding[]
         {
                 new ExpressionBinding("BeforePrint", "Text", "[question_ENG]")
         });
     }
     else
     {
         this.xrTableCell14.ExpressionBindings.AddRange(new ExpressionBinding[]
         {
                 new ExpressionBinding("BeforePrint", "Text", "[question]")
         });
     }
     this.xrTableCell14.Name = "xrTableCell14";
     this.xrTableCell14.Text = "QUESTION";
     this.xrTableCell14.Weight = 2.8681155156236566;
     this.xrTableCell15.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[answer]")
     });
     this.xrTableCell15.Multiline = true;
     this.xrTableCell15.Name = "xrTableCell15";
     this.xrTableCell15.Text = "ANSWER\r\nOK/NOK/NC/NA";
     this.xrTableCell15.Weight = 0.7028310597352837;
     this.xrTableCell16.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[comment]")
     });
     this.xrTableCell16.Name = "xrTableCell16";
     this.xrTableCell16.Text = "COMMENT";
     this.xrTableCell16.Weight = 1.3721418459444952;
     this.ReportHeader.Controls.AddRange(new XRControl[]
     {
            this.xrLabel1,
            this.xrLabel2,
            this.xrTable2
     });
     this.ReportHeader.HeightF = 65f;
     this.ReportHeader.KeepTogether = true;
     this.ReportHeader.Name = "ReportHeader";
     this.Detail2.Controls.AddRange(new XRControl[]
     {
            this.xrTable3
     });
     this.Detail2.HeightF = 20f;
     this.Detail2.KeepTogether = true;
     this.Detail2.Name = "Detail2";
     this.DetailReport1.Bands.AddRange(new Band[]
     {
            this.Detail2,
            this.ReportHeader
     });
     this.DetailReport1.DataMember = "audits.auditsaudit_groups.audit_groupsaudit_details";
     this.DetailReport1.DataSource = this.sdsData;
     this.DetailReport1.Level = 0;
     this.DetailReport1.Name = "DetailReport1";
     this.Detail1.HeightF = 0f;
     this.Detail1.Name = "Detail1";
     this.DetailReport.Bands.AddRange(new Band[]
     {
            this.Detail1,
            this.DetailReport1
     });
     this.DetailReport.DataMember = "audits.auditsaudit_groups";
     this.DetailReport.DataSource = this.sdsData;
     this.DetailReport.Level = 0;
     this.DetailReport.Name = "DetailReport";
     this.xrTable4.Borders = BorderSide.All;
     this.xrTable4.LocationFloat = new PointFloat(524.9167f, 34.99997f);
     this.xrTable4.Name = "xrTable4";
     this.xrTable4.Padding = new PaddingInfo(3, 3, 3, 3, 100f);
     this.xrTable4.Rows.AddRange(new XRTableRow[]
     {
            this.xrTableRow9,
            this.xrTableRow10
     });
     this.xrTable4.SizeF = new SizeF(252.0833f, 50.00002f);
     this.xrTable4.StylePriority.UseBorders = false;
     this.xrTable4.StylePriority.UseFont = false;
     this.xrTable4.StylePriority.UsePadding = false;
     this.xrTableRow9.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell21,
            this.xrTableCell22
     });
     this.xrTableRow9.Name = "xrTableRow9";
     this.xrTableRow9.Weight = 1.0;
     this.xrTableCell21.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
     this.xrTableCell21.Name = "xrTableCell21";
     this.xrTableCell21.StylePriority.UseFont = false;
     this.xrTableCell21.StylePriority.UsePadding = false;
     this.xrTableCell21.StylePriority.UseTextAlignment = false;
     this.xrTableCell21.Text = "AUDITOR";
     this.xrTableCell21.TextAlignment = TextAlignment.MiddleLeft;
     this.xrTableCell21.Weight = 1.0023928564142768;
     this.xrTableCell22.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[auditor_full_name]")
     });
     this.xrTableCell22.Name = "xrTableCell22";
     this.xrTableCell22.StylePriority.UseTextAlignment = false;
     this.xrTableCell22.Text = "xrTableCell6";
     this.xrTableCell22.TextAlignment = TextAlignment.MiddleCenter;
     this.xrTableCell22.Weight = 1.9976071435857232;
     this.xrTableRow10.Cells.AddRange(new XRTableCell[]
     {
            this.xrTableCell23,
            this.xrTableCell24
     });
     this.xrTableRow10.Name = "xrTableRow10";
     this.xrTableRow10.Weight = 1.0;
     this.xrTableCell23.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
     this.xrTableCell23.Name = "xrTableCell23";
     this.xrTableCell23.StylePriority.UseFont = false;
     this.xrTableCell23.StylePriority.UsePadding = false;
     this.xrTableCell23.StylePriority.UseTextAlignment = false;
     this.xrTableCell23.Text = "DATE";
     this.xrTableCell23.TextAlignment = TextAlignment.MiddleLeft;
     this.xrTableCell23.Weight = 1.0023928564142768;
     this.xrTableCell24.ExpressionBindings.AddRange(new ExpressionBinding[]
     {
            new ExpressionBinding("BeforePrint", "Text", "[start_date]")
     });
     this.xrTableCell24.Name = "xrTableCell24";
     this.xrTableCell24.StylePriority.UseTextAlignment = false;
     this.xrTableCell24.Text = "xrTableCell8";
     this.xrTableCell24.TextAlignment = TextAlignment.MiddleCenter;
     this.xrTableCell24.TextFormatString = "{0:dd.MM.yyyy}";
     this.xrTableCell24.Weight = 1.9976071435857232;
     this.id.Description = "id";
     this.id.Name = "id";
     this.id.Type = typeof(int);
     this.id.ValueInfo = "0";
     base.Bands.AddRange(new Band[]
     {
            this.Detail,
            this.TopMargin,
            this.BottomMargin,
            this.DetailReport
     });
     base.ComponentStorage.AddRange(new IComponent[]
     {
            this.sdsData
     });
     base.DataMember = "audits";
     base.DataSource = this.sdsData;
     base.Margins = new Margins(25, 25, 110, 70);
     base.PageHeight = 1169;
     base.PageWidth = 827;
     base.PaperKind = PaperKind.A4;
     base.Parameters.AddRange(new Parameter[]
     {
            this.id
     });
     base.Version = "17.2";
     ((ISupportInitialize)this.xrTable1).EndInit();
     ((ISupportInitialize)this.xrTable2).EndInit();
     ((ISupportInitialize)this.xrTable3).EndInit();
     ((ISupportInitialize)this.xrTable4).EndInit();
     ((ISupportInitialize)this).EndInit();
 }
Esempio n. 21
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MissingItemsPanel));

            this.dataGridView1 = new DataGridViewEx();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.rarity  = new DataGridViewTextBoxColumn();
            this.series  = new DataGridViewTextBoxColumn();
            this.type    = new DataGridViewTextBoxColumn();
            this.subtype = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn6  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn7  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn8  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn9  = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn10 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn11 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn12 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn13 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn14 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn15 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn16 = new DataGridViewTextBoxColumn();
            this.missingitemsBindingSource   = new BindingSource(this.components);
            this.missingItemsDataSet         = new missingItemsDataSet();
            this.missing_itemsTableAdapter   = new missing_itemsTableAdapter();
            this.label1     = new Label();
            this.label2     = new Label();
            this.linkLabel1 = new LinkLabel();
            this.label3     = new Label();
            this.label4     = new Label();
            this.label5     = new Label();
            ((ISupportInitialize)this.dataGridView1).BeginInit();
            ((ISupportInitialize)this.missingitemsBindingSource).BeginInit();
            this.missingItemsDataSet.BeginInit();
            this.SuspendLayout();
            this.dataGridView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.dataGridView1.AutoGenerateColumns         = false;
            this.dataGridView1.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
            this.dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Columns.AddRange((DataGridViewColumn)this.dataGridViewTextBoxColumn1, (DataGridViewColumn)this.dataGridViewTextBoxColumn2, (DataGridViewColumn)this.rarity, (DataGridViewColumn)this.series, (DataGridViewColumn)this.type, (DataGridViewColumn)this.subtype, (DataGridViewColumn)this.dataGridViewTextBoxColumn3, (DataGridViewColumn)this.dataGridViewTextBoxColumn4, (DataGridViewColumn)this.dataGridViewTextBoxColumn5, (DataGridViewColumn)this.dataGridViewTextBoxColumn6, (DataGridViewColumn)this.dataGridViewTextBoxColumn7, (DataGridViewColumn)this.dataGridViewTextBoxColumn8, (DataGridViewColumn)this.dataGridViewTextBoxColumn9, (DataGridViewColumn)this.dataGridViewTextBoxColumn10, (DataGridViewColumn)this.dataGridViewTextBoxColumn11, (DataGridViewColumn)this.dataGridViewTextBoxColumn12, (DataGridViewColumn)this.dataGridViewTextBoxColumn13, (DataGridViewColumn)this.dataGridViewTextBoxColumn14, (DataGridViewColumn)this.dataGridViewTextBoxColumn15, (DataGridViewColumn)this.dataGridViewTextBoxColumn16);
            this.dataGridView1.DataSource = (object)this.missingitemsBindingSource;
            this.dataGridView1.Location   = new Point(0, 128);
            this.dataGridView1.Name       = "dataGridView1";
            this.dataGridView1.Size       = new Size(798, 324);
            this.dataGridView1.TabIndex   = 0;
            this.dataGridViewTextBoxColumn1.AutoSizeMode     = DataGridViewAutoSizeColumnMode.AllCells;
            this.dataGridViewTextBoxColumn1.DataPropertyName = "equipment_id";
            this.dataGridViewTextBoxColumn1.HeaderText       = "equipment_id";
            this.dataGridViewTextBoxColumn1.Name             = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.Width            = 95;
            this.dataGridViewTextBoxColumn2.AutoSizeMode     = DataGridViewAutoSizeColumnMode.AllCells;
            this.dataGridViewTextBoxColumn2.DataPropertyName = "name";
            this.dataGridViewTextBoxColumn2.HeaderText       = "name";
            this.dataGridViewTextBoxColumn2.Name             = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.Width            = 58;
            this.rarity.AutoSizeMode     = DataGridViewAutoSizeColumnMode.AllCells;
            this.rarity.DataPropertyName = "rarity";
            this.rarity.HeaderText       = "rarity";
            this.rarity.Name             = "rarity";
            this.rarity.Width            = 54;
            this.series.AutoSizeMode     = DataGridViewAutoSizeColumnMode.AllCells;
            this.series.DataPropertyName = "series";
            this.series.HeaderText       = "series";
            this.series.Name             = "series";
            this.series.Width            = 59;
            this.type.AutoSizeMode       = DataGridViewAutoSizeColumnMode.AllCells;
            this.type.DataPropertyName   = "type";
            this.type.HeaderText         = "type";
            this.type.Name                = "type";
            this.type.Resizable           = DataGridViewTriState.True;
            this.type.Width               = 52;
            this.subtype.AutoSizeMode     = DataGridViewAutoSizeColumnMode.AllCells;
            this.subtype.DataPropertyName = "subtype";
            this.subtype.DividerWidth     = 3;
            this.subtype.HeaderText       = "subtype";
            this.subtype.Name             = "subtype";
            this.subtype.Resizable        = DataGridViewTriState.True;
            this.subtype.Width            = 72;
            this.dataGridViewTextBoxColumn3.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn3.DataPropertyName  = "base_atk";
            this.dataGridViewTextBoxColumn3.HeaderText        = "base_atk";
            this.dataGridViewTextBoxColumn3.Name              = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn4.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn4.DataPropertyName  = "base_mag";
            this.dataGridViewTextBoxColumn4.HeaderText        = "base_mag";
            this.dataGridViewTextBoxColumn4.Name              = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn5.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn5.DataPropertyName  = "base_acc";
            this.dataGridViewTextBoxColumn5.HeaderText        = "base_acc";
            this.dataGridViewTextBoxColumn5.Name              = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn6.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn6.DataPropertyName  = "base_def";
            this.dataGridViewTextBoxColumn6.HeaderText        = "base_def";
            this.dataGridViewTextBoxColumn6.Name              = "dataGridViewTextBoxColumn6";
            this.dataGridViewTextBoxColumn7.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn7.DataPropertyName  = "base_res";
            this.dataGridViewTextBoxColumn7.HeaderText        = "base_res";
            this.dataGridViewTextBoxColumn7.Name              = "dataGridViewTextBoxColumn7";
            this.dataGridViewTextBoxColumn8.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn8.DataPropertyName  = "base_eva";
            this.dataGridViewTextBoxColumn8.HeaderText        = "base_eva";
            this.dataGridViewTextBoxColumn8.Name              = "dataGridViewTextBoxColumn8";
            this.dataGridViewTextBoxColumn9.AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn9.DataPropertyName  = "base_mnd";
            this.dataGridViewTextBoxColumn9.DividerWidth      = 3;
            this.dataGridViewTextBoxColumn9.HeaderText        = "base_mnd";
            this.dataGridViewTextBoxColumn9.Name              = "dataGridViewTextBoxColumn9";
            this.dataGridViewTextBoxColumn10.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn10.DataPropertyName = "max_atk";
            this.dataGridViewTextBoxColumn10.HeaderText       = "max_atk";
            this.dataGridViewTextBoxColumn10.Name             = "dataGridViewTextBoxColumn10";
            this.dataGridViewTextBoxColumn11.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn11.DataPropertyName = "max_mag";
            this.dataGridViewTextBoxColumn11.HeaderText       = "max_mag";
            this.dataGridViewTextBoxColumn11.Name             = "dataGridViewTextBoxColumn11";
            this.dataGridViewTextBoxColumn12.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn12.DataPropertyName = "max_acc";
            this.dataGridViewTextBoxColumn12.HeaderText       = "max_acc";
            this.dataGridViewTextBoxColumn12.Name             = "dataGridViewTextBoxColumn12";
            this.dataGridViewTextBoxColumn13.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn13.DataPropertyName = "max_def";
            this.dataGridViewTextBoxColumn13.HeaderText       = "max_def";
            this.dataGridViewTextBoxColumn13.Name             = "dataGridViewTextBoxColumn13";
            this.dataGridViewTextBoxColumn14.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn14.DataPropertyName = "max_res";
            this.dataGridViewTextBoxColumn14.HeaderText       = "max_res";
            this.dataGridViewTextBoxColumn14.Name             = "dataGridViewTextBoxColumn14";
            this.dataGridViewTextBoxColumn15.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn15.DataPropertyName = "max_eva";
            this.dataGridViewTextBoxColumn15.HeaderText       = "max_eva";
            this.dataGridViewTextBoxColumn15.Name             = "dataGridViewTextBoxColumn15";
            this.dataGridViewTextBoxColumn16.AutoSizeMode     = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn16.DataPropertyName = "max_mnd";
            this.dataGridViewTextBoxColumn16.HeaderText       = "max_mnd";
            this.dataGridViewTextBoxColumn16.Name             = "dataGridViewTextBoxColumn16";
            this.missingitemsBindingSource.DataMember         = "missing_items";
            this.missingitemsBindingSource.DataSource         = (object)this.missingItemsDataSet;
            this.missingItemsDataSet.DataSetName              = "missingItemsDataSet";
            this.missingItemsDataSet.EnforceConstraints       = false;
            this.missingItemsDataSet.SchemaSerializationMode  = SchemaSerializationMode.IncludeSchema;
            this.missing_itemsTableAdapter.ClearBeforeFill    = true;
            this.label1.Anchor           = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.label1.Location         = new Point(3, 10);
            this.label1.Name             = "label1";
            this.label1.Size             = new Size(792, 68);
            this.label1.TabIndex         = 1;
            this.label1.Text             = componentResourceManager.GetString("label1.Text");
            this.label2.AutoSize         = true;
            this.label2.Location         = new Point(3, 76);
            this.label2.Name             = "label2";
            this.label2.Size             = new Size(231, 13);
            this.label2.TabIndex         = 2;
            this.label2.Text             = "* Base and max stats can be gathered from the ";
            this.linkLabel1.Location     = new Point(250, 75);
            this.linkLabel1.Name         = "linkLabel1";
            this.linkLabel1.Size         = new Size((int)byte.MaxValue, 13);
            this.linkLabel1.TabIndex     = 3;
            this.linkLabel1.TabStop      = true;
            this.linkLabel1.Text         = "Final Fantasy Record Keeper Official Strategy Site";
            this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
            this.label3.AutoSize         = true;
            this.label3.Location         = new Point(3, 91);
            this.label3.Name             = "label3";
            this.label3.Size             = new Size(106, 13);
            this.label3.TabIndex         = 4;
            this.label3.Text             = "* Series = I, II, II, etc.";
            this.label4.AutoSize         = true;
            this.label4.Location         = new Point(3, 106);
            this.label4.Name             = "label4";
            this.label4.Size             = new Size(486, 13);
            this.label4.TabIndex         = 5;
            this.label4.Text             = "* Type = Weapon, Armor, Accessory, Subtype = Dagger, Bow, Instrument, LightArmor, Helm, Hat, etc.";
            this.label5.AutoSize         = true;
            this.label5.Location         = new Point(501, 76);
            this.label5.Name             = "label5";
            this.label5.Size             = new Size(214, 13);
            this.label5.TabIndex         = 6;
            this.label5.Text             = ".  You can leave the stats blank if you want.";
            this.AutoScaleDimensions     = new SizeF(6f, 13f);
            this.AutoScaleMode           = AutoScaleMode.Font;
            this.Controls.Add((Control)this.label5);
            this.Controls.Add((Control)this.label4);
            this.Controls.Add((Control)this.label3);
            this.Controls.Add((Control)this.linkLabel1);
            this.Controls.Add((Control)this.label2);
            this.Controls.Add((Control)this.label1);
            this.Controls.Add((Control)this.dataGridView1);
            this.Name  = nameof(MissingItemsPanel);
            this.Size  = new Size(798, 452);
            this.Load += new EventHandler(this.MissingItemsPanel_Load);
            ((ISupportInitialize)this.dataGridView1).EndInit();
            ((ISupportInitialize)this.missingitemsBindingSource).EndInit();
            this.missingItemsDataSet.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 22
0
        private void InitializeComponent()
        {
            this.buttonAccept    = new System.Windows.Forms.Button();
            this.buttonCancel    = new System.Windows.Forms.Button();
            this.labelHost       = new System.Windows.Forms.Label();
            this.labelPassword   = new System.Windows.Forms.Label();
            this.labelUserName   = new System.Windows.Forms.Label();
            this.textBoxUserName = new System.Windows.Forms.TextBox();
            this.textBoxPassword = new System.Windows.Forms.TextBox();
            this.textBoxHost     = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            //
            // buttonAccept
            //
            this.buttonAccept.Location = new System.Drawing.Point(82, 125);
            this.buttonAccept.Name     = "buttonAccept";
            this.buttonAccept.Size     = new System.Drawing.Size(75, 23);
            this.buttonAccept.TabIndex = 0;
            this.buttonAccept.Text     = resources.GetString("accept");
            this.buttonAccept.UseVisualStyleBackColor = true;
            this.buttonAccept.Click += new System.EventHandler(this.buttonAccept_Click);
            //
            // buttonCancel
            //
            this.buttonCancel.Location = new System.Drawing.Point(244, 125);
            this.buttonCancel.Name     = "buttonCancel";
            this.buttonCancel.Size     = new System.Drawing.Size(75, 23);
            this.buttonCancel.TabIndex = 1;
            this.buttonCancel.Text     = resources.GetString("cancel");
            this.buttonCancel.UseVisualStyleBackColor = true;
            this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
            //
            // labelHost
            //
            this.labelHost.AutoSize = true;
            this.labelHost.Location = new System.Drawing.Point(12, 86);
            this.labelHost.Name     = "labelHost";
            this.labelHost.Size     = new System.Drawing.Size(29, 13);
            this.labelHost.TabIndex = 2;
            this.labelHost.Text     = resources.GetString("host");
            //
            // labelPassword
            //
            this.labelPassword.AutoSize = true;
            this.labelPassword.Location = new System.Drawing.Point(12, 54);
            this.labelPassword.Name     = "labelPassword";
            this.labelPassword.Size     = new System.Drawing.Size(53, 13);
            this.labelPassword.TabIndex = 3;
            this.labelPassword.Text     = resources.GetString("password");
            //
            // labelUserName
            //
            this.labelUserName.AutoSize = true;
            this.labelUserName.Location = new System.Drawing.Point(12, 22);
            this.labelUserName.Name     = "labelUserName";
            this.labelUserName.Size     = new System.Drawing.Size(58, 13);
            this.labelUserName.TabIndex = 4;
            this.labelUserName.Text     = resources.GetString("username");
            //
            // textBoxUserName
            //
            this.textBoxUserName.Location = new System.Drawing.Point(116, 19);
            this.textBoxUserName.Name     = "textBoxUserName";
            this.textBoxUserName.Size     = new System.Drawing.Size(165, 20);
            this.textBoxUserName.TabIndex = 5;
            //
            // textBoxPassword
            //
            this.textBoxPassword.Location     = new System.Drawing.Point(116, 51);
            this.textBoxPassword.Name         = "textBoxPassword";
            this.textBoxPassword.Size         = new System.Drawing.Size(165, 20);
            this.textBoxPassword.TabIndex     = 6;
            this.textBoxPassword.PasswordChar = '*';
            //
            // textBoxHost
            //
            this.textBoxHost.Location = new System.Drawing.Point(116, 83);
            this.textBoxHost.Name     = "textBoxHost";
            this.textBoxHost.Size     = new System.Drawing.Size(273, 20);
            this.textBoxHost.TabIndex = 7;
            //
            // ConfigurationForm
            //
            this.ClientSize = new System.Drawing.Size(409, 163);
            this.Controls.Add(this.textBoxHost);
            this.Controls.Add(this.textBoxPassword);
            this.Controls.Add(this.textBoxUserName);
            this.Controls.Add(this.labelUserName);
            this.Controls.Add(this.labelPassword);
            this.Controls.Add(this.labelHost);
            this.Controls.Add(this.buttonCancel);
            this.Controls.Add(this.buttonAccept);
            this.Name = "ConfigurationForm";

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.ControlBox      = false;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 23
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Login));

            this.label5            = new Label();
            this.label3            = new Label();
            this.tableLayoutPanel1 = new TableLayoutPanel();
            this.panel1            = new Panel();
            this.label1            = new Label();
            this.panel2            = new Panel();
            this.panelRemote       = new Panel();
            this.rmttbSrvPort      = new TextBox();
            this.rmtlbSrvPort      = new Label();
            this.rmttbSrvIP        = new TextBox();
            this.rmtlbSrvIP        = new Label();
            this.rmtcbLang         = new ComboBox();
            this.rmtlbLang         = new Label();
            this.rmttbpsw          = new TextBox();
            this.rmtlbpsw          = new Label();
            this.rmttbusrnm        = new TextBox();
            this.rmtlbusrnm        = new Label();
            this.rmtbutcancel      = new Button();
            this.rmtbutLogin       = new Button();
            this.panelLocal        = new Panel();
            this.cbolanguage       = new ComboBox();
            this.label6            = new Label();
            this.tbpassword        = new TextBox();
            this.label7            = new Label();
            this.tbuserId          = new TextBox();
            this.label8            = new Label();
            this.butcancel         = new Button();
            this.butlogin          = new Button();
            this.lbSetting         = new Label();
            this.tableLayoutPanel1.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.panelRemote.SuspendLayout();
            this.panelLocal.SuspendLayout();
            base.SuspendLayout();
            componentResourceManager.ApplyResources(this.label5, "label5");
            this.label5.Image = Resources.down;
            this.label5.Name  = "label5";
            componentResourceManager.ApplyResources(this.label3, "label3");

            //Õû¸ölogo
            //this.label3.Image = Resources.login_banner;

            //this.Icon = null;



            this.label3.Name = "label3";
            this.tableLayoutPanel1.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
            this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 1);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.panel1.BackColor       = Color.FromArgb(0, 79, 153);
            this.panel1.Controls.Add(this.label1);
            componentResourceManager.ApplyResources(this.panel1, "panel1");
            this.panel1.Name = "panel1";
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.ForeColor = Color.White;
            this.label1.Name      = "label1";
            this.panel2.BackColor = Color.White;
            this.panel2.Controls.Add(this.panelRemote);
            this.panel2.Controls.Add(this.panelLocal);
            componentResourceManager.ApplyResources(this.panel2, "panel2");
            this.panel2.Name           = "panel2";
            this.panelRemote.BackColor = Color.White;
            this.panelRemote.Controls.Add(this.rmttbSrvPort);
            this.panelRemote.Controls.Add(this.rmtlbSrvPort);
            this.panelRemote.Controls.Add(this.rmttbSrvIP);
            this.panelRemote.Controls.Add(this.rmtlbSrvIP);
            this.panelRemote.Controls.Add(this.rmtcbLang);
            this.panelRemote.Controls.Add(this.rmtlbLang);
            this.panelRemote.Controls.Add(this.rmttbpsw);
            this.panelRemote.Controls.Add(this.rmtlbpsw);
            this.panelRemote.Controls.Add(this.rmttbusrnm);
            this.panelRemote.Controls.Add(this.rmtlbusrnm);
            this.panelRemote.Controls.Add(this.rmtbutcancel);
            this.panelRemote.Controls.Add(this.rmtbutLogin);
            componentResourceManager.ApplyResources(this.panelRemote, "panelRemote");
            this.panelRemote.Name = "panelRemote";
            componentResourceManager.ApplyResources(this.rmttbSrvPort, "rmttbSrvPort");
            this.rmttbSrvPort.Name = "rmttbSrvPort";
            componentResourceManager.ApplyResources(this.rmtlbSrvPort, "rmtlbSrvPort");
            this.rmtlbSrvPort.Name = "rmtlbSrvPort";
            componentResourceManager.ApplyResources(this.rmttbSrvIP, "rmttbSrvIP");
            this.rmttbSrvIP.Name = "rmttbSrvIP";
            componentResourceManager.ApplyResources(this.rmtlbSrvIP, "rmtlbSrvIP");
            this.rmtlbSrvIP.Name          = "rmtlbSrvIP";
            this.rmtcbLang.DropDownHeight = 200;
            this.rmtcbLang.DropDownStyle  = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.rmtcbLang, "rmtcbLang");
            this.rmtcbLang.FormattingEnabled = true;
            this.rmtcbLang.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("rmtcbLang.Items"),
                componentResourceManager.GetString("rmtcbLang.Items1"),
                componentResourceManager.GetString("rmtcbLang.Items2"),
                componentResourceManager.GetString("rmtcbLang.Items3"),
                componentResourceManager.GetString("rmtcbLang.Items4"),
                componentResourceManager.GetString("rmtcbLang.Items5"),
                componentResourceManager.GetString("rmtcbLang.Items6"),
                componentResourceManager.GetString("rmtcbLang.Items7"),
                componentResourceManager.GetString("rmtcbLang.Items8"),
                componentResourceManager.GetString("rmtcbLang.Items9"),
                componentResourceManager.GetString("rmtcbLang.Items10")
            });
            this.rmtcbLang.Name = "rmtcbLang";
            this.rmtcbLang.SelectedIndexChanged += new System.EventHandler(this.rmtcbLang_SelectedIndexChanged);
            this.rmtcbLang.KeyPress             += new KeyPressEventHandler(this.comm_KeyPress);
            componentResourceManager.ApplyResources(this.rmtlbLang, "rmtlbLang");
            this.rmtlbLang.Name = "rmtlbLang";
            componentResourceManager.ApplyResources(this.rmttbpsw, "rmttbpsw");
            this.rmttbpsw.Name      = "rmttbpsw";
            this.rmttbpsw.KeyPress += new KeyPressEventHandler(this.comm_KeyPress);
            componentResourceManager.ApplyResources(this.rmtlbpsw, "rmtlbpsw");
            this.rmtlbpsw.Name = "rmtlbpsw";
            componentResourceManager.ApplyResources(this.rmttbusrnm, "rmttbusrnm");
            this.rmttbusrnm.Name      = "rmttbusrnm";
            this.rmttbusrnm.KeyPress += new KeyPressEventHandler(this.userNm_KeyPress);
            componentResourceManager.ApplyResources(this.rmtlbusrnm, "rmtlbusrnm");
            this.rmtlbusrnm.Name        = "rmtlbusrnm";
            this.rmtbutcancel.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.rmtbutcancel, "rmtbutcancel");
            this.rmtbutcancel.Name = "rmtbutcancel";
            this.rmtbutcancel.UseVisualStyleBackColor = false;
            this.rmtbutcancel.Click   += new System.EventHandler(this.butcancel_Click);
            this.rmtbutLogin.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.rmtbutLogin, "rmtbutLogin");
            this.rmtbutLogin.Name = "rmtbutLogin";
            this.rmtbutLogin.UseVisualStyleBackColor = false;
            this.rmtbutLogin.Click   += new System.EventHandler(this.rmtbutLogin_Click);
            this.panelLocal.BackColor = Color.White;
            this.panelLocal.Controls.Add(this.cbolanguage);
            this.panelLocal.Controls.Add(this.label6);
            this.panelLocal.Controls.Add(this.tbpassword);
            this.panelLocal.Controls.Add(this.label7);
            this.panelLocal.Controls.Add(this.tbuserId);
            this.panelLocal.Controls.Add(this.label8);
            this.panelLocal.Controls.Add(this.butcancel);
            this.panelLocal.Controls.Add(this.butlogin);
            componentResourceManager.ApplyResources(this.panelLocal, "panelLocal");
            this.panelLocal.Name            = "panelLocal";
            this.cbolanguage.DropDownHeight = 200;
            this.cbolanguage.DropDownStyle  = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbolanguage, "cbolanguage");
            this.cbolanguage.FormattingEnabled = true;
            this.cbolanguage.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbolanguage.Items"),
                componentResourceManager.GetString("cbolanguage.Items1"),
                componentResourceManager.GetString("cbolanguage.Items2"),
                componentResourceManager.GetString("cbolanguage.Items3"),
                componentResourceManager.GetString("cbolanguage.Items4"),
                componentResourceManager.GetString("cbolanguage.Items5"),
                componentResourceManager.GetString("cbolanguage.Items6"),
                componentResourceManager.GetString("cbolanguage.Items7"),
                componentResourceManager.GetString("cbolanguage.Items8"),
                componentResourceManager.GetString("cbolanguage.Items9"),
                componentResourceManager.GetString("cbolanguage.Items10")
            });
            this.cbolanguage.Name = "cbolanguage";
            this.cbolanguage.SelectedIndexChanged += new System.EventHandler(this.cbolanguage_SelectedIndexChanged);
            this.cbolanguage.KeyPress             += new KeyPressEventHandler(this.comm_KeyPress);
            componentResourceManager.ApplyResources(this.label6, "label6");
            this.label6.Name = "label6";
            componentResourceManager.ApplyResources(this.tbpassword, "tbpassword");
            this.tbpassword.Name      = "tbpassword";
            this.tbpassword.KeyPress += new KeyPressEventHandler(this.comm_KeyPress);
            componentResourceManager.ApplyResources(this.label7, "label7");
            this.label7.Name = "label7";
            componentResourceManager.ApplyResources(this.tbuserId, "tbuserId");
            this.tbuserId.Name      = "tbuserId";
            this.tbuserId.KeyPress += new KeyPressEventHandler(this.userNm_KeyPress);
            componentResourceManager.ApplyResources(this.label8, "label8");
            this.label8.Name         = "label8";
            this.butcancel.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butcancel, "butcancel");
            this.butcancel.Name = "butcancel";
            this.butcancel.UseVisualStyleBackColor = false;
            this.butcancel.Click   += new System.EventHandler(this.butcancel_Click);
            this.butlogin.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butlogin, "butlogin");
            this.butlogin.Name = "butlogin";
            this.butlogin.UseVisualStyleBackColor = false;
            this.butlogin.Click  += new System.EventHandler(this.butlogin_Click);
            this.lbSetting.Cursor = Cursors.Hand;
            this.lbSetting.Image  = Resources.Settingicon;
            componentResourceManager.ApplyResources(this.lbSetting, "lbSetting");
            this.lbSetting.Name   = "lbSetting";
            this.lbSetting.Click += new System.EventHandler(this.lbSetting_Click);
            base.AutoScaleMode    = AutoScaleMode.None;
            this.BackColor        = Color.WhiteSmoke;
            this.BackgroundImage  = Resources.login_background;
            componentResourceManager.ApplyResources(this, "$this");
            base.Controls.Add(this.lbSetting);
            base.Controls.Add(this.tableLayoutPanel1);
            base.Controls.Add(this.label5);
            base.Controls.Add(this.label3);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "Login";
            base.SizeGripStyle = SizeGripStyle.Hide;
            base.FormClosing  += new FormClosingEventHandler(this.Login_FormClosing);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.panel2.ResumeLayout(false);
            this.panelRemote.ResumeLayout(false);
            this.panelRemote.PerformLayout();
            this.panelLocal.ResumeLayout(false);
            this.panelLocal.PerformLayout();
            base.ResumeLayout(false);
        }
Esempio n. 24
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmImport));

            tbDirectory         = new TextEdit();
            lbDirectory         = new LabelControl();
            btOpenDir           = new SimpleButton();
            label3              = new LabelControl();
            cbAccessTemplate    = new ComboBoxEdit();
            lbComment           = new LabelControl();
            lbSex               = new LabelControl();
            cbSEX               = new ComboBoxEdit();
            groupBox1           = new GroupBox();
            tbComment           = new MemoEdit();
            pbImage             = new PictureBox();
            lbAdditional        = new LabelControl();
            btStart             = new SimpleButton();
            btPause             = new SimpleButton();
            btStop              = new SimpleButton();
            lbState             = new LabelControl();
            lbCount             = new LabelControl();
            progressBarControl1 = new ProgressBarControl();
            tbDirectory.Properties.BeginInit();
            cbAccessTemplate.Properties.BeginInit();
            cbSEX.Properties.BeginInit();
            groupBox1.SuspendLayout();
            tbComment.Properties.BeginInit();
            ((ISupportInitialize)pbImage).BeginInit();
            progressBarControl1.Properties.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(tbDirectory, "tbDirectory");
            tbDirectory.Name = "tbDirectory";
            tbDirectory.Properties.AccessibleDescription      = componentResourceManager.GetString("tbDirectory.Properties.AccessibleDescription");
            tbDirectory.Properties.AccessibleName             = componentResourceManager.GetString("tbDirectory.Properties.AccessibleName");
            tbDirectory.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.Font");
            tbDirectory.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.FontSizeDelta");
            tbDirectory.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.FontStyleDelta");
            tbDirectory.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.GradientMode");
            tbDirectory.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("tbDirectory.Properties.Appearance.Image");
            tbDirectory.Properties.Appearance.Options.UseFont = true;
            tbDirectory.Properties.AutoHeight                       = (bool)componentResourceManager.GetObject("tbDirectory.Properties.AutoHeight");
            tbDirectory.Properties.Mask.AutoComplete                = (AutoCompleteType)componentResourceManager.GetObject("tbDirectory.Properties.Mask.AutoComplete");
            tbDirectory.Properties.Mask.BeepOnError                 = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.BeepOnError");
            tbDirectory.Properties.Mask.EditMask                    = componentResourceManager.GetString("tbDirectory.Properties.Mask.EditMask");
            tbDirectory.Properties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.IgnoreMaskBlank");
            tbDirectory.Properties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("tbDirectory.Properties.Mask.MaskType");
            tbDirectory.Properties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("tbDirectory.Properties.Mask.PlaceHolder");
            tbDirectory.Properties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.SaveLiteral");
            tbDirectory.Properties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.ShowPlaceHolders");
            tbDirectory.Properties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("tbDirectory.Properties.Mask.UseMaskAsDisplayFormat");
            tbDirectory.Properties.NullValuePrompt                  = componentResourceManager.GetString("tbDirectory.Properties.NullValuePrompt");
            tbDirectory.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbDirectory.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(lbDirectory, "lbDirectory");
            lbDirectory.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.DisabledImage");
            lbDirectory.Appearance.Font           = (Font)componentResourceManager.GetObject("lbDirectory.Appearance.Font");
            lbDirectory.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbDirectory.Appearance.FontSizeDelta");
            lbDirectory.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbDirectory.Appearance.FontStyleDelta");
            lbDirectory.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbDirectory.Appearance.GradientMode");
            lbDirectory.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.HoverImage");
            lbDirectory.Appearance.Image          = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.Image");
            lbDirectory.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbDirectory.Appearance.PressedImage");
            lbDirectory.Name = "lbDirectory";
            componentResourceManager.ApplyResources(btOpenDir, "btOpenDir");
            btOpenDir.Appearance.Font            = (Font)componentResourceManager.GetObject("btOpenDir.Appearance.Font");
            btOpenDir.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btOpenDir.Appearance.FontSizeDelta");
            btOpenDir.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btOpenDir.Appearance.FontStyleDelta");
            btOpenDir.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btOpenDir.Appearance.GradientMode");
            btOpenDir.Appearance.Image           = (Image)componentResourceManager.GetObject("btOpenDir.Appearance.Image");
            btOpenDir.Appearance.Options.UseFont = true;
            btOpenDir.Name   = "btOpenDir";
            btOpenDir.Click += btOpenDir_Click;
            componentResourceManager.ApplyResources(label3, "label3");
            label3.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("label3.Appearance.DisabledImage");
            label3.Appearance.Font           = (Font)componentResourceManager.GetObject("label3.Appearance.Font");
            label3.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("label3.Appearance.FontSizeDelta");
            label3.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("label3.Appearance.FontStyleDelta");
            label3.Appearance.ForeColor      = (Color)componentResourceManager.GetObject("label3.Appearance.ForeColor");
            label3.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("label3.Appearance.GradientMode");
            label3.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("label3.Appearance.HoverImage");
            label3.Appearance.Image          = (Image)componentResourceManager.GetObject("label3.Appearance.Image");
            label3.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("label3.Appearance.PressedImage");
            label3.Name = "label3";
            componentResourceManager.ApplyResources(cbAccessTemplate, "cbAccessTemplate");
            cbAccessTemplate.Name = "cbAccessTemplate";
            cbAccessTemplate.Properties.AccessibleDescription      = componentResourceManager.GetString("cbAccessTemplate.Properties.AccessibleDescription");
            cbAccessTemplate.Properties.AccessibleName             = componentResourceManager.GetString("cbAccessTemplate.Properties.AccessibleName");
            cbAccessTemplate.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.Font");
            cbAccessTemplate.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.FontSizeDelta");
            cbAccessTemplate.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.FontStyleDelta");
            cbAccessTemplate.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.GradientMode");
            cbAccessTemplate.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("cbAccessTemplate.Properties.Appearance.Image");
            cbAccessTemplate.Properties.Appearance.Options.UseFont = true;
            cbAccessTemplate.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbAccessTemplate.Properties.AutoHeight");
            cbAccessTemplate.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbAccessTemplate.Properties.Buttons"))
            });
            cbAccessTemplate.Properties.NullValuePrompt = componentResourceManager.GetString("cbAccessTemplate.Properties.NullValuePrompt");
            cbAccessTemplate.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbAccessTemplate.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(lbComment, "lbComment");
            lbComment.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbComment.Appearance.DisabledImage");
            lbComment.Appearance.Font           = (Font)componentResourceManager.GetObject("lbComment.Appearance.Font");
            lbComment.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbComment.Appearance.FontSizeDelta");
            lbComment.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbComment.Appearance.FontStyleDelta");
            lbComment.Appearance.ForeColor      = (Color)componentResourceManager.GetObject("lbComment.Appearance.ForeColor");
            lbComment.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbComment.Appearance.GradientMode");
            lbComment.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbComment.Appearance.HoverImage");
            lbComment.Appearance.Image          = (Image)componentResourceManager.GetObject("lbComment.Appearance.Image");
            lbComment.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbComment.Appearance.PressedImage");
            lbComment.Name = "lbComment";
            componentResourceManager.ApplyResources(lbSex, "lbSex");
            lbSex.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbSex.Appearance.DisabledImage");
            lbSex.Appearance.Font           = (Font)componentResourceManager.GetObject("lbSex.Appearance.Font");
            lbSex.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbSex.Appearance.FontSizeDelta");
            lbSex.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbSex.Appearance.FontStyleDelta");
            lbSex.Appearance.ForeColor      = (Color)componentResourceManager.GetObject("lbSex.Appearance.ForeColor");
            lbSex.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbSex.Appearance.GradientMode");
            lbSex.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbSex.Appearance.HoverImage");
            lbSex.Appearance.Image          = (Image)componentResourceManager.GetObject("lbSex.Appearance.Image");
            lbSex.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbSex.Appearance.PressedImage");
            lbSex.Name = "lbSex";
            componentResourceManager.ApplyResources(cbSEX, "cbSEX");
            cbSEX.Name = "cbSEX";
            cbSEX.Properties.AccessibleDescription      = componentResourceManager.GetString("cbSEX.Properties.AccessibleDescription");
            cbSEX.Properties.AccessibleName             = componentResourceManager.GetString("cbSEX.Properties.AccessibleName");
            cbSEX.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("cbSEX.Properties.Appearance.Font");
            cbSEX.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("cbSEX.Properties.Appearance.FontSizeDelta");
            cbSEX.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("cbSEX.Properties.Appearance.FontStyleDelta");
            cbSEX.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("cbSEX.Properties.Appearance.GradientMode");
            cbSEX.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("cbSEX.Properties.Appearance.Image");
            cbSEX.Properties.Appearance.Options.UseFont = true;
            cbSEX.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbSEX.Properties.AutoHeight");
            cbSEX.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbSEX.Properties.Buttons"))
            });
            cbSEX.Properties.Items.AddRange(new object[2]
            {
                componentResourceManager.GetString("cbSEX.Properties.Items"),
                componentResourceManager.GetString("cbSEX.Properties.Items1")
            });
            cbSEX.Properties.NullValuePrompt = componentResourceManager.GetString("cbSEX.Properties.NullValuePrompt");
            cbSEX.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("cbSEX.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Controls.Add(tbComment);
            groupBox1.Controls.Add(cbSEX);
            groupBox1.Controls.Add(label3);
            groupBox1.Controls.Add(lbSex);
            groupBox1.Controls.Add(cbAccessTemplate);
            groupBox1.Controls.Add(lbComment);
            groupBox1.Name    = "groupBox1";
            groupBox1.TabStop = false;
            componentResourceManager.ApplyResources(tbComment, "tbComment");
            tbComment.Name = "tbComment";
            tbComment.Properties.AccessibleDescription            = componentResourceManager.GetString("tbComment.Properties.AccessibleDescription");
            tbComment.Properties.AccessibleName                   = componentResourceManager.GetString("tbComment.Properties.AccessibleName");
            tbComment.Properties.NullValuePrompt                  = componentResourceManager.GetString("tbComment.Properties.NullValuePrompt");
            tbComment.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("tbComment.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(pbImage, "pbImage");
            pbImage.BorderStyle = BorderStyle.FixedSingle;
            pbImage.Name        = "pbImage";
            pbImage.TabStop     = false;
            componentResourceManager.ApplyResources(lbAdditional, "lbAdditional");
            lbAdditional.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.DisabledImage");
            lbAdditional.Appearance.Font           = (Font)componentResourceManager.GetObject("lbAdditional.Appearance.Font");
            lbAdditional.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbAdditional.Appearance.FontSizeDelta");
            lbAdditional.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbAdditional.Appearance.FontStyleDelta");
            lbAdditional.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbAdditional.Appearance.GradientMode");
            lbAdditional.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.HoverImage");
            lbAdditional.Appearance.Image          = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.Image");
            lbAdditional.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbAdditional.Appearance.PressedImage");
            lbAdditional.Name = "lbAdditional";
            componentResourceManager.ApplyResources(btStart, "btStart");
            btStart.Appearance.Font            = (Font)componentResourceManager.GetObject("btStart.Appearance.Font");
            btStart.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btStart.Appearance.FontSizeDelta");
            btStart.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btStart.Appearance.FontStyleDelta");
            btStart.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btStart.Appearance.GradientMode");
            btStart.Appearance.Image           = (Image)componentResourceManager.GetObject("btStart.Appearance.Image");
            btStart.Appearance.Options.UseFont = true;
            btStart.Name   = "btStart";
            btStart.Click += btStartFile_Click;
            componentResourceManager.ApplyResources(btPause, "btPause");
            btPause.Appearance.Font            = (Font)componentResourceManager.GetObject("btPause.Appearance.Font");
            btPause.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btPause.Appearance.FontSizeDelta");
            btPause.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btPause.Appearance.FontStyleDelta");
            btPause.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btPause.Appearance.GradientMode");
            btPause.Appearance.Image           = (Image)componentResourceManager.GetObject("btPause.Appearance.Image");
            btPause.Appearance.Options.UseFont = true;
            btPause.Name   = "btPause";
            btPause.Click += btPauseFile_Click;
            componentResourceManager.ApplyResources(btStop, "btStop");
            btStop.Appearance.Font            = (Font)componentResourceManager.GetObject("btStop.Appearance.Font");
            btStop.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btStop.Appearance.FontSizeDelta");
            btStop.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btStop.Appearance.FontStyleDelta");
            btStop.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btStop.Appearance.GradientMode");
            btStop.Appearance.Image           = (Image)componentResourceManager.GetObject("btStop.Appearance.Image");
            btStop.Appearance.Options.UseFont = true;
            btStop.Name   = "btStop";
            btStop.Click += btStopFile_Click;
            componentResourceManager.ApplyResources(lbState, "lbState");
            lbState.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbState.Appearance.DisabledImage");
            lbState.Appearance.Font           = (Font)componentResourceManager.GetObject("lbState.Appearance.Font");
            lbState.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbState.Appearance.FontSizeDelta");
            lbState.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbState.Appearance.FontStyleDelta");
            lbState.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbState.Appearance.GradientMode");
            lbState.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbState.Appearance.HoverImage");
            lbState.Appearance.Image          = (Image)componentResourceManager.GetObject("lbState.Appearance.Image");
            lbState.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbState.Appearance.PressedImage");
            lbState.Name = "lbState";
            componentResourceManager.ApplyResources(lbCount, "lbCount");
            lbCount.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("lbCount.Appearance.DisabledImage");
            lbCount.Appearance.Font           = (Font)componentResourceManager.GetObject("lbCount.Appearance.Font");
            lbCount.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("lbCount.Appearance.FontSizeDelta");
            lbCount.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("lbCount.Appearance.FontStyleDelta");
            lbCount.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("lbCount.Appearance.GradientMode");
            lbCount.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("lbCount.Appearance.HoverImage");
            lbCount.Appearance.Image          = (Image)componentResourceManager.GetObject("lbCount.Appearance.Image");
            lbCount.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("lbCount.Appearance.PressedImage");
            lbCount.Name = "lbCount";
            componentResourceManager.ApplyResources(progressBarControl1, "progressBarControl1");
            progressBarControl1.Name = "progressBarControl1";
            progressBarControl1.Properties.AccessibleDescription             = componentResourceManager.GetString("progressBarControl1.Properties.AccessibleDescription");
            progressBarControl1.Properties.AccessibleName                    = componentResourceManager.GetString("progressBarControl1.Properties.AccessibleName");
            progressBarControl1.Properties.Appearance.FontSizeDelta          = (int)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.FontSizeDelta");
            progressBarControl1.Properties.Appearance.FontStyleDelta         = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.FontStyleDelta");
            progressBarControl1.Properties.Appearance.GradientMode           = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.GradientMode");
            progressBarControl1.Properties.Appearance.Image                  = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.Appearance.Image");
            progressBarControl1.Properties.AppearanceDisabled.FontSizeDelta  = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.FontSizeDelta");
            progressBarControl1.Properties.AppearanceDisabled.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.FontStyleDelta");
            progressBarControl1.Properties.AppearanceDisabled.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.GradientMode");
            progressBarControl1.Properties.AppearanceDisabled.Image          = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceDisabled.Image");
            progressBarControl1.Properties.AppearanceFocused.FontSizeDelta   = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.FontSizeDelta");
            progressBarControl1.Properties.AppearanceFocused.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.FontStyleDelta");
            progressBarControl1.Properties.AppearanceFocused.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.GradientMode");
            progressBarControl1.Properties.AppearanceFocused.Image           = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceFocused.Image");
            progressBarControl1.Properties.AppearanceReadOnly.FontSizeDelta  = (int)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.FontSizeDelta");
            progressBarControl1.Properties.AppearanceReadOnly.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.FontStyleDelta");
            progressBarControl1.Properties.AppearanceReadOnly.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.GradientMode");
            progressBarControl1.Properties.AppearanceReadOnly.Image          = (Image)componentResourceManager.GetObject("progressBarControl1.Properties.AppearanceReadOnly.Image");
            progressBarControl1.Properties.AutoHeight = (bool)componentResourceManager.GetObject("progressBarControl1.Properties.AutoHeight");
            componentResourceManager.ApplyResources(this, "$this");
            Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("frmImport.Appearance.FontSizeDelta");
            Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("frmImport.Appearance.FontStyleDelta");
            Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("frmImport.Appearance.GradientMode");
            Appearance.Image           = (Image)componentResourceManager.GetObject("frmImport.Appearance.Image");
            Appearance.Options.UseFont = true;
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(progressBarControl1);
            Controls.Add(lbCount);
            Controls.Add(lbState);
            Controls.Add(btStop);
            Controls.Add(btPause);
            Controls.Add(btStart);
            Controls.Add(lbAdditional);
            Controls.Add(pbImage);
            Controls.Add(groupBox1);
            Controls.Add(btOpenDir);
            Controls.Add(lbDirectory);
            Controls.Add(tbDirectory);
            FormBorderStyle = FormBorderStyle.FixedToolWindow;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "FrmImport";
            FormClosing    += frmImport_FormClosing;
            tbDirectory.Properties.EndInit();
            cbAccessTemplate.Properties.EndInit();
            cbSEX.Properties.EndInit();
            groupBox1.ResumeLayout(false);
            groupBox1.PerformLayout();
            tbComment.Properties.EndInit();
            ((ISupportInitialize)pbImage).EndInit();
            progressBarControl1.Properties.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Esempio n. 25
0
        private void scurityButton_Click(object sender, EventArgs e)
        {
            void switchPanel()
            {
                securityPanel.Visible = !securityPanel.Visible;
                Timer timer = new Timer
                {
                    Interval = 5
                };

                securityButton.Enabled = false;
                if (securityPanel.Visible)
                {
                    int oldHeight = Height;
                    int oldY      = confirm.Location.Y;
                    timer.Tick += (s, ea) =>
                    {
                        Height += 10;
                        if (Height - oldHeight >= securityPanel.Height)
                        {
                            timer.Stop();
                            timer.Dispose();
                            securityButton.Enabled = true;
                            Height = oldHeight + securityPanel.Height;
                        }
                    };
                }
                else
                {
                    int oldHeight = Height;
                    int oldY      = confirm.Location.Y;
                    timer.Tick += (s, ea) =>
                    {
                        Height -= 10;
                        if (oldHeight - Height >= securityPanel.Height)
                        {
                            timer.Stop();
                            timer.Dispose();
                            securityButton.Enabled = true;
                            Height = oldHeight - securityPanel.Height;
                        }
                    };
                }

                timer.Enabled = true;
                timer.Start();
            }

            if (AddMode)
            {
                switchPanel();
            }
            else
            {
                if (!securityPanel.Visible && ReturnValue.Encryted)
                {
                    ComponentResourceManager res = new ComponentResourceManager(typeof(ProjectForm));
                    EditValue edit = new EditValue(res.GetString("password"), true);
                    if (edit.ShowDialog() == DialogResult.OK)
                    {
                        if (ReturnValue.MatchPassword(edit.ValueReturn).Permission == Permission.ChiefAdmin)
                        {
                            switchPanel();
                        }
                        else
                        {
                            MessageBox.Show(res.GetString("error.Password"), res.GetString("error"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                        }
                    }
                    edit.Dispose();
                }
                else
                {
                    switchPanel();
                }
            }
        }
Esempio n. 26
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SysPara));

            this.groupBox1      = new GroupBox();
            this.cbReadDelay    = new ComboBox();
            this.cbDClayout     = new ComboBox();
            this.label1         = new Label();
            this.groupBox3      = new GroupBox();
            this.cbERackFNm     = new CheckBox();
            this.cbCurrency     = new ComboBox();
            this.label4         = new Label();
            this.groupBox4      = new GroupBox();
            this.TempUnitF      = new RadioButton();
            this.TempUnitC      = new RadioButton();
            this.label30        = new Label();
            this.txtco2_elec    = new TextBox();
            this.lbCO2_unit     = new Label();
            this.label40        = new Label();
            this.txtprice_co2   = new TextBox();
            this.label31        = new Label();
            this.label3         = new Label();
            this.txtprice_elec  = new TextBox();
            this.lbElec_unit    = new Label();
            this.groupBox2      = new GroupBox();
            this.rbEC2          = new RadioButton();
            this.btbrowsedev    = new Button();
            this.tbECVoltage    = new TextBox();
            this.lbECDevNm      = new Label();
            this.label51        = new Label();
            this.rbEC3          = new RadioButton();
            this.rbEC1          = new RadioButton();
            this.lbReadDelay    = new Label();
            this.butSysparaSave = new Button();
            this.cbERPower      = new CheckBox();
            this.groupBox1.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox2.SuspendLayout();
            base.SuspendLayout();
            this.groupBox1.Controls.Add(this.cbReadDelay);
            this.groupBox1.Controls.Add(this.cbDClayout);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.groupBox3);
            this.groupBox1.Controls.Add(this.groupBox2);
            this.groupBox1.Controls.Add(this.lbReadDelay);
            componentResourceManager.ApplyResources(this.groupBox1, "groupBox1");
            this.groupBox1.ForeColor       = Color.FromArgb(20, 73, 160);
            this.groupBox1.Name            = "groupBox1";
            this.groupBox1.TabStop         = false;
            this.cbReadDelay.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbReadDelay, "cbReadDelay");
            this.cbReadDelay.FormattingEnabled = true;
            this.cbReadDelay.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbReadDelay.Items"),
                componentResourceManager.GetString("cbReadDelay.Items1"),
                componentResourceManager.GetString("cbReadDelay.Items2"),
                componentResourceManager.GetString("cbReadDelay.Items3"),
                componentResourceManager.GetString("cbReadDelay.Items4"),
                componentResourceManager.GetString("cbReadDelay.Items5")
            });
            this.cbReadDelay.Name         = "cbReadDelay";
            this.cbDClayout.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbDClayout, "cbDClayout");
            this.cbDClayout.FormattingEnabled = true;
            this.cbDClayout.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbDClayout.Items"),
                componentResourceManager.GetString("cbDClayout.Items1"),
                componentResourceManager.GetString("cbDClayout.Items2")
            });
            this.cbDClayout.Name = "cbDClayout";
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.ForeColor = Color.Black;
            this.label1.Name      = "label1";
            this.groupBox3.Controls.Add(this.cbERPower);
            this.groupBox3.Controls.Add(this.cbERackFNm);
            this.groupBox3.Controls.Add(this.cbCurrency);
            this.groupBox3.Controls.Add(this.label4);
            this.groupBox3.Controls.Add(this.groupBox4);
            this.groupBox3.Controls.Add(this.label30);
            this.groupBox3.Controls.Add(this.txtco2_elec);
            this.groupBox3.Controls.Add(this.lbCO2_unit);
            this.groupBox3.Controls.Add(this.label40);
            this.groupBox3.Controls.Add(this.txtprice_co2);
            this.groupBox3.Controls.Add(this.label31);
            this.groupBox3.Controls.Add(this.label3);
            this.groupBox3.Controls.Add(this.txtprice_elec);
            this.groupBox3.Controls.Add(this.lbElec_unit);
            this.groupBox3.ForeColor = Color.FromArgb(20, 73, 160);
            componentResourceManager.ApplyResources(this.groupBox3, "groupBox3");
            this.groupBox3.Name    = "groupBox3";
            this.groupBox3.TabStop = false;
            componentResourceManager.ApplyResources(this.cbERackFNm, "cbERackFNm");
            this.cbERackFNm.ForeColor = Color.Black;
            this.cbERackFNm.Name      = "cbERackFNm";
            this.cbERackFNm.UseVisualStyleBackColor = true;
            this.cbCurrency.DropDownStyle           = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbCurrency, "cbCurrency");
            this.cbCurrency.FormattingEnabled = true;
            this.cbCurrency.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbCurrency.Items"),
                componentResourceManager.GetString("cbCurrency.Items1"),
                componentResourceManager.GetString("cbCurrency.Items2"),
                componentResourceManager.GetString("cbCurrency.Items3"),
                componentResourceManager.GetString("cbCurrency.Items4")
            });
            this.cbCurrency.Name = "cbCurrency";
            this.cbCurrency.SelectedIndexChanged += new System.EventHandler(this.cbCurrency_SelectedIndexChanged);
            componentResourceManager.ApplyResources(this.label4, "label4");
            this.label4.ForeColor = Color.Black;
            this.label4.Name      = "label4";
            this.groupBox4.Controls.Add(this.TempUnitF);
            this.groupBox4.Controls.Add(this.TempUnitC);
            this.groupBox4.ForeColor = Color.FromArgb(20, 73, 160);
            componentResourceManager.ApplyResources(this.groupBox4, "groupBox4");
            this.groupBox4.Name    = "groupBox4";
            this.groupBox4.TabStop = false;
            componentResourceManager.ApplyResources(this.TempUnitF, "TempUnitF");
            this.TempUnitF.ForeColor = Color.Black;
            this.TempUnitF.Name      = "TempUnitF";
            this.TempUnitF.TabStop   = true;
            this.TempUnitF.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.TempUnitC, "TempUnitC");
            this.TempUnitC.ForeColor = Color.Black;
            this.TempUnitC.Name      = "TempUnitC";
            this.TempUnitC.TabStop   = true;
            this.TempUnitC.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.label30, "label30");
            this.label30.ForeColor = Color.Black;
            this.label30.Name      = "label30";
            componentResourceManager.ApplyResources(this.txtco2_elec, "txtco2_elec");
            this.txtco2_elec.ForeColor = Color.Black;
            this.txtco2_elec.Name      = "txtco2_elec";
            this.txtco2_elec.KeyPress += new KeyPressEventHandler(this.double_KeyPress);
            componentResourceManager.ApplyResources(this.lbCO2_unit, "lbCO2_unit");
            this.lbCO2_unit.ForeColor = Color.Black;
            this.lbCO2_unit.Name      = "lbCO2_unit";
            componentResourceManager.ApplyResources(this.label40, "label40");
            this.label40.ForeColor = Color.Black;
            this.label40.Name      = "label40";
            componentResourceManager.ApplyResources(this.txtprice_co2, "txtprice_co2");
            this.txtprice_co2.ForeColor = Color.Black;
            this.txtprice_co2.Name      = "txtprice_co2";
            this.txtprice_co2.KeyPress += new KeyPressEventHandler(this.double_KeyPress);
            componentResourceManager.ApplyResources(this.label31, "label31");
            this.label31.ForeColor = Color.Black;
            this.label31.Name      = "label31";
            componentResourceManager.ApplyResources(this.label3, "label3");
            this.label3.ForeColor = Color.Black;
            this.label3.Name      = "label3";
            componentResourceManager.ApplyResources(this.txtprice_elec, "txtprice_elec");
            this.txtprice_elec.ForeColor = Color.Black;
            this.txtprice_elec.Name      = "txtprice_elec";
            this.txtprice_elec.KeyPress += new KeyPressEventHandler(this.double_KeyPress);
            componentResourceManager.ApplyResources(this.lbElec_unit, "lbElec_unit");
            this.lbElec_unit.ForeColor = Color.Black;
            this.lbElec_unit.Name      = "lbElec_unit";
            this.groupBox2.Controls.Add(this.rbEC2);
            this.groupBox2.Controls.Add(this.btbrowsedev);
            this.groupBox2.Controls.Add(this.tbECVoltage);
            this.groupBox2.Controls.Add(this.lbECDevNm);
            this.groupBox2.Controls.Add(this.label51);
            this.groupBox2.Controls.Add(this.rbEC3);
            this.groupBox2.Controls.Add(this.rbEC1);
            this.groupBox2.ForeColor = Color.FromArgb(20, 73, 160);
            componentResourceManager.ApplyResources(this.groupBox2, "groupBox2");
            this.groupBox2.Name    = "groupBox2";
            this.groupBox2.TabStop = false;
            componentResourceManager.ApplyResources(this.rbEC2, "rbEC2");
            this.rbEC2.ForeColor = Color.Black;
            this.rbEC2.Name      = "rbEC2";
            this.rbEC2.TabStop   = true;
            this.rbEC2.UseVisualStyleBackColor = true;
            this.rbEC2.CheckedChanged         += new System.EventHandler(this.rbEC_CheckedChanged);
            this.btbrowsedev.BackColor         = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btbrowsedev, "btbrowsedev");
            this.btbrowsedev.ForeColor = SystemColors.ControlText;
            this.btbrowsedev.Name      = "btbrowsedev";
            this.btbrowsedev.UseVisualStyleBackColor = false;
            this.btbrowsedev.Click += new System.EventHandler(this.btbrowsedev_Click);
            componentResourceManager.ApplyResources(this.tbECVoltage, "tbECVoltage");
            this.tbECVoltage.ForeColor = Color.Black;
            this.tbECVoltage.Name      = "tbECVoltage";
            this.tbECVoltage.KeyPress += new KeyPressEventHandler(this.int_KeyPress);
            this.lbECDevNm.BorderStyle = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.lbECDevNm, "lbECDevNm");
            this.lbECDevNm.ForeColor = Color.Black;
            this.lbECDevNm.Name      = "lbECDevNm";
            componentResourceManager.ApplyResources(this.label51, "label51");
            this.label51.ForeColor = Color.Black;
            this.label51.Name      = "label51";
            componentResourceManager.ApplyResources(this.rbEC3, "rbEC3");
            this.rbEC3.ForeColor = Color.Black;
            this.rbEC3.Name      = "rbEC3";
            this.rbEC3.TabStop   = true;
            this.rbEC3.UseVisualStyleBackColor = true;
            this.rbEC3.CheckedChanged         += new System.EventHandler(this.rbEC_CheckedChanged);
            componentResourceManager.ApplyResources(this.rbEC1, "rbEC1");
            this.rbEC1.ForeColor = Color.Black;
            this.rbEC1.Name      = "rbEC1";
            this.rbEC1.TabStop   = true;
            this.rbEC1.UseVisualStyleBackColor = true;
            this.rbEC1.CheckedChanged         += new System.EventHandler(this.rbEC_CheckedChanged);
            componentResourceManager.ApplyResources(this.lbReadDelay, "lbReadDelay");
            this.lbReadDelay.ForeColor    = Color.Black;
            this.lbReadDelay.Name         = "lbReadDelay";
            this.butSysparaSave.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butSysparaSave, "butSysparaSave");
            this.butSysparaSave.ForeColor = SystemColors.ControlText;
            this.butSysparaSave.Name      = "butSysparaSave";
            this.butSysparaSave.UseVisualStyleBackColor = false;
            this.butSysparaSave.Click += new System.EventHandler(this.butSysparaSave_Click);
            componentResourceManager.ApplyResources(this.cbERPower, "cbERPower");
            this.cbERPower.ForeColor = Color.Black;
            this.cbERPower.Name      = "cbERPower";
            this.cbERPower.UseVisualStyleBackColor = true;
            base.AutoScaleMode = AutoScaleMode.None;
            this.BackColor     = Color.WhiteSmoke;
            base.Controls.Add(this.groupBox1);
            base.Controls.Add(this.butSysparaSave);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "SysPara";
            this.groupBox1.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            base.ResumeLayout(false);
        }
Esempio n. 27
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FileSelect));

            this.lblName         = new Label();
            this.txtName         = new TextBox();
            this.radGirl         = new RadioButton();
            this.radBoy          = new RadioButton();
            this.btnGo           = new Button();
            this.LoadFile        = new OpenFileDialog();
            this.btnLoad         = new Button();
            this.gbGender        = new GroupBox();
            this.lblIntro        = new Label();
            this.pbOak           = new PictureBox();
            this.lblNameConfirm  = new Label();
            this.pbRival         = new PictureBox();
            this.lblRival        = new Label();
            this.txtRival        = new TextBox();
            this.lblRivalConfirm = new Label();
            this.lblLetsGo       = new Label();
            this.btnLetsGo       = new Button();
            this.gbGender.SuspendLayout();
            ((ISupportInitialize)this.pbOak).BeginInit();
            ((ISupportInitialize)this.pbRival).BeginInit();
            base.SuspendLayout();
            this.lblName.Location                = new Point(8, 384);
            this.lblName.Margin                  = new Padding(4, 0, 4, 0);
            this.lblName.Name                    = "lblName";
            this.lblName.Size                    = new Size(272, 18);
            this.lblName.TabIndex                = 0;
            this.lblName.Text                    = "Let's begin with your name. What is it?";
            this.lblName.Visible                 = false;
            this.txtName.BorderStyle             = BorderStyle.FixedSingle;
            this.txtName.ImeMode                 = ImeMode.NoControl;
            this.txtName.Location                = new Point(280, 384);
            this.txtName.Margin                  = new Padding(4);
            this.txtName.MaxLength               = 7;
            this.txtName.Name                    = "txtName";
            this.txtName.Size                    = new Size(131, 26);
            this.txtName.TabIndex                = 5;
            this.txtName.Visible                 = false;
            this.txtName.TextChanged            += new EventHandler(this.txtName_TextChanged);
            this.radGirl.FlatStyle               = FlatStyle.Flat;
            this.radGirl.Location                = new Point(64, 24);
            this.radGirl.Margin                  = new Padding(4);
            this.radGirl.Name                    = "radGirl";
            this.radGirl.Size                    = new Size(49, 22);
            this.radGirl.TabIndex                = 4;
            this.radGirl.TabStop                 = true;
            this.radGirl.Text                    = "Girl";
            this.radGirl.UseVisualStyleBackColor = true;
            this.radGirl.CheckedChanged         += new EventHandler(this.gender_CheckedChanged);
            this.radBoy.FlatStyle                = FlatStyle.Flat;
            this.radBoy.Location                 = new Point(8, 24);
            this.radBoy.Margin                   = new Padding(4);
            this.radBoy.Name     = "radBoy";
            this.radBoy.Size     = new Size(52, 22);
            this.radBoy.TabIndex = 3;
            this.radBoy.TabStop  = true;
            this.radBoy.Text     = "Boy";
            this.radBoy.UseVisualStyleBackColor = true;
            this.radBoy.CheckedChanged         += new EventHandler(this.gender_CheckedChanged);
            this.btnGo.FlatStyle = FlatStyle.Flat;
            this.btnGo.Location  = new Point(18, 37);
            this.btnGo.Margin    = new Padding(4);
            this.btnGo.Name      = "btnGo";
            this.btnGo.Size      = new Size(186, 39);
            this.btnGo.TabIndex  = 1;
            this.btnGo.Text      = "New Game";
            this.btnGo.UseVisualStyleBackColor = true;
            this.btnGo.Click                    += new EventHandler(this.btnNewGame_Click);
            this.LoadFile.DefaultExt             = "pksav";
            this.LoadFile.Filter                 = "PokemonSharp saves|*.pksav";
            this.LoadFile.Title                  = "Load save game";
            this.btnLoad.FlatStyle               = FlatStyle.Flat;
            this.btnLoad.Location                = new Point(18, 84);
            this.btnLoad.Margin                  = new Padding(4);
            this.btnLoad.Name                    = "btnLoad";
            this.btnLoad.Size                    = new Size(186, 39);
            this.btnLoad.TabIndex                = 2;
            this.btnLoad.Text                    = "Continue";
            this.btnLoad.UseVisualStyleBackColor = true;
            this.btnLoad.Click                  += new EventHandler(this.btnContinue_Click);
            this.gbGender.Controls.Add(this.radGirl);
            this.gbGender.Controls.Add(this.radBoy);
            this.gbGender.Location = new Point(0, 336);
            this.gbGender.Margin   = new Padding(4);
            this.gbGender.Name     = "gbGender";
            this.gbGender.Padding  = new Padding(4);
            this.gbGender.Size     = new Size(344, 48);
            this.gbGender.TabIndex = 0;
            this.gbGender.TabStop  = false;
            this.gbGender.Text     = "Now tell me. Are you a boy?  Or are you a girl?";
            this.gbGender.Visible  = false;
            this.lblIntro.Location = new Point(8, 168);
            this.lblIntro.Margin   = new Padding(4, 0, 4, 0);
            this.lblIntro.Name     = "lblIntro";
            this.lblIntro.Size     = new Size(464, 166);
            this.lblIntro.TabIndex = 0;
            this.lblIntro.Text     = componentResourceManager.GetString("lblIntro.Text");
            this.lblIntro.Visible  = false;
            //this.pbOak.Image = Resources.OakHGSSIntro;
            this.pbOak.Location          = new Point(208, 32);
            this.pbOak.Margin            = new Padding(4);
            this.pbOak.Name              = "pbOak";
            this.pbOak.Size              = new Size(67, 131);
            this.pbOak.TabIndex          = 14;
            this.pbOak.TabStop           = false;
            this.pbOak.Visible           = false;
            this.lblNameConfirm.AutoSize = true;
            this.lblNameConfirm.Location = new Point(8, 408);
            this.lblNameConfirm.Margin   = new Padding(4, 0, 4, 0);
            this.lblNameConfirm.Name     = "lblNameConfirm";
            this.lblNameConfirm.Size     = new Size(165, 18);
            this.lblNameConfirm.TabIndex = 0;
            this.lblNameConfirm.Text     = "Right, so your name is ";
            this.lblNameConfirm.Visible  = false;
            //this.pbRival.Image = Resources.FRLG_Blue_Title;
            this.pbRival.Location                  = new Point(640, 64);
            this.pbRival.Margin                    = new Padding(4);
            this.pbRival.Name                      = "pbRival";
            this.pbRival.Size                      = new Size(61, 100);
            this.pbRival.TabIndex                  = 17;
            this.pbRival.TabStop                   = false;
            this.pbRival.Visible                   = false;
            this.lblRival.Location                 = new Point(472, 168);
            this.lblRival.Margin                   = new Padding(4, 0, 4, 0);
            this.lblRival.Name                     = "lblRival";
            this.lblRival.Size                     = new Size(344, 56);
            this.lblRival.TabIndex                 = 0;
            this.lblRival.Text                     = "This is my grandson.\r\nHe's been your rival since you were both babies.\r\n...Erm, what was his name now?";
            this.lblRival.Visible                  = false;
            this.txtRival.BorderStyle              = BorderStyle.FixedSingle;
            this.txtRival.ImeMode                  = ImeMode.NoControl;
            this.txtRival.Location                 = new Point(472, 224);
            this.txtRival.Margin                   = new Padding(4);
            this.txtRival.MaxLength                = 7;
            this.txtRival.Name                     = "txtRival";
            this.txtRival.Size                     = new Size(131, 26);
            this.txtRival.TabIndex                 = 6;
            this.txtRival.Visible                  = false;
            this.txtRival.TextChanged             += new EventHandler(this.txtRival_TextChanged);
            this.lblRivalConfirm.AutoSize          = true;
            this.lblRivalConfirm.Location          = new Point(472, 256);
            this.lblRivalConfirm.Margin            = new Padding(4, 0, 4, 0);
            this.lblRivalConfirm.Name              = "lblRivalConfirm";
            this.lblRivalConfirm.Size              = new Size(298, 18);
            this.lblRivalConfirm.TabIndex          = 20;
            this.lblRivalConfirm.Text              = "That's right! I remember now! His name is \r\n";
            this.lblRivalConfirm.Visible           = false;
            this.lblRivalConfirm.TextChanged      += new EventHandler(this.txtRival_TextChanged);
            this.lblLetsGo.Location                = new Point(472, 280);
            this.lblLetsGo.Margin                  = new Padding(4, 0, 4, 0);
            this.lblLetsGo.Name                    = "lblLetsGo";
            this.lblLetsGo.Size                    = new Size(400, 56);
            this.lblLetsGo.TabIndex                = 0;
            this.lblLetsGo.Text                    = "!\r\nYour very own Pokemon legend is about to unfold!\r\nA world of dreams and adventures with Pokemon awaits!";
            this.lblLetsGo.Visible                 = false;
            this.btnLetsGo.FlatStyle               = FlatStyle.Flat;
            this.btnLetsGo.Location                = new Point(616, 336);
            this.btnLetsGo.Margin                  = new Padding(4);
            this.btnLetsGo.Name                    = "btnLetsGo";
            this.btnLetsGo.Size                    = new Size(112, 32);
            this.btnLetsGo.TabIndex                = 7;
            this.btnLetsGo.Text                    = "Let's go!";
            this.btnLetsGo.UseVisualStyleBackColor = true;
            this.btnLetsGo.Visible                 = false;
            this.btnLetsGo.Click                  += new EventHandler(this.btnLetsGo_Click);
            base.AutoScaleDimensions               = new SizeF(9f, 18f);
            base.AutoScaleMode                     = AutoScaleMode.Font;
            base.ClientSize = new Size(872, 431);
            base.Controls.Add(this.btnLetsGo);
            base.Controls.Add(this.lblLetsGo);
            base.Controls.Add(this.lblRivalConfirm);
            base.Controls.Add(this.txtRival);
            base.Controls.Add(this.lblRival);
            base.Controls.Add(this.pbRival);
            base.Controls.Add(this.lblNameConfirm);
            base.Controls.Add(this.pbOak);
            base.Controls.Add(this.lblIntro);
            base.Controls.Add(this.gbGender);
            base.Controls.Add(this.btnLoad);
            base.Controls.Add(this.btnGo);
            base.Controls.Add(this.txtName);
            base.Controls.Add(this.lblName);
            this.Font            = new Font("Arial", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.Margin          = new Padding(4);
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "FileSelect";
            base.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "File Select";
            this.gbGender.ResumeLayout(false);
            ((ISupportInitialize)this.pbOak).EndInit();
            ((ISupportInitialize)this.pbRival).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 28
0
        private void InitializeComponent()
        {
            Color color;
            Point point1;
            Size  size1;
            SizeF sizeF1;

            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Changelog));

            RTheme1        = new RTheme();
            RButtonRed1    = new RButtonRed();
            Changeloglabel = new CypherxLabel();
            RTheme1.SuspendLayout();
            SuspendLayout();
            RTheme1.BackColor = Color.FromArgb(28, 28, 28);
            RTheme1.Controls.Add(RButtonRed1);
            RTheme1.Controls.Add(Changeloglabel);
            RTheme1.Dock      = DockStyle.Fill;
            RTheme1.ForeColor = Color.White;
            RTheme1.Image     = null;
            Point point2 = new Point(0, 0);

            RTheme1.Location   = point2;
            RTheme1.MoveHeight = 26;
            RTheme1.Name       = "RTheme1";
            RTheme1.Resizable  = false;
            Size size2 = new Size(269, 439);

            RTheme1.Size            = size2;
            RTheme1.TabIndex        = 0;
            RTheme1.Text            = "                                 Changelog";
            RTheme1.TransparencyKey = Color.Fuchsia;
            RButtonRed1.Image       = null;
            point2 = new Point(241, 3);
            RButtonRed1.Location   = point2;
            RButtonRed1.Name       = "RButtonRed1";
            RButtonRed1.NoRounding = false;
            size2                      = new Size(23, 21);
            RButtonRed1.Size           = size2;
            RButtonRed1.TabIndex       = 6;
            Changeloglabel.BackColor   = Color.Transparent;
            Changeloglabel.BorderStyle = BorderStyle.FixedSingle;
            Changeloglabel.Font        = new Font("Arial", 8.0F);
            Changeloglabel.ForeColor   = Color.FromArgb(124, 195, 255);
            point2                     = new Point(12, 33);
            Changeloglabel.Location    = point2;
            Changeloglabel.Name        = "Changeloglabel";
            size2                      = new Size(245, 394);
            Changeloglabel.Size        = size2;
            Changeloglabel.TabIndex    = 1;
            Changeloglabel.Text        = componentResourceManager.GetString("Changeloglabel.Text");
            SizeF sizeF2 = new SizeF(6.0F, 13.0F);

            AutoScaleDimensions = sizeF2;
            AutoScaleMode       = AutoScaleMode.Font;
            size2      = new Size(269, 439);
            ClientSize = size2;
            Controls.Add(RTheme1);
            FormBorderStyle = FormBorderStyle.None;
            Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            Name            = "Changelog";
            StartPosition   = FormStartPosition.CenterScreen;
            Text            = "Changelog";
            TopMost         = true;
            TransparencyKey = Color.Fuchsia;
            RTheme1.ResumeLayout(false);
            ResumeLayout(false);
        }
Esempio n. 29
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Cajas25));

            this.ToolTip1 = new ToolTip(this.components);
            this.corte    = new ComboBox();
            this.si       = new Button();
            this.Cancela  = new Button();
            this.graba    = new Button();
            this.fg       = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Label3   = new Label();
            this.Label1   = new Label();
            this.Label2   = new Label();
            this.Label4   = new Label();
            this.Label5   = new Label();
            this.escala   = new Label();
            this.estilo   = new Label();
            this.colo     = new Label();
            this.material = new TextBox();
            this.upc      = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.fg.BeginInit();
            this.upc.BeginInit();
            this.SuspendLayout();
            this.corte.BackColor = Color.FromArgb((int)byte.MaxValue, (int)byte.MaxValue, 128);
            this.corte.Font      = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.corte.Items.AddRange(new object[3]
            {
                (object)"JT",
                (object)"TRECENTO",
                (object)"ZUNTEX"
            });
            this.corte.Location = new Point(201, 21);
            this.corte.Name     = "corte";
            this.corte.Size     = new Size(222, 28);
            this.corte.TabIndex = 0;
            this.ToolTip1.SetToolTip((Control)this.corte, "No. Corte.");
            this.si.BackColor = Color.FromArgb(46, 196, 245);
            this.si.Font      = new Font("Comic Sans MS", 6f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.si.ForeColor = Color.Black;
            this.si.Image     = (Image)componentResourceManager.GetObject("si.Image");
            this.si.Location  = new Point(909, 19);
            this.si.Name      = "si";
            this.si.Size      = new Size(60, 40);
            this.si.TabIndex  = 1;
            this.si.TextAlign = ContentAlignment.BottomCenter;
            this.ToolTip1.SetToolTip((Control)this.si, "Chequeo de Datos");
            this.si.UseVisualStyleBackColor = false;
            this.Cancela.BackColor          = Color.FromArgb(46, 196, 245);
            this.Cancela.Font      = new Font("Comic Sans MS", 6f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.Cancela.ForeColor = Color.Black;
            this.Cancela.Image     = (Image)componentResourceManager.GetObject("Cancela.Image");
            this.Cancela.Location  = new Point(977, 19);
            this.Cancela.Name      = "Cancela";
            this.Cancela.Size      = new Size(60, 40);
            this.Cancela.TabIndex  = 104;
            this.Cancela.TextAlign = ContentAlignment.BottomCenter;
            this.ToolTip1.SetToolTip((Control)this.Cancela, "Presione este Boton para Cancelar toda la operación y limpiar todos los datos sin Grabar.");
            this.Cancela.UseVisualStyleBackColor = false;
            this.graba.BackColor = Color.FromArgb(46, 196, 245);
            this.graba.Font      = new Font("Comic Sans MS", 6f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.graba.ForeColor = Color.Black;
            this.graba.Image     = (Image)componentResourceManager.GetObject("graba.Image");
            this.graba.Location  = new Point(909, 19);
            this.graba.Name      = "graba";
            this.graba.Size      = new Size(60, 40);
            this.graba.TabIndex  = 9;
            this.graba.TextAlign = ContentAlignment.BottomCenter;
            this.graba.UseVisualStyleBackColor = false;
            this.fg.AllowEditing      = false;
            this.fg.AllowFiltering    = true;
            this.fg.ColumnInfo        = componentResourceManager.GetString("fg.ColumnInfo");
            this.fg.Font              = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold);
            this.fg.HighLight         = HighLightEnum.Never;
            this.fg.Location          = new Point(7, 222);
            this.fg.Name              = "fg";
            this.fg.Rows.DefaultSize  = 21;
            this.fg.Size              = new Size(1120, 97);
            this.fg.StyleInfo         = componentResourceManager.GetString("fg.StyleInfo");
            this.fg.TabIndex          = 92;
            this.Label3.BackColor     = Color.SteelBlue;
            this.Label3.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label3.ForeColor     = Color.White;
            this.Label3.Location      = new Point(12, 19);
            this.Label3.Name          = "Label3";
            this.Label3.Size          = new Size(173, 32);
            this.Label3.TabIndex      = 94;
            this.Label3.Text          = "Corte:";
            this.Label3.TextAlign     = ContentAlignment.MiddleLeft;
            this.Label1.BackColor     = Color.SteelBlue;
            this.Label1.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label1.ForeColor     = Color.White;
            this.Label1.Location      = new Point(12, 166);
            this.Label1.Name          = "Label1";
            this.Label1.Size          = new Size(173, 32);
            this.Label1.TabIndex      = 107;
            this.Label1.Text          = "Material:";
            this.Label1.TextAlign     = ContentAlignment.MiddleLeft;
            this.Label2.BackColor     = Color.SteelBlue;
            this.Label2.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label2.ForeColor     = Color.White;
            this.Label2.Location      = new Point(12, 56);
            this.Label2.Name          = "Label2";
            this.Label2.Size          = new Size(173, 32);
            this.Label2.TabIndex      = 108;
            this.Label2.Text          = "Estilo:";
            this.Label2.TextAlign     = ContentAlignment.MiddleLeft;
            this.Label4.BackColor     = Color.SteelBlue;
            this.Label4.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label4.ForeColor     = Color.White;
            this.Label4.Location      = new Point(12, 93);
            this.Label4.Name          = "Label4";
            this.Label4.Size          = new Size(173, 32);
            this.Label4.TabIndex      = 109;
            this.Label4.Text          = "Color:";
            this.Label4.TextAlign     = ContentAlignment.MiddleLeft;
            this.Label5.BackColor     = Color.SteelBlue;
            this.Label5.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.Label5.ForeColor     = Color.White;
            this.Label5.Location      = new Point(12, 129);
            this.Label5.Name          = "Label5";
            this.Label5.Size          = new Size(173, 32);
            this.Label5.TabIndex      = 110;
            this.Label5.Text          = "Escala:";
            this.Label5.TextAlign     = ContentAlignment.MiddleLeft;
            this.escala.BackColor     = Color.FromArgb((int)byte.MaxValue, (int)byte.MaxValue, 128);
            this.escala.BorderStyle   = BorderStyle.Fixed3D;
            this.escala.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold);
            this.escala.Location      = new Point(202, 131);
            this.escala.Name          = "escala";
            this.escala.Size          = new Size(92, 32);
            this.escala.TabIndex      = 111;
            this.escala.Text          = " ";
            this.escala.TextAlign     = ContentAlignment.MiddleCenter;
            this.estilo.BackColor     = Color.FromArgb((int)byte.MaxValue, (int)byte.MaxValue, 128);
            this.estilo.BorderStyle   = BorderStyle.Fixed3D;
            this.estilo.Font          = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold);
            this.estilo.Location      = new Point(202, 56);
            this.estilo.Name          = "estilo";
            this.estilo.Size          = new Size(428, 32);
            this.estilo.TabIndex      = 112;
            this.estilo.Text          = " ";
            this.estilo.TextAlign     = ContentAlignment.MiddleLeft;
            this.colo.BackColor       = Color.FromArgb((int)byte.MaxValue, (int)byte.MaxValue, 128);
            this.colo.BorderStyle     = BorderStyle.Fixed3D;
            this.colo.Font            = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold);
            this.colo.Location        = new Point(202, 93);
            this.colo.Name            = "colo";
            this.colo.Size            = new Size(428, 32);
            this.colo.TabIndex        = 113;
            this.colo.Text            = " ";
            this.colo.TextAlign       = ContentAlignment.MiddleLeft;
            this.material.BackColor   = Color.FromArgb((int)byte.MaxValue, (int)byte.MaxValue, 128);
            this.material.Font        = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold);
            this.material.Location    = new Point(201, 171);
            this.material.Name        = "material";
            this.material.Size        = new Size(429, 26);
            this.material.TabIndex    = 129;
            this.upc.AllowFiltering   = true;
            this.upc.AutoClipboard    = true;
            this.upc.ColumnInfo       = componentResourceManager.GetString("upc.ColumnInfo");
            this.upc.Font             = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold);
            this.upc.HighLight        = HighLightEnum.Never;
            this.upc.Location         = new Point(7, 346);
            this.upc.Name             = "upc";
            this.upc.Rows.DefaultSize = 21;
            this.upc.Size             = new Size(1124, 92);
            this.upc.StyleInfo        = componentResourceManager.GetString("upc.StyleInfo");
            this.upc.TabIndex         = 130;
            this.AutoScaleBaseSize    = new Size(7, 15);
            this.BackColor            = Color.FromArgb(222, 236, 237);
            this.ClientSize           = new Size(1139, 603);
            this.Controls.Add((Control)this.upc);
            this.Controls.Add((Control)this.material);
            this.Controls.Add((Control)this.colo);
            this.Controls.Add((Control)this.estilo);
            this.Controls.Add((Control)this.escala);
            this.Controls.Add((Control)this.Label5);
            this.Controls.Add((Control)this.Label4);
            this.Controls.Add((Control)this.Label2);
            this.Controls.Add((Control)this.Label1);
            this.Controls.Add((Control)this.Cancela);
            this.Controls.Add((Control)this.si);
            this.Controls.Add((Control)this.corte);
            this.Controls.Add((Control)this.Label3);
            this.Controls.Add((Control)this.fg);
            this.Controls.Add((Control)this.graba);
            this.Font            = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
            this.ForeColor       = Color.Black;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = nameof(Cajas25);
            this.ShowInTaskbar   = false;
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "Revisa UPC";
            this.fg.EndInit();
            this.upc.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 30
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(F9004));
            Style captionStyle        = new Style();
            Style evenRowStyle        = new Style();
            Style footerStyle         = new Style();
            Style headingStyle        = new Style();
            Style highLightRowStyle   = new Style();
            Style oddRowStyle         = new Style();
            Style recordSelectorStyle = new Style();
            Style style = new Style();

            this.c1TrueDBGrid1     = new C1TrueDBGrid();
            this.butSave           = new Button();
            this.groupBox1         = new GroupBox();
            this.c1TrueDBDropdown1 = new C1TrueDBDropdown();
            ((ISupportInitialize)this.c1TrueDBGrid1).BeginInit();
            ((ISupportInitialize)this.c1TrueDBDropdown1).BeginInit();
            base.SuspendLayout();
            this.c1TrueDBGrid1.Anchor         = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.c1TrueDBGrid1.GroupByCaption = "Drag a column header here to group by that column";
            this.c1TrueDBGrid1.Images.Add((Image)componentResourceManager.GetObject("c1TrueDBGrid1.Images"));
            this.c1TrueDBGrid1.Location               = new Point(13, 16);
            this.c1TrueDBGrid1.Name                   = "c1TrueDBGrid1";
            this.c1TrueDBGrid1.PreviewInfo.Location   = new Point(0, 0);
            this.c1TrueDBGrid1.PreviewInfo.Size       = new Size(0, 0);
            this.c1TrueDBGrid1.PreviewInfo.ZoomFactor = 75.0;
            this.c1TrueDBGrid1.PrintInfo.PageSettings = (PageSettings)componentResourceManager.GetObject("c1TrueDBGrid1.PrintInfo.PageSettings");
            this.c1TrueDBGrid1.Size                   = new Size(650, 258);
            this.c1TrueDBGrid1.TabIndex               = 0;
            this.c1TrueDBGrid1.Text                   = "c1TrueDBGrid1";
            this.c1TrueDBGrid1.AfterFilter           += new FilterEventHandler(this.c1TrueDBGrid1_AfterFilter);
            this.c1TrueDBGrid1.BeforeUpdate          += new C1.Win.C1TrueDBGrid.CancelEventHandler(this.c1TrueDBGrid1_BeforeUpdate);
            this.c1TrueDBGrid1.OnAddNew              += new EventHandler(this.c1TrueDBGrid1_OnAddNew);
            this.c1TrueDBGrid1.PropBag                = componentResourceManager.GetString("c1TrueDBGrid1.PropBag");
            this.butSave.Anchor     = (AnchorStyles.Bottom | AnchorStyles.Right);
            this.butSave.Font       = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.butSave.Image      = (Image)componentResourceManager.GetObject("butSave.Image");
            this.butSave.ImageAlign = ContentAlignment.MiddleLeft;
            this.butSave.ImeMode    = ImeMode.NoControl;
            this.butSave.Location   = new Point(562, 295);
            this.butSave.Name       = "butSave";
            this.butSave.Size       = new Size(101, 28);
            this.butSave.TabIndex   = 19;
            this.butSave.Text       = "      &Lưu dữ liệu";
            this.butSave.UseVisualStyleBackColor = true;
            this.butSave.Click                        += new EventHandler(this.butSave_Click);
            this.groupBox1.Anchor                      = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            this.groupBox1.Font                        = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.groupBox1.Location                    = new Point(13, 278);
            this.groupBox1.Name                        = "groupBox1";
            this.groupBox1.Size                        = new Size(650, 9);
            this.groupBox1.TabIndex                    = 17;
            this.groupBox1.TabStop                     = false;
            this.c1TrueDBDropdown1.AllowColMove        = true;
            this.c1TrueDBDropdown1.AllowColSelect      = true;
            this.c1TrueDBDropdown1.AllowRowSizing      = RowSizingEnum.AllRows;
            this.c1TrueDBDropdown1.AlternatingRows     = false;
            this.c1TrueDBDropdown1.CaptionStyle        = captionStyle;
            this.c1TrueDBDropdown1.ColumnCaptionHeight = 17;
            this.c1TrueDBDropdown1.ColumnFooterHeight  = 17;
            this.c1TrueDBDropdown1.EvenRowStyle        = evenRowStyle;
            this.c1TrueDBDropdown1.FetchRowStyles      = false;
            this.c1TrueDBDropdown1.FooterStyle         = footerStyle;
            this.c1TrueDBDropdown1.HeadingStyle        = headingStyle;
            this.c1TrueDBDropdown1.HighLightRowStyle   = highLightRowStyle;
            this.c1TrueDBDropdown1.Images.Add((Image)componentResourceManager.GetObject("c1TrueDBDropdown1.Images"));
            this.c1TrueDBDropdown1.Location            = new Point(197, 58);
            this.c1TrueDBDropdown1.Name                = "c1TrueDBDropdown1";
            this.c1TrueDBDropdown1.OddRowStyle         = oddRowStyle;
            this.c1TrueDBDropdown1.RecordSelectorStyle = recordSelectorStyle;
            this.c1TrueDBDropdown1.RowDivider.Color    = Color.DarkGray;
            this.c1TrueDBDropdown1.RowDivider.Style    = LineStyleEnum.Single;
            this.c1TrueDBDropdown1.RowSubDividerColor  = Color.DarkGray;
            this.c1TrueDBDropdown1.ScrollTips          = false;
            this.c1TrueDBDropdown1.Size                = new Size(100, 150);
            this.c1TrueDBDropdown1.Style               = style;
            this.c1TrueDBDropdown1.TabIndex            = 20;
            this.c1TrueDBDropdown1.Text                = "c1TrueDBDropdown1";
            this.c1TrueDBDropdown1.Visible             = false;
            this.c1TrueDBDropdown1.PropBag             = componentResourceManager.GetString("c1TrueDBDropdown1.PropBag");
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(679, 332);
            base.Controls.Add(this.c1TrueDBDropdown1);
            base.Controls.Add(this.butSave);
            base.Controls.Add(this.groupBox1);
            base.Controls.Add(this.c1TrueDBGrid1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.KeyPreview      = true;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "F9004";
            base.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "F9004 - Thiết lập thông số mail";
            base.Load           += new EventHandler(this.F9004_Load);
            ((ISupportInitialize)this.c1TrueDBGrid1).EndInit();
            ((ISupportInitialize)this.c1TrueDBDropdown1).EndInit();
            base.ResumeLayout(false);
        }