Inheritance: ContentControl
示例#1
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		SuspendLayout ();
		// 
		// _groupBox
		// 
		_groupBox = new GroupBox ();
		_groupBox.AllowDrop = true;
		_groupBox.Dock = DockStyle.Top;
		_groupBox.Height = 100;
		_groupBox.TabIndex = 0;
		_groupBox.TabStop = false;
		_groupBox.DragOver += new DragEventHandler (GroupBox_DragOver);
		_groupBox.MouseDown += new MouseEventHandler (GroupBox_MouseDown);
		Controls.Add (_groupBox);
		// 
		// _eventsText
		// 
		_eventsText = new TextBox ();
		_eventsText.Dock = DockStyle.Bottom;
		_eventsText.Height = 150;
		_eventsText.Multiline = true;
		Controls.Add (_eventsText);
		// 
		// MainForm
		// 
		ClientSize = new Size (400, 265);
		Location = new Point (200, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #381889";
		Load += new EventHandler (MainForm_Load);
		ResumeLayout (false);
	}
示例#2
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		SuspendLayout ();
		// 
		// _groupBox
		// 
		_groupBox = new GroupBox ();
		_groupBox.AllowDrop = true;
		_groupBox.Dock = DockStyle.Top;
		_groupBox.Height = 100;
		_groupBox.TabIndex = 0;
		_groupBox.TabStop = false;
		_groupBox.Text = "Drop a file here";
		_groupBox.DragDrop += new DragEventHandler (GroupBox_DragDrop);
		_groupBox.DragEnter += new DragEventHandler (GroupBox_DragEnter);
		Controls.Add (_groupBox);
		// 
		// _filesListBox
		// 
		_filesListBox = new ListBox ();
		_filesListBox.Dock = DockStyle.Bottom;
		_filesListBox.Height = 150;
		Controls.Add (_filesListBox);
		// 
		// MainForm
		// 
		ClientSize = new Size (400, 265);
		Location = new Point (200, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #324251";
		Load += new EventHandler (MainForm_Load);
		ResumeLayout (false);
	}
示例#3
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _groupBox1
		// 
		_groupBox1 = new GroupBox ();
		_groupBox1.Location = new Point (8, 8);
		_groupBox1.Size = new Size (140, 90);
		_groupBox1.Text = "1";
		Controls.Add (_groupBox1);
		// 
		// _comboBox1
		// 
		_comboBox1 = new ComboBox ();
		_comboBox1.DisplayMember = "displaymember";
		_comboBox1.Location = new Point (8, 20);
		_comboBox1.ValueMember = "valuemember";
		_groupBox1.Controls.Add (_comboBox1);
		// 
		// _selectedValueText1
		// 
		_selectedValueText1 = new TextBox ();
		_selectedValueText1.Location = new Point (8, 55);
		_selectedValueText1.Size = new Size (120, 20);
		_selectedValueText1.Text = "";
		_groupBox1.Controls.Add (_selectedValueText1);
		// 
		// _groupBox2
		// 
		_groupBox2 = new GroupBox ();
		_groupBox2.Location = new Point (150, 8);
		_groupBox2.Size = new Size (140, 90);
		_groupBox2.Text = "2";
		Controls.Add (_groupBox2);
		// 
		// _comboBox2
		// 
		_comboBox2 = new ComboBox ();
		_comboBox2.DisplayMember = "displaymember";
		_comboBox2.Location = new Point (8, 20);
		_comboBox2.ValueMember = "valuemember";
		_groupBox2.Controls.Add (_comboBox2);
		// 
		// _selectedValueText2
		// 
		_selectedValueText2 = new TextBox ();
		_selectedValueText2.Location = new Point (8, 55);
		_selectedValueText2.Size = new Size (120, 20);
		_selectedValueText2.Text = "";
		_groupBox2.Controls.Add (_selectedValueText2);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 110);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81610";
		Load += new EventHandler (MainForm_Load);
	}
示例#4
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _dataGridView
		// 
		_dataGridView = new DataGridView ();
		_dataGridView.Dock = DockStyle.Top;
		_dataGridView.Height = 100;
		Controls.Add (_dataGridView);
		// 
		// _nameTextBoxColumn
		// 
		_nameTextBoxColumn = new DataGridViewTextBoxColumn ();
		_nameTextBoxColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
		_nameTextBoxColumn.HeaderText = "Name";
		_dataGridView.Columns.Add (_nameTextBoxColumn);
		// 
		// _columnHeadersHeightSizeModeGroupBox
		// 
		_columnHeadersHeightSizeModeGroupBox = new GroupBox ();
		_columnHeadersHeightSizeModeGroupBox.Dock = DockStyle.Bottom;
		_columnHeadersHeightSizeModeGroupBox.Height = 85;
		_columnHeadersHeightSizeModeGroupBox.Text = "ColumnHeadersHeightSizeMode";
		Controls.Add (_columnHeadersHeightSizeModeGroupBox);
		// 
		// _autoSizeHeightSizeMode
		// 
		_autoSizeHeightSizeMode = new RadioButton ();
		_autoSizeHeightSizeMode.Location = new Point (8, 16);
		_autoSizeHeightSizeMode.Text = "AutoSize";
		_autoSizeHeightSizeMode.CheckedChanged += new EventHandler (AutoSizeHeightSizeMode_CheckedChanged);
		_columnHeadersHeightSizeModeGroupBox.Controls.Add (_autoSizeHeightSizeMode);
		// 
		// _disableResizingHeightSizeMode
		// 
		_disableResizingHeightSizeMode = new RadioButton ();
		_disableResizingHeightSizeMode.Location = new Point (8, 36);
		_disableResizingHeightSizeMode.Text = "DisableResizing";
		_disableResizingHeightSizeMode.CheckedChanged += new EventHandler (DisableResizingHeightSizeMode_CheckedChanged);
		_columnHeadersHeightSizeModeGroupBox.Controls.Add (_disableResizingHeightSizeMode);
		// 
		// _enableResizingHeightSizeMode
		// 
		_enableResizingHeightSizeMode = new RadioButton ();
		_enableResizingHeightSizeMode.Checked = true;
		_enableResizingHeightSizeMode.Location = new Point (8, 56);
		_enableResizingHeightSizeMode.Text = "EnableResizing";
		_enableResizingHeightSizeMode.CheckedChanged += new EventHandler (EnableResizingHeightSizeMode_CheckedChanged);
		_columnHeadersHeightSizeModeGroupBox.Controls.Add (_enableResizingHeightSizeMode);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 195);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82221";
		Load += new EventHandler (MainForm_Load);
	}
示例#5
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		SuspendLayout ();
		// 
		// _groupBoxA
		// 
		_groupBoxA = new GroupBox ();
		_groupBoxA.AllowDrop = true;
		_groupBoxA.Location = new Point (8, 8);
		_groupBoxA.Size = new Size (185, 100);
		_groupBoxA.TabIndex = 0;
		_groupBoxA.TabStop = false;
		_groupBoxA.Text = "A";
		_groupBoxA.DragDrop += new DragEventHandler (GroupBoxA_DragDrop);
		_groupBoxA.DragEnter += new DragEventHandler (GroupBoxA_DragEnter);
		_groupBoxA.DragLeave += new EventHandler (GroupBoxA_DragLeave);
		_groupBoxA.DragOver += new DragEventHandler (GroupBoxA_DragOver);
		_groupBoxA.MouseDown += new MouseEventHandler (GroupBoxA_MouseDown);
		Controls.Add (_groupBoxA);
		// 
		// _groupBoxB
		// 
		_groupBoxB = new GroupBox ();
		_groupBoxB.AllowDrop = true;
		_groupBoxB.Location = new Point (203, 8);
		_groupBoxB.Size = new Size (185, 100);
		_groupBoxB.TabIndex = 0;
		_groupBoxB.TabStop = false;
		_groupBoxB.Text = "B";
		_groupBoxB.DragDrop += new DragEventHandler (GroupBoxB_DragDrop);
		_groupBoxB.DragEnter += new DragEventHandler (GroupBoxB_DragEnter);
		_groupBoxB.DragLeave += new EventHandler (GroupBoxB_DragLeave);
		_groupBoxB.DragOver += new DragEventHandler (GroupBoxB_DragOver);
		_groupBoxB.MouseDown += new MouseEventHandler (GroupBoxB_MouseDown);
		Controls.Add (_groupBoxB);
		// 
		// _eventsText
		// 
		_eventsText = new TextBox ();
		_eventsText.Dock = DockStyle.Bottom;
		_eventsText.Height = 150;
		_eventsText.Multiline = true;
		Controls.Add (_eventsText);
		// 
		// MainForm
		// 
		ClientSize = new Size (400, 265);
		Location = new Point (200, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #381886";
		Load += new EventHandler (MainForm_Load);
		ResumeLayout (false);
	}
示例#6
0
    /// <summary>
    /// 
    /// </summary>
    /// <param name="Form"></param>
    /// <returns></returns>
    public void configurationInterface(Control control)
    {
        int i = 0; //sentinel value
        System.Drawing.Point location = new System.Drawing.Point(20, 20);

        //
        //GroupBox
        //
        this.groupBoxCacheSettings = new GroupBox();
        this.groupBoxCacheSettings.Location = new System.Drawing.Point(100, 100);
        this.groupBoxCacheSettings.Name = "groupBoxCacheSettings";
        this.groupBoxCacheSettings.Text = "Cache Settings";
        this.groupBoxCacheSettings.AutoSize = true;
        this.groupBoxCacheSettings.Dock = DockStyle.Fill;
        //this.groupBoxCacheSettings.Size = new System.Drawing.Size(500, 100);
        //this.groupBoxCacheSettings.TabIndex = 16;

        //
        //Labels
        //
        labelProperties = new Label[Properties.Length];
        for (i = 0; i < Properties.Length; i++)
        {
            labelProperties[i] = new Label();
            labelProperties[i].Text = Properties[i].name;
            labelProperties[i].Location = location;

            location.Y += 40;
        }
        this.groupBoxCacheSettings.Controls.AddRange(labelProperties);

        //
        //Text boxes
        //
        location = new System.Drawing.Point(150, 20);
        textBoxProperties = new TextBox[Properties.Length];
        for (i = 0; i < Properties.Length; i++)
        {
            textBoxProperties[i] = new TextBox();
            textBoxProperties[i].Text = Properties[i].location;
            textBoxProperties[i].Location = location;

            location.Y += 40;
        }
        this.groupBoxCacheSettings.Controls.AddRange(textBoxProperties);

        //
        //Attach controls
        //
        //control.Controls.Clear();
        control.Controls.Add(this.groupBoxCacheSettings);
        //control.Controls.AddRange(labelProperties);
    }
示例#7
0
    public override void Build(IProduct product)
    {
        var panel = new StackPanel {Orientation = Orientation.Vertical, Margin = new Thickness(0, 0, 0, 0)};
        var infoPanel = new StackPanel {Orientation = Orientation.Horizontal, Margin = new Thickness(10, 0, 5, 0)};
        var purchasePanel = new StackPanel {Orientation = Orientation.Vertical, Margin = new Thickness(0, 0, 0, 0)};

        if (!HasProperty("Count")) {
            _boundValues.Add("Count", new ProductProperty<uint>("Count", product.Count) {HideGUILabel = true});
        }

        infoPanel.Children.Add(new Label {Content = "Brand: "});
        QuickBind(infoPanel.Children, GetPropertyView("Brand"));

        infoPanel.Children.Add(new Label { Content = "Size: " });
        QuickBind(infoPanel.Children, GetPropertyView("Size"));

        infoPanel.Children.Add(new Label { Content = "Number of Jackets: " });
        QuickBind(infoPanel.Children, GetPropertyView("Count"));

        purchasePanel.Children.Add(new Label { Content = "Cost: " });
        QuickBind(purchasePanel.Children, GetPropertyView("Cost"));

        purchasePanel.Children.Add(new Label { Content = "Purchaser: " });
        QuickBind(purchasePanel.Children, GetPropertyView("Purchaser"));

        purchasePanel.Children.Add(new Label { Content = "Date of Purchase: " });
        QuickBind(purchasePanel.Children, GetPropertyView("Purchase Date"));

        var infoBox = new GroupBox { Header = "Jacket Information", Content = infoPanel };
        var purchaseBox = new GroupBox { Header = "Purchase Information", Content = purchasePanel };

        panel.Children.Add(infoBox);
        panel.Children.Add(purchaseBox);

        _gui = panel;
    }
示例#8
0
		void VerifyGroup(GroupBox group, int width, int height, Box nextBox, Box containingBox, Box firstBox, Box lastBox, string label)
		{
			VerifyBox(group, width, height, nextBox, containingBox, label);
			Assert.AreEqual(firstBox, group.FirstBox, label + " - first box");
			Assert.AreEqual(lastBox, group.LastBox, label + " - last box");
			Box box;
			for (box = group.FirstBox; box != null; box = box.Next)
			{
				Assert.AreEqual(group, box.Container, label + " - child boxes have this as container");
				if (box.Next == null)
					Assert.AreEqual(box, group.LastBox, label + " - last box is end of chain");
			}
		}
示例#9
0
        public static Character InitializeMaps(string firstMapFolder, string characterImage, GroupBox grpBox, Func <string, Bitmap> LoadImg)
        {
            Map.grpBox = grpBox;
            loadImg    = LoadImg;

            Map map = new Map();

            map.LoadMap(firstMapFolder);

            // resize GroupBox to match loaded map
            grpBox.Width  = CurrentMap.grpMap.Width;
            grpBox.Height = CurrentMap.grpMap.Height;
            grpBox.Top    = 5;
            grpBox.Left   = 5;

            // initialize for game
            encounterChance = 0.15;
            rand            = new Random();
            Game.GetGame().ChangeState(GameState.ON_MAP);

            // initialize character picture box
            PictureBox pb = new PictureBox()
            {
                Image    = LoadImg(characterImage),
                SizeMode = PictureBoxSizeMode.StretchImage,
                Width    = BLOCK_SIZE,
                Height   = BLOCK_SIZE,
                BackgroundImageLayout = ImageLayout.Stretch
            };

            Position p   = new Position(map.CharacterStartRow, map.CharacterStartCol);
            Position pPB = RowColToTopLeft(p);

            pb.Top  = pPB.row;
            pb.Left = pPB.col;
            grpBox.Controls.Add(pb);
            pb.BringToFront();

            // initialize the character and return it
            character = new Character(pb, p);
            return(character);
        }
示例#10
0
 private void InitializeComponent()
 {
     this.groupBox1   = new GroupBox();
     this._tbSec      = new NumericUpDown();
     this.label2      = new Label();
     this._tbMin      = new NumericUpDown();
     this._tbHour     = new NumericUpDown();
     this.label1      = new Label();
     this._btnSetTime = new Button();
     this.groupBox1.SuspendLayout();
     this._tbSec.BeginInit();
     this._tbMin.BeginInit();
     this._tbHour.BeginInit();
     base.SuspendLayout();
     this.groupBox1.Controls.Add(this._tbSec);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this._tbMin);
     this.groupBox1.Controls.Add(this._tbHour);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Font     = new Font("Calibri", 18f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.groupBox1.Location = new Point(12, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new Size(0x13f, 100);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Time";
     this._tbSec.Font        = new Font("Calibri", 24f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this._tbSec.Location    = new Point(0xe9, 0x24);
     int[] bits = new int[4];
     bits[0]               = 0x3b;
     this._tbSec.Maximum   = new decimal(bits);
     this._tbSec.Name      = "_tbSec";
     this._tbSec.Size      = new Size(0x42, 0x2f);
     this._tbSec.TabIndex  = 7;
     this._tbSec.TextAlign = HorizontalAlignment.Center;
     int[] numArray2 = new int[4];
     numArray2[0]          = 0x17;
     this._tbSec.Value     = new decimal(numArray2);
     this.label2.AutoSize  = true;
     this.label2.Font      = new Font("Calibri", 21.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.label2.Location  = new Point(0xca, 0x26);
     this.label2.Name      = "label2";
     this.label2.Size      = new Size(0x17, 0x24);
     this.label2.TabIndex  = 6;
     this.label2.Text      = ":";
     this.label2.TextAlign = ContentAlignment.MiddleCenter;
     this._tbMin.Font      = new Font("Calibri", 24f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this._tbMin.Location  = new Point(0x80, 0x24);
     int[] numArray3 = new int[4];
     numArray3[0]          = 0x3b;
     this._tbMin.Maximum   = new decimal(numArray3);
     this._tbMin.Name      = "_tbMin";
     this._tbMin.Size      = new Size(0x42, 0x2f);
     this._tbMin.TabIndex  = 5;
     this._tbMin.TextAlign = HorizontalAlignment.Center;
     int[] numArray4 = new int[4];
     numArray4[0]          = 0x17;
     this._tbMin.Value     = new decimal(numArray4);
     this._tbHour.Font     = new Font("Calibri", 24f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this._tbHour.Location = new Point(0x17, 0x24);
     int[] numArray5 = new int[4];
     numArray5[0]           = 0x17;
     this._tbHour.Maximum   = new decimal(numArray5);
     this._tbHour.Name      = "_tbHour";
     this._tbHour.Size      = new Size(0x42, 0x2f);
     this._tbHour.TabIndex  = 4;
     this._tbHour.TextAlign = HorizontalAlignment.Center;
     int[] numArray6 = new int[4];
     numArray6[0]              = 0x17;
     this._tbHour.Value        = new decimal(numArray6);
     this.label1.AutoSize      = true;
     this.label1.Font          = new Font("Calibri", 21.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.label1.Location      = new Point(0x62, 0x26);
     this.label1.Name          = "label1";
     this.label1.Size          = new Size(0x17, 0x24);
     this.label1.TabIndex      = 1;
     this.label1.Text          = ":";
     this.label1.TextAlign     = ContentAlignment.MiddleCenter;
     this._btnSetTime.Font     = new Font("Calibri", 18f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this._btnSetTime.Location = new Point(0x79, 0x7c);
     this._btnSetTime.Margin   = new Padding(2, 3, 2, 3);
     this._btnSetTime.Name     = "_btnSetTime";
     this._btnSetTime.Size     = new Size(0x65, 0x26);
     this._btnSetTime.TabIndex = 0;
     this._btnSetTime.Text     = "Set Time";
     this._btnSetTime.UseVisualStyleBackColor = true;
     this._btnSetTime.Click  += new EventHandler(this.OnSetTimeClicked);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     this.BackColor           = Color.White;
     base.ClientSize          = new Size(0x157, 0xad);
     base.Controls.Add(this._btnSetTime);
     base.Controls.Add(this.groupBox1);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox     = false;
     base.MinimizeBox     = false;
     base.Name            = "SetTimeDlg";
     this.Text            = "Set Time";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this._tbSec.EndInit();
     this._tbMin.EndInit();
     this._tbHour.EndInit();
     base.ResumeLayout(false);
 }
示例#11
0
        /// <summary>
        /// Generate a CheckBox and add it to a GroupBox
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="i_CheckBoxValues"></param>
        /// <param name="i_GroupBox"></param>
        /// <param name="i_EventHandler"></param>
        public static void GenerateCheckBoxesAndAddToGroupBox <T>(List <T> i_CheckBoxValues, GroupBox i_GroupBox, EventHandler i_EventHandler) where T : struct, System.IConvertible
        {
            int i = 0;

            foreach (T value in i_CheckBoxValues)
            {
                CheckBox checkBox = new CheckBox();
                checkBox.AutoSize = true;
                checkBox.Location = new Point(k_CheckBoxLocationX, k_CheckBoxLocationYStart + (i * k_CheckBoxLocationYDiff));
                checkBox.Name     = value.ToString();
                checkBox.TabIndex = i + 1;
                checkBox.Text     = value.ToString();
                checkBox.UseVisualStyleBackColor = true;
                checkBox.CheckedChanged         += i_EventHandler;
                i_GroupBox.Controls.Add(checkBox);
                i++;
            }
        }
示例#12
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		_tabPage = new TabPage ();
		_tabControl = new TabControl ();
		_groupBoxA = new GroupBox ();
		_groupBoxB = new GroupBox ();
		_tabPage.SuspendLayout ();
		_tabControl.SuspendLayout ();
		SuspendLayout ();
		// 
		// _bugDescriptionLabel
		// 
		_bugDescriptionLabel = new Label ();
		_bugDescriptionLabel.Location = new Point (8, 250);
		_bugDescriptionLabel.Size = new Size (235, 100);
		_bugDescriptionLabel.Text = string.Format (CultureInfo.InvariantCulture,
			"Expected result:{0}{0}" +
			"1. Groupboxes are displayed on tab page.{0}{0}" +
			"2. Border of groupboxes does not strike through label.",
			Environment.NewLine);
		// 
		// _tabPage
		// 
		_tabPage.BackColor = Color.Transparent;
		_tabPage.Controls.Add (_groupBoxA);
		_tabPage.Controls.Add (_groupBoxB);
		_tabPage.Cursor = Cursors.Default;
		_tabPage.Font = new Font ("Microsoft Sans Serif", 8F, FontStyle.Regular, GraphicsUnit.Point, ((byte) (0)));
		_tabPage.ImageIndex = 1;
		_tabPage.Location = new Point (4, 22);
		_tabPage.Size = new Size (225, 202);
		_tabPage.TabIndex = 1;
		_tabPage.Text = "Tab";
		// 
		// _tabControl
		// 
		_tabControl.Controls.Add (_tabPage);
		_tabControl.Cursor = Cursors.Arrow;
		_tabControl.Enabled = false;
		_tabControl.Location = new Point (8, 8);
		_tabControl.RightToLeft = RightToLeft.No;
		_tabControl.SelectedIndex = 0;
		_tabControl.Size = new Size (233, 228);
		_tabControl.TabIndex = 0;
		// 
		// _groupBoxA
		// 
		_groupBoxA.ForeColor = Color.Black;
		_groupBoxA.Location = new Point (16, 16);
		_groupBoxA.Size = new Size (192, 77);
		_groupBoxA.TabIndex = 14;
		_groupBoxA.TabStop = false;
		_groupBoxA.Text = "GroupboxA";
		// 
		// _groupBoxB
		// 
		_groupBoxB.ForeColor = Color.Black;
		_groupBoxB.Location = new Point (16, 97);
		_groupBoxB.Size = new Size (192, 93);
		_groupBoxB.TabIndex = 15;
		_groupBoxB.TabStop = false;
		_groupBoxB.Text = "GroupboxB";
		// 
		// FormConfiguration
		// 
		AutoScaleBaseSize = new Size (5, 13);
		ClientSize = new Size (247, 330);
		Controls.Add (_bugDescriptionLabel);
		Controls.Add (_tabControl);
		FormBorderStyle = FormBorderStyle.FixedSingle;
		MaximizeBox = false;
		StartPosition = FormStartPosition.CenterScreen;
		Text = "bug #79225";
		Load += new System.EventHandler (MainForm_Load);
		_tabPage.ResumeLayout (false);
		_tabControl.ResumeLayout (false);
		ResumeLayout (false);
	}
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.button1          = new Syncfusion.Windows.Forms.ButtonAdv();
     this.label3           = new System.Windows.Forms.Label();
     this.comboBox1        = new System.Windows.Forms.ComboBox();
     this.label4           = new System.Windows.Forms.Label();
     this.numericUpDown1   = new System.Windows.Forms.NumericUpDown();
     this.label20          = new System.Windows.Forms.Label();
     this.label5           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.label6           = new System.Windows.Forms.Label();
     this.checkBox1        = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox2        = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.label1           = new System.Windows.Forms.Label();
     this.toolTip1         = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.wordDocxRadioBtn = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.wordDocRadioBtn  = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.pdfRadioBtn      = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pdfRadioBtn)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance         = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button1.BeforeTouchSize    = new System.Drawing.Size(108, 23);
     this.button1.BorderStyleAdv     = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.Dashed;
     this.button1.ComboEditBackColor = System.Drawing.Color.Silver;
     this.button1.Font                    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor               = System.Drawing.Color.White;
     this.button1.IsBackStageButton       = false;
     this.button1.KeepFocusRectangle      = false;
     this.button1.Location                = new System.Drawing.Point(269, 325);
     this.button1.Name                    = "button1";
     this.button1.Office2007ColorScheme   = Syncfusion.Windows.Forms.Office2007Theme.Managed;
     this.button1.Size                    = new System.Drawing.Size(108, 23);
     this.button1.TabIndex                = 26;
     this.button1.Text                    = "Generate";
     this.button1.UseVisualStyle          = true;
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(196, 156);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(87, 13);
     this.label3.TabIndex = 30;
     this.label3.Text     = "Number Format";
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location          = new System.Drawing.Point(284, 153);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(93, 21);
     this.comboBox1.TabIndex = 31;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(196, 192);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(47, 13);
     this.label4.TabIndex = 32;
     this.label4.Text     = "Start at:";
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(284, 190);
     this.numericUpDown1.Name     = "numericUpDown1";
     this.numericUpDown1.Size     = new System.Drawing.Size(93, 22);
     this.numericUpDown1.TabIndex = 33;
     this.numericUpDown1.Value    = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     //
     // label20
     //
     this.label20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(143)))), ((int)(((byte)(164)))), ((int)(((byte)(190)))));
     this.label20.Location  = new System.Drawing.Point(199, 133);
     this.label20.Name      = "label20";
     this.label20.Size      = new System.Drawing.Size(178, 1);
     this.label20.TabIndex  = 34;
     //
     // label5
     //
     this.label5.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.ForeColor  = System.Drawing.Color.Black;
     this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label5.Location   = new System.Drawing.Point(199, 103);
     this.label5.Name       = "label5";
     this.label5.Size       = new System.Drawing.Size(102, 27);
     this.label5.TabIndex   = 35;
     this.label5.Text       = "Page Number";
     this.label5.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor  = System.Drawing.Color.Black;
     this.label2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.label2.Location   = new System.Drawing.Point(7, 103);
     this.label2.Name       = "label2";
     this.label2.Size       = new System.Drawing.Size(132, 27);
     this.label2.TabIndex   = 37;
     this.label2.Text       = "Header And Footer";
     this.label2.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label6
     //
     this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(143)))), ((int)(((byte)(164)))), ((int)(((byte)(190)))));
     this.label6.Location  = new System.Drawing.Point(7, 133);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(170, 1);
     this.label6.TabIndex  = 36;
     //
     // checkBox1
     //
     this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(186, 29);
     this.checkBox1.Border3DStyle      = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.checkBox1.BorderColor        = System.Drawing.Color.Black;
     this.checkBox1.Checked            = true;
     this.checkBox1.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.DrawFocusRectangle = false;
     this.checkBox1.Font          = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.GradientEnd   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.checkBox1.GradientStart = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.checkBox1.Location      = new System.Drawing.Point(6, 155);
     this.checkBox1.MetroColor    = System.Drawing.Color.Gray;
     this.checkBox1.Name          = "checkBox1";
     this.checkBox1.Size          = new System.Drawing.Size(186, 29);
     this.checkBox1.StretchImage  = false;
     this.checkBox1.Style         = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox1.TabIndex      = 38;
     this.checkBox1.Tag           = "scrolls";
     this.checkBox1.Text          = "Header and Footer For First Page";
     this.checkBox1.ThemesEnabled = false;
     //
     // checkBox2
     //
     this.checkBox2.BeforeTouchSize    = new System.Drawing.Size(182, 32);
     this.checkBox2.Border3DStyle      = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.checkBox2.BorderColor        = System.Drawing.Color.Black;
     this.checkBox2.Checked            = true;
     this.checkBox2.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.DrawFocusRectangle = false;
     this.checkBox2.Font          = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox2.GradientEnd   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.checkBox2.GradientStart = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.checkBox2.Location      = new System.Drawing.Point(6, 190);
     this.checkBox2.MetroColor    = System.Drawing.Color.Gray;
     this.checkBox2.Name          = "checkBox2";
     this.checkBox2.Size          = new System.Drawing.Size(182, 32);
     this.checkBox2.StretchImage  = false;
     this.checkBox2.Style         = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox2.TabIndex      = 39;
     this.checkBox2.Tag           = "scrolls";
     this.checkBox2.Text          = "Header and Footer For All Pages";
     this.checkBox2.ThemesEnabled = false;
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(389, 82);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 61;
     this.pictureBox1.TabStop  = false;
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
     this.label1.Location  = new System.Drawing.Point(4, 237);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(373, 56);
     this.label1.TabIndex  = 27;
     this.label1.Text      = "Click the button to view the generated Word document or PDF. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document and PDF viewer is required to view the resultant PDF.";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.wordDocxRadioBtn);
     this.groupBox1.Controls.Add(this.wordDocRadioBtn);
     this.groupBox1.Controls.Add(this.pdfRadioBtn);
     this.groupBox1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(6, 308);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(237, 51);
     this.groupBox1.TabIndex = 101;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Save As";
     //
     // worddocxRadioBtn
     //
     this.wordDocxRadioBtn.BeforeTouchSize = new System.Drawing.Size(54, 20);
     this.wordDocxRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocxRadioBtn.Checked         = true;
     this.wordDocxRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.wordDocxRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocxRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocxRadioBtn.Location        = new System.Drawing.Point(93, 20);
     this.wordDocxRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocxRadioBtn.Name            = "wordDocxRadioBtn";
     this.wordDocxRadioBtn.Size            = new System.Drawing.Size(54, 20);
     this.wordDocxRadioBtn.TabIndex        = 103;
     this.wordDocxRadioBtn.Text            = "DOCX";
     this.wordDocxRadioBtn.ThemesEnabled   = true;
     //
     // worddocRadioBtn
     //
     this.wordDocRadioBtn.BeforeTouchSize = new System.Drawing.Size(47, 20);
     this.wordDocRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.wordDocRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.wordDocRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.wordDocRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.wordDocRadioBtn.Location        = new System.Drawing.Point(6, 20);
     this.wordDocRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.wordDocRadioBtn.Name            = "wordDocRadioBtn";
     this.wordDocRadioBtn.Size            = new System.Drawing.Size(47, 20);
     this.wordDocRadioBtn.TabIndex        = 44;
     this.wordDocRadioBtn.Text            = "DOC";
     this.wordDocRadioBtn.ThemesEnabled   = true;
     //
     // pdfRadioBtn
     //
     this.pdfRadioBtn.BeforeTouchSize = new System.Drawing.Size(45, 20);
     this.pdfRadioBtn.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.pdfRadioBtn.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.pdfRadioBtn.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.pdfRadioBtn.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.pdfRadioBtn.Location        = new System.Drawing.Point(192, 20);
     this.pdfRadioBtn.MetroColor      = System.Drawing.Color.Empty;
     this.pdfRadioBtn.Name            = "pdfRadioBtn";
     this.pdfRadioBtn.Size            = new System.Drawing.Size(45, 20);
     this.pdfRadioBtn.TabIndex        = 45;
     this.pdfRadioBtn.Text            = "PDF";
     this.pdfRadioBtn.ThemesEnabled   = true;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
     this.BackColor         = System.Drawing.Color.White;
     this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.ClientSize        = new System.Drawing.Size(389, 373);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.checkBox2);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label20);
     this.Controls.Add(this.numericUpDown1);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.label1);
     this.DropShadow      = true;
     this.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Header and Footer";
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.wordDocxRadioBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.wordDocRadioBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pdfRadioBtn)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#14
0
        public String Note; // additional text to display in status bar

        public UnitTest(ZGE.Components.ZComponent parent) : base(parent)
        {
            Dock = Pos.Fill;
            SetSize(1024, 768);
            m_List = new Control.CollapsibleList(this);

            LeftDock.TabControl.AddPage("Unit tests", m_List);
            LeftDock.Width = 150;

            m_TextOutput = new Control.ListBox(BottomDock);
            m_Button = BottomDock.TabControl.AddPage("Output", m_TextOutput);
            BottomDock.Height = 200;

            m_DebugCheck = new Control.LabeledCheckBox(m_List);
            m_DebugCheck.Text = "Debug outlines";
            m_DebugCheck.CheckChanged += DebugCheckChanged;

            m_StatusBar = new Control.StatusBar(this);
            m_StatusBar.Dock = Pos.Bottom;
            m_StatusBar.AddControl(m_DebugCheck, true);

            //m_Center = new Center(this);
            //m_Center.Dock = Pos.Fill;
            GUnit test;

            {
                CollapsibleCategory cat = m_List.Add("Non-Interactive");
                {
                    test = new Label(this);
                    RegisterUnitTest("Label", cat, test);
                    test = new RichLabel(this);
                    RegisterUnitTest("RichLabel", cat, test);
                    test = new GroupBox(this);
                    RegisterUnitTest("GroupBox", cat, test);
                    test = new ProgressBar(this);
                    RegisterUnitTest("ProgressBar", cat, test);
                    test = new ImagePanel(this);
                    RegisterUnitTest("ImagePanel", cat, test);
                    test = new StatusBar(this);
                    RegisterUnitTest("StatusBar", cat, test);
                }
            }

            {
                CollapsibleCategory cat = m_List.Add("Standard");
                {
                    test = new Button(this);
                    RegisterUnitTest("Button", cat, test);
                    test = new TextBox(this);
                    RegisterUnitTest("TextBox", cat, test);
                    test = new CheckBox(this);
                    RegisterUnitTest("CheckBox", cat, test);
                    test = new RadioButton(this);
                    RegisterUnitTest("RadioButton", cat, test);
                    test = new ComboBox(this);
                    RegisterUnitTest("ComboBox", cat, test);
                    test = new ListBox(this);
                    RegisterUnitTest("ListBox", cat, test);
                    test = new NumericUpDown(this);
                    RegisterUnitTest("NumericUpDown", cat, test);
                    test = new Slider(this);
                    RegisterUnitTest("Slider", cat, test);
                    test = new MenuStrip(this);
                    RegisterUnitTest("MenuStrip", cat, test);
                    test = new CrossSplitter(this);
                    RegisterUnitTest("CrossSplitter", cat, test);
                }
            }
            
            {
                CollapsibleCategory cat = m_List.Add("Containers");
                {
                    test = new Window(this);
                    RegisterUnitTest("Window", cat, test);
                    test = new TreeControl(this);
                    RegisterUnitTest("TreeControl", cat, test);
                    test = new Properties(this);
                    RegisterUnitTest("Properties", cat, test);
                    test = new TabControl(this);
                    RegisterUnitTest("TabControl", cat, test);
                    test = new ScrollControl(this);
                    RegisterUnitTest("ScrollControl", cat, test);
                    test = new Docking(this);
                    RegisterUnitTest("Docking", cat, test);
                }
            }
            
            {
                CollapsibleCategory cat = m_List.Add("Non-standard");
                {
                    test = new CollapsibleList(this);
                    RegisterUnitTest("CollapsibleList", cat, test);
                    test = new ColorPickers(this);
                    RegisterUnitTest("Color pickers", cat, test);
                }
            }

            m_StatusBar.SendToBack();
            PrintText("Unit Test started!");
        }
示例#15
0
 private void eval_a()
 {
     if (true)
     {
     }
     this.eval_l = new GroupBox();
     this.eval_w = new TextBox();
     this.eval_v = new Label();
     this.eval_t = new Label();
     this.eval_q = new Button();
     this.eval_r = new Label();
     this.eval_s = new TextBox();
     this.eval_m = new Button();
     this.eval_n = new GroupBox();
     this.eval_u = new Button();
     this.eval_p = new Button();
     this.eval_o = new Button();
     this.eval_l.SuspendLayout();
     this.eval_n.SuspendLayout();
     base.SuspendLayout();
     this.eval_l.Controls.Add(this.eval_w);
     this.eval_l.Controls.Add(this.eval_v);
     this.eval_l.Controls.Add(this.eval_t);
     this.eval_l.Controls.Add(this.eval_q);
     this.eval_l.Controls.Add(this.eval_r);
     this.eval_l.Controls.Add(this.eval_s);
     this.eval_l.Controls.Add(this.eval_m);
     this.eval_l.Location = new Point(2, 154);
     this.eval_l.Name = "grpAvailable";
     this.eval_l.Size = new Size(481, 152);
     this.eval_l.TabIndex = 0;
     this.eval_l.TabStop = false;
     this.eval_l.Text = "Components available for purchase";
     this.eval_w.Location = new Point(54, 125);
     this.eval_w.Name = "txtRequestCode";
     this.eval_w.ReadOnly = true;
     this.eval_w.Size = new Size(154, 20);
     this.eval_w.TabIndex = 72;
     this.eval_v.AutoSize = true;
     this.eval_v.Location = new Point(14, 129);
     this.eval_v.Name = "lblCustId2";
     this.eval_v.Size = new Size(38, 13);
     this.eval_v.TabIndex = 71;
     this.eval_v.Text = "cust id";
     this.eval_t.BorderStyle = BorderStyle.FixedSingle;
     this.eval_t.Location = new Point(214, 125);
     this.eval_t.Name = "lblPlugin";
     this.eval_t.Size = new Size(72, 19);
     this.eval_t.TabIndex = 0;
     this.eval_q.Location = new Point(416, 73);
     this.eval_q.Name = "butUnlock";
     this.eval_q.Size = new Size(59, 22);
     this.eval_q.TabIndex = 5;
     this.eval_q.Text = "Unlock";
     this.eval_q.UseVisualStyleBackColor = true;
     this.eval_q.Click += new EventHandler(this.eval_c);
     this.eval_r.AutoSize = true;
     this.eval_r.Location = new Point(415, 109);
     this.eval_r.Name = "label3";
     this.eval_r.Size = new Size(59, 13);
     this.eval_r.TabIndex = 7;
     this.eval_r.Text = "unlock key";
     this.eval_s.Location = new Point(292, 124);
     this.eval_s.MaxLength = 16;
     this.eval_s.Name = "txtRetailKeyP1";
     this.eval_s.Size = new Size(182, 20);
     this.eval_s.TabIndex = 1;
     this.eval_m.Location = new Point(416, 19);
     this.eval_m.Name = "butWebpage";
     this.eval_m.Size = new Size(59, 47);
     this.eval_m.TabIndex = 6;
     this.eval_m.Text = "go to\r\nwebpage";
     this.eval_m.UseVisualStyleBackColor = true;
     this.eval_m.Click += new EventHandler(this.eval_b);
     this.eval_n.Controls.Add(this.eval_u);
     this.eval_n.Controls.Add(this.eval_p);
     this.eval_n.Controls.Add(this.eval_o);
     this.eval_n.Location = new Point(2, 1);
     this.eval_n.Name = "grpUpdate";
     this.eval_n.Size = new Size(481, 148);
     this.eval_n.TabIndex = 0;
     this.eval_n.TabStop = false;
     this.eval_n.Text = "Check for Updates";
     this.eval_u.Location = new Point(416, 14);
     this.eval_u.Name = "butCancel";
     this.eval_u.Size = new Size(59, 22);
     this.eval_u.TabIndex = 72;
     this.eval_u.Text = "&Cancel";
     this.eval_u.UseVisualStyleBackColor = true;
     this.eval_u.Click += new EventHandler(this.eval_a);
     this.eval_p.Enabled = false;
     this.eval_p.Location = new Point(416, 68);
     this.eval_p.Name = "butGetUpdates";
     this.eval_p.Size = new Size(59, 22);
     this.eval_p.TabIndex = 1;
     this.eval_p.Text = "&Get";
     this.eval_p.UseVisualStyleBackColor = true;
     this.eval_p.Click += new EventHandler(this.eval_d);
     this.eval_o.Location = new Point(416, 42);
     this.eval_o.Name = "butCheckNow";
     this.eval_o.Size = new Size(59, 22);
     this.eval_o.TabIndex = 0;
     this.eval_o.Text = "C&heck";
     this.eval_o.UseVisualStyleBackColor = true;
     this.eval_o.Click += new EventHandler(this.eval_f);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.eval_n);
     base.Controls.Add(this.eval_l);
     base.Name = "UpdateTab";
     base.Size = new Size(486, 311);
     this.eval_l.ResumeLayout(false);
     this.eval_l.PerformLayout();
     this.eval_n.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#16
0
        public void LoadMap(string mapFolder)
        {
            mapDict.Add(mapFolder, this);
            grpMap = new GroupBox();
            grpBox.Controls.Add(grpMap);
            CurrentMap = this;

            mapFolder = @"Resources\" + mapFolder;

            // declare and initialize locals
            int           top            = TOP_PAD;
            int           left           = BOUNDARY_PAD;
            char          startCharacter = ' ';
            List <string> mapLines       = new List <string>();
            List <string> mapTiles       = new List <string>();

            // read from tiles file
            using (FileStream fs = new FileStream(mapFolder + @"\Tiles.txt", FileMode.Open))
            {
                using (StreamReader sr = new StreamReader(fs))
                {
                    string line = sr.ReadLine();
                    while (line != null)
                    {
                        mapTiles.Add(line);
                        line = sr.ReadLine();
                    }
                }
            }

            tileDict = new Dictionary <char, Tile>();

            // read character-tile relationships from file
            foreach (string mapTile in mapTiles)
            {
                // break line up
                string[] words = mapTile.Split(' ');
                char     c     = words[0][0]; // first character is the character described by the tile
                Tile     t;

                // construct the tile by the tile type (the second word)
                switch (words[1])
                {
                case "start":     // start is a keyword defining the start character but is really just a path tile
                    startCharacter = c;
                    t = new PathTile(words[2]);
                    break;

                case "path":
                    t = new PathTile(words[2]);
                    break;

                case "wall":
                    t = new WallTile(words[2]);
                    break;

                case "inportal":
                    t = new InportalTile(words[2][0], words[3]);
                    break;

                case "outportal":
                    t = new OutportalTile(words[2][0], words[3], words[4]);
                    break;

                default:
                    t = new WallTile("blank");
                    break;
                }

                // add the char, tile pair to tileDict
                tileDict.Add(c, t);
            }

            // read from map file
            using (FileStream fs = new FileStream(mapFolder + @"\Map.txt", FileMode.Open))
            {
                using (StreamReader sr = new StreamReader(fs))
                {
                    string line = sr.ReadLine();
                    while (line != null)
                    {
                        mapLines.Add(line);
                        line = sr.ReadLine();
                    }
                }
            }

            // load map file into layout and create PictureBox objects
            layout = new char[mapLines.Count, mapLines[0].Length];
            int i = 0;

            foreach (string mapLine in mapLines)
            {
                int j = 0;
                foreach (char c in mapLine)
                {
                    layout[i, j] = c;
                    PictureBox pb = tileDict[c].MakePictureBox(loadImg);
                    if (pb != null)
                    {
                        pb.Top  = top;
                        pb.Left = left;
                        grpMap.Controls.Add(pb);
                    }
                    if (c == startCharacter)
                    {
                        CharacterStartRow = i;
                        CharacterStartCol = j;
                    }
                    left += BLOCK_SIZE;
                    j++;
                }
                left = BOUNDARY_PAD;
                top += BLOCK_SIZE;
                i++;
            }

            // resize Group
            grpMap.Width  = NumCols * BLOCK_SIZE + BOUNDARY_PAD * 2;
            grpMap.Height = NumRows * BLOCK_SIZE + TOP_PAD + BOUNDARY_PAD;
        }
示例#17
0
		void VerifyParagraphs(GroupBox parent, string[] paragraphContents)
		{
			var current = parent.FirstBox;
			Box last = null;
			foreach (var contents in paragraphContents)
			{
				if (contents == null)
				{
					Assert.That(current as LazyBox<MockData1>, Is.Not.Null);
				}
				else
				{
					Assert.That(current as ParaBox, Is.Not.Null, "Too few children (or the wrong type)");
					var source = ((ParaBox)current).Source;
					Assert.That(source.GetRenderText(0, source.Length), Is.EqualTo(contents));
				}
				Assert.That(current.Container == parent);
				last = current;
				current = current.Next;
			}
			Assert.That(current, Is.Null, "too many children");
			Assert.That(parent.LastBox, Is.EqualTo(last));
		}
示例#18
0
 // Get the value of a radio button from a groupbox
 private string GetSelectedRadioButtonText(GroupBox grb)
 {
     return(grb.Controls.OfType <RadioButton>().SingleOrDefault(rad => rad.Checked == true).Text);
 }
示例#19
0
 private void InitializeComponent()
 {
     this.groupBoxCode      = new System.Windows.Forms.GroupBox();
     this.textBoxCode       = new System.Windows.Forms.TextBox();
     this.buttonBack        = new System.Windows.Forms.Button();
     this.buttonQuit        = new System.Windows.Forms.Button();
     this.buttonCopyAndQuit = new System.Windows.Forms.Button();
     this.button1           = new System.Windows.Forms.Button();
     this.groupBoxCode.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBoxCode
     //
     this.groupBoxCode.Controls.Add(this.textBoxCode);
     this.groupBoxCode.Location = new System.Drawing.Point(9, 10);
     this.groupBoxCode.Margin   = new System.Windows.Forms.Padding(2);
     this.groupBoxCode.Name     = "groupBoxCode";
     this.groupBoxCode.Padding  = new System.Windows.Forms.Padding(2);
     this.groupBoxCode.Size     = new System.Drawing.Size(676, 188);
     this.groupBoxCode.TabIndex = 0;
     this.groupBoxCode.TabStop  = false;
     this.groupBoxCode.Text     = "Generated code:";
     //
     // textBoxCode
     //
     this.textBoxCode.Location  = new System.Drawing.Point(5, 17);
     this.textBoxCode.Margin    = new System.Windows.Forms.Padding(2);
     this.textBoxCode.Multiline = true;
     this.textBoxCode.Name      = "textBoxCode";
     this.textBoxCode.Size      = new System.Drawing.Size(668, 166);
     this.textBoxCode.TabIndex  = 0;
     //
     // buttonBack
     //
     this.buttonBack.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.buttonBack.Location                = new System.Drawing.Point(10, 203);
     this.buttonBack.Name                    = "buttonBack";
     this.buttonBack.Size                    = new System.Drawing.Size(116, 22);
     this.buttonBack.TabIndex                = 8;
     this.buttonBack.Text                    = "&Go Back (Edit data)";
     this.buttonBack.UseVisualStyleBackColor = true;
     this.buttonBack.Click                  += new System.EventHandler(this.buttonBack_Click);
     //
     // buttonQuit
     //
     this.buttonQuit.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.buttonQuit.Location                = new System.Drawing.Point(610, 203);
     this.buttonQuit.Name                    = "buttonQuit";
     this.buttonQuit.Size                    = new System.Drawing.Size(75, 22);
     this.buttonQuit.TabIndex                = 7;
     this.buttonQuit.Text                    = "&Quit";
     this.buttonQuit.UseVisualStyleBackColor = true;
     this.buttonQuit.Click                  += new System.EventHandler(this.buttonCancel_Click);
     //
     // buttonCopyAndQuit
     //
     this.buttonCopyAndQuit.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.buttonCopyAndQuit.Location                = new System.Drawing.Point(391, 203);
     this.buttonCopyAndQuit.Name                    = "buttonCopyAndQuit";
     this.buttonCopyAndQuit.Size                    = new System.Drawing.Size(174, 22);
     this.buttonCopyAndQuit.TabIndex                = 9;
     this.buttonCopyAndQuit.Text                    = "&Copy to Clipboard and Quit";
     this.buttonCopyAndQuit.UseVisualStyleBackColor = true;
     this.buttonCopyAndQuit.Click                  += new System.EventHandler(this.buttonCopyAndQuit_Click);
     //
     // button1
     //
     this.button1.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.button1.Location                = new System.Drawing.Point(171, 203);
     this.button1.Name                    = "button1";
     this.button1.Size                    = new System.Drawing.Size(174, 22);
     this.button1.TabIndex                = 10;
     this.button1.Text                    = "&Copy to Clipboard";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // PreviewForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton        = this.buttonBack;
     this.ClientSize          = new System.Drawing.Size(694, 234);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.buttonCopyAndQuit);
     this.Controls.Add(this.buttonBack);
     this.Controls.Add(this.buttonQuit);
     this.Controls.Add(this.groupBoxCode);
     this.Font            = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(238)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Margin          = new System.Windows.Forms.Padding(2);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "PreviewForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "unSigned\'s NSIS and Inno Setup MessageBox Designer";
     this.groupBoxCode.ResumeLayout(false);
     this.groupBoxCode.PerformLayout();
     this.ResumeLayout(false);
 }
示例#20
0
        public void CargarCampañaModificar(Campaña mCampañaMod, TextBox txtNomCampañaMod, NumericUpDown nUDuracionMod, DateTimePicker dTPickFechaDesdeMod, DateTimePicker dTPickFechaHastaMod, NumericUpDown nUpDesdeHoraMod, NumericUpDown nUpHastaHoraMod, GroupBox gBoxCampañaMod)
        {
            txtNomCampañaMod.Text     = mCampañaMod.Nombre;
            nUDuracionMod.Value       = mCampañaMod.DuracionImagen;
            dTPickFechaDesdeMod.Value = mCampañaMod.FechaInicio;
            dTPickFechaHastaMod.Value = mCampañaMod.FechaFin;
            nUpDesdeHoraMod.Value     = Convert.ToDecimal(mCampañaMod.HoraInicio.Hours);
            nUpHastaHoraMod.Value     = Convert.ToDecimal(mCampañaMod.HoraFin.Hours);

            iControladorImagen.CargoPictureBoxModificar(iControladorImagen.ListaImagensPorCampañaId(mCampañaMod.CampañaId), gBoxCampañaMod, 20, 35);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Invoice));
     this.listBoxCustomer   = new System.Windows.Forms.ListBox();
     this.label2            = new System.Windows.Forms.Label();
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.refresh           = new System.Windows.Forms.CheckBox();
     this.groupBox2         = new System.Windows.Forms.GroupBox();
     this.excel2013RadioBtn = new System.Windows.Forms.RadioButton();
     this.excel2010RadioBtn = new System.Windows.Forms.RadioButton();
     this.excel2007RadioBtn = new System.Windows.Forms.RadioButton();
     this.btnCreate         = new System.Windows.Forms.Button();
     this.pictureBox1       = new System.Windows.Forms.PictureBox();
     this.label1            = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // listBoxCustomer
     //
     this.listBoxCustomer.Location      = new System.Drawing.Point(9, 38);
     this.listBoxCustomer.Name          = "listBoxCustomer";
     this.listBoxCustomer.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
     this.listBoxCustomer.Size          = new System.Drawing.Size(127, 95);
     this.listBoxCustomer.TabIndex      = 2;
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(35, 16);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(321, 19);
     this.label2.TabIndex = 3;
     this.label2.Text     = "select countries from the list box (optional)";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.refresh);
     this.groupBox1.Controls.Add(this.groupBox2);
     this.groupBox1.Controls.Add(this.btnCreate);
     this.groupBox1.Controls.Add(this.listBoxCustomer);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Location = new System.Drawing.Point(3, 157);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(426, 139);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "External Connection";
     //
     // refresh
     //
     this.refresh.AutoSize = true;
     this.refresh.Location = new System.Drawing.Point(152, 98);
     this.refresh.Name     = "refresh";
     this.refresh.Size     = new System.Drawing.Size(63, 17);
     this.refresh.TabIndex = 5;
     this.refresh.Text     = "Refresh";
     this.refresh.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.excel2013RadioBtn);
     this.groupBox2.Controls.Add(this.excel2010RadioBtn);
     this.groupBox2.Controls.Add(this.excel2007RadioBtn);
     this.groupBox2.Location = new System.Drawing.Point(152, 38);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(253, 37);
     this.groupBox2.TabIndex = 4;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Save As";
     //
     // excel2013RadioBtn
     //
     this.excel2013RadioBtn.AutoSize = true;
     this.excel2013RadioBtn.Location = new System.Drawing.Point(168, 14);
     this.excel2013RadioBtn.Name     = "excel2013RadioBtn";
     this.excel2013RadioBtn.Size     = new System.Drawing.Size(78, 17);
     this.excel2013RadioBtn.TabIndex = 3;
     this.excel2013RadioBtn.Text     = "Excel 2013";
     this.excel2013RadioBtn.UseVisualStyleBackColor = true;
     //
     // excel2010RadioBtn
     //
     this.excel2010RadioBtn.AutoSize = true;
     this.excel2010RadioBtn.Location = new System.Drawing.Point(90, 14);
     this.excel2010RadioBtn.Name     = "excel2010RadioBtn";
     this.excel2010RadioBtn.Size     = new System.Drawing.Size(78, 17);
     this.excel2010RadioBtn.TabIndex = 2;
     this.excel2010RadioBtn.Text     = "Excel 2010";
     this.excel2010RadioBtn.UseVisualStyleBackColor = true;
     //
     // excel2007RadioBtn
     //
     this.excel2007RadioBtn.AutoSize = true;
     this.excel2007RadioBtn.Location = new System.Drawing.Point(6, 14);
     this.excel2007RadioBtn.Name     = "excel2007RadioBtn";
     this.excel2007RadioBtn.Size     = new System.Drawing.Size(78, 17);
     this.excel2007RadioBtn.TabIndex = 1;
     this.excel2007RadioBtn.Text     = "Excel 2007";
     this.excel2007RadioBtn.UseVisualStyleBackColor = true;
     //
     // btnCreate
     //
     this.btnCreate.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.btnCreate.Location  = new System.Drawing.Point(315, 98);
     this.btnCreate.Name      = "btnCreate";
     this.btnCreate.Size      = new System.Drawing.Size(90, 25);
     this.btnCreate.TabIndex  = 0;
     this.btnCreate.Text      = "Create";
     this.btnCreate.Click    += new System.EventHandler(this.btnCreate_Click);
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(639, 71);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex = 63;
     this.pictureBox1.TabStop  = false;
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label1.Location  = new System.Drawing.Point(0, 93);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(433, 48);
     this.label1.TabIndex  = 71;
     this.label1.Text      = "Click the button to view an Excel spreadsheet generated by Essential XlsIO. Pleas" +
                             "e note that MS Excel Viewer or MS Excel is required to view the resultant docume" +
                             "nt.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Invoice
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(431, 296);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Invoice";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "External Connection";
     this.Load           += new System.EventHandler(this.Form1_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#22
0
 private void InitializeComponent()
 {
     this.button1   = new Button();
     this.button2   = new Button();
     this.groupBox1 = new GroupBox();
     this.button3   = new Button();
     this.label2    = new Label();
     this.groupBox2 = new GroupBox();
     this.button4   = new Button();
     this.label1    = new Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     base.SuspendLayout();
     this.button1.Location = new System.Drawing.Point(24, 142);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(98, 23);
     this.button1.TabIndex = 0;
     this.button1.Text     = "重新生成全新";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click   += new EventHandler(this.button1_Click);
     this.button2.Location = new System.Drawing.Point(24, 142);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(126, 23);
     this.button2.TabIndex = 1;
     this.button2.Text     = "同步资源";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new EventHandler(this.button2_Click);
     this.groupBox1.Controls.Add(this.button3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.button2);
     this.groupBox1.Location = new System.Drawing.Point(311, 30);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(176, 218);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "多语言模板同步";
     this.button3.Location   = new System.Drawing.Point(24, 171);
     this.button3.Name       = "button3";
     this.button3.Size       = new System.Drawing.Size(126, 23);
     this.button3.TabIndex   = 6;
     this.button3.Text       = "同步界面";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click  += new EventHandler(this.button3_Click);
     this.label2.Location = new System.Drawing.Point(22, 26);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(148, 89);
     this.label2.TabIndex = 5;
     this.label2.Text     = "当多语言模板已经生成,并且使用,添加了新的窗体或控件,需要补足缺失项时,请使用此项";
     this.groupBox2.Controls.Add(this.button4);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.button1);
     this.groupBox2.Location = new System.Drawing.Point(12, 30);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(176, 218);
     this.groupBox2.TabIndex = 3;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "多语言模板生成";
     this.button4.Location   = new System.Drawing.Point(24, 171);
     this.button4.Name       = "button4";
     this.button4.Size       = new System.Drawing.Size(98, 23);
     this.button4.TabIndex   = 5;
     this.button4.Text       = "补足新控件";
     this.button4.UseVisualStyleBackColor = true;
     this.button4.Click      += new EventHandler(this.button4_Click);
     this.label1.Location     = new System.Drawing.Point(22, 26);
     this.label1.Name         = "label1";
     this.label1.Size         = new System.Drawing.Size(148, 113);
     this.label1.TabIndex     = 4;
     this.label1.Text         = "当大部分的窗体控件都完成以后,请使用此项生成多语言模板";
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(505, 256);
     base.Controls.Add(this.groupBox2);
     base.Controls.Add(this.groupBox1);
     base.FormBorderStyle = FormBorderStyle.FixedSingle;
     base.MaximizeBox     = false;
     base.MinimizeBox     = false;
     base.Name            = "formMultiLanguage";
     this.Text            = "fromMultiLanguage";
     base.FormClosing    += new FormClosingEventHandler(this.formMultiLanguage_FormClosing);
     base.Load           += new EventHandler(this.formMultiLanguage_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#23
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ManagerTemplateForm));
     this.uiManagerHostLabel = new System.Windows.Forms.Label();
     this.uiManagerHostTextBox = new System.Windows.Forms.TextBox();
     this.uiStartButton = new System.Windows.Forms.Button();
     this.uiNodeConfigurationGroupBox = new System.Windows.Forms.GroupBox();
     this.uiDedicatedCheckBox = new System.Windows.Forms.CheckBox();
     this.uiIdLabel = new System.Windows.Forms.Label();
     this.uiIntermediateComboBox = new System.Windows.Forms.CheckBox();
     this.uiIdTextBox = new System.Windows.Forms.TextBox();
     this.uiManagerPortLabel = new System.Windows.Forms.Label();
     this.uiManagerPortTextBox = new System.Windows.Forms.TextBox();
     this.uiResetButton = new System.Windows.Forms.Button();
     this.uiStopButton = new System.Windows.Forms.Button();
     this.TrayIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.TrayMenu = new System.Windows.Forms.ContextMenu();
     this.tmExit = new System.Windows.Forms.MenuItem();
     this.MainMenu = new System.Windows.Forms.MainMenu(this.components);
     this.uiManagerMenuItem = new System.Windows.Forms.MenuItem();
     this.uiManagerExitMenuItem = new System.Windows.Forms.MenuItem();
     this.uiHelpMenuItem = new System.Windows.Forms.MenuItem();
     this.uiHelpAboutMenuItem = new System.Windows.Forms.MenuItem();
     this.uiActionsGroupBox = new System.Windows.Forms.GroupBox();
     this.uiStatusBar = new System.Windows.Forms.StatusBar();
     this.tabControl = new System.Windows.Forms.TabControl();
     this.uiSetupConnectionTabPage = new System.Windows.Forms.TabPage();
     this.uiAdvancedTabPage = new System.Windows.Forms.TabPage();
     this.uiSchedulerComboBox = new System.Windows.Forms.ComboBox();
     this.uiStorageConfigurationGroupBox = new System.Windows.Forms.GroupBox();
     this.uiDatabaseFileGroupBox = new System.Windows.Forms.GroupBox();
     this.uiDatabaseFileButton = new System.Windows.Forms.Button();
     this.uiDatabaseFileTextBox = new System.Windows.Forms.TextBox();
     this.uiDatabaseTypeLabel = new System.Windows.Forms.Label();
     this.uiDatabaseTypeComboBox = new System.Windows.Forms.ComboBox();
     this.uiDatabaseServerGroupBox = new System.Windows.Forms.GroupBox();
     this.uiDatabasePasswordTextBox = new System.Windows.Forms.TextBox();
     this.uiDatabaseServerTextBox = new System.Windows.Forms.TextBox();
     this.uiDatabaseUserLabel = new System.Windows.Forms.Label();
     this.uiDatabasePasswordLabel = new System.Windows.Forms.Label();
     this.uiDatabaseServerLabel = new System.Windows.Forms.Label();
     this.uiDatabaseNameTextBox = new System.Windows.Forms.TextBox();
     this.uiDatabaseNameLabel = new System.Windows.Forms.Label();
     this.uiDatabaseUserTextBox = new System.Windows.Forms.TextBox();
     this.uiSchedulerLabel = new System.Windows.Forms.Label();
     this.tabEndPoints = new System.Windows.Forms.TabPage();
     this.uiProgressBar = new System.Windows.Forms.ProgressBar();
     this.uiLogMessagesTextBox = new System.Windows.Forms.TextBox();
     this.uiLogMessagesLabel = new System.Windows.Forms.Label();
     this.uiViewFullLogLinkLabel = new System.Windows.Forms.LinkLabel();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.ucEndPoints = new Alchemi.Core.EndPointUtils.EndPointManagerControl();
     this.uiNodeConfigurationGroupBox.SuspendLayout();
     this.uiActionsGroupBox.SuspendLayout();
     this.tabControl.SuspendLayout();
     this.uiSetupConnectionTabPage.SuspendLayout();
     this.uiAdvancedTabPage.SuspendLayout();
     this.uiStorageConfigurationGroupBox.SuspendLayout();
     this.uiDatabaseFileGroupBox.SuspendLayout();
     this.uiDatabaseServerGroupBox.SuspendLayout();
     this.tabEndPoints.SuspendLayout();
     this.SuspendLayout();
     //
     // uiManagerHostLabel
     //
     this.uiManagerHostLabel.AutoSize = true;
     this.uiManagerHostLabel.Location = new System.Drawing.Point(38, 103);
     this.uiManagerHostLabel.Name = "uiManagerHostLabel";
     this.uiManagerHostLabel.Size = new System.Drawing.Size(74, 13);
     this.uiManagerHostLabel.TabIndex = 1;
     this.uiManagerHostLabel.Text = "Manager Host";
     this.uiManagerHostLabel.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // uiManagerHostTextBox
     //
     this.uiManagerHostTextBox.Location = new System.Drawing.Point(120, 100);
     this.uiManagerHostTextBox.Name = "uiManagerHostTextBox";
     this.uiManagerHostTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiManagerHostTextBox.TabIndex = 9;
     //
     // uiStartButton
     //
     this.uiStartButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiStartButton.Location = new System.Drawing.Point(88, 50);
     this.uiStartButton.Name = "uiStartButton";
     this.uiStartButton.Size = new System.Drawing.Size(128, 23);
     this.uiStartButton.TabIndex = 12;
     this.uiStartButton.Text = "Start";
     this.uiStartButton.Click += new System.EventHandler(this.uiStartButton_Click);
     //
     // uiNodeConfigurationGroupBox
     //
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiDedicatedCheckBox);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiIdLabel);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiIntermediateComboBox);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiIdTextBox);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiManagerPortLabel);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiManagerPortTextBox);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiManagerHostLabel);
     this.uiNodeConfigurationGroupBox.Controls.Add(this.uiManagerHostTextBox);
     this.uiNodeConfigurationGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiNodeConfigurationGroupBox.Location = new System.Drawing.Point(8, 12);
     this.uiNodeConfigurationGroupBox.Name = "uiNodeConfigurationGroupBox";
     this.uiNodeConfigurationGroupBox.Size = new System.Drawing.Size(416, 171);
     this.uiNodeConfigurationGroupBox.TabIndex = 6;
     this.uiNodeConfigurationGroupBox.TabStop = false;
     this.uiNodeConfigurationGroupBox.Text = "Node Configuration";
     //
     // uiDedicatedCheckBox
     //
     this.uiDedicatedCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiDedicatedCheckBox.Location = new System.Drawing.Point(120, 68);
     this.uiDedicatedCheckBox.Name = "uiDedicatedCheckBox";
     this.uiDedicatedCheckBox.Size = new System.Drawing.Size(88, 24);
     this.uiDedicatedCheckBox.TabIndex = 8;
     this.uiDedicatedCheckBox.Text = "Dedicated";
     //
     // uiIdLabel
     //
     this.uiIdLabel.Location = new System.Drawing.Point(96, 44);
     this.uiIdLabel.Name = "uiIdLabel";
     this.uiIdLabel.Size = new System.Drawing.Size(16, 16);
     this.uiIdLabel.TabIndex = 12;
     this.uiIdLabel.Text = "Id";
     this.uiIdLabel.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // uiIntermediateComboBox
     //
     this.uiIntermediateComboBox.Enabled = false;
     this.uiIntermediateComboBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiIntermediateComboBox.Location = new System.Drawing.Point(120, 20);
     this.uiIntermediateComboBox.Name = "uiIntermediateComboBox";
     this.uiIntermediateComboBox.Size = new System.Drawing.Size(88, 24);
     this.uiIntermediateComboBox.TabIndex = 6;
     this.uiIntermediateComboBox.TabStop = false;
     this.uiIntermediateComboBox.Text = "Intermediate";
     //
     // uiIdTextBox
     //
     this.uiIdTextBox.Enabled = false;
     this.uiIdTextBox.Location = new System.Drawing.Point(120, 44);
     this.uiIdTextBox.Name = "uiIdTextBox";
     this.uiIdTextBox.Size = new System.Drawing.Size(240, 20);
     this.uiIdTextBox.TabIndex = 7;
     this.uiIdTextBox.TabStop = false;
     //
     // uiManagerPortLabel
     //
     this.uiManagerPortLabel.AutoSize = true;
     this.uiManagerPortLabel.Location = new System.Drawing.Point(41, 135);
     this.uiManagerPortLabel.Name = "uiManagerPortLabel";
     this.uiManagerPortLabel.Size = new System.Drawing.Size(71, 13);
     this.uiManagerPortLabel.TabIndex = 6;
     this.uiManagerPortLabel.Text = "Manager Port";
     this.uiManagerPortLabel.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // uiManagerPortTextBox
     //
     this.uiManagerPortTextBox.Location = new System.Drawing.Point(120, 132);
     this.uiManagerPortTextBox.Name = "uiManagerPortTextBox";
     this.uiManagerPortTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiManagerPortTextBox.TabIndex = 10;
     //
     // uiResetButton
     //
     this.uiResetButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiResetButton.Location = new System.Drawing.Point(88, 20);
     this.uiResetButton.Name = "uiResetButton";
     this.uiResetButton.Size = new System.Drawing.Size(248, 23);
     this.uiResetButton.TabIndex = 11;
     this.uiResetButton.TabStop = false;
     this.uiResetButton.Text = "Reset";
     this.uiResetButton.Click += new System.EventHandler(this.uiResetButton_Click);
     //
     // uiStopButton
     //
     this.uiStopButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiStopButton.Location = new System.Drawing.Point(224, 50);
     this.uiStopButton.Name = "uiStopButton";
     this.uiStopButton.Size = new System.Drawing.Size(112, 23);
     this.uiStopButton.TabIndex = 13;
     this.uiStopButton.Text = "Stop";
     this.uiStopButton.Click += new System.EventHandler(this.uiStopButton_Click);
     //
     // TrayIcon
     //
     this.TrayIcon.ContextMenu = this.TrayMenu;
     this.TrayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("TrayIcon.Icon")));
     this.TrayIcon.Text = "Alchemi Manager";
     this.TrayIcon.Visible = true;
     this.TrayIcon.Click += new System.EventHandler(this.TrayIcon_Click);
     //
     // TrayMenu
     //
     this.TrayMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.tmExit});
     //
     // tmExit
     //
     this.tmExit.Index = 0;
     this.tmExit.Text = "Exit";
     this.tmExit.Click += new System.EventHandler(this.tmExit_Click);
     //
     // MainMenu
     //
     this.MainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.uiManagerMenuItem,
         this.uiHelpMenuItem});
     //
     // uiManagerMenuItem
     //
     this.uiManagerMenuItem.Index = 0;
     this.uiManagerMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.uiManagerExitMenuItem});
     this.uiManagerMenuItem.Text = "Manager";
     //
     // uiManagerExitMenuItem
     //
     this.uiManagerExitMenuItem.Index = 0;
     this.uiManagerExitMenuItem.Text = "Exit";
     this.uiManagerExitMenuItem.Click += new System.EventHandler(this.uiManagerExitMenuItem_Click);
     //
     // uiHelpMenuItem
     //
     this.uiHelpMenuItem.Index = 1;
     this.uiHelpMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.uiHelpAboutMenuItem});
     this.uiHelpMenuItem.Text = "Help";
     //
     // uiHelpAboutMenuItem
     //
     this.uiHelpAboutMenuItem.Index = 0;
     this.uiHelpAboutMenuItem.Text = "About";
     this.uiHelpAboutMenuItem.Click += new System.EventHandler(this.uiHelpAboutMenuItem_Click);
     //
     // uiActionsGroupBox
     //
     this.uiActionsGroupBox.Controls.Add(this.uiResetButton);
     this.uiActionsGroupBox.Controls.Add(this.uiStopButton);
     this.uiActionsGroupBox.Controls.Add(this.uiStartButton);
     this.uiActionsGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.uiActionsGroupBox.Location = new System.Drawing.Point(23, 305);
     this.uiActionsGroupBox.Name = "uiActionsGroupBox";
     this.uiActionsGroupBox.Size = new System.Drawing.Size(416, 89);
     this.uiActionsGroupBox.TabIndex = 9;
     this.uiActionsGroupBox.TabStop = false;
     this.uiActionsGroupBox.Text = "Actions";
     //
     // uiStatusBar
     //
     this.uiStatusBar.Location = new System.Drawing.Point(0, 447);
     this.uiStatusBar.Name = "uiStatusBar";
     this.uiStatusBar.Size = new System.Drawing.Size(456, 22);
     this.uiStatusBar.TabIndex = 10;
     //
     // tabControl
     //
     this.tabControl.Controls.Add(this.uiSetupConnectionTabPage);
     this.tabControl.Controls.Add(this.uiAdvancedTabPage);
     this.tabControl.Controls.Add(this.tabEndPoints);
     this.tabControl.Location = new System.Drawing.Point(10, 10);
     this.tabControl.Name = "tabControl";
     this.tabControl.SelectedIndex = 0;
     this.tabControl.Size = new System.Drawing.Size(440, 289);
     this.tabControl.TabIndex = 12;
     //
     // uiSetupConnectionTabPage
     //
     this.uiSetupConnectionTabPage.Controls.Add(this.uiNodeConfigurationGroupBox);
     this.uiSetupConnectionTabPage.Location = new System.Drawing.Point(4, 22);
     this.uiSetupConnectionTabPage.Name = "uiSetupConnectionTabPage";
     this.uiSetupConnectionTabPage.Size = new System.Drawing.Size(432, 263);
     this.uiSetupConnectionTabPage.TabIndex = 0;
     this.uiSetupConnectionTabPage.Text = "Setup Connection";
     this.uiSetupConnectionTabPage.UseVisualStyleBackColor = true;
     //
     // uiAdvancedTabPage
     //
     this.uiAdvancedTabPage.Controls.Add(this.uiSchedulerComboBox);
     this.uiAdvancedTabPage.Controls.Add(this.uiStorageConfigurationGroupBox);
     this.uiAdvancedTabPage.Controls.Add(this.uiSchedulerLabel);
     this.uiAdvancedTabPage.Location = new System.Drawing.Point(4, 22);
     this.uiAdvancedTabPage.Name = "uiAdvancedTabPage";
     this.uiAdvancedTabPage.Padding = new System.Windows.Forms.Padding(3);
     this.uiAdvancedTabPage.Size = new System.Drawing.Size(432, 263);
     this.uiAdvancedTabPage.TabIndex = 1;
     this.uiAdvancedTabPage.Text = "Advanced";
     this.uiAdvancedTabPage.UseVisualStyleBackColor = true;
     //
     // uiSchedulerComboBox
     //
     this.uiSchedulerComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.uiSchedulerComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
     this.uiSchedulerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.uiSchedulerComboBox.FormattingEnabled = true;
     this.uiSchedulerComboBox.Location = new System.Drawing.Point(118, 210);
     this.uiSchedulerComboBox.Name = "uiSchedulerComboBox";
     this.uiSchedulerComboBox.Size = new System.Drawing.Size(296, 21);
     this.uiSchedulerComboBox.TabIndex = 34;
     //
     // uiStorageConfigurationGroupBox
     //
     this.uiStorageConfigurationGroupBox.Controls.Add(this.uiDatabaseFileGroupBox);
     this.uiStorageConfigurationGroupBox.Controls.Add(this.uiDatabaseTypeLabel);
     this.uiStorageConfigurationGroupBox.Controls.Add(this.uiDatabaseTypeComboBox);
     this.uiStorageConfigurationGroupBox.Controls.Add(this.uiDatabaseServerGroupBox);
     this.uiStorageConfigurationGroupBox.Location = new System.Drawing.Point(9, 6);
     this.uiStorageConfigurationGroupBox.Name = "uiStorageConfigurationGroupBox";
     this.uiStorageConfigurationGroupBox.Size = new System.Drawing.Size(416, 155);
     this.uiStorageConfigurationGroupBox.TabIndex = 33;
     this.uiStorageConfigurationGroupBox.TabStop = false;
     this.uiStorageConfigurationGroupBox.Text = "Storage Configuration";
     //
     // uiDatabaseFileGroupBox
     //
     this.uiDatabaseFileGroupBox.Controls.Add(this.uiDatabaseFileButton);
     this.uiDatabaseFileGroupBox.Controls.Add(this.uiDatabaseFileTextBox);
     this.uiDatabaseFileGroupBox.Location = new System.Drawing.Point(9, 40);
     this.uiDatabaseFileGroupBox.Name = "uiDatabaseFileGroupBox";
     this.uiDatabaseFileGroupBox.Size = new System.Drawing.Size(378, 63);
     this.uiDatabaseFileGroupBox.TabIndex = 43;
     this.uiDatabaseFileGroupBox.TabStop = false;
     this.uiDatabaseFileGroupBox.Text = "Database File";
     //
     // uiDatabaseFileButton
     //
     this.uiDatabaseFileButton.Location = new System.Drawing.Point(330, 21);
     this.uiDatabaseFileButton.Name = "uiDatabaseFileButton";
     this.uiDatabaseFileButton.Size = new System.Drawing.Size(31, 23);
     this.uiDatabaseFileButton.TabIndex = 3;
     this.uiDatabaseFileButton.Text = "...";
     this.uiDatabaseFileButton.UseVisualStyleBackColor = true;
     this.uiDatabaseFileButton.Click += new System.EventHandler(this.uiDatabaseFileButton_Click);
     //
     // uiDatabaseFileTextBox
     //
     this.uiDatabaseFileTextBox.Enabled = false;
     this.uiDatabaseFileTextBox.Location = new System.Drawing.Point(12, 21);
     this.uiDatabaseFileTextBox.Name = "uiDatabaseFileTextBox";
     this.uiDatabaseFileTextBox.Size = new System.Drawing.Size(312, 20);
     this.uiDatabaseFileTextBox.TabIndex = 2;
     //
     // uiDatabaseTypeLabel
     //
     this.uiDatabaseTypeLabel.AutoSize = true;
     this.uiDatabaseTypeLabel.Location = new System.Drawing.Point(6, 22);
     this.uiDatabaseTypeLabel.Name = "uiDatabaseTypeLabel";
     this.uiDatabaseTypeLabel.Size = new System.Drawing.Size(31, 13);
     this.uiDatabaseTypeLabel.TabIndex = 42;
     this.uiDatabaseTypeLabel.Text = "Type";
     this.uiDatabaseTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // uiDatabaseTypeComboBox
     //
     this.uiDatabaseTypeComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.uiDatabaseTypeComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
     this.uiDatabaseTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.uiDatabaseTypeComboBox.FormattingEnabled = true;
     this.uiDatabaseTypeComboBox.Location = new System.Drawing.Point(43, 19);
     this.uiDatabaseTypeComboBox.Name = "uiDatabaseTypeComboBox";
     this.uiDatabaseTypeComboBox.Size = new System.Drawing.Size(296, 21);
     this.uiDatabaseTypeComboBox.TabIndex = 41;
     this.uiDatabaseTypeComboBox.SelectedIndexChanged += new System.EventHandler(this.uiDatabaseTypeComboBox_SelectedIndexChanged);
     //
     // uiDatabaseServerGroupBox
     //
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabasePasswordTextBox);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseServerTextBox);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseUserLabel);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabasePasswordLabel);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseServerLabel);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseNameTextBox);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseNameLabel);
     this.uiDatabaseServerGroupBox.Controls.Add(this.uiDatabaseUserTextBox);
     this.uiDatabaseServerGroupBox.Location = new System.Drawing.Point(6, 49);
     this.uiDatabaseServerGroupBox.Name = "uiDatabaseServerGroupBox";
     this.uiDatabaseServerGroupBox.Size = new System.Drawing.Size(378, 86);
     this.uiDatabaseServerGroupBox.TabIndex = 33;
     this.uiDatabaseServerGroupBox.TabStop = false;
     this.uiDatabaseServerGroupBox.Text = "Database Server Configuration";
     //
     // uiDatabasePasswordTextBox
     //
     this.uiDatabasePasswordTextBox.Location = new System.Drawing.Point(260, 54);
     this.uiDatabasePasswordTextBox.Name = "uiDatabasePasswordTextBox";
     this.uiDatabasePasswordTextBox.PasswordChar = '*';
     this.uiDatabasePasswordTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiDatabasePasswordTextBox.TabIndex = 35;
     //
     // uiDatabaseServerTextBox
     //
     this.uiDatabaseServerTextBox.Location = new System.Drawing.Point(68, 22);
     this.uiDatabaseServerTextBox.Name = "uiDatabaseServerTextBox";
     this.uiDatabaseServerTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiDatabaseServerTextBox.TabIndex = 32;
     //
     // uiDatabaseUserLabel
     //
     this.uiDatabaseUserLabel.AutoSize = true;
     this.uiDatabaseUserLabel.Location = new System.Drawing.Point(187, 25);
     this.uiDatabaseUserLabel.Name = "uiDatabaseUserLabel";
     this.uiDatabaseUserLabel.Size = new System.Drawing.Size(55, 13);
     this.uiDatabaseUserLabel.TabIndex = 37;
     this.uiDatabaseUserLabel.Text = "Username";
     this.uiDatabaseUserLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // uiDatabasePasswordLabel
     //
     this.uiDatabasePasswordLabel.AutoSize = true;
     this.uiDatabasePasswordLabel.Location = new System.Drawing.Point(187, 57);
     this.uiDatabasePasswordLabel.Name = "uiDatabasePasswordLabel";
     this.uiDatabasePasswordLabel.Size = new System.Drawing.Size(53, 13);
     this.uiDatabasePasswordLabel.TabIndex = 36;
     this.uiDatabasePasswordLabel.Text = "Password";
     this.uiDatabasePasswordLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // uiDatabaseServerLabel
     //
     this.uiDatabaseServerLabel.AutoSize = true;
     this.uiDatabaseServerLabel.Location = new System.Drawing.Point(9, 25);
     this.uiDatabaseServerLabel.Name = "uiDatabaseServerLabel";
     this.uiDatabaseServerLabel.Size = new System.Drawing.Size(38, 13);
     this.uiDatabaseServerLabel.TabIndex = 38;
     this.uiDatabaseServerLabel.Text = "Server";
     this.uiDatabaseServerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // uiDatabaseNameTextBox
     //
     this.uiDatabaseNameTextBox.Location = new System.Drawing.Point(68, 54);
     this.uiDatabaseNameTextBox.Name = "uiDatabaseNameTextBox";
     this.uiDatabaseNameTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiDatabaseNameTextBox.TabIndex = 33;
     //
     // uiDatabaseNameLabel
     //
     this.uiDatabaseNameLabel.AutoSize = true;
     this.uiDatabaseNameLabel.Location = new System.Drawing.Point(9, 57);
     this.uiDatabaseNameLabel.Name = "uiDatabaseNameLabel";
     this.uiDatabaseNameLabel.Size = new System.Drawing.Size(53, 13);
     this.uiDatabaseNameLabel.TabIndex = 39;
     this.uiDatabaseNameLabel.Text = "DB Name";
     this.uiDatabaseNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // uiDatabaseUserTextBox
     //
     this.uiDatabaseUserTextBox.Location = new System.Drawing.Point(260, 22);
     this.uiDatabaseUserTextBox.Name = "uiDatabaseUserTextBox";
     this.uiDatabaseUserTextBox.Size = new System.Drawing.Size(104, 20);
     this.uiDatabaseUserTextBox.TabIndex = 34;
     //
     // uiSchedulerLabel
     //
     this.uiSchedulerLabel.AutoSize = true;
     this.uiSchedulerLabel.Location = new System.Drawing.Point(33, 213);
     this.uiSchedulerLabel.Name = "uiSchedulerLabel";
     this.uiSchedulerLabel.Size = new System.Drawing.Size(55, 13);
     this.uiSchedulerLabel.TabIndex = 32;
     this.uiSchedulerLabel.Text = "Scheduler";
     this.uiSchedulerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // tabEndPoints
     //
     this.tabEndPoints.Controls.Add(this.ucEndPoints);
     this.tabEndPoints.Location = new System.Drawing.Point(4, 22);
     this.tabEndPoints.Name = "tabEndPoints";
     this.tabEndPoints.Padding = new System.Windows.Forms.Padding(3);
     this.tabEndPoints.Size = new System.Drawing.Size(432, 263);
     this.tabEndPoints.TabIndex = 2;
     this.tabEndPoints.Text = "End Points";
     this.tabEndPoints.UseVisualStyleBackColor = true;
     //
     // uiProgressBar
     //
     this.uiProgressBar.Location = new System.Drawing.Point(23, 575);
     this.uiProgressBar.Name = "uiProgressBar";
     this.uiProgressBar.Size = new System.Drawing.Size(414, 10);
     this.uiProgressBar.Step = 1;
     this.uiProgressBar.TabIndex = 13;
     this.uiProgressBar.Visible = false;
     //
     // uiLogMessagesTextBox
     //
     this.uiLogMessagesTextBox.BackColor = System.Drawing.SystemColors.Info;
     this.uiLogMessagesTextBox.Location = new System.Drawing.Point(22, 424);
     this.uiLogMessagesTextBox.Multiline = true;
     this.uiLogMessagesTextBox.Name = "uiLogMessagesTextBox";
     this.uiLogMessagesTextBox.ReadOnly = true;
     this.uiLogMessagesTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.uiLogMessagesTextBox.Size = new System.Drawing.Size(416, 145);
     this.uiLogMessagesTextBox.TabIndex = 15;
     this.uiLogMessagesTextBox.TabStop = false;
     //
     // uiLogMessagesLabel
     //
     this.uiLogMessagesLabel.Location = new System.Drawing.Point(20, 406);
     this.uiLogMessagesLabel.Name = "uiLogMessagesLabel";
     this.uiLogMessagesLabel.Size = new System.Drawing.Size(88, 15);
     this.uiLogMessagesLabel.TabIndex = 16;
     this.uiLogMessagesLabel.Text = "Log Messages";
     this.uiLogMessagesLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // uiViewFullLogLinkLabel
     //
     this.uiViewFullLogLinkLabel.AutoSize = true;
     this.uiViewFullLogLinkLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.uiViewFullLogLinkLabel.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
     this.uiViewFullLogLinkLabel.Location = new System.Drawing.Point(94, 404);
     this.uiViewFullLogLinkLabel.Name = "uiViewFullLogLinkLabel";
     this.uiViewFullLogLinkLabel.Size = new System.Drawing.Size(98, 15);
     this.uiViewFullLogLinkLabel.TabIndex = 17;
     this.uiViewFullLogLinkLabel.TabStop = true;
     this.uiViewFullLogLinkLabel.Text = "( View full log ... )";
     this.uiViewFullLogLinkLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // openFileDialog
     //
     this.openFileDialog.DefaultExt = "db";
     //
     // ucEndPoints
     //
     this.ucEndPoints.EndPoints = null;
     this.ucEndPoints.Location = new System.Drawing.Point(6, 6);
     this.ucEndPoints.Name = "ucEndPoints";
     this.ucEndPoints.Size = new System.Drawing.Size(420, 251);
     this.ucEndPoints.TabIndex = 0;
     //
     // ManagerTemplateForm
     //
     this.AcceptButton = this.uiStartButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(456, 469);
     this.Controls.Add(this.uiViewFullLogLinkLabel);
     this.Controls.Add(this.uiLogMessagesLabel);
     this.Controls.Add(this.uiActionsGroupBox);
     this.Controls.Add(this.uiLogMessagesTextBox);
     this.Controls.Add(this.uiProgressBar);
     this.Controls.Add(this.tabControl);
     this.Controls.Add(this.uiStatusBar);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Menu = this.MainMenu;
     this.Name = "ManagerTemplateForm";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Alchemi Manager";
     this.Load += new System.EventHandler(this.ManagerTemplateForm_Load);
     this.uiNodeConfigurationGroupBox.ResumeLayout(false);
     this.uiNodeConfigurationGroupBox.PerformLayout();
     this.uiActionsGroupBox.ResumeLayout(false);
     this.tabControl.ResumeLayout(false);
     this.uiSetupConnectionTabPage.ResumeLayout(false);
     this.uiAdvancedTabPage.ResumeLayout(false);
     this.uiAdvancedTabPage.PerformLayout();
     this.uiStorageConfigurationGroupBox.ResumeLayout(false);
     this.uiStorageConfigurationGroupBox.PerformLayout();
     this.uiDatabaseFileGroupBox.ResumeLayout(false);
     this.uiDatabaseFileGroupBox.PerformLayout();
     this.uiDatabaseServerGroupBox.ResumeLayout(false);
     this.uiDatabaseServerGroupBox.PerformLayout();
     this.tabEndPoints.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#24
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();
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.listBox1          = new System.Windows.Forms.ListBox();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.button1           = new System.Windows.Forms.Button();
     this.button2           = new System.Windows.Forms.Button();
     this.groupBox2         = new System.Windows.Forms.GroupBox();
     this.listBox2          = new System.Windows.Forms.ListBox();
     this.panel1            = new System.Windows.Forms.Panel();
     this.listView1         = new System.Windows.Forms.ListView();
     this.menu1             = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.menuItemCsv       = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItemHtml      = new System.Windows.Forms.ToolStripMenuItem();
     this.label1            = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.menu1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.listBox1);
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.Location = new System.Drawing.Point(3, 67);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Padding  = new System.Windows.Forms.Padding(6);
     this.groupBox1.Size     = new System.Drawing.Size(194, 269);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "By Action/Node";
     //
     // listBox1
     //
     this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listBox1.FormattingEnabled = true;
     this.listBox1.IntegralHeight    = false;
     this.listBox1.Location          = new System.Drawing.Point(6, 19);
     this.listBox1.Name     = "listBox1";
     this.listBox1.Size     = new System.Drawing.Size(182, 244);
     this.listBox1.Sorted   = true;
     this.listBox1.TabIndex = 1;
     this.listBox1.Click   += new System.EventHandler(this.listBox1_Click);
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 200F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.button1, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.button2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.groupBox1, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.groupBox2, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1157, 615);
     this.tableLayoutPanel1.TabIndex = 1;
     //
     // button1
     //
     this.button1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.button1.Location = new System.Drawing.Point(3, 3);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(194, 26);
     this.button1.TabIndex = 0;
     this.button1.Text     = "Return to Overview Display";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.button2.Location = new System.Drawing.Point(3, 35);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(194, 26);
     this.button2.TabIndex = 1;
     this.button2.Text     = "Reset/Clear Data";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.listBox2);
     this.groupBox2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.groupBox2.Location = new System.Drawing.Point(3, 342);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Padding  = new System.Windows.Forms.Padding(6);
     this.groupBox2.Size     = new System.Drawing.Size(194, 270);
     this.groupBox2.TabIndex = 3;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "By Item";
     //
     // listBox2
     //
     this.listBox2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listBox2.FormattingEnabled = true;
     this.listBox2.IntegralHeight    = false;
     this.listBox2.Location          = new System.Drawing.Point(6, 19);
     this.listBox2.Name     = "listBox2";
     this.listBox2.Size     = new System.Drawing.Size(182, 245);
     this.listBox2.Sorted   = true;
     this.listBox2.TabIndex = 2;
     this.listBox2.Click   += new System.EventHandler(this.listBox2_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.listView1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(203, 3);
     this.panel1.Name     = "panel1";
     this.tableLayoutPanel1.SetRowSpan(this.panel1, 4);
     this.panel1.Size     = new System.Drawing.Size(951, 609);
     this.panel1.TabIndex = 4;
     //
     // listView1
     //
     this.listView1.ContextMenuStrip = this.menu1;
     this.listView1.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.listView1.FullRowSelect    = true;
     this.listView1.GridLines        = true;
     this.listView1.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.listView1.Location         = new System.Drawing.Point(0, 18);
     this.listView1.Name             = "listView1";
     this.listView1.Size             = new System.Drawing.Size(951, 591);
     this.listView1.TabIndex         = 3;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Details;
     //
     // menu1
     //
     this.menu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.menuItemCsv,
         this.menuItemHtml
     });
     this.menu1.Name = "menu1";
     this.menu1.Size = new System.Drawing.Size(153, 48);
     //
     // menuItemCsv
     //
     this.menuItemCsv.Name   = "menuItemCsv";
     this.menuItemCsv.Size   = new System.Drawing.Size(152, 22);
     this.menuItemCsv.Text   = "Copy as CSV";
     this.menuItemCsv.Click += new System.EventHandler(this.menuItemCsv_Click);
     //
     // menuItemHtml
     //
     this.menuItemHtml.Name   = "menuItemHtml";
     this.menuItemHtml.Size   = new System.Drawing.Size(152, 22);
     this.menuItemHtml.Text   = "Copy as HTML";
     this.menuItemHtml.Click += new System.EventHandler(this.menuItemHtml_Click);
     //
     // label1
     //
     this.label1.BackColor   = System.Drawing.Color.LightSteelBlue;
     this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label1.Dock        = System.Windows.Forms.DockStyle.Top;
     this.label1.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor   = System.Drawing.Color.MidnightBlue;
     this.label1.Location    = new System.Drawing.Point(0, 0);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(951, 18);
     this.label1.TabIndex    = 4;
     this.label1.Text        = "Data Displayed";
     this.label1.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Harvest_Plugin
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.tableLayoutPanel1);
     this.Name = "Harvest_Plugin";
     this.Size = new System.Drawing.Size(1157, 615);
     this.groupBox1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.menu1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#25
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// tabControl1
		// 
		tabControl1 = new TabControl ();
		tabControl1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		tabControl1.Location = new Point (6, 6);
		tabControl1.Name = "tabControl1";
		tabControl1.SelectedIndex = 0;
		tabControl1.Size = new Size (390, 400);
		tabControl1.TabIndex = 5;
		// 
		// tabUpdates
		// 
		tabUpdates = new TabPage ();
		tabUpdates.Location = new Point (4, 22);
		tabUpdates.Name = "tabUpdates";
		tabUpdates.Padding = new Padding (3);
		tabUpdates.Size = new Size (384, 506);
		tabUpdates.TabIndex = 3;
		tabUpdates.Text = "Updates";
		tabUpdates.UseVisualStyleBackColor = true;
		tabControl1.Controls.Add (tabUpdates);
		// 
		// flowLayoutPanel11
		// 
		flowLayoutPanel11 = new FlowLayoutPanel ();
		flowLayoutPanel11.AutoSize = true;
		flowLayoutPanel11.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel11.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel11.Location = new Point (3, 3);
		flowLayoutPanel11.Size = new Size (478, 481);
		flowLayoutPanel11.TabIndex = 9;
		tabUpdates.Controls.Add (flowLayoutPanel11);
		// 
		// flowLayoutPanel20
		// 
		flowLayoutPanel20 = new FlowLayoutPanel ();
		flowLayoutPanel20.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		flowLayoutPanel20.AutoSize = true;
		flowLayoutPanel20.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel20.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel20.Location = new Point (3, 75);
		flowLayoutPanel20.Size = new Size (200, 23);
		flowLayoutPanel20.TabIndex = 4;
		// 
		// cbKeepCharacterPlans
		// 
		cbKeepCharacterPlans = new CheckBox ();
		cbKeepCharacterPlans.AutoSize = true;
		cbKeepCharacterPlans.Location = new Point (3, 3);
		cbKeepCharacterPlans.Size = new Size (100, 17);
		cbKeepCharacterPlans.TabIndex = 1;
		cbKeepCharacterPlans.Text = "Keep plans";
		cbKeepCharacterPlans.UseVisualStyleBackColor = true;
		flowLayoutPanel20.Controls.Add (cbKeepCharacterPlans);
		// 
		// flowLayoutPanel19
		// 
		flowLayoutPanel19 = new FlowLayoutPanel ();
		flowLayoutPanel19.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		flowLayoutPanel19.AutoSize = true;
		flowLayoutPanel19.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel19.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel19.Location = new Point (45, 33);
		flowLayoutPanel19.Size = new Size (0, 0);
		flowLayoutPanel19.TabIndex = 3;
		// 
		// flowLayoutPanel18
		// 
		flowLayoutPanel18 = new FlowLayoutPanel ();
		flowLayoutPanel18.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		flowLayoutPanel18.AutoSize = true;
		flowLayoutPanel18.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel18.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel18.Location = new Point (3, 46);
		flowLayoutPanel18.Size = new Size (153, 23);
		flowLayoutPanel18.TabIndex = 2;
		// 
		// cbDeleteCharactersSilently
		// 
		cbDeleteCharactersSilently = new CheckBox ();
		cbDeleteCharactersSilently.AutoSize = true;
		cbDeleteCharactersSilently.Location = new Point (3, 3);
		cbDeleteCharactersSilently.Size = new Size (147, 17);
		cbDeleteCharactersSilently.TabIndex = 1;
		cbDeleteCharactersSilently.Text = "Delete characters";
		cbDeleteCharactersSilently.UseVisualStyleBackColor = true;
		flowLayoutPanel18.Controls.Add (cbDeleteCharactersSilently);
		// 
		// flowLayoutPanel17
		// 
		flowLayoutPanel17 = new FlowLayoutPanel ();
		flowLayoutPanel17.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		flowLayoutPanel17.AutoSize = true;
		flowLayoutPanel17.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel17.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel17.Location = new Point (14, 19);
		flowLayoutPanel17.Size = new Size (0, 0);
		flowLayoutPanel17.TabIndex = 1;
		// 
		// flowLayoutPanel12
		// 
		flowLayoutPanel12 = new FlowLayoutPanel ();
		flowLayoutPanel12.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		flowLayoutPanel12.AutoSize = true;
		flowLayoutPanel12.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		flowLayoutPanel12.FlowDirection = FlowDirection.TopDown;
		flowLayoutPanel12.Location = new Point (3, 17);
		flowLayoutPanel12.Size = new Size (194, 23);
		flowLayoutPanel12.TabIndex = 0;
		// 
		// cbAutomaticEOSkillUpdate
		// 
		cbAutomaticEOSkillUpdate = new CheckBox ();
		cbAutomaticEOSkillUpdate.AutoSize = true;
		cbAutomaticEOSkillUpdate.Location = new Point (3, 3);
		cbAutomaticEOSkillUpdate.Size = new Size (200, 17);
		cbAutomaticEOSkillUpdate.TabIndex = 1;
		cbAutomaticEOSkillUpdate.Text = "Disable XML update";
		cbAutomaticEOSkillUpdate.UseVisualStyleBackColor = true;
		flowLayoutPanel12.Controls.Add (cbAutomaticEOSkillUpdate);
		// 
		// groupBox9
		// 
		groupBox9 = new GroupBox ();
		groupBox9.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
		groupBox9.Controls.Add (flowLayoutPanel12);
		groupBox9.Controls.Add (flowLayoutPanel17);
		groupBox9.Controls.Add (flowLayoutPanel19);
		groupBox9.Controls.Add (flowLayoutPanel20);
		groupBox9.Controls.Add (flowLayoutPanel18);
		groupBox9.AutoSize = true;
		groupBox9.AutoSizeMode = AutoSizeMode.GrowAndShrink;
		groupBox9.Location = new Point (3, 3);
		groupBox9.Size = new Size (600, 318);
		groupBox9.TabIndex = 9;
		groupBox9.TabStop = false;
		groupBox9.Text = "XML Update";
		flowLayoutPanel11.Controls.Add (groupBox9);
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		AutoSize = true;
		AutoSizeMode = AutoSizeMode.GrowAndShrink;
		ClientSize = new Size (400, 410);
		Controls.Add (tabControl1);
		Location = new Point (200, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82488";
		Load += new EventHandler (MainForm_Load);
	}
示例#26
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SysManDBSetting));

            this.panel1               = new Panel();
            this.gbDBCleanupOpt       = new GroupBox();
            this.btnsaveopt           = new Button();
            this.cbdelOlddata         = new CheckBox();
            this.lbMonths             = new Label();
            this.tbkeepmonths         = new TextBox();
            this.cbkeepdata           = new CheckBox();
            this.groupBox1            = new GroupBox();
            this.tbIP                 = new TextBox();
            this.btnsavedb            = new Button();
            this.lbIP                 = new Label();
            this.textBoxMySQLPassword = new TextBox();
            this.textBoxMySQLUsername = new TextBox();
            this.checkBoxUseMySQL     = new CheckBox();
            this.textBoxMySQLPort     = new TextBox();
            this.label3               = new Label();
            this.label2               = new Label();
            this.label1               = new Label();
            this.radioButtonLocalDB   = new RadioButton();
            this.radioButtonRemoteDB  = new RadioButton();
            this.textBoxMySQLIP       = new TextBox();
            this.label4               = new Label();
            this.groupBox2            = new GroupBox();
            this.btnAccessFile        = new Button();
            this.textBox2             = new TextBox();
            this.label6               = new Label();
            this.textBox1             = new TextBox();
            this.label5               = new Label();
            this.panel2               = new Panel();
            this.groupBox3            = new GroupBox();
            this.panel1.SuspendLayout();
            this.gbDBCleanupOpt.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.panel2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            base.SuspendLayout();
            this.panel1.Controls.Add(this.gbDBCleanupOpt);
            this.panel1.Controls.Add(this.groupBox1);
            componentResourceManager.ApplyResources(this.panel1, "panel1");
            this.panel1.Name = "panel1";
            this.gbDBCleanupOpt.Controls.Add(this.btnsaveopt);
            this.gbDBCleanupOpt.Controls.Add(this.cbdelOlddata);
            this.gbDBCleanupOpt.Controls.Add(this.lbMonths);
            this.gbDBCleanupOpt.Controls.Add(this.tbkeepmonths);
            this.gbDBCleanupOpt.Controls.Add(this.cbkeepdata);
            componentResourceManager.ApplyResources(this.gbDBCleanupOpt, "gbDBCleanupOpt");
            this.gbDBCleanupOpt.Name    = "gbDBCleanupOpt";
            this.gbDBCleanupOpt.TabStop = false;
            this.btnsaveopt.BackColor   = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnsaveopt, "btnsaveopt");
            this.btnsaveopt.ForeColor = SystemColors.ControlText;
            this.btnsaveopt.Name      = "btnsaveopt";
            this.btnsaveopt.UseVisualStyleBackColor = false;
            this.btnsaveopt.Click += new System.EventHandler(this.btnsaveopt_Click);
            componentResourceManager.ApplyResources(this.cbdelOlddata, "cbdelOlddata");
            this.cbdelOlddata.Name = "cbdelOlddata";
            this.cbdelOlddata.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.lbMonths, "lbMonths");
            this.lbMonths.Name = "lbMonths";
            componentResourceManager.ApplyResources(this.tbkeepmonths, "tbkeepmonths");
            this.tbkeepmonths.Name      = "tbkeepmonths";
            this.tbkeepmonths.KeyPress += new KeyPressEventHandler(this.num_KeyPress);
            componentResourceManager.ApplyResources(this.cbkeepdata, "cbkeepdata");
            this.cbkeepdata.Name = "cbkeepdata";
            this.cbkeepdata.UseVisualStyleBackColor = true;
            this.cbkeepdata.CheckedChanged         += new System.EventHandler(this.cbkeepdata_CheckedChanged);
            this.groupBox1.Controls.Add(this.tbIP);
            this.groupBox1.Controls.Add(this.btnsavedb);
            this.groupBox1.Controls.Add(this.lbIP);
            this.groupBox1.Controls.Add(this.textBoxMySQLPassword);
            this.groupBox1.Controls.Add(this.textBoxMySQLUsername);
            this.groupBox1.Controls.Add(this.checkBoxUseMySQL);
            this.groupBox1.Controls.Add(this.textBoxMySQLPort);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label1);
            componentResourceManager.ApplyResources(this.groupBox1, "groupBox1");
            this.groupBox1.Name    = "groupBox1";
            this.groupBox1.TabStop = false;
            componentResourceManager.ApplyResources(this.tbIP, "tbIP");
            this.tbIP.Name           = "tbIP";
            this.tbIP.KeyPress      += new KeyPressEventHandler(this.tbIP_KeyPress);
            this.btnsavedb.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnsavedb, "btnsavedb");
            this.btnsavedb.ForeColor = SystemColors.ControlText;
            this.btnsavedb.Name      = "btnsavedb";
            this.btnsavedb.UseVisualStyleBackColor = false;
            this.btnsavedb.Click += new System.EventHandler(this.btnsavedb_Click);
            componentResourceManager.ApplyResources(this.lbIP, "lbIP");
            this.lbIP.Name = "lbIP";
            componentResourceManager.ApplyResources(this.textBoxMySQLPassword, "textBoxMySQLPassword");
            this.textBoxMySQLPassword.Name = "textBoxMySQLPassword";
            componentResourceManager.ApplyResources(this.textBoxMySQLUsername, "textBoxMySQLUsername");
            this.textBoxMySQLUsername.Name = "textBoxMySQLUsername";
            componentResourceManager.ApplyResources(this.checkBoxUseMySQL, "checkBoxUseMySQL");
            this.checkBoxUseMySQL.Name = "checkBoxUseMySQL";
            this.checkBoxUseMySQL.UseVisualStyleBackColor = true;
            this.checkBoxUseMySQL.CheckedChanged         += new System.EventHandler(this.checkBoxUseMySQL_CheckedChanged);
            componentResourceManager.ApplyResources(this.textBoxMySQLPort, "textBoxMySQLPort");
            this.textBoxMySQLPort.Name      = "textBoxMySQLPort";
            this.textBoxMySQLPort.KeyPress += new KeyPressEventHandler(this.num_KeyPress);
            componentResourceManager.ApplyResources(this.label3, "label3");
            this.label3.Name = "label3";
            componentResourceManager.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";
            componentResourceManager.ApplyResources(this.radioButtonLocalDB, "radioButtonLocalDB");
            this.radioButtonLocalDB.Name    = "radioButtonLocalDB";
            this.radioButtonLocalDB.TabStop = true;
            this.radioButtonLocalDB.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.radioButtonRemoteDB, "radioButtonRemoteDB");
            this.radioButtonRemoteDB.Name    = "radioButtonRemoteDB";
            this.radioButtonRemoteDB.TabStop = true;
            this.radioButtonRemoteDB.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.textBoxMySQLIP, "textBoxMySQLIP");
            this.textBoxMySQLIP.Name = "textBoxMySQLIP";
            componentResourceManager.ApplyResources(this.label4, "label4");
            this.label4.Name = "label4";
            this.groupBox2.Controls.Add(this.btnAccessFile);
            this.groupBox2.Controls.Add(this.textBox2);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.textBox1);
            this.groupBox2.Controls.Add(this.label5);
            componentResourceManager.ApplyResources(this.groupBox2, "groupBox2");
            this.groupBox2.Name          = "groupBox2";
            this.groupBox2.TabStop       = false;
            this.btnAccessFile.BackColor = Color.Gainsboro;
            this.btnAccessFile.Cursor    = Cursors.Hand;
            componentResourceManager.ApplyResources(this.btnAccessFile, "btnAccessFile");
            this.btnAccessFile.Name = "btnAccessFile";
            this.btnAccessFile.UseVisualStyleBackColor = false;
            componentResourceManager.ApplyResources(this.textBox2, "textBox2");
            this.textBox2.Name = "textBox2";
            componentResourceManager.ApplyResources(this.label6, "label6");
            this.label6.Name = "label6";
            componentResourceManager.ApplyResources(this.textBox1, "textBox1");
            this.textBox1.Name = "textBox1";
            componentResourceManager.ApplyResources(this.label5, "label5");
            this.label5.Name = "label5";
            this.panel2.Controls.Add(this.groupBox3);
            this.panel2.Controls.Add(this.groupBox2);
            componentResourceManager.ApplyResources(this.panel2, "panel2");
            this.panel2.Name = "panel2";
            this.groupBox3.Controls.Add(this.radioButtonRemoteDB);
            this.groupBox3.Controls.Add(this.label4);
            this.groupBox3.Controls.Add(this.radioButtonLocalDB);
            this.groupBox3.Controls.Add(this.textBoxMySQLIP);
            componentResourceManager.ApplyResources(this.groupBox3, "groupBox3");
            this.groupBox3.Name    = "groupBox3";
            this.groupBox3.TabStop = false;
            base.AutoScaleMode     = AutoScaleMode.None;
            this.BackColor         = Color.WhiteSmoke;
            base.Controls.Add(this.panel1);
            base.Controls.Add(this.panel2);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "SysManDBSetting";
            this.panel1.ResumeLayout(false);
            this.gbDBCleanupOpt.ResumeLayout(false);
            this.gbDBCleanupOpt.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.panel2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            base.ResumeLayout(false);
        }
示例#27
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _toolStrip
		// 
		_toolStrip = new ToolStrip ();
		_toolStrip.Renderer = new ToolStripSystemRenderer ();
		Controls.Add (_toolStrip);
		// 
		// _toolStripButton1
		// 
		_toolStripButton1 = new ToolStripButton ();
		_toolStripButton1.Text = "1";
		_toolStrip.Items.Add (_toolStripButton1);
		// 
		// _toolStripButton2
		// 
		_toolStripButton2 = new ToolStripButton ();
		_toolStripButton2.Checked = true;
		_toolStripButton2.Text = "2";
		_toolStrip.Items.Add (_toolStripButton2);
		// 
		// _toolStripButton3
		// 
		_toolStripButton3 = new ToolStripButton ();
		_toolStripButton3.Text = "3";
		_toolStrip.Items.Add (_toolStripButton3);
		// 
		// _checkedGroupBox
		// 
		_checkedGroupBox = new GroupBox ();
		_checkedGroupBox.Location = new Point (20, 35);
		_checkedGroupBox.Size = new Size (260, 85);
		_checkedGroupBox.Text = "Checked";
		Controls.Add (_checkedGroupBox);
		// 
		// _button1CheckBox
		// 
		_button1CheckBox = new CheckBox ();
		_button1CheckBox.Checked = _toolStripButton1.Checked;
		_button1CheckBox.Location = new Point (8, 16);
		_button1CheckBox.Text = "1";
		_checkedGroupBox.Controls.Add (_button1CheckBox);
		_button1CheckBox.CheckedChanged += delegate (object sender, EventArgs e) {
			_toolStripButton1.Checked = _button1CheckBox.Checked;
		};
		// 
		// _button2CheckBox
		// 
		_button2CheckBox = new CheckBox ();
		_button2CheckBox.Checked = _toolStripButton2.Checked;
		_button2CheckBox.Location = new Point (8, 35);
		_button2CheckBox.Text = "2";
		_checkedGroupBox.Controls.Add (_button2CheckBox);
		_button2CheckBox.CheckedChanged += delegate (object sender, EventArgs e) {
			_toolStripButton2.Checked = _button2CheckBox.Checked;
		};
		// 
		// _button3CheckBox
		// 
		_button3CheckBox = new CheckBox ();
		_button3CheckBox.Checked = _toolStripButton3.Checked;
		_button3CheckBox.Location = new Point (8, 55);
		_button3CheckBox.Text = "3";
		_checkedGroupBox.Controls.Add (_button3CheckBox);
		_button3CheckBox.CheckedChanged += delegate (object sender, EventArgs e) {
			_toolStripButton3.Checked = _button3CheckBox.Checked;
		};
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 140);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82151";
		Load += new EventHandler (MainForm_Load);
	}
 private void InitializeComponent()
 {
     this.groupBox1       = new GroupBox();
     this.label2          = new Label();
     this.buttonUpdate    = new Button();
     this.textBoxPrice    = new TextBox();
     this.label19         = new Label();
     this.dateTimePicker1 = new DateTimePicker();
     this.groupBox1.SuspendLayout();
     base.SuspendLayout();
     this.groupBox1.BackColor = Color.DarkSeaGreen;
     this.groupBox1.Controls.Add(this.dateTimePicker1);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.buttonUpdate);
     this.groupBox1.Controls.Add(this.textBoxPrice);
     this.groupBox1.Controls.Add(this.label19);
     this.groupBox1.Font         = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.groupBox1.Location     = new Point(5, 5);
     this.groupBox1.Name         = "groupBox1";
     this.groupBox1.Size         = new Size(0x143, 0x52);
     this.groupBox1.TabIndex     = 0x11;
     this.groupBox1.TabStop      = false;
     this.groupBox1.Text         = "Payment Information";
     this.label2.AutoSize        = true;
     this.label2.BackColor       = Color.DarkSeaGreen;
     this.label2.Font            = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.label2.Location        = new Point(0xb5, 0x13);
     this.label2.Name            = "label2";
     this.label2.Size            = new Size(0x25, 0x10);
     this.label2.TabIndex        = 0x1f;
     this.label2.Text            = "Date";
     this.buttonUpdate.BackColor = Color.MediumSeaGreen;
     this.buttonUpdate.Font      = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.buttonUpdate.Location  = new Point(0x65, 0x2b);
     this.buttonUpdate.Name      = "buttonUpdate";
     this.buttonUpdate.Size      = new Size(120, 30);
     this.buttonUpdate.TabIndex  = 0x1c;
     this.buttonUpdate.Text      = "Update";
     this.buttonUpdate.UseVisualStyleBackColor = false;
     this.buttonUpdate.Click          += new EventHandler(this.button1_Click);
     this.textBoxPrice.Font            = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.textBoxPrice.Location        = new Point(0x45, 0x10);
     this.textBoxPrice.Name            = "textBoxPrice";
     this.textBoxPrice.Size            = new Size(0x6a, 0x16);
     this.textBoxPrice.TabIndex        = 0x19;
     this.label19.AutoSize             = true;
     this.label19.BackColor            = Color.DarkSeaGreen;
     this.label19.Font                 = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.label19.Location             = new Point(10, 0x13);
     this.label19.Name                 = "label19";
     this.label19.Size                 = new Size(0x35, 0x10);
     this.label19.TabIndex             = 0x1a;
     this.label19.Text                 = "Amount";
     this.dateTimePicker1.CustomFormat = "dd-MM-yyyy";
     this.dateTimePicker1.Font         = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.dateTimePicker1.Format       = DateTimePickerFormat.Custom;
     this.dateTimePicker1.Location     = new Point(0xe1, 0x10);
     this.dateTimePicker1.Margin       = new Padding(4);
     this.dateTimePicker1.Name         = "dateTimePicker1";
     this.dateTimePicker1.Size         = new Size(90, 0x16);
     this.dateTimePicker1.TabIndex     = 0x12;
     base.AutoScaleDimensions          = new SizeF(6f, 13f);
     ////base.AutoScaleMode = AutoScaleMode.Font;
     this.BackColor  = Color.DarkSeaGreen;
     base.ClientSize = new Size(0x14d, 0x5d);
     base.Controls.Add(this.groupBox1);
     base.Name = "UpdateDueAmount";
     this.Text = "UpdateDueAmount";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     base.ResumeLayout(false);
 }
示例#29
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _tableLayoutPanel
		// 
		_tableLayoutPanel = new TableLayoutPanel ();
		_tableLayoutPanel.ColumnCount = 3;
		_tableLayoutPanel.ColumnStyles.Add (new ColumnStyle ());
		_tableLayoutPanel.ColumnStyles.Add (new ColumnStyle ());
		_tableLayoutPanel.ColumnStyles.Add (new ColumnStyle ());
		_tableLayoutPanel.Dock = DockStyle.Top;
		_tableLayoutPanel.Height = 200;
		_tableLayoutPanel.RowCount = 2;
		_tableLayoutPanel.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
		_tableLayoutPanel.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
		Controls.Add (_tableLayoutPanel);
		// 
		// _labelA
		// 
		_labelA = new Label ();
		_labelA.Dock = DockStyle.Fill;
		_labelA.Size = new Size (95, 20);
		_labelA.Text = "A";
		_tableLayoutPanel.Controls.Add (_labelA, 0, 0);
		// 
		// _labelB
		// 
		_labelB = new Label ();
		_labelB.Dock = DockStyle.Fill;
		_labelB.Size = new Size (95, 20);
		_labelB.Text = "B";
		_tableLayoutPanel.Controls.Add (_labelB, 1, 0);
		// 
		// _labelC
		// 
		_labelC = new Label ();
		_labelC.Dock = DockStyle.Fill;
		_labelC.Size = new Size (95, 20);
		_labelC.Text = "C";
		_tableLayoutPanel.Controls.Add (_labelC, 2, 0);
		// 
		// _labelD
		// 
		_labelD = new Label ();
		_labelD.Dock = DockStyle.Fill;
		_labelD.Size = new Size (95, 20);
		_labelD.Text = "D";
		_tableLayoutPanel.Controls.Add (_labelD, 0, 1);
		// 
		// _labelE
		// 
		_labelE = new Label ();
		_labelE.Dock = DockStyle.Fill;
		_labelE.Size = new Size (95, 20);
		_labelE.Text = "E";
		_tableLayoutPanel.Controls.Add (_labelE, 1, 1);
		// 
		// _labelF
		// 
		_labelF = new Label ();
		_labelF.Dock = DockStyle.Fill;
		_labelF.Size = new Size (95, 20);
		_labelF.Text = "F";
		_tableLayoutPanel.Controls.Add (_labelF, 2, 1);
		// 
		// _borderStyleGroupBox
		// 
		_borderStyleGroupBox = new GroupBox ();
		_borderStyleGroupBox.Dock = DockStyle.Bottom;
		_borderStyleGroupBox.Height = 100;
		_borderStyleGroupBox.Text = "CellBorderStyle";
		Controls.Add (_borderStyleGroupBox);
		// 
		// _insetBorderStyleRadioButton
		// 
		_insetBorderStyleRadioButton = new RadioButton ();
		_insetBorderStyleRadioButton.Location = new Point (8, 16);
		_insetBorderStyleRadioButton.Text = "Inset";
		_insetBorderStyleRadioButton.Size = new Size (95, 20);
		_insetBorderStyleRadioButton.CheckedChanged += new EventHandler (InsetBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_insetBorderStyleRadioButton);
		// 
		// _insetDoubleBorderStyleRadioButton
		// 
		_insetDoubleBorderStyleRadioButton = new RadioButton ();
		_insetDoubleBorderStyleRadioButton.Location = new Point (8, 36);
		_insetDoubleBorderStyleRadioButton.Text = "InsetDouble";
		_insetDoubleBorderStyleRadioButton.Size = new Size (95, 20);
		_insetDoubleBorderStyleRadioButton.CheckedChanged += new EventHandler (InsetDoubleBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_insetDoubleBorderStyleRadioButton);
		// 
		// _noneBorderStyleRadioButton
		// 
		_noneBorderStyleRadioButton = new RadioButton ();
		_noneBorderStyleRadioButton.Checked = true;
		_noneBorderStyleRadioButton.Location = new Point (8, 56);
		_noneBorderStyleRadioButton.Text = "None";
		_noneBorderStyleRadioButton.Size = new Size (95, 20);
		_noneBorderStyleRadioButton.CheckedChanged += new EventHandler (NoneBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_noneBorderStyleRadioButton);
		// 
		// _outsetBorderStyleRadioButton
		// 
		_outsetBorderStyleRadioButton = new RadioButton ();
		_outsetBorderStyleRadioButton.Location = new Point (8, 76);
		_outsetBorderStyleRadioButton.Text = "Outset";
		_outsetBorderStyleRadioButton.Size = new Size (95, 20);
		_outsetBorderStyleRadioButton.CheckedChanged += new EventHandler (OutsetBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_outsetBorderStyleRadioButton);
		// 
		// _outsetDoubleBorderStyleRadioButton
		// 
		_outsetDoubleBorderStyleRadioButton = new RadioButton ();
		_outsetDoubleBorderStyleRadioButton.Location = new Point (160, 16);
		_outsetDoubleBorderStyleRadioButton.Text = "OutsetDouble";
		_outsetDoubleBorderStyleRadioButton.Size = new Size (95, 20);
		_outsetDoubleBorderStyleRadioButton.CheckedChanged += new EventHandler (OutsetDoubleBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_outsetDoubleBorderStyleRadioButton);
		// 
		// _outsetPartialBorderStyleRadioButton
		// 
		_outsetPartialBorderStyleRadioButton = new RadioButton ();
		_outsetPartialBorderStyleRadioButton.Location = new Point (160, 36);
		_outsetPartialBorderStyleRadioButton.Text = "OutsetPartial";
		_outsetPartialBorderStyleRadioButton.Size = new Size (95, 20);
		_outsetPartialBorderStyleRadioButton.CheckedChanged += new EventHandler (OutsetPartialBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_outsetPartialBorderStyleRadioButton);
		// 
		// _singleBorderStyleRadioButton
		// 
		_singleBorderStyleRadioButton = new RadioButton ();
		_singleBorderStyleRadioButton.Location = new Point (160, 56);
		_singleBorderStyleRadioButton.Text = "Single";
		_singleBorderStyleRadioButton.Size = new Size (95, 20);
		_singleBorderStyleRadioButton.CheckedChanged += new EventHandler (SingleBorderStyleRadioButton_CheckedChanged);
		_borderStyleGroupBox.Controls.Add (_singleBorderStyleRadioButton);
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (315, 310);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81884";
		Load += new EventHandler (MainForm_Load);
	}
示例#30
0
        public StepOptionsForm(IEnumerable <OptionGroup> optionGroups, Dictionary <string, object> variableCache)
        {
            InitializeComponent();
            _variableCache = variableCache;

            const int margin     = 12;
            const int padding    = 6;
            var       nextGroupY = 0;
            var       width      = margin * 2;

            foreach (var optionGroup in optionGroups)
            {
                if (optionGroup.Options.Count == 0)
                {
                    continue;
                }

                var gpbOptions = new GroupBox
                {
                    Text     = optionGroup.Name,
                    Location = new Point(0, nextGroupY),
                    Width    = pnlOptions.Width,
                    Anchor   = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right
                };
                pnlOptions.Controls.Add(gpbOptions);

                var innerControlWidth = gpbOptions.Width - margin * 2;

                var nextOptionY = padding + margin;
                foreach (var option in optionGroup.Options)
                {
                    // Description
                    if (!string.IsNullOrWhiteSpace(option.Description))
                    {
                        var lblDescription = new Label
                        {
                            Text        = option.Description,
                            Location    = new Point(margin, nextOptionY),
                            TextAlign   = ContentAlignment.MiddleLeft,
                            MaximumSize = new Size(300, 0),
                            AutoSize    = true,
                            Anchor      = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right
                        };
                        gpbOptions.Controls.Add(lblDescription);
                        nextOptionY += lblDescription.Height + padding;
                        width        = System.Math.Max(margin * 3 + lblDescription.Width, width);
                    }

                    switch (option.Mode)
                    {
                    case OptionsMode.CheckBox:
                        var chkOption = new CheckBox
                        {
                            Text      = option.Name,
                            Location  = new Point(margin, nextOptionY),
                            Size      = new Size(innerControlWidth, 16),
                            TextAlign = ContentAlignment.MiddleLeft,
                            Tag       = option.Variable,
                            Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right
                        };

                        // Default
                        if (bool.TryParse(option.Default, out var chkDef))
                        {
                            chkOption.Checked = chkDef;
                        }

                        gpbOptions.Controls.Add(chkOption);
                        nextOptionY += chkOption.Height + padding;
                        break;

                    case OptionsMode.RadioButton:
                        if (option.Values.Count == 0)
                        {
                            var rbnOption = new RadioButton
                            {
                                Text      = option.Name,
                                Location  = new Point(margin, nextOptionY),
                                Size      = new Size(innerControlWidth, 16),
                                TextAlign = ContentAlignment.MiddleLeft,
                                Tag       = option.Variable,
                                Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right
                            };

                            // Default
                            if (bool.TryParse(option.Default, out var rbnDef))
                            {
                                rbnOption.Checked = rbnDef;
                            }

                            gpbOptions.Controls.Add(rbnOption);
                            nextOptionY += rbnOption.Height + padding;
                        }
                        else
                        {
                            foreach (var value in option.Values)
                            {
                                var rbnOption = new RadioButton
                                {
                                    Text      = value.Text,
                                    Location  = new Point(margin, nextOptionY),
                                    Size      = new Size(innerControlWidth, 16),
                                    TextAlign = ContentAlignment.MiddleLeft,
                                    Tag       = value.Variable,
                                    Anchor    = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right
                                };

                                // Default
                                if (option.Default == value.Variable)
                                {
                                    rbnOption.Checked = true;
                                }

                                gpbOptions.Controls.Add(rbnOption);
                                nextOptionY += rbnOption.Height + padding;
                            }
                        }
                        break;

                    case OptionsMode.DropDown:
                        if (option.Values.Count == 0)
                        {
                            continue;
                        }

                        var ddlOption = new ComboBox
                        {
                            Location      = new Point(margin, nextOptionY),
                            Size          = new Size(innerControlWidth, 21),
                            DropDownStyle = ComboBoxStyle.DropDownList,
                            ValueMember   = "Variable",
                            DisplayMember = "Text"
                        };
                        ddlOption.Items.AddRange(option.Values.ToArray());

                        // Default
                        ddlOption.SelectedIndex = Math.Max(ddlOption.Items.IndexOf(option.Values.FirstOrDefault(v => v.Variable == option.Default)), 0);

                        gpbOptions.Controls.Add(ddlOption);
                        nextOptionY += ddlOption.Height + padding;

                        break;
                    }

                    width = System.Math.Max(innerControlWidth, width);

                    _fieldCount++;
                }

                gpbOptions.Height = nextOptionY + padding;
                nextGroupY       += gpbOptions.Height + padding;
            }

            SetClientSizeCore(width, nextGroupY + margin + splMain.Panel2.Height);
        }
 private void InitializeComponent()
 {
     base.ClientSize                       = new Size(400, 230);
     base.StartPosition                    = FormStartPosition.CenterScreen;
     base.FormBorderStyle                  = FormBorderStyle.FixedDialog;
     base.MaximizeBox                      = false;
     this.Text                             = "Add/Edit smart host";
     this.m_pIcon                          = new PictureBox();
     this.m_pIcon.Size                     = new Size(32, 32);
     this.m_pIcon.Location                 = new Point(10, 10);
     this.m_pIcon.Image                    = ResManager.GetIcon("server.ico").ToBitmap();
     this.mt_Info                          = new Label();
     this.mt_Info.Size                     = new Size(200, 32);
     this.mt_Info.Location                 = new Point(50, 10);
     this.mt_Info.TextAlign                = ContentAlignment.MiddleLeft;
     this.mt_Info.Text                     = "Specify smart host information.";
     this.m_pSeparator1                    = new GroupBox();
     this.m_pSeparator1.Size               = new Size(385, 3);
     this.m_pSeparator1.Location           = new Point(10, 50);
     this.mt_Server                        = new Label();
     this.mt_Server.Size                   = new Size(100, 20);
     this.mt_Server.Location               = new Point(0, 70);
     this.mt_Server.TextAlign              = ContentAlignment.MiddleRight;
     this.mt_Server.Text                   = "Host:";
     this.m_pServer                        = new TextBox();
     this.m_pServer.Size                   = new Size(200, 20);
     this.m_pServer.Location               = new Point(105, 70);
     this.m_pPort                          = new NumericUpDown();
     this.m_pPort.Size                     = new Size(75, 20);
     this.m_pPort.Location                 = new Point(310, 70);
     this.m_pPort.Minimum                  = 1m;
     this.m_pPort.Maximum                  = 99999m;
     this.m_pPort.Value                    = WellKnownPorts.SMTP;
     this.mt_SslMode                       = new Label();
     this.mt_SslMode.Size                  = new Size(100, 20);
     this.mt_SslMode.Location              = new Point(0, 95);
     this.mt_SslMode.TextAlign             = ContentAlignment.MiddleRight;
     this.mt_SslMode.Text                  = "SSL Mode:";
     this.m_pSslMode                       = new ComboBox();
     this.m_pSslMode.Size                  = new Size(100, 20);
     this.m_pSslMode.Location              = new Point(105, 95);
     this.m_pSslMode.DropDownStyle         = ComboBoxStyle.DropDownList;
     this.m_pSslMode.SelectedIndexChanged += new EventHandler(this.m_pSslMode_SelectedIndexChanged);
     this.m_pSslMode.Items.Add("None");
     this.m_pSslMode.Items.Add("SSL");
     this.m_pSslMode.Items.Add("TLS");
     this.m_pSslMode.SelectedIndex = 0;
     this.mt_UserName              = new Label();
     this.mt_UserName.Size         = new Size(100, 20);
     this.mt_UserName.Location     = new Point(0, 120);
     this.mt_UserName.TextAlign    = ContentAlignment.MiddleRight;
     this.mt_UserName.Text         = "User Name:";
     this.m_pUserName              = new TextBox();
     this.m_pUserName.Size         = new Size(200, 20);
     this.m_pUserName.Location     = new Point(105, 120);
     this.mt_Password              = new Label();
     this.mt_Password.Size         = new Size(100, 20);
     this.mt_Password.Location     = new Point(0, 145);
     this.mt_Password.TextAlign    = ContentAlignment.MiddleRight;
     this.mt_Password.Text         = "Password:"******"Cancel";
     this.m_pCancel.Click   += new EventHandler(this.m_pCancel_Click);
     this.m_pOk          = new Button();
     this.m_pOk.Size     = new Size(70, 20);
     this.m_pOk.Location = new Point(315, 200);
     this.m_pOk.Text     = "Ok";
     this.m_pOk.Click   += new EventHandler(this.m_pOk_Click);
     base.Controls.Add(this.m_pIcon);
     base.Controls.Add(this.mt_Info);
     base.Controls.Add(this.m_pSeparator1);
     base.Controls.Add(this.mt_Server);
     base.Controls.Add(this.m_pServer);
     base.Controls.Add(this.m_pPort);
     base.Controls.Add(this.mt_SslMode);
     base.Controls.Add(this.m_pSslMode);
     base.Controls.Add(this.mt_UserName);
     base.Controls.Add(this.m_pUserName);
     base.Controls.Add(this.mt_Password);
     base.Controls.Add(this.m_pPassword);
     base.Controls.Add(this.m_pSeparator2);
     base.Controls.Add(this.m_pCancel);
     base.Controls.Add(this.m_pOk);
 }
示例#32
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormClearinghouses));
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.butEligibility          = new OpenDental.UI.Button();
     this.butDefaultMedical       = new OpenDental.UI.Button();
     this.butDefaultDental        = new OpenDental.UI.Button();
     this.textReportCheckInterval = new System.Windows.Forms.TextBox();
     this.labelReportheckUnits    = new System.Windows.Forms.Label();
     this.butAdd                     = new OpenDental.UI.Button();
     this.butClose                   = new OpenDental.UI.Button();
     this.labelClinic                = new System.Windows.Forms.Label();
     this.comboClinic                = new System.Windows.Forms.ComboBox();
     this.labelGuide                 = new System.Windows.Forms.Label();
     this.gridMain                   = new OpenDental.UI.ODGrid();
     this.radioInterval              = new System.Windows.Forms.RadioButton();
     this.radioTime                  = new System.Windows.Forms.RadioButton();
     this.textReportCheckTime        = new OpenDental.ValidTime();
     this.groupRecieveSettings       = new System.Windows.Forms.GroupBox();
     this.checkReceiveReportsService = new System.Windows.Forms.CheckBox();
     this.textReportComputerName     = new System.Windows.Forms.TextBox();
     this.butThisComputer            = new OpenDental.UI.Button();
     this.labelReportComputerName    = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupRecieveSettings.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.butEligibility);
     this.groupBox1.Controls.Add(this.butDefaultMedical);
     this.groupBox1.Controls.Add(this.butDefaultDental);
     this.groupBox1.Location = new System.Drawing.Point(6, 387);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(97, 112);
     this.groupBox1.TabIndex = 9;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Set Default";
     //
     // butEligibility
     //
     this.butEligibility.Location = new System.Drawing.Point(15, 79);
     this.butEligibility.Name     = "butEligibility";
     this.butEligibility.Size     = new System.Drawing.Size(75, 24);
     this.butEligibility.TabIndex = 3;
     this.butEligibility.Text     = "Eligibility";
     this.butEligibility.Click   += new System.EventHandler(this.butEligibility_Click);
     //
     // butDefaultMedical
     //
     this.butDefaultMedical.Location = new System.Drawing.Point(15, 49);
     this.butDefaultMedical.Name     = "butDefaultMedical";
     this.butDefaultMedical.Size     = new System.Drawing.Size(75, 24);
     this.butDefaultMedical.TabIndex = 2;
     this.butDefaultMedical.Text     = "Medical";
     this.butDefaultMedical.Click   += new System.EventHandler(this.butDefaultMedical_Click);
     //
     // butDefaultDental
     //
     this.butDefaultDental.Location = new System.Drawing.Point(15, 19);
     this.butDefaultDental.Name     = "butDefaultDental";
     this.butDefaultDental.Size     = new System.Drawing.Size(75, 24);
     this.butDefaultDental.TabIndex = 1;
     this.butDefaultDental.Text     = "Dental";
     this.butDefaultDental.Click   += new System.EventHandler(this.butDefaultDental_Click);
     //
     // textReportCheckInterval
     //
     this.textReportCheckInterval.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.textReportCheckInterval.Location  = new System.Drawing.Point(237, 66);
     this.textReportCheckInterval.MaxLength = 2147483647;
     this.textReportCheckInterval.Multiline = true;
     this.textReportCheckInterval.Name      = "textReportCheckInterval";
     this.textReportCheckInterval.Size      = new System.Drawing.Size(29, 20);
     this.textReportCheckInterval.TabIndex  = 14;
     //
     // labelReportheckUnits
     //
     this.labelReportheckUnits.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.labelReportheckUnits.Location  = new System.Drawing.Point(273, 66);
     this.labelReportheckUnits.Name      = "labelReportheckUnits";
     this.labelReportheckUnits.Size      = new System.Drawing.Size(128, 20);
     this.labelReportheckUnits.TabIndex  = 15;
     this.labelReportheckUnits.Text      = "minutes (5 to 60)";
     this.labelReportheckUnits.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // butAdd
     //
     this.butAdd.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butAdd.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(805, 385);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(80, 24);
     this.butAdd.TabIndex   = 8;
     this.butAdd.Text       = "&Add";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // butClose
     //
     this.butClose.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Location = new System.Drawing.Point(805, 466);
     this.butClose.Name     = "butClose";
     this.butClose.Size     = new System.Drawing.Size(75, 24);
     this.butClose.TabIndex = 0;
     this.butClose.Text     = "&Close";
     this.butClose.Click   += new System.EventHandler(this.butClose_Click);
     //
     // labelClinic
     //
     this.labelClinic.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.labelClinic.Location  = new System.Drawing.Point(616, 18);
     this.labelClinic.Name      = "labelClinic";
     this.labelClinic.Size      = new System.Drawing.Size(101, 18);
     this.labelClinic.TabIndex  = 21;
     this.labelClinic.Text      = "Clinic";
     this.labelClinic.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.labelClinic.Visible   = false;
     //
     // comboClinic
     //
     this.comboClinic.Anchor                    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboClinic.DropDownStyle             = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboClinic.Location                  = new System.Drawing.Point(720, 17);
     this.comboClinic.Name                      = "comboClinic";
     this.comboClinic.Size                      = new System.Drawing.Size(165, 21);
     this.comboClinic.TabIndex                  = 20;
     this.comboClinic.Visible                   = false;
     this.comboClinic.SelectionChangeCommitted += new System.EventHandler(this.comboClinic_SelectionChangeCommitted);
     //
     // labelGuide
     //
     this.labelGuide.Location  = new System.Drawing.Point(6, -1);
     this.labelGuide.Name      = "labelGuide";
     this.labelGuide.Size      = new System.Drawing.Size(595, 36);
     this.labelGuide.TabIndex  = 22;
     this.labelGuide.Text      = resources.GetString("labelGuide.Text");
     this.labelGuide.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // gridMain
     //
     this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gridMain.Location         = new System.Drawing.Point(6, 39);
     this.gridMain.Name             = "gridMain";
     this.gridMain.Size             = new System.Drawing.Size(879, 340);
     this.gridMain.TabIndex         = 17;
     this.gridMain.Title            = "Clearinghouses";
     this.gridMain.TranslationName  = "TableClearinghouses";
     this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
     //
     // radioInterval
     //
     this.radioInterval.Checked                 = true;
     this.radioInterval.Location                = new System.Drawing.Point(102, 68);
     this.radioInterval.Name                    = "radioInterval";
     this.radioInterval.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.radioInterval.Size                    = new System.Drawing.Size(134, 17);
     this.radioInterval.TabIndex                = 25;
     this.radioInterval.TabStop                 = true;
     this.radioInterval.Text                    = "Receive at an interval";
     this.radioInterval.UseVisualStyleBackColor = true;
     this.radioInterval.CheckedChanged         += new System.EventHandler(this.radioInterval_CheckedChanged);
     //
     // radioTime
     //
     this.radioTime.Location                = new System.Drawing.Point(102, 90);
     this.radioTime.Name                    = "radioTime";
     this.radioTime.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.radioTime.Size                    = new System.Drawing.Size(134, 17);
     this.radioTime.TabIndex                = 26;
     this.radioTime.Text                    = "Receive at a set time";
     this.radioTime.UseVisualStyleBackColor = true;
     //
     // textReportCheckTime
     //
     this.textReportCheckTime.Enabled  = false;
     this.textReportCheckTime.Location = new System.Drawing.Point(237, 89);
     this.textReportCheckTime.Name     = "textReportCheckTime";
     this.textReportCheckTime.Size     = new System.Drawing.Size(119, 20);
     this.textReportCheckTime.TabIndex = 28;
     //
     // groupRecieveSettings
     //
     this.groupRecieveSettings.Controls.Add(this.checkReceiveReportsService);
     this.groupRecieveSettings.Controls.Add(this.textReportComputerName);
     this.groupRecieveSettings.Controls.Add(this.butThisComputer);
     this.groupRecieveSettings.Controls.Add(this.labelReportComputerName);
     this.groupRecieveSettings.Controls.Add(this.radioInterval);
     this.groupRecieveSettings.Controls.Add(this.textReportCheckTime);
     this.groupRecieveSettings.Controls.Add(this.radioTime);
     this.groupRecieveSettings.Controls.Add(this.textReportCheckInterval);
     this.groupRecieveSettings.Controls.Add(this.labelReportheckUnits);
     this.groupRecieveSettings.Location = new System.Drawing.Point(162, 385);
     this.groupRecieveSettings.Name     = "groupRecieveSettings";
     this.groupRecieveSettings.Size     = new System.Drawing.Size(571, 115);
     this.groupRecieveSettings.TabIndex = 29;
     this.groupRecieveSettings.TabStop  = false;
     this.groupRecieveSettings.Text     = "Automatic Report Settings";
     //
     // checkReceiveReportsService
     //
     this.checkReceiveReportsService.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkReceiveReportsService.CheckAlign      = System.Drawing.ContentAlignment.MiddleRight;
     this.checkReceiveReportsService.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkReceiveReportsService.Location        = new System.Drawing.Point(22, 17);
     this.checkReceiveReportsService.Name            = "checkReceiveReportsService";
     this.checkReceiveReportsService.Size            = new System.Drawing.Size(227, 17);
     this.checkReceiveReportsService.TabIndex        = 32;
     this.checkReceiveReportsService.TabStop         = false;
     this.checkReceiveReportsService.Text            = "Receive Reports by Service";
     this.checkReceiveReportsService.TextAlign       = System.Drawing.ContentAlignment.MiddleRight;
     this.checkReceiveReportsService.CheckedChanged += new System.EventHandler(this.checkReceiveReportsService_CheckedChanged);
     //
     // textReportComputerName
     //
     this.textReportComputerName.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.textReportComputerName.Location  = new System.Drawing.Point(237, 39);
     this.textReportComputerName.MaxLength = 2147483647;
     this.textReportComputerName.Multiline = true;
     this.textReportComputerName.Name      = "textReportComputerName";
     this.textReportComputerName.Size      = new System.Drawing.Size(239, 20);
     this.textReportComputerName.TabIndex  = 29;
     //
     // butThisComputer
     //
     this.butThisComputer.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butThisComputer.Location = new System.Drawing.Point(479, 37);
     this.butThisComputer.Name     = "butThisComputer";
     this.butThisComputer.Size     = new System.Drawing.Size(86, 24);
     this.butThisComputer.TabIndex = 31;
     this.butThisComputer.Text     = "This Computer";
     this.butThisComputer.Click   += new System.EventHandler(this.butThisComputer_Click);
     //
     // labelReportComputerName
     //
     this.labelReportComputerName.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.labelReportComputerName.Location  = new System.Drawing.Point(6, 39);
     this.labelReportComputerName.Name      = "labelReportComputerName";
     this.labelReportComputerName.Size      = new System.Drawing.Size(228, 20);
     this.labelReportComputerName.TabIndex  = 30;
     this.labelReportComputerName.Text      = "Computer To Receive Reports Automatically";
     this.labelReportComputerName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // FormClearinghouses
     //
     this.ClientSize = new System.Drawing.Size(891, 503);
     this.Controls.Add(this.groupRecieveSettings);
     this.Controls.Add(this.labelGuide);
     this.Controls.Add(this.labelClinic);
     this.Controls.Add(this.comboClinic);
     this.Controls.Add(this.gridMain);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize   = new System.Drawing.Size(850, 500);
     this.Name          = "FormClearinghouses";
     this.ShowInTaskbar = false;
     this.Text          = "Clearinghouses";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.FormClearinghouses_Closing);
     this.Load         += new System.EventHandler(this.FormClearinghouses_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupRecieveSettings.ResumeLayout(false);
     this.groupRecieveSettings.PerformLayout();
     this.ResumeLayout(false);
 }
示例#33
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CLRObjects));
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            this.pictureBox1   = new System.Windows.Forms.PictureBox();
            this.groupBox2     = new System.Windows.Forms.GroupBox();
            this.rdbExcel2013  = new System.Windows.Forms.RadioButton();
            this.rdbExcel2010  = new System.Windows.Forms.RadioButton();
            this.rdbExcel2007  = new System.Windows.Forms.RadioButton();
            this.rdbExcel97    = new System.Windows.Forms.RadioButton();
            this.button1       = new System.Windows.Forms.Button();
            this.btnExport     = new System.Windows.Forms.Button();
            this.btnInput      = new System.Windows.Forms.Button();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.label1        = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.groupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.SuspendLayout();
            //
            // pictureBox1
            //
            this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
            this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
            this.pictureBox1.Name     = "pictureBox1";
            this.pictureBox1.Size     = new System.Drawing.Size(681, 71);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex = 62;
            this.pictureBox1.TabStop  = false;
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.rdbExcel2013);
            this.groupBox2.Controls.Add(this.rdbExcel2010);
            this.groupBox2.Controls.Add(this.rdbExcel2007);
            this.groupBox2.Controls.Add(this.rdbExcel97);
            this.groupBox2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox2.Location = new System.Drawing.Point(25, 584);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new System.Drawing.Size(631, 54);
            this.groupBox2.TabIndex = 69;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = "Save As";
            //
            // rdbExcel2013
            //
            this.rdbExcel2013.AutoSize = true;
            this.rdbExcel2013.Checked  = true;
            this.rdbExcel2013.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rdbExcel2013.Location = new System.Drawing.Point(498, 20);
            this.rdbExcel2013.Name     = "rdbExcel2013";
            this.rdbExcel2013.Size     = new System.Drawing.Size(116, 24);
            this.rdbExcel2013.TabIndex = 3;
            this.rdbExcel2013.TabStop  = true;
            this.rdbExcel2013.Text     = "Excel 2013";
            this.rdbExcel2013.UseVisualStyleBackColor = true;
            //
            // rdbExcel2010
            //
            this.rdbExcel2010.AutoSize = true;
            this.rdbExcel2010.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rdbExcel2010.Location = new System.Drawing.Point(338, 20);
            this.rdbExcel2010.Name     = "rdbExcel2010";
            this.rdbExcel2010.Size     = new System.Drawing.Size(116, 24);
            this.rdbExcel2010.TabIndex = 2;
            this.rdbExcel2010.Text     = "Excel 2010";
            this.rdbExcel2010.UseVisualStyleBackColor = true;
            //
            // rdbExcel2007
            //
            this.rdbExcel2007.AutoSize = true;
            this.rdbExcel2007.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rdbExcel2007.Location = new System.Drawing.Point(178, 20);
            this.rdbExcel2007.Name     = "rdbExcel2007";
            this.rdbExcel2007.Size     = new System.Drawing.Size(116, 24);
            this.rdbExcel2007.TabIndex = 1;
            this.rdbExcel2007.Text     = "Excel 2007";
            this.rdbExcel2007.UseVisualStyleBackColor = true;
            //
            // rdbExcel97
            //
            this.rdbExcel97.AutoSize = true;
            this.rdbExcel97.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rdbExcel97.Location = new System.Drawing.Point(18, 20);
            this.rdbExcel97.Name     = "rdbExcel97";
            this.rdbExcel97.Size     = new System.Drawing.Size(116, 24);
            this.rdbExcel97.TabIndex = 0;
            this.rdbExcel97.Text     = "Excel 2003";
            this.rdbExcel97.UseVisualStyleBackColor = true;
            //
            // button1
            //
            this.button1.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button1.BackColor  = System.Drawing.Color.Transparent;
            this.button1.Image      = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
            this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.button1.Location   = new System.Drawing.Point(246, 650);
            this.button1.Name       = "button1";
            this.button1.Size       = new System.Drawing.Size(188, 36);
            this.button1.TabIndex   = 70;
            this.button1.Text       = "Import From Excel";
            this.button1.UseVisualStyleBackColor = false;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // btnExport
            //
            this.btnExport.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnExport.BackColor  = System.Drawing.Color.Transparent;
            this.btnExport.Enabled    = false;
            this.btnExport.Image      = ((System.Drawing.Image)(resources.GetObject("btnExport.Image")));
            this.btnExport.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnExport.Location   = new System.Drawing.Point(468, 650);
            this.btnExport.Name       = "btnExport";
            this.btnExport.Size       = new System.Drawing.Size(188, 36);
            this.btnExport.TabIndex   = 71;
            this.btnExport.Text       = "Export To Excel";
            this.btnExport.UseVisualStyleBackColor = false;
            this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
            //
            // btnInput
            //
            this.btnInput.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnInput.BackColor  = System.Drawing.Color.Transparent;
            this.btnInput.Image      = ((System.Drawing.Image)(resources.GetObject("btnInput.Image")));
            this.btnInput.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnInput.Location   = new System.Drawing.Point(25, 650);
            this.btnInput.Name       = "btnInput";
            this.btnInput.Size       = new System.Drawing.Size(188, 36);
            this.btnInput.TabIndex   = 73;
            this.btnInput.Text       = "Input Template";
            this.btnInput.UseVisualStyleBackColor = false;
            this.btnInput.Click += new System.EventHandler(this.btnInput_Click);
            //
            // dataGridView1
            //
            this.dataGridView1.BackgroundColor               = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle1.Alignment                 = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle1.BackColor                 = System.Drawing.SystemColors.MenuHighlight;
            dataGridViewCellStyle1.Font                      = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle1.ForeColor                 = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle1.SelectionBackColor        = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle1.SelectionForeColor        = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle1.WrapMode                  = System.Windows.Forms.DataGridViewTriState.True;
            this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
            this.dataGridView1.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.AutoSizeColumnsMode           = DataGridViewAutoSizeColumnsMode.Fill;
            this.dataGridView1.Cursor                 = System.Windows.Forms.Cursors.Default;
            dataGridViewCellStyle2.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor          = System.Drawing.SystemColors.Window;
            dataGridViewCellStyle2.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle2.ForeColor          = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle2.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
            this.dataGridView1.DefaultCellStyle       = dataGridViewCellStyle2;
            this.dataGridView1.EditMode               = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
            this.dataGridView1.GridColor              = System.Drawing.SystemColors.ActiveBorder;
            this.dataGridView1.Location               = new System.Drawing.Point(25, 205);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.RowHeadersVisible  = false;
            this.dataGridView1.RowTemplate.Height = 20;
            this.dataGridView1.Size     = new System.Drawing.Size(630, 366);
            this.dataGridView1.TabIndex = 77;

            DataGridViewTextBoxColumn column1 = new DataGridViewTextBoxColumn();

            column1.DataPropertyName = "BrandName";
            column1.HeaderText       = "Brand";

            DataGridViewTextBoxColumn column2 = new DataGridViewTextBoxColumn();

            column2.DataPropertyName = "VehicleName";
            column2.HeaderText       = "Vehicle Type";

            DataGridViewTextBoxColumn column3 = new DataGridViewTextBoxColumn();

            column3.DataPropertyName = "ModelName";
            column3.HeaderText       = "Model";

            this.dataGridView1.Columns.Add(column1);
            this.dataGridView1.Columns.Add(column2);
            this.dataGridView1.Columns.Add(column3);

            this.dataGridView1.AllowUserToAddRows  = false;
            this.dataGridView1.AutoGenerateColumns = false;

            //
            // label1
            //
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
            this.label1.Location = new System.Drawing.Point(25, 100);
            this.label1.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(631, 101);
            this.label1.TabIndex = 78;
            this.label1.Text     = resources.GetString("label1.Text");
            //
            // CLRObjects
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
            this.BackColor         = System.Drawing.Color.White;
            this.ClientSize        = new System.Drawing.Size(681, 693);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.dataGridView1);
            this.Controls.Add(this.btnInput);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.btnExport);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox     = false;
            this.Name            = "CollectionObjects";
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "CollectionObjects";
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
 private void InitializeComponent()
 {
     base.ClientSize               = new Size(392, 258);
     base.StartPosition            = FormStartPosition.CenterScreen;
     this.Text                     = "Add/Edit User Remote Server";
     base.FormBorderStyle          = FormBorderStyle.FixedDialog;
     base.MaximizeBox              = false;
     base.MinimizeBox              = true;
     this.m_pIcon                  = new PictureBox();
     this.m_pIcon.Size             = new Size(32, 32);
     this.m_pIcon.Location         = new Point(10, 10);
     this.m_pIcon.Image            = ResManager.GetIcon("remoteserver32.ico").ToBitmap();
     this.mt_Info                  = new Label();
     this.mt_Info.Size             = new Size(200, 32);
     this.mt_Info.Location         = new Point(50, 10);
     this.mt_Info.TextAlign        = ContentAlignment.MiddleLeft;
     this.mt_Info.Text             = "Specify remote mail server information.";
     this.m_pSeparator1            = new GroupBox();
     this.m_pSeparator1.Size       = new Size(383, 3);
     this.m_pSeparator1.Location   = new Point(7, 50);
     this.m_pEnabled               = new CheckBox();
     this.m_pEnabled.Size          = new Size(200, 20);
     this.m_pEnabled.Location      = new Point(105, 65);
     this.m_pEnabled.Checked       = true;
     this.m_pEnabled.Text          = "Enabled";
     this.mt_Description           = new Label();
     this.mt_Description.Size      = new Size(100, 20);
     this.mt_Description.Location  = new Point(0, 90);
     this.mt_Description.TextAlign = ContentAlignment.MiddleRight;
     this.mt_Description.Text      = "Description:";
     this.m_pDescription           = new TextBox();
     this.m_pDescription.Size      = new Size(280, 20);
     this.m_pDescription.Location  = new Point(105, 90);
     this.mt_Server                = new Label();
     this.mt_Server.Size           = new Size(100, 20);
     this.mt_Server.Location       = new Point(0, 115);
     this.mt_Server.TextAlign      = ContentAlignment.MiddleRight;
     this.mt_Server.Text           = "Server:";
     this.m_pServer                = new TextBox();
     this.m_pServer.Size           = new Size(215, 20);
     this.m_pServer.Location       = new Point(105, 115);
     this.m_pPort                  = new NumericUpDown();
     this.m_pPort.Size             = new Size(60, 20);
     this.m_pPort.Location         = new Point(325, 115);
     this.m_pPort.Minimum          = 1m;
     this.m_pPort.Maximum          = 99999m;
     this.m_pPort.Value            = 110m;
     this.m_UseSSL                 = new CheckBox();
     this.m_UseSSL.Size            = new Size(200, 20);
     this.m_UseSSL.Location        = new Point(105, 140);
     this.m_UseSSL.Text            = "Connect via SSL";
     this.m_UseSSL.CheckedChanged += new EventHandler(this.m_UseSSL_CheckedChanged);
     this.mt_User                  = new Label();
     this.mt_User.Size             = new Size(100, 20);
     this.mt_User.Location         = new Point(0, 165);
     this.mt_User.TextAlign        = ContentAlignment.MiddleRight;
     this.mt_User.Text             = "User:"******"Password:"******"Cancel";
     this.m_pCancel.Click         += new EventHandler(this.m_pCancel_Click);
     this.m_pOk                    = new Button();
     this.m_pOk.Size               = new Size(70, 20);
     this.m_pOk.Location           = new Point(315, 235);
     this.m_pOk.Text               = "Ok";
     this.m_pOk.Click             += new EventHandler(this.m_pOk_Click);
     base.Controls.Add(this.m_pIcon);
     base.Controls.Add(this.mt_Info);
     base.Controls.Add(this.m_pSeparator1);
     base.Controls.Add(this.m_pEnabled);
     base.Controls.Add(this.mt_Description);
     base.Controls.Add(this.m_pDescription);
     base.Controls.Add(this.mt_Server);
     base.Controls.Add(this.m_pServer);
     base.Controls.Add(this.m_pPort);
     base.Controls.Add(this.m_UseSSL);
     base.Controls.Add(this.mt_User);
     base.Controls.Add(this.m_pUser);
     base.Controls.Add(this.mt_Password);
     base.Controls.Add(this.m_pPassword);
     base.Controls.Add(this.m_pSeparator2);
     base.Controls.Add(this.m_pCancel);
     base.Controls.Add(this.m_pOk);
 }
示例#35
0
    public void CreateMySettingsForm()
    {
        buttonOk 				= new Button();
        buttonCancel 			= new Button();
        buttonChangeFont 		= new Button();
        buttonApply				= new Button();
        buttonLineColor			= new Button();
        buttonLineMore			= new Button();
        buttonLineLess			= new Button();
        buttonArrowMore			= new Button();
        buttonArrowLess			= new Button();
        buttonHorizontalMore	= new Button();
        buttonHorizontalLess	= new Button();
        buttonVerticalMore		= new Button();
        buttonVerticalLess		= new Button();
        buttonSymbolSizeLess	= new Button();
        buttonSymbolSizeMore	= new Button();
        buttonRestoreDefault	= new Button();
        labelFont				= new Label();
        labelLineColor			= new Label();
        labelGapHeight			= new Label();
        labelGapWidth 			= new Label();
        labelLineThickness		= new Label();
        labelArrowSize			= new Label();
        labelSymbolSize			= new Label();
        fontDialog1				= new FontDialog();
        colorDialog1			= new ColorDialog();
        tabPageFont				= new TabPage();
        tabPageLine				= new TabPage();
        tabPageDimensions		= new TabPage();
        tabPageOptimization		= new TabPage();
        tabControl 				= new TabControl();
        groupBoxTandNT			= new GroupBox();
        groupBoxThickness		= new GroupBox();
        groupBoxArrow			= new GroupBox();
        groupBoxLineColor		= new GroupBox();
        groupBoxHorizontal		= new GroupBox();
        groupBoxVertical		= new GroupBox();
        groupBoxSymbolSize		= new GroupBox();
        groupBoxOptimization	= new GroupBox();
        checkBoxOptimization	= new CheckBox();

           form1.Text 				= "Settings";
           form1.FormBorderStyle 	= FormBorderStyle.FixedDialog;
           form1.MaximizeBox 		= false;
           form1.MinimizeBox 		= false;
           form1.AcceptButton 		= buttonOk;
           form1.CancelButton 		= buttonCancel;
           form1.StartPosition 		= FormStartPosition.CenterScreen;

           checkBoxOptimization.Checked = Node.OptimizeGraph;

           buttonCancel.Text 		= "Cancel";
           buttonOk.Text 			= "OK";
           buttonChangeFont.Text	= "Change font...";
           buttonApply.Text			= "Apply";
           buttonLineMore.Text		= ">";
           buttonLineLess.Text		= "<";
           buttonArrowMore.Text		= ">";
           buttonArrowLess.Text		= "<";
           buttonHorizontalMore.Text= ">";
           buttonHorizontalLess.Text= "<";
           buttonVerticalMore.Text	= ">";
           buttonVerticalLess.Text	= "<";
           buttonSymbolSizeMore.Text= ">";
           buttonSymbolSizeLess.Text= "<";
           buttonLineColor.Text		= "Change color...";
           buttonRestoreDefault.Text= "Restore default settings";
           labelFont.Text			= Node.CharFont.Name;
           labelGapHeight.Text		= Convert.ToString(Node.ComponentGapHeight);
           labelGapWidth.Text		= Convert.ToString(Node.ComponentGapWidth-26);
           tabPageFont.Text			= "Font";
           tabPageLine.Text			= "Line";
           tabPageDimensions.Text	= "Dimensions";
           tabPageOptimization.Text = "Optimizations";
           groupBoxTandNT.Text		= "Terminal and nonterminal symbols";
           groupBoxThickness.Text	= "Thickness";
           groupBoxArrow.Text		= "Size of Arrow";
           groupBoxLineColor.Text	= "Color";
           groupBoxHorizontal.Text	= "Horizontal";
           groupBoxVertical.Text	= "Vertical";
           groupBoxSymbolSize.Text	= "Gap between symbolline and font (vertical)";
           groupBoxOptimization.Text= "Optimization";
           labelLineThickness.Text  = Convert.ToString(Node.LinePen.Width);
           labelArrowSize.Text  	= Convert.ToString(Node.ArrowSize);
           labelSymbolSize.Text		= Convert.ToString(Node.SymbolGapHeight);
           checkBoxOptimization.Text= "Enable optimizations (reload required)";

           labelFont.Font			= Node.CharFont;
           labelFont.ForeColor		= Node.CharColor;
           labelFont.BackColor		= Color.White;
           labelFont.TextAlign		= ContentAlignment.MiddleCenter;

           if(Node.LinePen.Width<=1)		buttonLineLess.Enabled 		 	= false;
           if(Node.SymbolGapHeight<=0)		buttonSymbolSizeLess.Enabled 	= false;
           if(Node.ArrowSize<=1)			buttonArrowLess.Enabled  	 	= false;
           if(Node.ComponentGapHeight<=0)	buttonVerticalLess.Enabled 		= false;
           if(Node.ComponentGapWidth<=26)	buttonHorizontalLess.Enabled	= false;

           labelLineThickness.Font		= new Font("Times",12);
           labelLineThickness.TextAlign	= ContentAlignment.MiddleCenter;

           labelArrowSize.Font			= new Font("Times",12);
           labelArrowSize.TextAlign		= ContentAlignment.MiddleCenter;

           labelGapHeight.Font			= new Font("Times",12);
           labelGapHeight.TextAlign		= ContentAlignment.MiddleCenter;

           labelGapWidth.Font			= new Font("Times",12);
           labelGapWidth.TextAlign		= ContentAlignment.MiddleCenter;

           labelSymbolSize.Font			= new Font("Times",12);
           labelSymbolSize.TextAlign	= ContentAlignment.MiddleCenter;

           labelLineColor.BackColor=Node.LinePen.Color;

           buttonLineColor.Size 	= new Size(100,20);
           buttonLineMore.Size		= new Size(20,20);
           buttonLineLess.Size		= new Size(20,20);
           buttonArrowMore.Size		= new Size(20,20);
           buttonArrowLess.Size		= new Size(20,20);
           buttonHorizontalMore.Size= new Size(20,20);
           buttonHorizontalLess.Size= new Size(20,20);
           buttonVerticalMore.Size	= new Size(20,20);
           buttonVerticalLess.Size	= new Size(20,20);
           buttonSymbolSizeMore.Size= new Size(20,20);
           buttonSymbolSizeLess.Size= new Size(20,20);
           buttonChangeFont.Size	= new Size(90,20);
           buttonRestoreDefault.Size= new Size(150,20);
           tabControl.Size			= new Size(form1.Size.Width-15, form1.Size.Height-150);
           groupBoxTandNT.Size		= new Size(tabControl.Size.Width-30, groupBoxTandNT.Size.Height);
           groupBoxThickness.Size	= new Size(100, 50);
           groupBoxArrow.Size		= new Size(100, 50);
           groupBoxHorizontal.Size	= new Size(100, 50);
           groupBoxVertical.Size	= new Size(100, 50);
           groupBoxOptimization.Size= new Size(tabControl.Size.Width-30, 50);
           groupBoxLineColor.Size   = new Size(155, 50);
           groupBoxSymbolSize.Size	= new Size(tabControl.Size.Width-30, 50);
           labelLineColor.Size		= new Size(20,20);
           labelFont.Size			= new Size(groupBoxTandNT.Size.Width-20,40);
           checkBoxOptimization.Size= new Size(220, 20);

           groupBoxTandNT.Location			= new Point (10,10);
           groupBoxThickness.Location		= new Point (10,10);
           groupBoxArrow.Location			= new Point (10,groupBoxThickness.Height+10);
           groupBoxLineColor.Location		= new Point (110,10);
           groupBoxHorizontal.Location		= new Point (10,10);
           groupBoxVertical.Location		= new Point (110,10);
           groupBoxOptimization.Location	= new Point (10,10);
           groupBoxSymbolSize.Location		= new Point (10,groupBoxVertical.Height+10);
           labelFont.Location 				= new Point (10,20);
           buttonOk.Location				= new Point (20, 220);
           buttonApply.Location				= new Point (buttonOk.Left+buttonOk.Width+10, 220);
           buttonCancel.Location 			= new Point (buttonApply.Left+buttonApply.Width+20, 220);
           tabControl.Location				= new Point (5,5);
           buttonChangeFont.Location		= new Point (tabControl.Right-buttonChangeFont.Size.Width-45,labelFont.Top+labelFont.Height+10);
           buttonLineLess.Location			= new Point (10,20);
           buttonLineMore.Location			= new Point (buttonLineLess.Right+40, buttonLineLess.Top);
           buttonArrowLess.Location			= new Point (10,20);
           buttonArrowMore.Location			= new Point (buttonLineLess.Right+40, buttonLineLess.Top);
           buttonHorizontalLess.Location	= new Point (10,20);
           buttonHorizontalMore.Location	= new Point (buttonHorizontalLess.Right+40, buttonHorizontalLess.Top);
           buttonVerticalLess.Location		= new Point (10,20);
           buttonVerticalMore.Location		= new Point (buttonVerticalLess.Right+40, buttonVerticalLess.Top);
           buttonSymbolSizeLess.Location	= new Point (10,20);
           buttonSymbolSizeMore.Location	= new Point (buttonSymbolSizeLess.Right+40, buttonSymbolSizeLess.Top);
           buttonRestoreDefault.Location	= new Point ((tabControl.Size.Width-buttonRestoreDefault.Size.Width)/2, tabControl.Bottom+20);
           labelLineThickness.Location		= new Point (buttonLineLess.Right,buttonLineLess.Top);
           labelArrowSize.Location			= new Point (buttonArrowLess.Right,buttonArrowLess.Top);
           labelGapHeight.Location			= new Point (buttonHorizontalLess.Right,buttonHorizontalLess.Top);
           labelGapWidth.Location			= new Point (buttonVerticalLess.Right,buttonVerticalLess.Top);
           labelSymbolSize.Location			= new Point (buttonSymbolSizeLess.Right,buttonSymbolSizeLess.Top);
           labelLineColor.Location			= new Point (10,20);
           buttonLineColor.Location			= new Point (labelLineColor.Right+10,20);
           checkBoxOptimization.Location	= new Point (10,20);

           labelLineThickness.Size			= new Size  (buttonLineMore.Left-buttonLineLess.Right,buttonLineLess.Height);
           labelArrowSize.Size				= new Size  (buttonArrowMore.Left-buttonArrowLess.Right,buttonArrowLess.Height);
           labelGapHeight.Size				= new Size  (buttonHorizontalMore.Left-buttonHorizontalLess.Right,buttonHorizontalLess.Height);
           labelGapWidth.Size				= new Size  (buttonVerticalMore.Left-buttonVerticalLess.Right,buttonVerticalLess.Height);
           labelSymbolSize.Size				= new Size  (buttonSymbolSizeMore.Left-buttonSymbolSizeLess.Right,buttonSymbolSizeLess.Height);

           groupBoxTandNT.Controls.Add(buttonChangeFont);
           groupBoxTandNT.Controls.Add(labelFont);
           groupBoxHorizontal.Controls.Add(labelGapWidth);
           groupBoxVertical.Controls.Add(labelGapHeight);
           groupBoxThickness.Controls.Add(buttonLineMore);
           groupBoxThickness.Controls.Add(buttonLineLess);
           groupBoxThickness.Controls.Add(labelLineThickness);
           groupBoxLineColor.Controls.Add(buttonLineColor);
           groupBoxLineColor.Controls.Add(labelLineColor);
           groupBoxArrow.Controls.Add(buttonArrowMore);
           groupBoxArrow.Controls.Add(buttonArrowLess);
           groupBoxArrow.Controls.Add(labelArrowSize);
           groupBoxHorizontal.Controls.Add(buttonHorizontalLess);
           groupBoxHorizontal.Controls.Add(buttonHorizontalMore);
           groupBoxVertical.Controls.Add(buttonVerticalLess);
           groupBoxVertical.Controls.Add(buttonVerticalMore);
           groupBoxSymbolSize.Controls.Add(buttonSymbolSizeMore);
           groupBoxSymbolSize.Controls.Add(buttonSymbolSizeLess);
           groupBoxSymbolSize.Controls.Add(labelSymbolSize);
           groupBoxOptimization.Controls.Add(checkBoxOptimization);

           tabPageFont.Controls.Add(groupBoxTandNT);
           tabPageLine.Controls.Add(groupBoxThickness);
           tabPageLine.Controls.Add(groupBoxLineColor);
           tabPageLine.Controls.Add(groupBoxArrow);
           tabPageDimensions.Controls.Add(groupBoxSymbolSize);
           tabPageDimensions.Controls.Add(groupBoxHorizontal);
           tabPageDimensions.Controls.Add(groupBoxVertical);
           tabPageOptimization.Controls.Add(groupBoxOptimization);

           tabControl.Controls.Add(this.tabPageFont);
           tabControl.Controls.Add(this.tabPageLine);
           tabControl.Controls.Add(this.tabPageDimensions);
           tabControl.Controls.Add(this.tabPageOptimization);

           form1.Controls.Add(this.tabControl);
           form1.Controls.Add(buttonOk);
           form1.Controls.Add(buttonCancel);
           form1.Controls.Add(buttonApply);
           form1.Controls.Add(buttonRestoreDefault);

           buttonOk.Click				+= new System.EventHandler(this.buttonOk_Click);
           buttonChangeFont.Click		+= new System.EventHandler(this.buttonChangeFont_Click);
           buttonApply.Click			+= new System.EventHandler(this.buttonApply_Click);
           buttonLineColor.Click		+= new System.EventHandler(this.buttonLineColor_Click);
           buttonLineMore.Click			+= new System.EventHandler(this.buttonLineMore_Click);
           buttonLineLess.Click			+= new System.EventHandler(this.buttonLineLess_Click);
           buttonArrowMore.Click		+= new System.EventHandler(this.buttonArrowMore_Click);
           buttonArrowLess.Click		+= new System.EventHandler(this.buttonArrowLess_Click);
           buttonHorizontalMore.Click	+= new System.EventHandler(this.buttonHorizontalMore_Click);
           buttonHorizontalLess.Click	+= new System.EventHandler(this.buttonHorizontalLess_Click);
           buttonVerticalMore.Click		+= new System.EventHandler(this.buttonVerticalMore_Click);
           buttonVerticalLess.Click		+= new System.EventHandler(this.buttonVerticalLess_Click);
           buttonSymbolSizeMore.Click	+= new System.EventHandler(this.buttonSymbolSizeMore_Click);
           buttonSymbolSizeLess.Click	+= new System.EventHandler(this.buttonSymbolSizeLess_Click);
           buttonCancel.Click			+= new System.EventHandler(this.buttonCancel_Click);
           buttonRestoreDefault.Click	+= new System.EventHandler(this.buttonRestoreDefault_Click);

           form1.ShowDialog();
    }
示例#36
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComplexConcMorphDlg));
     this.m_btnHelp             = new System.Windows.Forms.Button();
     this.m_btnCancel           = new System.Windows.Forms.Button();
     this.m_btnOK               = new System.Windows.Forms.Button();
     this.m_helpProvider        = new System.Windows.Forms.HelpProvider();
     this.groupBox2             = new System.Windows.Forms.GroupBox();
     this.m_glossWsComboBox     = new System.Windows.Forms.ComboBox();
     this.m_glossTextBox        = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox3             = new System.Windows.Forms.GroupBox();
     this.m_entryWsComboBox     = new System.Windows.Forms.ComboBox();
     this.m_entryTextBox        = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.m_formWsComboBox      = new System.Windows.Forms.ComboBox();
     this.m_formTextBox         = new SIL.FieldWorks.Common.Widgets.FwTextBox();
     this.groupBox4             = new System.Windows.Forms.GroupBox();
     this.m_categoryNotCheckBox = new System.Windows.Forms.CheckBox();
     this.m_categoryComboBox    = new SIL.FieldWorks.Common.Widgets.TreeCombo();
     this.groupBox5             = new System.Windows.Forms.GroupBox();
     this.m_inflFeatsTreeView   = new Aga.Controls.Tree.TreeViewAdv();
     this.m_featureColumn       = new Aga.Controls.Tree.TreeColumn();
     this.m_notColumn           = new Aga.Controls.Tree.TreeColumn();
     this.m_valueColumn         = new Aga.Controls.Tree.TreeColumn();
     this.m_featureIcon         = new Aga.Controls.Tree.NodeControls.NodeIcon();
     this.m_featureTextBox      = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.m_valueComboBox       = new Aga.Controls.Tree.NodeControls.NodeComboBox();
     this.m_inflNotCheckBox     = new Aga.Controls.Tree.NodeControls.NodeCheckBox();
     this.m_imageList           = new System.Windows.Forms.ImageList(this.components);
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).BeginInit();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).BeginInit();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.SuspendLayout();
     //
     // m_btnHelp
     //
     resources.ApplyResources(this.m_btnHelp, "m_btnHelp");
     this.m_btnHelp.Name = "m_btnHelp";
     this.m_btnHelp.UseVisualStyleBackColor = true;
     this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
     //
     // m_btnCancel
     //
     resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
     this.m_btnCancel.Name = "m_btnCancel";
     this.m_btnCancel.UseVisualStyleBackColor = true;
     this.m_btnCancel.Click += new System.EventHandler(this.m_btnCancel_Click);
     //
     // m_btnOK
     //
     resources.ApplyResources(this.m_btnOK, "m_btnOK");
     this.m_btnOK.Name = "m_btnOK";
     this.m_btnOK.UseVisualStyleBackColor = true;
     this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.m_glossWsComboBox);
     this.groupBox2.Controls.Add(this.m_glossTextBox);
     resources.ApplyResources(this.groupBox2, "groupBox2");
     this.groupBox2.Name = "groupBox2";
     this.m_helpProvider.SetShowHelp(this.groupBox2, ((bool)(resources.GetObject("groupBox2.ShowHelp"))));
     this.groupBox2.TabStop = false;
     //
     // m_glossWsComboBox
     //
     this.m_glossWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_glossWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_glossWsComboBox, "m_glossWsComboBox");
     this.m_glossWsComboBox.Name = "m_glossWsComboBox";
     this.m_helpProvider.SetShowHelp(this.m_glossWsComboBox, ((bool)(resources.GetObject("m_glossWsComboBox.ShowHelp"))));
     this.m_glossWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_glossWsComboBox_SelectedIndexChanged);
     //
     // m_glossTextBox
     //
     this.m_glossTextBox.AcceptsReturn      = false;
     this.m_glossTextBox.AdjustStringHeight = true;
     this.m_glossTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_glossTextBox.controlID          = null;
     resources.ApplyResources(this.m_glossTextBox, "m_glossTextBox");
     this.m_glossTextBox.HasBorder = true;
     this.m_glossTextBox.Name      = "m_glossTextBox";
     this.m_helpProvider.SetShowHelp(this.m_glossTextBox, ((bool)(resources.GetObject("m_glossTextBox.ShowHelp"))));
     this.m_glossTextBox.SuppressEnter = true;
     this.m_glossTextBox.WordWrap      = false;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.m_entryWsComboBox);
     this.groupBox3.Controls.Add(this.m_entryTextBox);
     resources.ApplyResources(this.groupBox3, "groupBox3");
     this.groupBox3.Name = "groupBox3";
     this.m_helpProvider.SetShowHelp(this.groupBox3, ((bool)(resources.GetObject("groupBox3.ShowHelp"))));
     this.groupBox3.TabStop = false;
     //
     // m_entryWsComboBox
     //
     this.m_entryWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_entryWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_entryWsComboBox, "m_entryWsComboBox");
     this.m_entryWsComboBox.Name = "m_entryWsComboBox";
     this.m_helpProvider.SetShowHelp(this.m_entryWsComboBox, ((bool)(resources.GetObject("m_entryWsComboBox.ShowHelp"))));
     this.m_entryWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_entryWsComboBox_SelectedIndexChanged);
     //
     // m_entryTextBox
     //
     this.m_entryTextBox.AcceptsReturn      = false;
     this.m_entryTextBox.AdjustStringHeight = true;
     this.m_entryTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_entryTextBox.controlID          = null;
     resources.ApplyResources(this.m_entryTextBox, "m_entryTextBox");
     this.m_entryTextBox.HasBorder = true;
     this.m_entryTextBox.Name      = "m_entryTextBox";
     this.m_helpProvider.SetShowHelp(this.m_entryTextBox, ((bool)(resources.GetObject("m_entryTextBox.ShowHelp"))));
     this.m_entryTextBox.SuppressEnter = true;
     this.m_entryTextBox.WordWrap      = false;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.m_formWsComboBox);
     this.groupBox1.Controls.Add(this.m_formTextBox);
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name    = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // m_formWsComboBox
     //
     this.m_formWsComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_formWsComboBox.FormattingEnabled = true;
     resources.ApplyResources(this.m_formWsComboBox, "m_formWsComboBox");
     this.m_formWsComboBox.Name = "m_formWsComboBox";
     this.m_formWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_formWsComboBox_SelectedIndexChanged);
     //
     // m_formTextBox
     //
     this.m_formTextBox.AcceptsReturn      = false;
     this.m_formTextBox.AdjustStringHeight = true;
     this.m_formTextBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_formTextBox.controlID          = null;
     resources.ApplyResources(this.m_formTextBox, "m_formTextBox");
     this.m_formTextBox.HasBorder     = true;
     this.m_formTextBox.Name          = "m_formTextBox";
     this.m_formTextBox.SuppressEnter = true;
     this.m_formTextBox.WordWrap      = false;
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.m_categoryNotCheckBox);
     this.groupBox4.Controls.Add(this.m_categoryComboBox);
     resources.ApplyResources(this.groupBox4, "groupBox4");
     this.groupBox4.Name    = "groupBox4";
     this.groupBox4.TabStop = false;
     //
     // m_categoryNotCheckBox
     //
     resources.ApplyResources(this.m_categoryNotCheckBox, "m_categoryNotCheckBox");
     this.m_categoryNotCheckBox.Name = "m_categoryNotCheckBox";
     this.m_categoryNotCheckBox.UseVisualStyleBackColor = true;
     //
     // m_categoryComboBox
     //
     this.m_categoryComboBox.AdjustStringHeight = true;
     this.m_categoryComboBox.BackColor          = System.Drawing.SystemColors.Window;
     this.m_categoryComboBox.DropDownWidth      = 120;
     this.m_categoryComboBox.DroppedDown        = false;
     this.m_categoryComboBox.HasBorder          = true;
     resources.ApplyResources(this.m_categoryComboBox, "m_categoryComboBox");
     this.m_categoryComboBox.Name = "m_categoryComboBox";
     this.m_categoryComboBox.UseVisualStyleBackColor = true;
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.m_inflFeatsTreeView);
     resources.ApplyResources(this.groupBox5, "groupBox5");
     this.groupBox5.Name    = "groupBox5";
     this.groupBox5.TabStop = false;
     //
     // m_inflFeatsTreeView
     //
     this.m_inflFeatsTreeView.BackColor = System.Drawing.SystemColors.Window;
     this.m_inflFeatsTreeView.Columns.Add(this.m_featureColumn);
     this.m_inflFeatsTreeView.Columns.Add(this.m_notColumn);
     this.m_inflFeatsTreeView.Columns.Add(this.m_valueColumn);
     this.m_inflFeatsTreeView.DefaultToolTipProvider = null;
     this.m_inflFeatsTreeView.DragDropMarkColor      = System.Drawing.Color.Black;
     this.m_inflFeatsTreeView.FullRowSelect          = true;
     this.m_inflFeatsTreeView.LineColor = System.Drawing.SystemColors.ControlDark;
     resources.ApplyResources(this.m_inflFeatsTreeView, "m_inflFeatsTreeView");
     this.m_inflFeatsTreeView.Model = null;
     this.m_inflFeatsTreeView.Name  = "m_inflFeatsTreeView";
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureIcon);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureTextBox);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_valueComboBox);
     this.m_inflFeatsTreeView.NodeControls.Add(this.m_inflNotCheckBox);
     this.m_inflFeatsTreeView.SelectedNode = null;
     this.m_inflFeatsTreeView.UseColumns   = true;
     //
     // m_featureColumn
     //
     resources.ApplyResources(this.m_featureColumn, "m_featureColumn");
     this.m_featureColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_notColumn
     //
     resources.ApplyResources(this.m_notColumn, "m_notColumn");
     this.m_notColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_valueColumn
     //
     resources.ApplyResources(this.m_valueColumn, "m_valueColumn");
     this.m_valueColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     //
     // m_featureIcon
     //
     this.m_featureIcon.DataPropertyName = "Image";
     this.m_featureIcon.LeftMargin       = 1;
     this.m_featureIcon.ParentColumn     = this.m_featureColumn;
     this.m_featureIcon.ScaleMode        = Aga.Controls.Tree.ImageScaleMode.Clip;
     //
     // m_featureTextBox
     //
     this.m_featureTextBox.DataPropertyName         = "Text";
     this.m_featureTextBox.IncrementalSearchEnabled = true;
     this.m_featureTextBox.LeftMargin   = 1;
     this.m_featureTextBox.ParentColumn = this.m_featureColumn;
     //
     // m_valueComboBox
     //
     this.m_valueComboBox.DataPropertyName         = "Value";
     this.m_valueComboBox.EditEnabled              = true;
     this.m_valueComboBox.EditOnClick              = true;
     this.m_valueComboBox.IncrementalSearchEnabled = true;
     this.m_valueComboBox.LeftMargin                = 1;
     this.m_valueComboBox.ParentColumn              = this.m_valueColumn;
     this.m_valueComboBox.CreatingEditor           += new System.EventHandler <Aga.Controls.Tree.NodeControls.EditEventArgs>(this.m_valueComboBox_CreatingEditor);
     this.m_valueComboBox.IsEditEnabledValueNeeded += new System.EventHandler <Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_valueComboBox_IsEditEnabledValueNeeded);
     //
     // m_inflNotCheckBox
     //
     this.m_inflNotCheckBox.DataPropertyName      = "IsChecked";
     this.m_inflNotCheckBox.EditEnabled           = true;
     this.m_inflNotCheckBox.LeftMargin            = 1;
     this.m_inflNotCheckBox.ParentColumn          = this.m_notColumn;
     this.m_inflNotCheckBox.IsVisibleValueNeeded += new System.EventHandler <Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_inflNotCheckBox_IsVisibleValueNeeded);
     //
     // m_imageList
     //
     this.m_imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList.ImageStream")));
     this.m_imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.m_imageList.Images.SetKeyName(0, "");
     this.m_imageList.Images.SetKeyName(1, "");
     //
     // ComplexConcMorphDlg
     //
     this.AcceptButton = this.m_btnOK;
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton  = this.m_btnCancel;
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.m_btnHelp);
     this.Controls.Add(this.m_btnCancel);
     this.Controls.Add(this.m_btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "ComplexConcMorphDlg";
     this.m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).EndInit();
     this.groupBox3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).EndInit();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#37
0
	public main(string[] arg)
	{
		args = arg;

		Text = "dll_tool";
		Size = new Size(600,560);
		this.Load += new EventHandler(main_Load);
		this.Disposed += new EventHandler(main_Disposed);

		//load button
		Button load = new Button();
		load.Parent = this;
		load.Text = "&Load";
		load.Width -= 10;
		load.Location = new Point(10,10);
		load.Click += new EventHandler(load_Click);

		//build button
		build = new Button();
		build.Parent = this;
		build.Text = "&Build";
		build.Location = new Point(85,10);
		build.Width -= 10;
		build.Enabled = false;
		build.Click += new EventHandler(build_Click);

		//load settings button
		Button loadDsf = new Button();
		loadDsf.Parent = this;
		loadDsf.Text = "Load .dsf";
		loadDsf.Width -= 10;
		loadDsf.Location = new Point(160, 10);
		loadDsf.Click += new EventHandler(loadDsf_Click);

		//save settings button
		Button saveDsf = new Button();
		saveDsf.Parent = this;
		saveDsf.Text = "Save .dsf";
		saveDsf.Width -= 10;
		saveDsf.Location = new Point(235, 10);
		saveDsf.Click += new EventHandler(saveDsf_Click);

		//about button
		Button about = new Button();
		about.Parent = this;
		about.Text = "About";
		about.Width -= 10;
		about.Location = new Point(310, 10);
		about.Click += new EventHandler(about_Click);

		//exit button
		Button exit = new Button();
		exit.Parent = this;
		exit.Text = "E&xit";
		exit.Width -= 10;
		exit.Location = new Point(385, 10);
		exit.Click += new EventHandler(exit_Click);

		//edit il before build checkbox
		editIl = new CheckBox();
		editIl.Parent = this;
		editIl.Text = "&Edit il before build";
		editIl.Width = 122;
		editIl.Location = new Point(this.Width - editIl.Width - 10, 5);
		editIl.Anchor = AnchorStyles.Top | AnchorStyles.Right;

		//exports type combobox
		exportsType = new ComboBox();
		exportsType.Parent = this;
		exportsType.DropDownStyle = ComboBoxStyle.DropDownList;
		exportsType.Width = 80;
		exportsType.Location = new Point(this.Width - exportsType.Width - 20,35);
		exportsType.Items.Add("Cdecl");
		exportsType.Items.Add("StdCall");
		exportsType.SelectedIndex = 0;
		exportsType.Anchor = AnchorStyles.Top | AnchorStyles.Right;

		//exports type label
		Label lab = new Label();
		lab.Parent = this;
		lab.AutoSize = true;
		lab.Location = new Point(exportsType.Left - lab.Width - 120, 40);
		lab.Text = "Moved methods will be";
		lab.Anchor = AnchorStyles.Top | AnchorStyles.Right;

		//methods groupbox
		GroupBox gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "Methods";
		gb.Location = new Point(10, 55);
		gb.Size = new Size(230, 150);

		//method listview
		methodBox = new ListView();
		methodBox.Parent = gb;
		methodBox.Location = new Point(10, 15);
		methodBox.Size = new Size(210,130);
		methodBox.Columns.Add("method",200,HorizontalAlignment.Left);
		methodBox.Columns.Add("full",5,HorizontalAlignment.Left);
		methodBox.View = View.Details;

		//exports groupbox
		gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "Exports";
		gb.Location = new Point(290, 55);
		gb.Size = new Size(290, 150);
		gb.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

		//exports listview
		exportBox = new ListView();
		exportBox.Parent = gb;
		exportBox.Location = new Point(10, 15);
		exportBox.Size = new Size(270, 130);
		exportBox.Columns.Add("method", 95, HorizontalAlignment.Left);
		exportBox.Columns.Add("calling conv", 70, HorizontalAlignment.Left);
		exportBox.Columns.Add("export", 95, HorizontalAlignment.Left);
		exportBox.Columns.Add("full", 5, HorizontalAlignment.Left);
		exportBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
		exportBox.View = View.Details;
		exportBox.ItemActivate += new EventHandler(exportBox_ItemActivate);

		//move left button
		Button leftBtn = new Button();
		leftBtn.Parent = this;
		leftBtn.Text = "&<";
		leftBtn.Location = new Point(250, 130);
		leftBtn.Size = new Size(30,70);
		leftBtn.Click += new EventHandler(leftBtn_Click);

		//move right button
		Button rightBtn = new Button();
		rightBtn.Parent = this;
		rightBtn.Text = "&>";
		rightBtn.Location = new Point(250, 55);
		rightBtn.Size = new Size(30, 70);
		rightBtn.Click += new EventHandler(rightBtn_Click);

		//string table groupbox
		gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "String Table";
		gb.Location = new Point(10,210);
		gb.Size = new Size(570,145);
		gb.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

		//string table listbox
		stringBox = new ListBox();
		stringBox.Parent = gb;
		stringBox.Location = new Point(10,15);
		stringBox.Size = new Size(450, 125);
		stringBox.DoubleClick += new EventHandler(stringBox_DoubleClick);
		stringBox.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

		//add string table checkbox
		stringCheck = new CheckBox();
		stringCheck.Parent = gb;
		stringCheck.Text = "Add string table";
		stringCheck.Location = new Point(465, 15);
		stringCheck.Size = new Size(102, 20);
		stringCheck.Anchor = AnchorStyles.Top | AnchorStyles.Right;

		// generate string table button
		Button strBtn = new Button();
		strBtn.Parent = gb;
		strBtn.Text = "&Generate";
		strBtn.Width += 20;
		strBtn.Height -= 5;
		strBtn.Location = new Point(465, 40);
		strBtn.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		strBtn.Click += new EventHandler(strBtn_Click);

		//add string table item button
		Button strAddBtn = new Button();
		strAddBtn.Parent = gb;
		strAddBtn.Text = "&Add";
		strAddBtn.Width += 20;
		strAddBtn.Height -= 5;
		strAddBtn.Location = new Point(465, 60);
		strAddBtn.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		strAddBtn.Click += new EventHandler(strAddBtn_Click);

		//remove string table item button
		Button strRemBtn = new Button();
		strRemBtn.Parent = gb;
		strRemBtn.Text = "&Remove";
		strRemBtn.Width += 20;
		strRemBtn.Height -= 5;
		strRemBtn.Location = new Point(465, 80);
		strRemBtn.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		strRemBtn.Click += new EventHandler(strRemBtn_Click);

		//generate help button
		Button docBuild = new Button();
		docBuild.Parent = gb;
		docBuild.Text = "Generate &help";
		docBuild.Width += 20;
		docBuild.Height -= 5;
		docBuild.Location = new Point(465,100);
		docBuild.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		//docBuild.Visible = false;

		//generate ini button
		Button iniBuild = new Button();
		iniBuild.Parent = gb;
		iniBuild.Text = "Generate &ini";
		iniBuild.Width += 20;
		iniBuild.Height -= 5;
		iniBuild.Location = new Point(465,120);
		iniBuild.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		//iniBuild.Visible = false;

		//il groubbox
		gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "IL code (double click to edit)";
		gb.Location = new Point(10, 365);
		gb.Size = new Size(570, 160);
		gb.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;

		//il listbox
		lb = new ListBox();
		lb.Parent = gb;
		lb.Location = new Point(10,15);
		lb.Size = new Size(550,140);
		lb.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
		lb.DoubleClick += new EventHandler(lb_DoubleClick);
	}
示例#38
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.button1          = new Syncfusion.Windows.Forms.ButtonAdv();
     this.label2           = new System.Windows.Forms.Label();
     this.toolTip1         = new System.Windows.Forms.ToolTip(this.components);
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.radioButton1     = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.radioButton2     = new Syncfusion.Windows.Forms.Tools.RadioButtonAdv();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.wordDocxRadioBtn = new System.Windows.Forms.RadioButton();
     this.pdfRadioBtn      = new System.Windows.Forms.RadioButton();
     this.wordDocRadioBtn  = new System.Windows.Forms.RadioButton();
     this.groupBox2        = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radioButton1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radioButton2)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance         = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.button1.BeforeTouchSize    = new System.Drawing.Size(108, 23);
     this.button1.BorderStyleAdv     = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.Dashed;
     this.button1.ComboEditBackColor = System.Drawing.Color.Silver;
     this.button1.Font                    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor               = System.Drawing.Color.White;
     this.button1.IsBackStageButton       = false;
     this.button1.KeepFocusRectangle      = false;
     this.button1.Location                = new System.Drawing.Point(252, 219);
     this.button1.Name                    = "button1";
     this.button1.Office2007ColorScheme   = Syncfusion.Windows.Forms.Office2007Theme.Managed;
     this.button1.Size                    = new System.Drawing.Size(108, 23);
     this.button1.TabIndex                = 26;
     this.button1.Text                    = "Generate";
     this.button1.UseVisualStyle          = true;
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click                  += new System.EventHandler(this.button1_Click);
     //
     // label2
     //
     this.label2.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
     this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
     this.label2.Location  = new System.Drawing.Point(0, 85);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(372, 58);
     this.label2.TabIndex  = 74;
     this.label2.Text      = "Click the button to view the generated Word document or PDF. Please note that Microsoft Word Viewer or Microsoft Word is required to view the resultant Word document and PDF viewer is required to view the resultant PDF.";
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(372, 82);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 70;
     this.pictureBox1.TabStop  = false;
     //
     // radioButton1
     //
     this.radioButton1.BeforeTouchSize = new System.Drawing.Size(152, 20);
     this.radioButton1.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.radioButton1.Checked         = true;
     this.radioButton1.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton1.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.radioButton1.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.radioButton1.Location        = new System.Drawing.Point(6, 16);
     this.radioButton1.MetroColor      = System.Drawing.Color.Empty;
     this.radioButton1.Name            = "radioButton1";
     this.radioButton1.Size            = new System.Drawing.Size(152, 20);
     this.radioButton1.TabIndex        = 76;
     this.radioButton1.Text            = "Replace With Formatting";
     this.radioButton1.ThemesEnabled   = true;
     //
     // radioButton2
     //
     this.radioButton2.BeforeTouchSize = new System.Drawing.Size(117, 20);
     this.radioButton2.Border3DStyle   = System.Windows.Forms.Border3DStyle.SunkenOuter;
     this.radioButton2.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton2.GradientEnd     = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.radioButton2.GradientStart   = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.radioButton2.Location        = new System.Drawing.Point(176, 16);
     this.radioButton2.MetroColor      = System.Drawing.Color.Empty;
     this.radioButton2.Name            = "radioButton2";
     this.radioButton2.Size            = new System.Drawing.Size(117, 20);
     this.radioButton2.TabIndex        = 77;
     this.radioButton2.TabStop         = false;
     this.radioButton2.Text            = "Advanced Replace";
     this.radioButton2.ThemesEnabled   = true;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.wordDocxRadioBtn);
     this.groupBox1.Controls.Add(this.pdfRadioBtn);
     this.groupBox1.Controls.Add(this.wordDocRadioBtn);
     this.groupBox1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(12, 205);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(216, 42);
     this.groupBox1.TabIndex = 78;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Save As";
     //
     // worddocxRadioBtn
     //
     this.wordDocxRadioBtn.AutoSize = true;
     this.wordDocxRadioBtn.Checked  = true;
     this.wordDocxRadioBtn.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.wordDocxRadioBtn.Location = new System.Drawing.Point(84, 20);
     this.wordDocxRadioBtn.Name     = "wordDocxRadioBtn";
     this.wordDocxRadioBtn.Size     = new System.Drawing.Size(60, 17);
     this.wordDocxRadioBtn.TabIndex = 3;
     this.wordDocxRadioBtn.TabStop  = true;
     this.wordDocxRadioBtn.Text     = "DOCX";
     this.wordDocxRadioBtn.UseVisualStyleBackColor = true;
     //
     // pdfRadioBtn
     //
     this.pdfRadioBtn.AutoSize = true;
     this.pdfRadioBtn.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pdfRadioBtn.Location = new System.Drawing.Point(169, 20);
     this.pdfRadioBtn.Name     = "pdfRadioBtn";
     this.pdfRadioBtn.Size     = new System.Drawing.Size(47, 17);
     this.pdfRadioBtn.TabIndex = 1;
     this.pdfRadioBtn.TabStop  = true;
     this.pdfRadioBtn.Text     = "PDF";
     this.pdfRadioBtn.UseVisualStyleBackColor = true;
     //
     // worddocRadioBtn
     //
     this.wordDocRadioBtn.AutoSize = true;
     this.wordDocRadioBtn.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.wordDocRadioBtn.Location = new System.Drawing.Point(6, 20);
     this.wordDocRadioBtn.Name     = "wordDocRadioBtn";
     this.wordDocRadioBtn.Size     = new System.Drawing.Size(52, 17);
     this.wordDocRadioBtn.TabIndex = 0;
     this.wordDocRadioBtn.TabStop  = true;
     this.wordDocRadioBtn.Text     = "DOC";
     this.wordDocRadioBtn.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.radioButton1);
     this.groupBox2.Controls.Add(this.radioButton2);
     this.groupBox2.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox2.Location = new System.Drawing.Point(12, 146);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(318, 44);
     this.groupBox2.TabIndex = 79;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Select Option";
     //
     // Form1
     //
     this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.ClientSize          = new System.Drawing.Size(372, 265);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.button1);
     this.DropShadow      = true;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Advanced Replace";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radioButton1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radioButton2)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#39
0
    public MainDialog()
    {
        leftPadCol1 = 11;
        leftPadCol2 = 181;
        leftPadCol3 = 311;

        Text="Mouse";
        StartPosition = FormStartPosition.Manual;
        Location = new Point(100, 100);
        Size = new Size(600, 400);

        Closed += new EventHandler(MainDialog_Closed);

        //left column
        m_LB = new ListBox();
        m_LB.Items.Clear();
        m_LB.IntegralHeight = false;
        m_LB.Location = new Point(leftPadCol1, 10);
        m_LB.Size = new Size(160, 190);
        m_LB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"});
        m_LB.SelectionMode = SelectionMode.One;
        m_LB.SetSelected(1, true);
        m_LB.SelectedIndexChanged += new EventHandler(LB_SelIndChanged);
        Controls.Add(m_LB);

        m_B_Create = new Button();
        m_B_Create.Text = "Create";
        m_B_Create.Location = new Point(5, 20);
        m_B_Create.Size = new Size(100, 24);
        m_B_Create.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Create.Click += new System.EventHandler(B_C_Create);
        m_B_Create.BackColor = Color.Green;
        Controls.Add(m_B_Create);

        m_B_Edit = new Button();
        m_B_Edit.Text = "Edit";
        m_B_Edit.Location = new Point(5, 50);
        m_B_Edit.Size = new Size(100, 24);
        m_B_Edit.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Edit.Click += new System.EventHandler(B_C_Edit);
        m_B_Edit.BackColor = Color.Blue;
        Controls.Add(m_B_Edit);

        m_B_Delete = new Button();
        m_B_Delete.Text = "Delete";
        m_B_Delete.Location = new Point(5, 80);
        m_B_Delete.Size = new Size(100, 24);
        m_B_Delete.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        m_B_Delete.Click += new System.EventHandler(B_C_Delete);
        m_B_Delete.BackColor = Color.Red;
        Controls.Add(m_B_Delete);

        m_GB_Button = new GroupBox();
        m_GB_Button.Text = "Edit list";
        m_GB_Button.Location = new Point(leftPadCol1, 211);
        m_GB_Button.Size = new Size(110, 110);
        m_GB_Button.Controls.AddRange(new Control[] {m_B_Create, m_B_Edit, m_B_Delete});
        Controls.Add(m_GB_Button);

        //middle column
        m_LabelName = new Label();
        m_LabelName.Text = "Name";
        m_LabelName.Name = "LabelName";
        m_LabelName.Location = new Point(leftPadCol2, 10);
        m_LabelName.Size = new Size(120, 16);
        m_LabelName.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelName.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelName.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelName);

        m_LabelColor = new Label();
        m_LabelColor.Text = "Color";
        m_LabelColor.Name = "LabelColor";
        m_LabelColor.Location = new Point(leftPadCol2, 40);
        m_LabelColor.Size = new Size(120, 16);
        m_LabelColor.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelColor.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelColor.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelColor);

        m_LabelSite = new Label();
        m_LabelSite.Text = "Web Site";
        m_LabelSite.Name = "LabelSite";
        m_LabelSite.Location = new Point(leftPadCol2, 130);
        m_LabelSite.Size = new Size(120, 16);
        m_LabelSite.TextAlign = ContentAlignment.MiddleLeft;
        m_LabelSite.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold);
        m_LabelSite.ForeColor = Color.FromArgb(0, 0, 0);
        Controls.Add(m_LabelSite);

        //right column
        m_TBName = new TextBox();
        m_TBName.Text = "";
        m_TBName.Location = new Point(leftPadCol3, 10);
        m_TBName.Size = new Size(120, 16);
        m_TBName.Multiline = false;
        m_TBName.MaxLength = 1000;
        m_TBName.ScrollBars = ScrollBars.Both;
        m_TBName.WordWrap = false;
        m_TBName.TextChanged += new EventHandler(TB_TextChanged);
        Controls.Add(m_TBName);

        m_RB_Red = new RadioButton();
        m_RB_Red.Text = "Red";
        m_RB_Red.Checked = false;
        m_RB_Red.Location = new Point(16, 16);
        m_RB_Red.Size = new Size(80, 20);
        m_RB_Red.Click += new System.EventHandler(RB_Click);
        m_RB_Red.Click += new System.EventHandler(RB_Click_Mes);

        m_RB_Green = new RadioButton();
        m_RB_Green.Text = "Green";
        m_RB_Green.Checked = true;
        m_RB_Green.Location = new Point(16, 36);
        m_RB_Green.Size = new Size(80, 20);
        m_RB_Green.Click += new System.EventHandler(RB_Click);

        m_RB_Blue = new RadioButton();
        m_RB_Blue.Text = "Blue";
        m_RB_Blue.Checked = false;
        m_RB_Blue.Location = new Point(16, 56);
        m_RB_Blue.Size = new Size(80, 20);
        m_RB_Blue.Click += new System.EventHandler(RB_Click);

        m_GB_Color = new GroupBox();
        m_GB_Color.Text = "Choose color";
        m_GB_Color.Location = new Point(leftPadCol3, 40);
        m_GB_Color.Size = new Size(120, 80);
        m_GB_Color.Controls.AddRange(new Control[] {m_RB_Red, m_RB_Green, m_RB_Blue});
        Controls.Add(m_GB_Color);

        m_LLabel = new LinkLabel();
        m_LLabel.Name = "Label2";
        m_LLabel.Text = "www.logitec.com";
        //m_LLabel.Text = "text.txt";
        m_LLabel.Location = new Point(leftPadCol3, 130);
        m_LLabel.Size = new Size(120, 16);
        m_LLabel.TextAlign = ContentAlignment.MiddleLeft;
        m_LLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(L2_LClicked);
        Controls.Add(m_LLabel);

        m_TT = new ToolTip();
        m_TT.AutomaticDelay = 300;
        m_TT.ShowAlways = true;
        m_TT.SetToolTip(m_B_Create, "pressing the button will display message box");

        m_CLB = new CheckedListBox();
        m_CLB.Items.Clear();
        m_CLB.IntegralHeight = false;
        m_CLB.Location = new Point(310, 310);
        m_CLB.Size = new Size(160, 90);
        m_CLB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"});
        m_CLB.SelectionMode = SelectionMode.One;
        m_CLB.SetSelected(1, true);
        m_CLB.CheckOnClick = true;
        m_CLB.SelectedIndexChanged += new EventHandler(CLB_SelIndChanged);
        Controls.Add(m_CLB);

        // Создаем экземпляр класса
        XmlDocument xmlDoc = new XmlDocument();
        // Загружаем XML-документ из файла
        xmlDoc.Load("db.xml");
        // Загружаем XML-документ из строки
        // xmlDoc.LoadXML(s1);

        // Получаем всех детей корневого элемента
        // xmlDoc.DocumentElement - корневой элемент
        foreach (XmlNode table in xmlDoc.DocumentElement.ChildNodes)
        {
            // перебираем все атрибуты элемента
            foreach (XmlAttribute attr in table.Attributes)
            {
                // attr.Name - имя текущего атрибута
                // attr.Value - значение текущего атрибута
                m_LB.Items.Add(attr.Name + ":" + attr.Value);
            }

            // перебираем всех детей текущего узла
            foreach (XmlNode ch in table.ChildNodes)
            {

            }
            // Получаем текст хранящийся в текущем узле
            //MessageBox.Show(s);
        }
    }
示例#40
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExternalFormulas));
     this.btnWriteFormula = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.btnReadFormula  = new System.Windows.Forms.Button();
     this.label2          = new System.Windows.Forms.Label();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.txtFomulaNumber = new System.Windows.Forms.TextBox();
     this.txtFormula      = new System.Windows.Forms.TextBox();
     this.label3          = new System.Windows.Forms.Label();
     this.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // btnWriteFormula
     //
     this.btnWriteFormula.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnWriteFormula.BackColor  = System.Drawing.Color.Transparent;
     this.btnWriteFormula.Image      = ((System.Drawing.Image)(resources.GetObject("btnWriteFormula.Image")));
     this.btnWriteFormula.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnWriteFormula.Location   = new System.Drawing.Point(426, 123);
     this.btnWriteFormula.Name       = "btnWriteFormula";
     this.btnWriteFormula.Size       = new System.Drawing.Size(159, 33);
     this.btnWriteFormula.TabIndex   = 0;
     this.btnWriteFormula.Text       = "Write Formula";
     this.btnWriteFormula.UseVisualStyleBackColor = false;
     this.btnWriteFormula.Click += new System.EventHandler(this.btnWriteFormual_Click);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Font     = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(0, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(633, 82);
     this.label1.TabIndex = 1;
     this.label1.Text     = resources.GetString("label1.Text");
     //
     // btnReadFormula
     //
     this.btnReadFormula.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnReadFormula.BackColor  = System.Drawing.Color.Transparent;
     this.btnReadFormula.Image      = ((System.Drawing.Image)(resources.GetObject("btnReadFormula.Image")));
     this.btnReadFormula.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnReadFormula.Location   = new System.Drawing.Point(427, 74);
     this.btnReadFormula.Name       = "btnReadFormula";
     this.btnReadFormula.Size       = new System.Drawing.Size(159, 33);
     this.btnReadFormula.TabIndex   = 2;
     this.btnReadFormula.Text       = "Read Formula";
     this.btnReadFormula.UseVisualStyleBackColor = false;
     this.btnReadFormula.Click += new System.EventHandler(this.btnReadFormula_Click);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(11, 127);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(124, 20);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Computed value";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.txtFomulaNumber);
     this.groupBox1.Controls.Add(this.txtFormula);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.btnWriteFormula);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.btnReadFormula);
     this.groupBox1.Location = new System.Drawing.Point(18, 141);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(599, 171);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Read External Formula from the template document";
     //
     // txtFomulaNumber
     //
     this.txtFomulaNumber.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtFomulaNumber.Location  = new System.Drawing.Point(147, 124);
     this.txtFomulaNumber.Multiline = true;
     this.txtFomulaNumber.Name      = "txtFomulaNumber";
     this.txtFomulaNumber.ReadOnly  = true;
     this.txtFomulaNumber.Size      = new System.Drawing.Size(258, 30);
     this.txtFomulaNumber.TabIndex  = 7;
     //
     // txtFormula
     //
     this.txtFormula.Location  = new System.Drawing.Point(147, 29);
     this.txtFormula.Multiline = true;
     this.txtFormula.Name      = "txtFormula";
     this.txtFormula.ReadOnly  = true;
     this.txtFormula.Size      = new System.Drawing.Size(258, 78);
     this.txtFormula.TabIndex  = 6;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(10, 34);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(113, 20);
     this.label3.TabIndex = 5;
     this.label3.Text     = "Formula String";
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(633, 71);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex = 62;
     this.pictureBox1.TabStop  = false;
     //
     // ExternalFormulas
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(633, 329);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "ExternalFormulas";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "External Formula";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#41
0
        public void CreateGUI()
        {
            GUI.RootComponent.ClearChildren();
            Games.Clear();
            const int edgePadding = 32;
            Panel mainWindow = new Panel(GUI, GUI.RootComponent)
            {
                LocalBounds = new Rectangle(edgePadding, edgePadding, Game.GraphicsDevice.Viewport.Width - edgePadding * 2, Game.GraphicsDevice.Viewport.Height - edgePadding * 2)
            };
            GridLayout layout = new GridLayout(GUI, mainWindow, 10, 4);

            Label title = new Label(GUI, layout, "Load Game", GUI.TitleFont);
            layout.SetComponentPosition(title, 0, 0, 1, 1);

            scroller = new ScrollView(GUI, layout);
            layout.SetComponentPosition(scroller, 0, 1, 3, 8);

            LoadWorlds();

            layout.UpdateSizes();

            int cols = Math.Max(scroller.LocalBounds.Width / 256, 1);
            int rows = Math.Max(Math.Max(scroller.LocalBounds.Height / 256, 1), (int)Math.Ceiling((float)Games.Count / (float)cols));

            scrollGrid = new GridLayout(GUI, scroller, rows, cols)
            {
                LocalBounds = new Rectangle(edgePadding, edgePadding, scroller.LocalBounds.Width - edgePadding, rows * 256),
                WidthSizeMode = GUIComponent.SizeMode.Fixed,
                HeightSizeMode = GUIComponent.SizeMode.Fixed
            };

            CreateGamePictures(scrollGrid, cols);

            CreateLoadThreads(4);

            PropertiesPanel = new GroupBox(GUI, layout, "Selected");

            layout.SetComponentPosition(PropertiesPanel, 3, 1, 1, 8);

            Button back = new Button(GUI, layout, "Back", GUI.DefaultFont, Button.ButtonMode.ToolButton, GUI.Skin.GetSpecialFrame(GUISkin.Tile.LeftArrow));
            layout.SetComponentPosition(back, 3, 9, 1, 1);
            back.OnClicked += back_OnClicked;
        }
示例#42
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);
        }
示例#43
0
		public ItemHookup(object target, GroupBox containingBox)
			: base(target, containingBox)
		{
		}
示例#44
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAbout));
     this.labelX1           = new DevComponents.DotNetBar.LabelX();
     this.labelX2           = new DevComponents.DotNetBar.LabelX();
     this.labelX3           = new DevComponents.DotNetBar.LabelX();
     this.buttonX1          = new DevComponents.DotNetBar.ButtonX();
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.flowLayoutPanel1  = new System.Windows.Forms.FlowLayoutPanel();
     this.groupBox2         = new System.Windows.Forms.GroupBox();
     this.flowLayoutPanel2  = new System.Windows.Forms.FlowLayoutPanel();
     this.labelX4           = new DevComponents.DotNetBar.LabelX();
     this.labelX6           = new DevComponents.DotNetBar.LabelX();
     this.linkLabelAboutERW = new System.Windows.Forms.LinkLabel();
     this.labelX5           = new DevComponents.DotNetBar.LabelX();
     this.listBox1          = new System.Windows.Forms.ListBox();
     this.groupBox1.SuspendLayout();
     this.flowLayoutPanel1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.flowLayoutPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // labelX1
     //
     this.labelX1.AutoSize = true;
     //
     //
     //
     this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX1.Location = new System.Drawing.Point(6, 5);
     this.labelX1.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX1.Name     = "labelX1";
     this.labelX1.Size     = new System.Drawing.Size(147, 15);
     this.labelX1.TabIndex = 0;
     this.labelX1.Text     = "Software Name: EasyScopeX";
     //
     // labelX2
     //
     this.labelX2.AutoSize = true;
     //
     //
     //
     this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX2.Location = new System.Drawing.Point(6, 30);
     this.labelX2.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX2.Name     = "labelX2";
     this.labelX2.Size     = new System.Drawing.Size(157, 15);
     this.labelX2.TabIndex = 1;
     this.labelX2.Text     = "Version: V100R001B01D01P08";
     //
     // labelX3
     //
     this.labelX3.AutoSize = true;
     //
     //
     //
     this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX3.Location = new System.Drawing.Point(6, 55);
     this.labelX3.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX3.Name     = "labelX3";
     this.labelX3.Size     = new System.Drawing.Size(123, 15);
     this.labelX3.TabIndex = 2;
     this.labelX3.Text     = "Copyright (C) 2011-2012";
     //
     // buttonX1
     //
     this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.buttonX1.ColorTable     = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.buttonX1.Location       = new System.Drawing.Point(187, 325);
     this.buttonX1.Margin         = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.buttonX1.Name           = "buttonX1";
     this.buttonX1.Size           = new System.Drawing.Size(75, 23);
     this.buttonX1.TabIndex       = 3;
     this.buttonX1.Text           = "&Close";
     this.buttonX1.Click         += new System.EventHandler(this.buttonX1_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.flowLayoutPanel1);
     this.groupBox1.Location = new System.Drawing.Point(12, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(250, 100);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Base";
     //
     // flowLayoutPanel1
     //
     this.flowLayoutPanel1.Controls.Add(this.labelX1);
     this.flowLayoutPanel1.Controls.Add(this.labelX2);
     this.flowLayoutPanel1.Controls.Add(this.labelX3);
     this.flowLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 16);
     this.flowLayoutPanel1.Name     = "flowLayoutPanel1";
     this.flowLayoutPanel1.Size     = new System.Drawing.Size(244, 81);
     this.flowLayoutPanel1.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.flowLayoutPanel2);
     this.groupBox2.Location = new System.Drawing.Point(12, 118);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(250, 199);
     this.groupBox2.TabIndex = 4;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Enhanced Release for Windows";
     //
     // flowLayoutPanel2
     //
     this.flowLayoutPanel2.Controls.Add(this.labelX4);
     this.flowLayoutPanel2.Controls.Add(this.labelX5);
     this.flowLayoutPanel2.Controls.Add(this.linkLabelAboutERW);
     this.flowLayoutPanel2.Controls.Add(this.labelX6);
     this.flowLayoutPanel2.Controls.Add(this.listBox1);
     this.flowLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 16);
     this.flowLayoutPanel2.Name     = "flowLayoutPanel2";
     this.flowLayoutPanel2.Size     = new System.Drawing.Size(244, 180);
     this.flowLayoutPanel2.TabIndex = 0;
     //
     // labelX4
     //
     this.labelX4.AutoSize = true;
     //
     //
     //
     this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX4.Location = new System.Drawing.Point(6, 5);
     this.labelX4.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX4.Name     = "labelX4";
     this.labelX4.Size     = new System.Drawing.Size(201, 15);
     this.labelX4.TabIndex = 0;
     this.labelX4.Text     = "Tweaks and enhacements by Erwin Ried";
     //
     // labelX6
     //
     this.labelX6.AutoSize = true;
     //
     //
     //
     this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.flowLayoutPanel2.SetFlowBreak(this.labelX6, true);
     this.labelX6.Location = new System.Drawing.Point(6, 55);
     this.labelX6.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX6.Name     = "labelX6";
     this.labelX6.Size     = new System.Drawing.Size(95, 15);
     this.labelX6.TabIndex = 2;
     this.labelX6.Text     = "Copyright (C) 2013";
     //
     // linkLabelAboutERW
     //
     this.linkLabelAboutERW.AutoSize = true;
     this.flowLayoutPanel2.SetFlowBreak(this.linkLabelAboutERW, true);
     this.linkLabelAboutERW.Location     = new System.Drawing.Point(63, 30);
     this.linkLabelAboutERW.Margin       = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.linkLabelAboutERW.Name         = "linkLabelAboutERW";
     this.linkLabelAboutERW.Size         = new System.Drawing.Size(94, 13);
     this.linkLabelAboutERW.TabIndex     = 3;
     this.linkLabelAboutERW.TabStop      = true;
     this.linkLabelAboutERW.Text         = "http://erwin.ried.cl";
     this.linkLabelAboutERW.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelAboutERW_LinkClicked);
     //
     // labelX5
     //
     this.labelX5.AutoSize = true;
     //
     //
     //
     this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
     this.labelX5.Location = new System.Drawing.Point(6, 30);
     this.labelX5.Margin   = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.labelX5.Name     = "labelX5";
     this.labelX5.Size     = new System.Drawing.Size(45, 15);
     this.labelX5.TabIndex = 2;
     this.labelX5.Text     = "Website:";
     //
     // listBox1
     //
     this.listBox1.FormattingEnabled = true;
     this.listBox1.Items.AddRange(new object[] {
         "Icons and resources from:",
         "http://icons8.com/",
         "http://iconarchive.com/",
         "",
         "Program icon by:",
         "http://www.iconarchive.com/artist/franksouza183.html"
     });
     this.listBox1.Location = new System.Drawing.Point(3, 78);
     this.listBox1.Name     = "listBox1";
     this.listBox1.Size     = new System.Drawing.Size(238, 95);
     this.listBox1.TabIndex = 4;
     //
     // FormAbout
     //
     this.ClientSize = new System.Drawing.Size(274, 362);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.buttonX1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin          = new System.Windows.Forms.Padding(6, 5, 6, 5);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormAbout";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "About";
     this.groupBox1.ResumeLayout(false);
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.flowLayoutPanel2.ResumeLayout(false);
     this.flowLayoutPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
示例#45
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.cancelBtn = new System.Windows.Forms.Button();
     this.nextBtn = new System.Windows.Forms.Button();
     this.backBtn = new System.Windows.Forms.Button();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.textBox2 = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.textBox3 = new System.Windows.Forms.TextBox();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.label4 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.demoRadioButton = new System.Windows.Forms.RadioButton();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.freeRadioButton = new System.Windows.Forms.RadioButton();
     this.proRadioButton = new System.Windows.Forms.RadioButton();
     this.trialRadioButton = new System.Windows.Forms.RadioButton();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Location = new System.Drawing.Point(8, 305);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(483, 2);
     this.groupBox1.TabIndex = 7;
     this.groupBox1.TabStop = false;
     //
     // cancelBtn
     //
     this.cancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelBtn.Location = new System.Drawing.Point(412, 322);
     this.cancelBtn.Name = "cancelBtn";
     this.cancelBtn.Size = new System.Drawing.Size(75, 23);
     this.cancelBtn.TabIndex = 5;
     this.cancelBtn.Text = "Cancel";
     this.cancelBtn.UseVisualStyleBackColor = true;
     this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
     //
     // nextBtn
     //
     this.nextBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.nextBtn.Enabled = false;
     this.nextBtn.Location = new System.Drawing.Point(316, 322);
     this.nextBtn.Name = "nextBtn";
     this.nextBtn.Size = new System.Drawing.Size(75, 23);
     this.nextBtn.TabIndex = 4;
     this.nextBtn.Text = "Next";
     this.nextBtn.UseVisualStyleBackColor = true;
     this.nextBtn.Click += new System.EventHandler(this.nextBtn_Click);
     //
     // backBtn
     //
     this.backBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.backBtn.Location = new System.Drawing.Point(235, 322);
     this.backBtn.Name = "backBtn";
     this.backBtn.Size = new System.Drawing.Size(75, 23);
     this.backBtn.TabIndex = 3;
     this.backBtn.Text = "Back";
     this.backBtn.UseVisualStyleBackColor = true;
     this.backBtn.Click += new System.EventHandler(this.backBtn_Click);
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(47, 252);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(41, 20);
     this.textBox1.TabIndex = 0;
     this.textBox1.TextChanged += new System.EventHandler(this.textBox_TextChanged);
     this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox_KeyPress);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(44, 227);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(123, 13);
     this.label1.TabIndex = 9;
     this.label1.Text = "Product activation code:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(93, 255);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(10, 13);
     this.label2.TabIndex = 10;
     this.label2.Text = "-";
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(108, 252);
     this.textBox2.Name = "textBox2";
     this.textBox2.Size = new System.Drawing.Size(41, 20);
     this.textBox2.TabIndex = 1;
     this.textBox2.TextChanged += new System.EventHandler(this.textBox_TextChanged);
     this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.textBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox_KeyPress);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(154, 255);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(10, 13);
     this.label3.TabIndex = 10;
     this.label3.Text = "-";
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(169, 252);
     this.textBox3.Name = "textBox3";
     this.textBox3.Size = new System.Drawing.Size(41, 20);
     this.textBox3.TabIndex = 2;
     this.textBox3.TextChanged += new System.EventHandler(this.textBox_TextChanged);
     this.textBox3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
     this.textBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox_KeyPress);
     //
     // pictureBox1
     //
     this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(498, 60);
     this.pictureBox1.TabIndex = 11;
     this.pictureBox1.TabStop = false;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.BackColor = System.Drawing.Color.White;
     this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)), true);
     this.label4.Location = new System.Drawing.Point(25, 9);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(111, 13);
     this.label4.TabIndex = 9;
     this.label4.Text = "Product activation";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.BackColor = System.Drawing.Color.White;
     this.label5.Location = new System.Drawing.Point(46, 29);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(160, 13);
     this.label5.TabIndex = 9;
     this.label5.Text = "Please enter the activation code";
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Location = new System.Drawing.Point(0, 59);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(499, 2);
     this.groupBox2.TabIndex = 8;
     this.groupBox2.TabStop = false;
     //
     // demoRadioButton
     //
     this.demoRadioButton.AutoSize = true;
     this.demoRadioButton.Location = new System.Drawing.Point(20, 19);
     this.demoRadioButton.Name = "demoRadioButton";
     this.demoRadioButton.Size = new System.Drawing.Size(53, 17);
     this.demoRadioButton.TabIndex = 12;
     this.demoRadioButton.Text = "Demo";
     this.demoRadioButton.UseVisualStyleBackColor = true;
     this.demoRadioButton.CheckedChanged += new System.EventHandler(this.demoRadioButton_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.freeRadioButton);
     this.groupBox3.Controls.Add(this.proRadioButton);
     this.groupBox3.Controls.Add(this.trialRadioButton);
     this.groupBox3.Controls.Add(this.demoRadioButton);
     this.groupBox3.Location = new System.Drawing.Point(28, 78);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(200, 126);
     this.groupBox3.TabIndex = 13;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "LicenceType";
     //
     // freeRadioButton
     //
     this.freeRadioButton.AutoSize = true;
     this.freeRadioButton.Location = new System.Drawing.Point(20, 88);
     this.freeRadioButton.Name = "freeRadioButton";
     this.freeRadioButton.Size = new System.Drawing.Size(135, 17);
     this.freeRadioButton.TabIndex = 12;
     this.freeRadioButton.Text = "Free Community Edition";
     this.freeRadioButton.UseVisualStyleBackColor = true;
     this.freeRadioButton.CheckedChanged += new System.EventHandler(this.demoRadioButton_CheckedChanged);
     //
     // proRadioButton
     //
     this.proRadioButton.AutoSize = true;
     this.proRadioButton.Checked = true;
     this.proRadioButton.Location = new System.Drawing.Point(20, 65);
     this.proRadioButton.Name = "proRadioButton";
     this.proRadioButton.Size = new System.Drawing.Size(82, 17);
     this.proRadioButton.TabIndex = 12;
     this.proRadioButton.TabStop = true;
     this.proRadioButton.Text = "Professional";
     this.proRadioButton.UseVisualStyleBackColor = true;
     this.proRadioButton.CheckedChanged += new System.EventHandler(this.demoRadioButton_CheckedChanged);
     //
     // trialRadioButton
     //
     this.trialRadioButton.AutoSize = true;
     this.trialRadioButton.Location = new System.Drawing.Point(20, 41);
     this.trialRadioButton.Name = "trialRadioButton";
     this.trialRadioButton.Size = new System.Drawing.Size(45, 17);
     this.trialRadioButton.TabIndex = 12;
     this.trialRadioButton.Text = "Trial";
     this.trialRadioButton.UseVisualStyleBackColor = true;
     this.trialRadioButton.CheckedChanged += new System.EventHandler(this.demoRadioButton_CheckedChanged);
     //
     // CustomDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(498, 357);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBox3);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.cancelBtn);
     this.Controls.Add(this.nextBtn);
     this.Controls.Add(this.backBtn);
     this.Controls.Add(this.pictureBox1);
     this.MaximizeBox = false;
     this.Name = "CustomDialog";
     this.Text = "CLR Wix Dialog";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#46
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void InitializeComponent()
 {
     System.Windows.Forms.Label lblScheme;
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FileNameSchemeCtrl));
     System.Windows.Forms.Label lblPrefix;
     System.Windows.Forms.Label lblSuffix;
     System.Windows.Forms.Label lblExtension;
     this.grpOptions   = new System.Windows.Forms.GroupBox();
     this.grpTemplate  = new System.Windows.Forms.GroupBox();
     this.txtSuffix    = new System.Windows.Forms.TextBox();
     this.txtExtension = new System.Windows.Forms.TextBox();
     this.txtPrefix    = new System.Windows.Forms.TextBox();
     this.cboScheme    = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
     this.lblExample   = new System.Windows.Forms.Label();
     lblScheme         = new System.Windows.Forms.Label();
     lblPrefix         = new System.Windows.Forms.Label();
     lblSuffix         = new System.Windows.Forms.Label();
     lblExtension      = new System.Windows.Forms.Label();
     this.grpTemplate.SuspendLayout();
     this.SuspendLayout();
     //
     // lblScheme
     //
     resources.ApplyResources(lblScheme, "lblScheme");
     lblScheme.Name = "lblScheme";
     //
     // lblPrefix
     //
     resources.ApplyResources(lblPrefix, "lblPrefix");
     lblPrefix.Name = "lblPrefix";
     //
     // lblSuffix
     //
     resources.ApplyResources(lblSuffix, "lblSuffix");
     lblSuffix.Name = "lblSuffix";
     //
     // lblExtension
     //
     resources.ApplyResources(lblExtension, "lblExtension");
     lblExtension.Name = "lblExtension";
     //
     // grpOptions
     //
     resources.ApplyResources(this.grpOptions, "grpOptions");
     this.grpOptions.Name    = "grpOptions";
     this.grpOptions.TabStop = false;
     //
     // grpTemplate
     //
     this.grpTemplate.Controls.Add(lblExtension);
     this.grpTemplate.Controls.Add(lblSuffix);
     this.grpTemplate.Controls.Add(this.txtSuffix);
     this.grpTemplate.Controls.Add(this.txtExtension);
     this.grpTemplate.Controls.Add(lblPrefix);
     this.grpTemplate.Controls.Add(lblScheme);
     this.grpTemplate.Controls.Add(this.txtPrefix);
     this.grpTemplate.Controls.Add(this.cboScheme);
     this.grpTemplate.Controls.Add(this.lblExample);
     resources.ApplyResources(this.grpTemplate, "grpTemplate");
     this.grpTemplate.Name    = "grpTemplate";
     this.grpTemplate.TabStop = false;
     //
     // txtSuffix
     //
     resources.ApplyResources(this.txtSuffix, "txtSuffix");
     this.txtSuffix.Name         = "txtSuffix";
     this.txtSuffix.TextChanged += new System.EventHandler(this.txtSuffix_TextChanged);
     this.txtSuffix.KeyPress    += new System.Windows.Forms.KeyPressEventHandler(this.txtSuffix_KeyPress);
     //
     // txtExtension
     //
     resources.ApplyResources(this.txtExtension, "txtExtension");
     this.txtExtension.Name         = "txtExtension";
     this.txtExtension.TextChanged += new System.EventHandler(this.txtExtension_TextChanged);
     this.txtExtension.KeyPress    += new System.Windows.Forms.KeyPressEventHandler(this.txtExtension_KeyPress);
     //
     // txtPrefix
     //
     resources.ApplyResources(this.txtPrefix, "txtPrefix");
     this.txtPrefix.Name         = "txtPrefix";
     this.txtPrefix.TextChanged += new System.EventHandler(this.txtPrefix_TextChanged);
     this.txtPrefix.KeyPress    += new System.Windows.Forms.KeyPressEventHandler(this.txtPrefix_KeyPress);
     //
     // cboScheme
     //
     this.cboScheme.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     resources.ApplyResources(this.cboScheme, "cboScheme");
     this.cboScheme.Name = "cboScheme";
     this.cboScheme.SelectedIndexChanged += new System.EventHandler(this.cboScheme_SelectedIndexChanged);
     //
     // lblExample
     //
     resources.ApplyResources(this.lblExample, "lblExample");
     this.lblExample.Name = "lblExample";
     //
     // FileNameSchemeCtrl
     //
     this.Controls.Add(this.grpTemplate);
     this.Name = "FileNameSchemeCtrl";
     resources.ApplyResources(this, "$this");
     this.grpTemplate.ResumeLayout(false);
     this.grpTemplate.PerformLayout();
     this.ResumeLayout(false);
 }
示例#47
0
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     this.panel1 = new Panel();
     this.groupBox2 = new GroupBox();
     this.listView1 = new ListView();
     this.columnHeader_0 = new ColumnHeader();
     this.columnHeader_1 = new ColumnHeader();
     this.columnHeader_2 = new ColumnHeader();
     this.columnHeader_3 = new ColumnHeader();
     this.imageList_0 = new ImageList(this.icontainer_0);
     this.toolStrip1 = new ToolStrip();
     this.btnAdd = new ToolStripButton();
     this.btnEdit = new ToolStripButton();
     this.btnDelete = new ToolStripButton();
     this.panel2 = new Panel();
     this.btnImport = new Button();
     this.btnCancel = new Button();
     this.btnOK = new Button();
     this.groupBox1 = new GroupBox();
     this.cboCommandType = new ComboBox();
     this.label3 = new Label();
     this.txtDataBase = new TextBox();
     this.label2 = new Label();
     this.txtName = new TextBox();
     this.label1 = new Label();
     this.splitter1 = new Splitter();
     this.txtCode = new SyntaxHighlighterControl();
     this.label4 = new Label();
     this.nudTimeout = new NumericUpDown();
     this.panel1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.nudTimeout.BeginInit();
     base.SuspendLayout();
     this.panel1.Controls.Add(this.groupBox2);
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Dock = DockStyle.Right;
     this.panel1.Location = new Point(0x296, 3);
     this.panel1.Name = "panel1";
     this.panel1.Size = new Size(0x189, 0x214);
     this.panel1.TabIndex = 0;
     this.groupBox2.Controls.Add(this.listView1);
     this.groupBox2.Controls.Add(this.toolStrip1);
     this.groupBox2.Dock = DockStyle.Fill;
     this.groupBox2.Location = new Point(0, 0x73);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new Size(0x189, 0x176);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "命令参数";
     this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader_0, this.columnHeader_1, this.columnHeader_2, this.columnHeader_3 });
     this.listView1.Dock = DockStyle.Fill;
     this.listView1.FullRowSelect = true;
     this.listView1.HideSelection = false;
     this.listView1.Location = new Point(3, 0x2a);
     this.listView1.MultiSelect = false;
     this.listView1.Name = "listView1";
     this.listView1.Size = new Size(0x183, 0x149);
     this.listView1.SmallImageList = this.imageList_0;
     this.listView1.TabIndex = 1;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = View.Details;
     this.listView1.ItemActivate += new EventHandler(this.btnEdit_Click);
     this.listView1.Resize += new EventHandler(this.listView1_Resize);
     this.columnHeader_0.Text = "Name";
     this.columnHeader_0.Width = 0x8e;
     this.columnHeader_1.Text = "Type";
     this.columnHeader_1.Width = 0x54;
     this.columnHeader_2.Text = "Direction";
     this.columnHeader_2.Width = 0x4e;
     this.columnHeader_3.Text = "Size";
     this.columnHeader_3.TextAlign = HorizontalAlignment.Right;
     this.columnHeader_3.Width = 0x37;
     this.imageList_0.ColorDepth = ColorDepth.Depth8Bit;
     this.imageList_0.ImageSize = new Size(0x10, 0x10);
     this.imageList_0.TransparentColor = Color.Transparent;
     this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.btnAdd, this.btnEdit, this.btnDelete });
     this.toolStrip1.Location = new Point(3, 0x11);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new Size(0x183, 0x19);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text = "toolStrip1";
     //this.btnAdd.Image = Resources.NewDocumentHS;
     this.btnAdd.ImageTransparentColor = Color.Magenta;
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new Size(0x33, 0x16);
     this.btnAdd.Text = "新增";
     this.btnAdd.Click += new EventHandler(this.btnAdd_Click);
     // this.btnEdit.Image = Resources.EditTableHS;
     this.btnEdit.ImageTransparentColor = Color.Magenta;
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.Size = new Size(0x33, 0x16);
     this.btnEdit.Text = "修改";
     this.btnEdit.Click += new EventHandler(this.btnEdit_Click);
     //this.btnDelete.Image = Resources.DeleteHS;
     this.btnDelete.ImageTransparentColor = Color.Magenta;
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new Size(0x33, 0x16);
     this.btnDelete.Text = "删除";
     this.btnDelete.Click += new EventHandler(this.btnDelete_Click);
     this.panel2.Controls.Add(this.btnImport);
     this.panel2.Controls.Add(this.btnCancel);
     this.panel2.Controls.Add(this.btnOK);
     this.panel2.Dock = DockStyle.Bottom;
     this.panel2.Location = new Point(0, 0x1e9);
     this.panel2.Name = "panel2";
     this.panel2.Size = new Size(0x189, 0x2b);
     this.panel2.TabIndex = 1;
     this.btnImport.Location = new Point(7, 10);
     this.btnImport.Name = "btnImport";
     this.btnImport.Size = new Size(100, 0x17);
     this.btnImport.TabIndex = 2;
     this.btnImport.Text = "从剪切板导入";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Visible = false;
     this.btnImport.Click += new EventHandler(this.btnImport_Click);
     this.btnCancel.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this.btnCancel.DialogResult = DialogResult.Cancel;
     this.btnCancel.Location = new Point(0x12d, 10);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new Size(0x4b, 0x17);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.Text = "取消(&C)";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnOK.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this.btnOK.Location = new Point(0xce, 10);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new Size(0x4b, 0x17);
     this.btnOK.TabIndex = 0;
     this.btnOK.Text = "确定(&K)";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new EventHandler(this.btnOK_Click);
     this.groupBox1.Controls.Add(this.nudTimeout);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.cboCommandType);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.txtDataBase);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.txtName);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Dock = DockStyle.Top;
     this.groupBox1.Location = new Point(0, 0);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new Size(0x189, 0x73);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "基本信息";
     this.cboCommandType.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cboCommandType.FormattingEnabled = true;
     this.cboCommandType.Location = new Point(0x3e, 0x4c);
     this.cboCommandType.Name = "cboCommandType";
     this.cboCommandType.Size = new Size(0xae, 20);
     this.cboCommandType.TabIndex = 5;
     this.label3.AutoSize = true;
     this.label3.Location = new Point(10, 80);
     this.label3.Name = "label3";
     this.label3.Size = new Size(0x1d, 12);
     this.label3.TabIndex = 4;
     this.label3.Text = "类型";
     this.txtDataBase.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this.txtDataBase.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.txtDataBase.Location = new Point(0x3e, 0x2d);
     this.txtDataBase.Name = "txtDataBase";
     this.txtDataBase.Size = new Size(0x13e, 0x15);
     this.txtDataBase.TabIndex = 3;
     this.label2.AutoSize = true;
     this.label2.Location = new Point(10, 50);
     this.label2.Name = "label2";
     this.label2.Size = new Size(0x29, 12);
     this.label2.TabIndex = 2;
     this.label2.Text = "数据库";
     this.txtName.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this.txtName.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.txtName.Location = new Point(0x3e, 0x12);
     this.txtName.Name = "txtName";
     this.txtName.Size = new Size(0x13e, 0x15);
     this.txtName.TabIndex = 1;
     this.label1.AutoSize = true;
     this.label1.ForeColor = Color.Red;
     this.label1.Location = new Point(10, 0x17);
     this.label1.Name = "label1";
     this.label1.Size = new Size(0x23, 12);
     this.label1.TabIndex = 0;
     this.label1.Text = "名称*";
     this.splitter1.Dock = DockStyle.Right;
     this.splitter1.Location = new Point(0x28f, 3);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new Size(7, 0x214);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop = false;
     this.txtCode.Dock = DockStyle.Fill;
     this.txtCode.Location = new Point(3, 3);
     this.txtCode.Name = "txtCode";
     this.txtCode.method_6(false);
     this.txtCode.Size = new Size(0x28c, 0x214);
     this.txtCode.TabIndex = 2;
     this.label4.AutoSize = true;
     this.label4.Location = new Point(0xf3, 80);
     this.label4.Name = "label4";
     this.label4.Size = new Size(0x35, 12);
     this.label4.TabIndex = 6;
     this.label4.Text = "超时(秒)";
     this.nudTimeout.Font = new Font("Courier New", 9f);
     this.nudTimeout.Location = new Point(0x12d, 0x4c);
     int[] bits = new int[4];
     bits[0] = 0x186a0;
     this.nudTimeout.Maximum = new decimal(bits);
     this.nudTimeout.Name = "nudTimeout";
     this.nudTimeout.Size = new Size(0x4f, 0x15);
     this.nudTimeout.TabIndex = 7;
     bits = new int[4];
     bits[0] = 30;
     this.nudTimeout.Value = new decimal(bits);
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.btnCancel;
     base.ClientSize = new Size(0x422, 0x21a);
     base.Controls.Add(this.txtCode);
     base.Controls.Add(this.splitter1);
     base.Controls.Add(this.panel1);
     base.MinimizeBox = false;
     base.Name = "EditCommandDialog";
     base.Padding = new Padding(3);
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "新增命令";
     base.Load += new EventHandler(this.EditCommandDialog_Load);
     base.Shown += new EventHandler(this.EditCommandDialog_Shown);
     this.panel1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.nudTimeout.EndInit();
     base.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.button1                 = new System.Windows.Forms.Button();
     this.label1                  = new System.Windows.Forms.Label();
     this.pictureBox1             = new System.Windows.Forms.PictureBox();
     this.label2                  = new System.Windows.Forms.Label();
     this.label3                  = new System.Windows.Forms.Label();
     this.groupBox1               = new System.Windows.Forms.GroupBox();
     this.groupBox2               = new System.Windows.Forms.GroupBox();
     this.rdButton256BitRevision6 = new System.Windows.Forms.RadioButton();
     this.rdButton256Bit          = new System.Windows.Forms.RadioButton();
     this.rdButton128Bit          = new System.Windows.Forms.RadioButton();
     this.rdButton40Bit           = new System.Windows.Forms.RadioButton();
     this.groupBox3               = new System.Windows.Forms.GroupBox();
     this.rdButtonAES             = new System.Windows.Forms.RadioButton();
     this.rdButtonRC4             = new System.Windows.Forms.RadioButton();
     this.groupBox4               = new System.Windows.Forms.GroupBox();
     this.cmbEncrypt              = new System.Windows.Forms.ComboBox();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.BackColor = System.Drawing.Color.Transparent;
     this.button1.FlatAppearance.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
     this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.button1.Location   = new System.Drawing.Point(297, 351);
     this.button1.Name       = "button1";
     this.button1.Size       = new System.Drawing.Size(75, 23);
     this.button1.TabIndex   = 0;
     this.button1.Text       = "PDF";
     this.button1.UseVisualStyleBackColor = false;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Font      = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
     this.label1.Location  = new System.Drawing.Point(0, 105);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(386, 56);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Click the button to view an PDF document generated by Essential PDF.  Please note" +
                             " that Adobe Reader or its equivalent is required to view the resultant document." +
                             "";
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = System.Drawing.Image.FromFile(GetFullTemplatePath("pdf_header.png", true));
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(384, 89);
     this.pictureBox1.TabIndex = 24;
     this.pictureBox1.TabStop  = false;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(11, 17);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(168, 13);
     this.label2.TabIndex = 25;
     this.label2.Text     = "Owner password: syncfusion";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(12, 38);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(148, 13);
     this.label3.TabIndex = 26;
     this.label3.Text     = "UserPassword: password";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Location = new System.Drawing.Point(12, 319);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(204, 56);
     this.groupBox1.TabIndex = 27;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Encryption Password";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.rdButton256BitRevision6);
     this.groupBox2.Controls.Add(this.rdButton256Bit);
     this.groupBox2.Controls.Add(this.rdButton128Bit);
     this.groupBox2.Controls.Add(this.rdButton40Bit);
     this.groupBox2.Location = new System.Drawing.Point(12, 155);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(204, 67);
     this.groupBox2.TabIndex = 28;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Key Size";
     //
     // rdButton256BitRevision6
     //
     this.rdButton256BitRevision6.AutoSize = true;
     this.rdButton256BitRevision6.Location = new System.Drawing.Point(6, 43);
     this.rdButton256BitRevision6.Name     = "rdButton256BitRevision6";
     this.rdButton256BitRevision6.Size     = new System.Drawing.Size(111, 17);
     this.rdButton256BitRevision6.TabIndex = 3;
     this.rdButton256BitRevision6.TabStop  = true;
     this.rdButton256BitRevision6.Text     = "256 Bit Revision 6";
     this.rdButton256BitRevision6.UseVisualStyleBackColor = true;
     this.rdButton256BitRevision6.CheckedChanged         += new System.EventHandler(this.rdButton256BitRevision6_CheckedChanged);
     //
     // rdButton256Bit
     //
     this.rdButton256Bit.AutoSize = true;
     this.rdButton256Bit.Location = new System.Drawing.Point(142, 43);
     this.rdButton256Bit.Name     = "rdButton256Bit";
     this.rdButton256Bit.Size     = new System.Drawing.Size(55, 17);
     this.rdButton256Bit.TabIndex = 2;
     this.rdButton256Bit.TabStop  = true;
     this.rdButton256Bit.Text     = "256Bit";
     this.rdButton256Bit.UseVisualStyleBackColor = true;
     this.rdButton256Bit.CheckedChanged         += new System.EventHandler(this.rdButton256Bit_CheckedChanged);
     //
     // rdButton128Bit
     //
     this.rdButton128Bit.AutoSize = true;
     this.rdButton128Bit.Checked  = true;
     this.rdButton128Bit.Location = new System.Drawing.Point(142, 19);
     this.rdButton128Bit.Name     = "rdButton128Bit";
     this.rdButton128Bit.Size     = new System.Drawing.Size(58, 17);
     this.rdButton128Bit.TabIndex = 1;
     this.rdButton128Bit.TabStop  = true;
     this.rdButton128Bit.Text     = "128 Bit";
     this.rdButton128Bit.UseVisualStyleBackColor = true;
     this.rdButton128Bit.CheckedChanged         += new System.EventHandler(this.rdButton128Bit_CheckedChanged);
     //
     // rdButton40Bit
     //
     this.rdButton40Bit.AutoSize = true;
     this.rdButton40Bit.Location = new System.Drawing.Point(6, 20);
     this.rdButton40Bit.Name     = "rdButton40Bit";
     this.rdButton40Bit.Size     = new System.Drawing.Size(52, 17);
     this.rdButton40Bit.TabIndex = 0;
     this.rdButton40Bit.TabStop  = true;
     this.rdButton40Bit.Text     = "40 Bit";
     this.rdButton40Bit.UseVisualStyleBackColor = true;
     this.rdButton40Bit.CheckedChanged         += new System.EventHandler(this.rdButton40Bit_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.rdButtonAES);
     this.groupBox3.Controls.Add(this.rdButtonRC4);
     this.groupBox3.Location = new System.Drawing.Point(234, 155);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(130, 67);
     this.groupBox3.TabIndex = 29;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Encryption Algorithm";
     //
     // rdButtonAES
     //
     this.rdButtonAES.AutoSize = true;
     this.rdButtonAES.Checked  = true;
     this.rdButtonAES.Location = new System.Drawing.Point(78, 31);
     this.rdButtonAES.Name     = "rdButtonAES";
     this.rdButtonAES.Size     = new System.Drawing.Size(46, 17);
     this.rdButtonAES.TabIndex = 1;
     this.rdButtonAES.TabStop  = true;
     this.rdButtonAES.Text     = "AES";
     this.rdButtonAES.UseVisualStyleBackColor = true;
     this.rdButtonAES.CheckedChanged         += new System.EventHandler(this.rdButtonAES_CheckedChanged);
     //
     // rdButtonRC4
     //
     this.rdButtonRC4.AutoSize = true;
     this.rdButtonRC4.Location = new System.Drawing.Point(6, 31);
     this.rdButtonRC4.Name     = "rdButtonRC4";
     this.rdButtonRC4.Size     = new System.Drawing.Size(46, 17);
     this.rdButtonRC4.TabIndex = 0;
     this.rdButtonRC4.TabStop  = true;
     this.rdButtonRC4.Text     = "RC4";
     this.rdButtonRC4.UseVisualStyleBackColor = true;
     this.rdButtonRC4.CheckedChanged         += new System.EventHandler(this.rdButtonRC4_CheckedChanged);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.cmbEncrypt);
     this.groupBox4.Location = new System.Drawing.Point(12, 233);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(204, 56);
     this.groupBox4.TabIndex = 31;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Encryption Options ";
     //
     // cmbEncrypt
     //
     this.cmbEncrypt.FormattingEnabled = true;
     this.cmbEncrypt.Items.AddRange(new object[] {
         "Encrypt all contents",
         "Encrypt all contents except metadata",
         "Encrypt only attachments"
     });
     this.cmbEncrypt.Location      = new System.Drawing.Point(2, 19);
     this.cmbEncrypt.Name          = "cmbEncrypt";
     this.cmbEncrypt.Size          = new System.Drawing.Size(200, 21);
     this.cmbEncrypt.SelectedIndex = 0;
     this.cmbEncrypt.TabIndex      = 0;
     //
     // Form1
     //
     //this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor  = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(384, 390);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = System.Drawing.Icon.ExtractAssociatedIcon(GetFullTemplatePath("syncfusion.ico", true));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Encryption";
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#49
0
	public window()
	{
		Text = "dark_injector";
		Size = new Size(450, 370);
		int y = 5;

		//Dbpro exe
		GroupBox gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "Dbpro exe";
		gb.Location = new Point(5, y);
		gb.Width = this.Width - 20;
		gb.Height = 45;
		gb.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;

		proExe = new TextBox();
		proExe.Parent = gb;
		proExe.Location = new Point(5,15);
		proExe.Width = gb.Width - 50;
		proExe.Anchor = AnchorStyles.Left | AnchorStyles.Right;

		Button proExeBrowse = new Button();
		proExeBrowse.Parent = gb;
		proExeBrowse.Text = "...";
		proExeBrowse.Width = 30;
		proExeBrowse.Height = proExe.Height;
		proExeBrowse.Location = new Point(gb.Width - proExeBrowse.Width - 10, 15);
		proExeBrowse.Anchor = AnchorStyles.Right;
		proExeBrowse.Click += new EventHandler(proExeBrowse_Click);
		y+= gb.Height + 5;

		//dlls
		gb = new GroupBox();
		gb.Parent = this;
		gb.Text = "Dll to inject";
		gb.Location = new Point(5, y);
		gb.Width = this.Width - 20;
		gb.Height = 250;
		gb.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom;
		
		dllList = new ListBox();
		dllList.Parent = gb;
		dllList.Location = new Point(5,15);
		dllList.Width = 150;
		dllList.Height = gb.Height - 20;
		dllList.Sorted = true;
		dllList.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom;
		dllList.SelectedIndexChanged += new EventHandler(dllList_SelectedIndexChanged);

		dllDesc = new TextBox();
		dllDesc.Parent = gb;
		dllDesc.Multiline = true;
		dllDesc.Location = new Point(dllList.Left + dllList.Width + 10, 15);
		dllDesc.Height = gb.Height - 30;
		dllDesc.Width = 250;
		dllDesc.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
		y += gb.Height + 10;

		//inject button
		Button btnInject = new Button();
		btnInject.Parent = this;
		btnInject.Text = "&Inject dll";
		btnInject.Location = new Point(5, y);
		btnInject.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
		btnInject.Click += new EventHandler(btnInject_Click);

		//about button
		Button btnAbout = new Button();
		btnAbout.Parent = this;
		btnAbout.Text = "&About";
		btnAbout.Location = new Point((this.Width / 2) - (btnAbout.Width / 2), y);
		btnAbout.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
		btnAbout.Click += new EventHandler(btnAbout_Click);

		//exit button
		Button btnExit = new Button();
		btnExit.Parent = this;
		btnExit.Text = "E&xit";
		btnExit.Location = new Point(this.Width - btnExit.Width - 15, y);
		btnExit.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
		btnExit.Click += new EventHandler(btnExit_Click);

		this.Load += new EventHandler(window_Load);
	}
示例#50
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemPicker));
     this.groupBox1   = new System.Windows.Forms.GroupBox();
     this.textBox1    = new System.Windows.Forms.TextBox();
     this.groupBox2   = new System.Windows.Forms.GroupBox();
     this.button3     = new System.Windows.Forms.Button();
     this.button2     = new System.Windows.Forms.Button();
     this.button1     = new System.Windows.Forms.Button();
     this.groupBox3   = new System.Windows.Forms.GroupBox();
     this.textBox3    = new System.Windows.Forms.TextBox();
     this.textBox2    = new System.Windows.Forms.TextBox();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.ClbSort     = new System.Windows.Forms.CheckedListBox();
     this.groupBox4   = new System.Windows.Forms.GroupBox();
     this.label1      = new System.Windows.Forms.Label();
     this.tbAmount    = new System.Windows.Forms.TextBox();
     this.listBox1    = new System.Windows.Forms.ListBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.textBox1);
     this.groupBox1.Location = new System.Drawing.Point(12, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(465, 52);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Search";
     //
     // textBox1
     //
     this.textBox1.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox1.Location     = new System.Drawing.Point(6, 19);
     this.textBox1.Name         = "textBox1";
     this.textBox1.Size         = new System.Drawing.Size(450, 20);
     this.textBox1.TabIndex     = 0;
     this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.listBox1);
     this.groupBox2.Controls.Add(this.button3);
     this.groupBox2.Controls.Add(this.button2);
     this.groupBox2.Controls.Add(this.button1);
     this.groupBox2.Location = new System.Drawing.Point(12, 70);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(226, 363);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Items";
     //
     // button3
     //
     this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button3.Location  = new System.Drawing.Point(165, 328);
     this.button3.Name      = "button3";
     this.button3.Size      = new System.Drawing.Size(46, 23);
     this.button3.TabIndex  = 3;
     this.button3.Text      = "Close";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Location  = new System.Drawing.Point(104, 328);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(55, 23);
     this.button2.TabIndex  = 2;
     this.button2.Text      = "None";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(6, 328);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(92, 23);
     this.button1.TabIndex  = 1;
     this.button1.Text      = "Pick";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.textBox3);
     this.groupBox3.Controls.Add(this.textBox2);
     this.groupBox3.Controls.Add(this.pictureBox1);
     this.groupBox3.Location = new System.Drawing.Point(244, 70);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(233, 132);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Preview";
     //
     // textBox3
     //
     this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox3.Location    = new System.Drawing.Point(62, 45);
     this.textBox3.Multiline   = true;
     this.textBox3.Name        = "textBox3";
     this.textBox3.ReadOnly    = true;
     this.textBox3.Size        = new System.Drawing.Size(162, 68);
     this.textBox3.TabIndex    = 9;
     //
     // textBox2
     //
     this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.textBox2.Location    = new System.Drawing.Point(62, 19);
     this.textBox2.Name        = "textBox2";
     this.textBox2.ReadOnly    = true;
     this.textBox2.Size        = new System.Drawing.Size(162, 20);
     this.textBox2.TabIndex    = 4;
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor             = System.Drawing.SystemColors.ButtonHighlight;
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.pictureBox1.Location = new System.Drawing.Point(6, 19);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(50, 58);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 8;
     this.pictureBox1.TabStop  = false;
     //
     // ClbSort
     //
     this.ClbSort.BackColor         = System.Drawing.SystemColors.Control;
     this.ClbSort.BorderStyle       = System.Windows.Forms.BorderStyle.None;
     this.ClbSort.CheckOnClick      = true;
     this.ClbSort.FormattingEnabled = true;
     this.ClbSort.Location          = new System.Drawing.Point(6, 19);
     this.ClbSort.MultiColumn       = true;
     this.ClbSort.Name                  = "ClbSort";
     this.ClbSort.Size                  = new System.Drawing.Size(221, 135);
     this.ClbSort.TabIndex              = 4;
     this.ClbSort.ItemCheck            += new System.Windows.Forms.ItemCheckEventHandler(this.ClbSort_ItemCheck);
     this.ClbSort.SelectedIndexChanged += new System.EventHandler(this.ClbSort_SelectedIndexChanged);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.ClbSort);
     this.groupBox4.Location = new System.Drawing.Point(244, 208);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(233, 158);
     this.groupBox4.TabIndex = 5;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Sort";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(254, 375);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(46, 13);
     this.label1.TabIndex = 6;
     this.label1.Text     = "Amount:";
     //
     // tbAmount
     //
     this.tbAmount.Location = new System.Drawing.Point(306, 372);
     this.tbAmount.Name     = "tbAmount";
     this.tbAmount.Size     = new System.Drawing.Size(100, 20);
     this.tbAmount.TabIndex = 7;
     //
     // listBox1
     //
     this.listBox1.FormattingEnabled = true;
     this.listBox1.Location          = new System.Drawing.Point(6, 19);
     this.listBox1.Name                  = "listBox1";
     this.listBox1.Size                  = new System.Drawing.Size(214, 303);
     this.listBox1.TabIndex              = 4;
     this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged_2);
     //
     // ItemPicker
     //
     this.ClientSize = new System.Drawing.Size(483, 445);
     this.Controls.Add(this.tbAmount);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.Name          = "ItemPicker";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "Item Picker";
     this.Load         += new System.EventHandler(this.ItemPicker_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#51
0
		/// <summary>
		/// Answer a viewbuilder for adding stuff to the specified box. Subclasses may wish to return
		/// a subclass of ViewBuilder.
		/// </summary>
		internal virtual ViewBuilder GetBuilder(GroupBox destination)
		{
			return new ViewBuilder(destination);
		}
示例#52
0
		public RootHookup(GroupBox containingBox) : base(null, containingBox)
		{
		}
示例#53
0
        public override void OnEnter()
        {
            PlayState.WorldWidth = Settings.Width;
            PlayState.WorldHeight = Settings.Height;
            PlayState.SeaLevel = Settings.SeaLevel;
            PlayState.Random = new ThreadSafeRandom(Seed);
            PlayState.WorldSize = new Point3(8, 1, 8);

            Overworld.Volcanoes = new List<Vector2>();

            DefaultFont = Game.Content.Load<SpriteFont>(ContentPaths.Fonts.Default);
            GUI = new DwarfGUI(Game, DefaultFont, Game.Content.Load<SpriteFont>(ContentPaths.Fonts.Title), Game.Content.Load<SpriteFont>(ContentPaths.Fonts.Small), Input);
            IsInitialized = true;
            Drawer = new Drawer2D(Game.Content, Game.GraphicsDevice);
            GenerationComplete = false;
            MainWindow = new Panel(GUI, GUI.RootComponent)
            {
                LocalBounds = new Rectangle(EdgePadding, EdgePadding, Game.GraphicsDevice.Viewport.Width - EdgePadding * 2, Game.GraphicsDevice.Viewport.Height - EdgePadding * 2)
            };

            GridLayout layout = new GridLayout(GUI, MainWindow, 7, 4)
            {
                LocalBounds = new Rectangle(0, 0, MainWindow.LocalBounds.Width, MainWindow.LocalBounds.Height)
            };

            Button startButton = new Button(GUI, layout, "Start!", GUI.DefaultFont, Button.ButtonMode.ToolButton, GUI.Skin.GetSpecialFrame(GUISkin.Tile.Check))
            {
                ToolTip = "Start the game with the currently generated world."
            };

            layout.SetComponentPosition(startButton, 2, 6, 1, 1);
            startButton.OnClicked += StartButtonOnClick;

            Button saveButton = new Button(GUI, layout, "Save", GUI.DefaultFont, Button.ButtonMode.ToolButton, GUI.Skin.GetSpecialFrame(GUISkin.Tile.Save))
            {
                ToolTip = "Save the generated world to a file."
            };
            layout.SetComponentPosition(saveButton, 1, 6, 1, 1);
            saveButton.OnClicked += saveButton_OnClicked;

            Button exitButton = new Button(GUI, layout, "Back", GUI.DefaultFont, Button.ButtonMode.ToolButton, GUI.Skin.GetSpecialFrame(GUISkin.Tile.LeftArrow))
            {
                ToolTip = "Back to the main menu."
            };
            layout.SetComponentPosition(exitButton, 0, 6, 1, 1);

            exitButton.OnClicked += ExitButtonOnClick;

            MapPanel = new ImagePanel(GUI, layout, worldMap)
            {
                ToolTip = "Map of the world.\nClick to select a location to embark."
            };

            GridLayout mapLayout = new GridLayout(GUI, MapPanel, 4, 5);

            ColorKeys = new ColorKey(GUI, mapLayout)
            {
                ColorEntries = Overworld.HeightColors
            };

            mapLayout.SetComponentPosition(ColorKeys, 3, 0, 1, 1);

            CloseupPanel = new ImagePanel(GUI, mapLayout, new ImageFrame(worldMap, new Rectangle(0, 0, 128, 128)))
            {
                KeepAspectRatio = true,
                ToolTip = "Closeup of the colony location"
            };

            mapLayout.SetComponentPosition(CloseupPanel, 3, 2, 2, 2);

            layout.SetComponentPosition(MapPanel, 0, 0, 3, 5);

            if(worldMap != null)
            {
                MapPanel.Image = new ImageFrame(worldMap);
            }

            MapPanel.OnClicked += OnMapClick;

            layout.UpdateSizes();

            GroupBox mapProperties = new GroupBox(GUI, layout, "Map Controls");

            GridLayout mapPropertiesLayout = new GridLayout(GUI, mapProperties, 7, 2)
            {
                LocalBounds = new Rectangle(mapProperties.LocalBounds.X, mapProperties.LocalBounds.Y + 32, mapProperties.LocalBounds.Width, mapProperties.LocalBounds.Height)
            };

            ComboBox worldSizeBox = new ComboBox(GUI, mapPropertiesLayout)
            {
                ToolTip = "Size of the colony spawn area."
            };

            worldSizeBox.AddValue("Tiny Colony");
            worldSizeBox.AddValue("Small Colony");
            worldSizeBox.AddValue("Medium Colony");
            worldSizeBox.AddValue("Large Colony");
            worldSizeBox.AddValue("Huge Colony");
            worldSizeBox.CurrentIndex = 1;

            worldSizeBox.OnSelectionModified += worldSizeBox_OnSelectionModified;
            mapPropertiesLayout.SetComponentPosition(worldSizeBox, 0, 0, 2, 1);

            ViewSelectionBox = new ComboBox(GUI, mapPropertiesLayout)
            {
                ToolTip = "Display type for the map."
            };

            ViewSelectionBox.AddValue("Height");
            ViewSelectionBox.AddValue("Factions");
            ViewSelectionBox.AddValue("Biomes");
            ViewSelectionBox.AddValue("Temp.");
            ViewSelectionBox.AddValue("Rain");
            ViewSelectionBox.AddValue("Erosion");
            ViewSelectionBox.AddValue("Faults");
            ViewSelectionBox.CurrentIndex = 0;

            mapPropertiesLayout.SetComponentPosition(ViewSelectionBox, 1, 1, 1, 1);

            Label selectLabel = new Label(GUI, mapPropertiesLayout, "Display", GUI.DefaultFont);
            mapPropertiesLayout.SetComponentPosition(selectLabel, 0, 1, 1, 1);
            selectLabel.Alignment = Drawer2D.Alignment.Right;

            layout.SetComponentPosition(mapProperties, 3, 0, 1, 6);

            Progress = new ProgressBar(GUI, layout, 0.0f);
            layout.SetComponentPosition(Progress, 0, 5, 3, 1);

            ViewSelectionBox.OnSelectionModified += DisplayModeModified;
            base.OnEnter();
        }
示例#54
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._groupBox1        = new System.Windows.Forms.GroupBox();
     this._maxHBox          = new System.Windows.Forms.TextBox();
     this._label2           = new System.Windows.Forms.Label();
     this._minHBox          = new System.Windows.Forms.TextBox();
     this._label1           = new System.Windows.Forms.Label();
     this._huePicker        = new AForge.Controls.HuePicker();
     this._groupBox2        = new System.Windows.Forms.GroupBox();
     this._saturationSlider = new AForge.Controls.ColorSlider();
     this._maxSBox          = new System.Windows.Forms.TextBox();
     this._minSBox          = new System.Windows.Forms.TextBox();
     this._label4           = new System.Windows.Forms.Label();
     this._label3           = new System.Windows.Forms.Label();
     this._groupBox3        = new System.Windows.Forms.GroupBox();
     this._luminanceSlider  = new AForge.Controls.ColorSlider();
     this._maxLBox          = new System.Windows.Forms.TextBox();
     this._minLBox          = new System.Windows.Forms.TextBox();
     this._label5           = new System.Windows.Forms.Label();
     this._label6           = new System.Windows.Forms.Label();
     this._groupBox5        = new System.Windows.Forms.GroupBox();
     this._filterPreview    = new AForge.Controls.PictureBox();
     this._groupBox4        = new System.Windows.Forms.GroupBox();
     this._updateLCheck     = new System.Windows.Forms.CheckBox();
     this._fillLBox         = new System.Windows.Forms.TextBox();
     this._label9           = new System.Windows.Forms.Label();
     this._updateSCheck     = new System.Windows.Forms.CheckBox();
     this._fillSBox         = new System.Windows.Forms.TextBox();
     this._label8           = new System.Windows.Forms.Label();
     this._updateHCheck     = new System.Windows.Forms.CheckBox();
     this._fillHBox         = new System.Windows.Forms.TextBox();
     this._label7           = new System.Windows.Forms.Label();
     this._fillTypeCombo    = new System.Windows.Forms.ComboBox();
     this._label10          = new System.Windows.Forms.Label();
     this._cancelButton     = new System.Windows.Forms.Button();
     this._okButton         = new System.Windows.Forms.Button();
     this.llblHelp          = new System.Windows.Forms.LinkLabel();
     this._groupBox1.SuspendLayout();
     this._groupBox2.SuspendLayout();
     this._groupBox3.SuspendLayout();
     this._groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).BeginInit();
     this._groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // _groupBox1
     //
     this._groupBox1.Controls.Add(this._maxHBox);
     this._groupBox1.Controls.Add(this._label2);
     this._groupBox1.Controls.Add(this._minHBox);
     this._groupBox1.Controls.Add(this._label1);
     this._groupBox1.Controls.Add(this._huePicker);
     this._groupBox1.Location = new System.Drawing.Point(10, 10);
     this._groupBox1.Name     = "_groupBox1";
     this._groupBox1.Size     = new System.Drawing.Size(280, 230);
     this._groupBox1.TabIndex = 1;
     this._groupBox1.TabStop  = false;
     this._groupBox1.Text     = "Hue";
     //
     // _maxHBox
     //
     this._maxHBox.Location     = new System.Drawing.Point(218, 20);
     this._maxHBox.Name         = "_maxHBox";
     this._maxHBox.Size         = new System.Drawing.Size(50, 20);
     this._maxHBox.TabIndex     = 4;
     this._maxHBox.TextChanged += new System.EventHandler(this.maxHBox_TextChanged);
     //
     // _label2
     //
     this._label2.Location = new System.Drawing.Point(186, 23);
     this._label2.Name     = "_label2";
     this._label2.Size     = new System.Drawing.Size(39, 15);
     this._label2.TabIndex = 3;
     this._label2.Text     = "Max:";
     //
     // _minHBox
     //
     this._minHBox.Location     = new System.Drawing.Point(40, 20);
     this._minHBox.Name         = "_minHBox";
     this._minHBox.Size         = new System.Drawing.Size(50, 20);
     this._minHBox.TabIndex     = 2;
     this._minHBox.TextChanged += new System.EventHandler(this.minHBox_TextChanged);
     //
     // _label1
     //
     this._label1.Location = new System.Drawing.Point(10, 23);
     this._label1.Name     = "_label1";
     this._label1.Size     = new System.Drawing.Size(31, 17);
     this._label1.TabIndex = 1;
     this._label1.Text     = "Min:";
     //
     // _huePicker
     //
     this._huePicker.Location       = new System.Drawing.Point(53, 50);
     this._huePicker.Name           = "_huePicker";
     this._huePicker.Size           = new System.Drawing.Size(170, 170);
     this._huePicker.TabIndex       = 0;
     this._huePicker.Type           = AForge.Controls.HuePicker.HuePickerType.Range;
     this._huePicker.ValuesChanged += new System.EventHandler(this.huePicker_ValuesChanged);
     this._huePicker.Click         += new System.EventHandler(this._huePicker_Click);
     //
     // _groupBox2
     //
     this._groupBox2.Controls.Add(this._saturationSlider);
     this._groupBox2.Controls.Add(this._maxSBox);
     this._groupBox2.Controls.Add(this._minSBox);
     this._groupBox2.Controls.Add(this._label4);
     this._groupBox2.Controls.Add(this._label3);
     this._groupBox2.Location = new System.Drawing.Point(10, 245);
     this._groupBox2.Name     = "_groupBox2";
     this._groupBox2.Size     = new System.Drawing.Size(280, 75);
     this._groupBox2.TabIndex = 2;
     this._groupBox2.TabStop  = false;
     this._groupBox2.Text     = "Saturation";
     //
     // _saturationSlider
     //
     this._saturationSlider.Location       = new System.Drawing.Point(8, 45);
     this._saturationSlider.Name           = "_saturationSlider";
     this._saturationSlider.Size           = new System.Drawing.Size(262, 23);
     this._saturationSlider.TabIndex       = 4;
     this._saturationSlider.Type           = AForge.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._saturationSlider.ValuesChanged += new System.EventHandler(this.saturationSlider_ValuesChanged);
     //
     // _maxSBox
     //
     this._maxSBox.Location     = new System.Drawing.Point(218, 20);
     this._maxSBox.Name         = "_maxSBox";
     this._maxSBox.Size         = new System.Drawing.Size(50, 20);
     this._maxSBox.TabIndex     = 3;
     this._maxSBox.TextChanged += new System.EventHandler(this.maxSBox_TextChanged);
     //
     // _minSBox
     //
     this._minSBox.Location     = new System.Drawing.Point(40, 20);
     this._minSBox.Name         = "_minSBox";
     this._minSBox.Size         = new System.Drawing.Size(50, 20);
     this._minSBox.TabIndex     = 2;
     this._minSBox.TextChanged += new System.EventHandler(this.minSBox_TextChanged);
     //
     // _label4
     //
     this._label4.Location = new System.Drawing.Point(186, 23);
     this._label4.Name     = "_label4";
     this._label4.Size     = new System.Drawing.Size(30, 17);
     this._label4.TabIndex = 1;
     this._label4.Text     = "Max:";
     //
     // _label3
     //
     this._label3.Location = new System.Drawing.Point(10, 23);
     this._label3.Name     = "_label3";
     this._label3.Size     = new System.Drawing.Size(30, 16);
     this._label3.TabIndex = 0;
     this._label3.Text     = "Min:";
     //
     // _groupBox3
     //
     this._groupBox3.Controls.Add(this._luminanceSlider);
     this._groupBox3.Controls.Add(this._maxLBox);
     this._groupBox3.Controls.Add(this._minLBox);
     this._groupBox3.Controls.Add(this._label5);
     this._groupBox3.Controls.Add(this._label6);
     this._groupBox3.Location = new System.Drawing.Point(10, 325);
     this._groupBox3.Name     = "_groupBox3";
     this._groupBox3.Size     = new System.Drawing.Size(280, 75);
     this._groupBox3.TabIndex = 3;
     this._groupBox3.TabStop  = false;
     this._groupBox3.Text     = "Luminance";
     //
     // _luminanceSlider
     //
     this._luminanceSlider.Location       = new System.Drawing.Point(8, 45);
     this._luminanceSlider.Name           = "_luminanceSlider";
     this._luminanceSlider.Size           = new System.Drawing.Size(262, 23);
     this._luminanceSlider.TabIndex       = 9;
     this._luminanceSlider.Type           = AForge.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._luminanceSlider.ValuesChanged += new System.EventHandler(this.luminanceSlider_ValuesChanged);
     //
     // _maxLBox
     //
     this._maxLBox.Location     = new System.Drawing.Point(218, 20);
     this._maxLBox.Name         = "_maxLBox";
     this._maxLBox.Size         = new System.Drawing.Size(50, 20);
     this._maxLBox.TabIndex     = 8;
     this._maxLBox.TextChanged += new System.EventHandler(this.maxLBox_TextChanged);
     //
     // _minLBox
     //
     this._minLBox.Location     = new System.Drawing.Point(40, 20);
     this._minLBox.Name         = "_minLBox";
     this._minLBox.Size         = new System.Drawing.Size(50, 20);
     this._minLBox.TabIndex     = 7;
     this._minLBox.TextChanged += new System.EventHandler(this.minLBox_TextChanged);
     //
     // _label5
     //
     this._label5.Location = new System.Drawing.Point(186, 23);
     this._label5.Name     = "_label5";
     this._label5.Size     = new System.Drawing.Size(30, 17);
     this._label5.TabIndex = 6;
     this._label5.Text     = "Max:";
     //
     // _label6
     //
     this._label6.Location = new System.Drawing.Point(10, 23);
     this._label6.Name     = "_label6";
     this._label6.Size     = new System.Drawing.Size(30, 16);
     this._label6.TabIndex = 5;
     this._label6.Text     = "Min:";
     //
     // _groupBox5
     //
     this._groupBox5.Controls.Add(this._filterPreview);
     this._groupBox5.Location = new System.Drawing.Point(300, 10);
     this._groupBox5.Name     = "_groupBox5";
     this._groupBox5.Size     = new System.Drawing.Size(322, 230);
     this._groupBox5.TabIndex = 4;
     this._groupBox5.TabStop  = false;
     this._groupBox5.Text     = "Detector View";
     //
     // _filterPreview
     //
     this._filterPreview.Image    = null;
     this._filterPreview.Location = new System.Drawing.Point(10, 15);
     this._filterPreview.Name     = "_filterPreview";
     this._filterPreview.Size     = new System.Drawing.Size(306, 205);
     this._filterPreview.TabIndex = 0;
     this._filterPreview.TabStop  = false;
     this._filterPreview.Click   += new System.EventHandler(this._filterPreview_Click);
     //
     // _groupBox4
     //
     this._groupBox4.Controls.Add(this._updateLCheck);
     this._groupBox4.Controls.Add(this._fillLBox);
     this._groupBox4.Controls.Add(this._label9);
     this._groupBox4.Controls.Add(this._updateSCheck);
     this._groupBox4.Controls.Add(this._fillSBox);
     this._groupBox4.Controls.Add(this._label8);
     this._groupBox4.Controls.Add(this._updateHCheck);
     this._groupBox4.Controls.Add(this._fillHBox);
     this._groupBox4.Controls.Add(this._label7);
     this._groupBox4.Location = new System.Drawing.Point(300, 245);
     this._groupBox4.Name     = "_groupBox4";
     this._groupBox4.Size     = new System.Drawing.Size(170, 100);
     this._groupBox4.TabIndex = 5;
     this._groupBox4.TabStop  = false;
     this._groupBox4.Text     = "Fill Color";
     //
     // _updateLCheck
     //
     this._updateLCheck.Checked         = true;
     this._updateLCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateLCheck.Location        = new System.Drawing.Point(125, 70);
     this._updateLCheck.Name            = "_updateLCheck";
     this._updateLCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateLCheck.TabIndex        = 8;
     this._updateLCheck.CheckedChanged += new System.EventHandler(this.updateLCheck_CheckedChanged);
     //
     // _fillLBox
     //
     this._fillLBox.Location     = new System.Drawing.Point(40, 70);
     this._fillLBox.Name         = "_fillLBox";
     this._fillLBox.Size         = new System.Drawing.Size(50, 20);
     this._fillLBox.TabIndex     = 7;
     this._fillLBox.TextChanged += new System.EventHandler(this.fillLBox_TextChanged);
     //
     // _label9
     //
     this._label9.Location = new System.Drawing.Point(10, 73);
     this._label9.Name     = "_label9";
     this._label9.Size     = new System.Drawing.Size(20, 16);
     this._label9.TabIndex = 6;
     this._label9.Text     = "L:";
     //
     // _updateSCheck
     //
     this._updateSCheck.Checked         = true;
     this._updateSCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateSCheck.Location        = new System.Drawing.Point(125, 45);
     this._updateSCheck.Name            = "_updateSCheck";
     this._updateSCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateSCheck.TabIndex        = 5;
     this._updateSCheck.CheckedChanged += new System.EventHandler(this.updateSCheck_CheckedChanged);
     //
     // _fillSBox
     //
     this._fillSBox.Location     = new System.Drawing.Point(40, 45);
     this._fillSBox.Name         = "_fillSBox";
     this._fillSBox.Size         = new System.Drawing.Size(50, 20);
     this._fillSBox.TabIndex     = 4;
     this._fillSBox.TextChanged += new System.EventHandler(this.fillSBox_TextChanged);
     //
     // _label8
     //
     this._label8.Location = new System.Drawing.Point(10, 48);
     this._label8.Name     = "_label8";
     this._label8.Size     = new System.Drawing.Size(20, 16);
     this._label8.TabIndex = 3;
     this._label8.Text     = "S:";
     //
     // _updateHCheck
     //
     this._updateHCheck.Checked         = true;
     this._updateHCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateHCheck.Location        = new System.Drawing.Point(125, 20);
     this._updateHCheck.Name            = "_updateHCheck";
     this._updateHCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateHCheck.TabIndex        = 2;
     this._updateHCheck.CheckedChanged += new System.EventHandler(this.updateHCheck_CheckedChanged);
     //
     // _fillHBox
     //
     this._fillHBox.Location     = new System.Drawing.Point(40, 20);
     this._fillHBox.Name         = "_fillHBox";
     this._fillHBox.Size         = new System.Drawing.Size(50, 20);
     this._fillHBox.TabIndex     = 1;
     this._fillHBox.TextChanged += new System.EventHandler(this.fillHBox_TextChanged);
     //
     // _label7
     //
     this._label7.Location = new System.Drawing.Point(10, 23);
     this._label7.Name     = "_label7";
     this._label7.Size     = new System.Drawing.Size(20, 16);
     this._label7.TabIndex = 0;
     this._label7.Text     = "H:";
     //
     // _fillTypeCombo
     //
     this._fillTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._fillTypeCombo.Items.AddRange(new object[] {
         "Outside",
         "Inside"
     });
     this._fillTypeCombo.Location              = new System.Drawing.Point(300, 379);
     this._fillTypeCombo.Name                  = "_fillTypeCombo";
     this._fillTypeCombo.Size                  = new System.Drawing.Size(170, 21);
     this._fillTypeCombo.TabIndex              = 10;
     this._fillTypeCombo.SelectedIndexChanged += new System.EventHandler(this.fillTypeCombo_SelectedIndexChanged);
     //
     // _label10
     //
     this._label10.AutoSize = true;
     this._label10.Location = new System.Drawing.Point(297, 352);
     this._label10.Name     = "_label10";
     this._label10.Size     = new System.Drawing.Size(45, 13);
     this._label10.TabIndex = 13;
     this._label10.Text     = "Fill type:";
     //
     // _cancelButton
     //
     this._cancelButton.AutoSize     = true;
     this._cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._cancelButton.Location     = new System.Drawing.Point(570, 407);
     this._cancelButton.Name         = "_cancelButton";
     this._cancelButton.Size         = new System.Drawing.Size(52, 25);
     this._cancelButton.TabIndex     = 12;
     this._cancelButton.Text         = "Cancel";
     //
     // _okButton
     //
     this._okButton.AutoSize     = true;
     this._okButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._okButton.Location     = new System.Drawing.Point(531, 407);
     this._okButton.Name         = "_okButton";
     this._okButton.Size         = new System.Drawing.Size(33, 25);
     this._okButton.TabIndex     = 11;
     this._okButton.Text         = "Ok";
     this._okButton.Click       += new System.EventHandler(this._okButton_Click);
     //
     // llblHelp
     //
     this.llblHelp.AutoSize     = true;
     this.llblHelp.Location     = new System.Drawing.Point(476, 413);
     this.llblHelp.Name         = "llblHelp";
     this.llblHelp.Size         = new System.Drawing.Size(29, 13);
     this.llblHelp.TabIndex     = 64;
     this.llblHelp.TabStop      = true;
     this.llblHelp.Text         = "Help";
     this.llblHelp.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llblHelp_LinkClicked);
     //
     // HSLFilteringForm
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this._cancelButton;
     this.ClientSize        = new System.Drawing.Size(634, 439);
     this.Controls.Add(this.llblHelp);
     this.Controls.Add(this._fillTypeCombo);
     this.Controls.Add(this._label10);
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._groupBox4);
     this.Controls.Add(this._groupBox5);
     this.Controls.Add(this._groupBox3);
     this.Controls.Add(this._groupBox2);
     this.Controls.Add(this._groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HSLFilteringForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "HSL Filtering";
     this.Load           += new System.EventHandler(this.HSLFilteringForm_Load);
     this._groupBox1.ResumeLayout(false);
     this._groupBox1.PerformLayout();
     this._groupBox2.ResumeLayout(false);
     this._groupBox2.PerformLayout();
     this._groupBox3.ResumeLayout(false);
     this._groupBox3.PerformLayout();
     this._groupBox5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).EndInit();
     this._groupBox4.ResumeLayout(false);
     this._groupBox4.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#55
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _dataGrid
		// 
		_dataGrid = new DataGridView ();
		_dataGrid.AllowUserToAddRows = false;
		_dataGrid.AllowUserToDeleteRows = false;
		_dataGrid.AllowUserToResizeRows = true;
		_dataGrid.Dock = DockStyle.Top;
		_dataGrid.Height = 100;
		_dataGrid.MultiSelect = true;
		_dataGrid.RowHeadersVisible = false;
		_dataGrid.RowTemplate.Height = 18;
		_dataGrid.ShowCellToolTips = false;
		Controls.Add (_dataGrid);
		// 
		// _readOnlyGroupBox
		// 
		_readOnlyGroupBox = new GroupBox ();
		_readOnlyGroupBox.Dock = DockStyle.Bottom;
		_readOnlyGroupBox.Height = 100;
		_readOnlyGroupBox.Text = "ReadOnly";
		Controls.Add (_readOnlyGroupBox);
		// 
		// _dataGridViewReadOnlyCheckBox
		// 
		_dataGridViewReadOnlyCheckBox = new CheckBox ();
		_dataGridViewReadOnlyCheckBox.Location = new Point (8, 16);
		_dataGridViewReadOnlyCheckBox.Size = new Size (120, 20);
		_dataGridViewReadOnlyCheckBox.Text = "DataGridView";
		_dataGridViewReadOnlyCheckBox.CheckedChanged += new EventHandler (DataGridViewReadOnlyCheckBox_CheckChanged);
		_readOnlyGroupBox.Controls.Add (_dataGridViewReadOnlyCheckBox);
		// 
		// _rowReadOnlyCheckBox
		// 
		_rowReadOnlyCheckBox = new CheckBox ();
		_rowReadOnlyCheckBox.Location = new Point (8, 35);
		_rowReadOnlyCheckBox.Size = new Size (120, 20);
		_rowReadOnlyCheckBox.Text = "2nd Row";
		_rowReadOnlyCheckBox.CheckedChanged += new EventHandler (RowReadOnlyCheckBox_CheckChanged);
		_readOnlyGroupBox.Controls.Add (_rowReadOnlyCheckBox);
		// 
		// _columnReadOnlyCheckBox
		// 
		_columnReadOnlyCheckBox = new CheckBox ();
		_columnReadOnlyCheckBox.Location = new Point (8, 54);
		_columnReadOnlyCheckBox.Size = new Size (120, 20);
		_columnReadOnlyCheckBox.Text = "Person Column";
		_columnReadOnlyCheckBox.CheckedChanged += new EventHandler (ColumnReadOnlyCheckBox_CheckChanged);
		_readOnlyGroupBox.Controls.Add (_columnReadOnlyCheckBox);
		// 
		// _cellReadOnlyCheckBox
		// 
		_cellReadOnlyCheckBox = new CheckBox ();
		_cellReadOnlyCheckBox.Location = new Point (8, 73);
		_cellReadOnlyCheckBox.Size = new Size (200, 20);
		_cellReadOnlyCheckBox.Text = "Peron Cell in 2nd row";
		_cellReadOnlyCheckBox.CheckedChanged += new EventHandler (CellReadOnlyCheckBox_CheckChanged);
		_readOnlyGroupBox.Controls.Add (_cellReadOnlyCheckBox);
		// 
		// MainForm
		// 
		ClientSize = new Size (350, 210);
		Location = new Point (150, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81074";
		Load += new EventHandler (MainForm_Load);
	}
示例#56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExtensionDialog));
     this.extensionListView                = new System.Windows.Forms.ListView();
     this.extensionNameColumn              = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.extensionStatusColumn            = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.extensionPointDescriptionTextBox = new System.Windows.Forms.TextBox();
     this.label1  = new System.Windows.Forms.Label();
     this.button1 = new System.Windows.Forms.Button();
     this.extensionPointsListBox = new System.Windows.Forms.ListBox();
     this.groupBox1                   = new System.Windows.Forms.GroupBox();
     this.groupBox2                   = new System.Windows.Forms.GroupBox();
     this.propertiesTextBox           = new System.Windows.Forms.TextBox();
     this.label3                      = new System.Windows.Forms.Label();
     this.extensionDescriptionTextBox = new System.Windows.Forms.TextBox();
     this.label2                      = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // extensionListView
     //
     this.extensionListView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.extensionListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.extensionNameColumn,
         this.extensionStatusColumn
     });
     this.extensionListView.FullRowSelect = true;
     this.extensionListView.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.extensionListView.HideSelection = false;
     this.extensionListView.Location      = new System.Drawing.Point(7, 23);
     this.extensionListView.MultiSelect   = false;
     this.extensionListView.Name          = "extensionListView";
     this.extensionListView.Size          = new System.Drawing.Size(432, 59);
     this.extensionListView.TabIndex      = 0;
     this.extensionListView.UseCompatibleStateImageBehavior = false;
     this.extensionListView.View = System.Windows.Forms.View.Details;
     this.extensionListView.SelectedIndexChanged += new System.EventHandler(this.extensionListView_SelectedIndexChanged);
     this.extensionListView.Resize += new System.EventHandler(this.extensionListView_Resize);
     //
     // extensionNameColumn
     //
     this.extensionNameColumn.Text  = "Extension";
     this.extensionNameColumn.Width = 357;
     //
     // extensionStatusColumn
     //
     this.extensionStatusColumn.Text  = "Status";
     this.extensionStatusColumn.Width = 71;
     //
     // extensionPointDescriptionTextBox
     //
     this.extensionPointDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.extensionPointDescriptionTextBox.Location  = new System.Drawing.Point(9, 128);
     this.extensionPointDescriptionTextBox.Multiline = true;
     this.extensionPointDescriptionTextBox.Name      = "extensionPointDescriptionTextBox";
     this.extensionPointDescriptionTextBox.Size      = new System.Drawing.Size(432, 31);
     this.extensionPointDescriptionTextBox.TabIndex  = 1;
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.Location = new System.Drawing.Point(6, 109);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(211, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Description:";
     //
     // button1
     //
     this.button1.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.button1.Location = new System.Drawing.Point(192, 420);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 3;
     this.button1.Text     = "OK";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // extensionPointsListBox
     //
     this.extensionPointsListBox.FormattingEnabled = true;
     this.extensionPointsListBox.Location          = new System.Drawing.Point(9, 19);
     this.extensionPointsListBox.Name                  = "extensionPointsListBox";
     this.extensionPointsListBox.Size                  = new System.Drawing.Size(432, 82);
     this.extensionPointsListBox.TabIndex              = 6;
     this.extensionPointsListBox.SelectedIndexChanged += new System.EventHandler(this.extensionPointsListBox_SelectedIndexChanged);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.extensionPointDescriptionTextBox);
     this.groupBox1.Controls.Add(this.extensionPointsListBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Location = new System.Drawing.Point(5, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(450, 165);
     this.groupBox1.TabIndex = 7;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Extension Points";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.propertiesTextBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.extensionDescriptionTextBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.extensionListView);
     this.groupBox2.Location = new System.Drawing.Point(5, 184);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(450, 230);
     this.groupBox2.TabIndex = 8;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Installed Extensions";
     //
     // propertiesTextBox
     //
     this.propertiesTextBox.Location  = new System.Drawing.Point(7, 179);
     this.propertiesTextBox.Multiline = true;
     this.propertiesTextBox.Name      = "propertiesTextBox";
     this.propertiesTextBox.Size      = new System.Drawing.Size(432, 41);
     this.propertiesTextBox.TabIndex  = 6;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(7, 157);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(54, 13);
     this.label3.TabIndex = 5;
     this.label3.Text     = "Properties";
     //
     // extensionDescriptionTextBox
     //
     this.extensionDescriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.extensionDescriptionTextBox.Location  = new System.Drawing.Point(7, 115);
     this.extensionDescriptionTextBox.Multiline = true;
     this.extensionDescriptionTextBox.Name      = "extensionDescriptionTextBox";
     this.extensionDescriptionTextBox.Size      = new System.Drawing.Size(432, 31);
     this.extensionDescriptionTextBox.TabIndex  = 4;
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location = new System.Drawing.Point(6, 94);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(211, 16);
     this.label2.TabIndex = 3;
     this.label2.Text     = "Description:";
     //
     // ExtensionDialog
     //
     this.ClientSize = new System.Drawing.Size(464, 449);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.button1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "ExtensionDialog";
     this.ShowInTaskbar = false;
     this.Text          = "Engine Extensions";
     this.Load         += new System.EventHandler(this.ExtensionDialog_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
示例#57
0
		protected GroupHookup(object target, GroupBox containingBox) : base(target)
		{
			ContainingBox = containingBox;
			Children = new List<IHookup>();
		}
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SessionSettingsForm));
     this.UnitGroupBox              = new System.Windows.Forms.GroupBox();
     this.DemandDuplicatesCheckBox  = new System.Windows.Forms.CheckBox();
     this.IndividualRadioButton     = new System.Windows.Forms.RadioButton();
     this.SampleRadioButton         = new System.Windows.Forms.RadioButton();
     this.HardyWeinbergGroupBox     = new System.Windows.Forms.GroupBox();
     this.DoHWTestCheckBox          = new System.Windows.Forms.CheckBox();
     this.HWLimitNumeric            = new System.Windows.Forms.NumericUpDown();
     this.HWLimitLabel              = new System.Windows.Forms.Label();
     this.SkipChildrenCheckBox      = new System.Windows.Forms.CheckBox();
     this.InheritanceTestGroupBox   = new System.Windows.Forms.GroupBox();
     this.DoInheritanceTestCheckBox = new System.Windows.Forms.CheckBox();
     this.DetectXCheckBox           = new System.Windows.Forms.CheckBox();
     this.OKButton           = new System.Windows.Forms.Button();
     this.CloseButton        = new System.Windows.Forms.Button();
     this.ExperimentGroupBox = new System.Windows.Forms.GroupBox();
     this.MarkerRadioButton  = new System.Windows.Forms.RadioButton();
     this.AssayRadioButton   = new System.Windows.Forms.RadioButton();
     this.UnitGroupBox.SuspendLayout();
     this.HardyWeinbergGroupBox.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.HWLimitNumeric)).BeginInit();
     this.InheritanceTestGroupBox.SuspendLayout();
     this.ExperimentGroupBox.SuspendLayout();
     this.SuspendLayout();
     //
     // UnitGroupBox
     //
     this.UnitGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.UnitGroupBox.Controls.Add(this.DemandDuplicatesCheckBox);
     this.UnitGroupBox.Controls.Add(this.IndividualRadioButton);
     this.UnitGroupBox.Controls.Add(this.SampleRadioButton);
     this.UnitGroupBox.Location = new System.Drawing.Point(13, 13);
     this.UnitGroupBox.Name     = "UnitGroupBox";
     this.UnitGroupBox.Size     = new System.Drawing.Size(338, 85);
     this.UnitGroupBox.TabIndex = 0;
     this.UnitGroupBox.TabStop  = false;
     this.UnitGroupBox.Text     = "Item Report Unit";
     //
     // DemandDuplicatesCheckBox
     //
     this.DemandDuplicatesCheckBox.Location = new System.Drawing.Point(176, 32);
     this.DemandDuplicatesCheckBox.Name     = "DemandDuplicatesCheckBox";
     this.DemandDuplicatesCheckBox.Size     = new System.Drawing.Size(136, 16);
     this.DemandDuplicatesCheckBox.TabIndex = 2;
     this.DemandDuplicatesCheckBox.Text     = "Demand duplicates";
     //
     // IndividualRadioButton
     //
     this.IndividualRadioButton.Location        = new System.Drawing.Point(16, 48);
     this.IndividualRadioButton.Name            = "IndividualRadioButton";
     this.IndividualRadioButton.Size            = new System.Drawing.Size(80, 16);
     this.IndividualRadioButton.TabIndex        = 1;
     this.IndividualRadioButton.Text            = "Individual";
     this.IndividualRadioButton.CheckedChanged += new System.EventHandler(this.CheckChangedEventHandler);
     //
     // SampleRadioButton
     //
     this.SampleRadioButton.Checked         = true;
     this.SampleRadioButton.Location        = new System.Drawing.Point(16, 24);
     this.SampleRadioButton.Name            = "SampleRadioButton";
     this.SampleRadioButton.Size            = new System.Drawing.Size(96, 16);
     this.SampleRadioButton.TabIndex        = 0;
     this.SampleRadioButton.TabStop         = true;
     this.SampleRadioButton.Text            = "Sample";
     this.SampleRadioButton.CheckedChanged += new System.EventHandler(this.CheckChangedEventHandler);
     //
     // HardyWeinbergGroupBox
     //
     this.HardyWeinbergGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.HardyWeinbergGroupBox.Controls.Add(this.DoHWTestCheckBox);
     this.HardyWeinbergGroupBox.Controls.Add(this.HWLimitNumeric);
     this.HardyWeinbergGroupBox.Controls.Add(this.HWLimitLabel);
     this.HardyWeinbergGroupBox.Controls.Add(this.SkipChildrenCheckBox);
     this.HardyWeinbergGroupBox.Location = new System.Drawing.Point(13, 334);
     this.HardyWeinbergGroupBox.Name     = "HardyWeinbergGroupBox";
     this.HardyWeinbergGroupBox.Size     = new System.Drawing.Size(338, 85);
     this.HardyWeinbergGroupBox.TabIndex = 1;
     this.HardyWeinbergGroupBox.TabStop  = false;
     this.HardyWeinbergGroupBox.Text     = "Frequencies";
     //
     // DoHWTestCheckBox
     //
     this.DoHWTestCheckBox.Location        = new System.Drawing.Point(16, 28);
     this.DoHWTestCheckBox.Name            = "DoHWTestCheckBox";
     this.DoHWTestCheckBox.Size            = new System.Drawing.Size(112, 16);
     this.DoHWTestCheckBox.TabIndex        = 7;
     this.DoHWTestCheckBox.Text            = "Perform H-W test";
     this.DoHWTestCheckBox.CheckedChanged += new System.EventHandler(this.CheckChangedEventHandler);
     //
     // HWLimitNumeric
     //
     this.HWLimitNumeric.Location = new System.Drawing.Point(200, 28);
     this.HWLimitNumeric.Maximum  = new decimal(new int[] {
         10000,
         0,
         0,
         0
     });
     this.HWLimitNumeric.Name     = "HWLimitNumeric";
     this.HWLimitNumeric.Size     = new System.Drawing.Size(72, 20);
     this.HWLimitNumeric.TabIndex = 9;
     //
     // HWLimitLabel
     //
     this.HWLimitLabel.Location = new System.Drawing.Point(136, 28);
     this.HWLimitLabel.Name     = "HWLimitLabel";
     this.HWLimitLabel.Size     = new System.Drawing.Size(56, 16);
     this.HWLimitLabel.TabIndex = 2;
     this.HWLimitLabel.Text     = "Chi2 limit";
     //
     // SkipChildrenCheckBox
     //
     this.SkipChildrenCheckBox.Location = new System.Drawing.Point(16, 52);
     this.SkipChildrenCheckBox.Name     = "SkipChildrenCheckBox";
     this.SkipChildrenCheckBox.Size     = new System.Drawing.Size(176, 16);
     this.SkipChildrenCheckBox.TabIndex = 8;
     this.SkipChildrenCheckBox.Text     = "Skip children";
     //
     // InheritanceTestGroupBox
     //
     this.InheritanceTestGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.InheritanceTestGroupBox.Controls.Add(this.DoInheritanceTestCheckBox);
     this.InheritanceTestGroupBox.Controls.Add(this.DetectXCheckBox);
     this.InheritanceTestGroupBox.Location = new System.Drawing.Point(13, 223);
     this.InheritanceTestGroupBox.Name     = "InheritanceTestGroupBox";
     this.InheritanceTestGroupBox.Size     = new System.Drawing.Size(338, 85);
     this.InheritanceTestGroupBox.TabIndex = 2;
     this.InheritanceTestGroupBox.TabStop  = false;
     this.InheritanceTestGroupBox.Text     = "Inheritance and Chromosomes";
     //
     // DoInheritanceTestCheckBox
     //
     this.DoInheritanceTestCheckBox.Location        = new System.Drawing.Point(16, 24);
     this.DoInheritanceTestCheckBox.Name            = "DoInheritanceTestCheckBox";
     this.DoInheritanceTestCheckBox.Size            = new System.Drawing.Size(192, 16);
     this.DoInheritanceTestCheckBox.TabIndex        = 5;
     this.DoInheritanceTestCheckBox.Text            = "Perform inheritance test";
     this.DoInheritanceTestCheckBox.CheckedChanged += new System.EventHandler(this.CheckChangedEventHandler);
     //
     // DetectXCheckBox
     //
     this.DetectXCheckBox.Location = new System.Drawing.Point(16, 48);
     this.DetectXCheckBox.Name     = "DetectXCheckBox";
     this.DetectXCheckBox.Size     = new System.Drawing.Size(192, 16);
     this.DetectXCheckBox.TabIndex = 6;
     this.DetectXCheckBox.Text     = "Detect human X chromosome";
     //
     // OKButton
     //
     this.OKButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.OKButton.Location = new System.Drawing.Point(13, 455);
     this.OKButton.Name     = "OKButton";
     this.OKButton.Size     = new System.Drawing.Size(72, 24);
     this.OKButton.TabIndex = 10;
     this.OKButton.Text     = "&OK";
     this.OKButton.Click   += new System.EventHandler(this.OKButton_Click);
     //
     // CloseButton
     //
     this.CloseButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.CloseButton.Location     = new System.Drawing.Point(286, 455);
     this.CloseButton.Name         = "CloseButton";
     this.CloseButton.Size         = new System.Drawing.Size(72, 24);
     this.CloseButton.TabIndex     = 11;
     this.CloseButton.Text         = "&Cancel";
     this.CloseButton.Click       += new System.EventHandler(this.CloseButton_Click);
     //
     // ExperimentGroupBox
     //
     this.ExperimentGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.ExperimentGroupBox.Controls.Add(this.MarkerRadioButton);
     this.ExperimentGroupBox.Controls.Add(this.AssayRadioButton);
     this.ExperimentGroupBox.Location = new System.Drawing.Point(13, 121);
     this.ExperimentGroupBox.Name     = "ExperimentGroupBox";
     this.ExperimentGroupBox.Size     = new System.Drawing.Size(337, 85);
     this.ExperimentGroupBox.TabIndex = 5;
     this.ExperimentGroupBox.TabStop  = false;
     this.ExperimentGroupBox.Text     = "Experiment Report Unit";
     //
     // MarkerRadioButton
     //
     this.MarkerRadioButton.AutoSize = true;
     this.MarkerRadioButton.Checked  = true;
     this.MarkerRadioButton.Location = new System.Drawing.Point(16, 52);
     this.MarkerRadioButton.Name     = "MarkerRadioButton";
     this.MarkerRadioButton.Size     = new System.Drawing.Size(58, 17);
     this.MarkerRadioButton.TabIndex = 4;
     this.MarkerRadioButton.TabStop  = true;
     this.MarkerRadioButton.Text     = "Marker";
     this.MarkerRadioButton.UseVisualStyleBackColor = true;
     //
     // AssayRadioButton
     //
     this.AssayRadioButton.AutoSize = true;
     this.AssayRadioButton.Location = new System.Drawing.Point(16, 29);
     this.AssayRadioButton.Name     = "AssayRadioButton";
     this.AssayRadioButton.Size     = new System.Drawing.Size(53, 17);
     this.AssayRadioButton.TabIndex = 3;
     this.AssayRadioButton.Text     = "Assay";
     this.AssayRadioButton.UseVisualStyleBackColor = true;
     //
     // SessionSettingsForm
     //
     this.AcceptButton      = this.OKButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.CloseButton;
     this.ClientSize        = new System.Drawing.Size(370, 491);
     this.Controls.Add(this.ExperimentGroupBox);
     this.Controls.Add(this.CloseButton);
     this.Controls.Add(this.OKButton);
     this.Controls.Add(this.InheritanceTestGroupBox);
     this.Controls.Add(this.HardyWeinbergGroupBox);
     this.Controls.Add(this.UnitGroupBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "SessionSettingsForm";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Session Settings";
     this.UnitGroupBox.ResumeLayout(false);
     this.HardyWeinbergGroupBox.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.HWLimitNumeric)).EndInit();
     this.InheritanceTestGroupBox.ResumeLayout(false);
     this.ExperimentGroupBox.ResumeLayout(false);
     this.ExperimentGroupBox.PerformLayout();
     this.ResumeLayout(false);
 }
示例#59
0
文件: MainForm.cs 项目: mono/gert
	public MainForm ()
	{
		// 
		// _toolBar
		// 
		_toolBar = new ToolBar ();
		_toolBar.DropDownArrows = true;
		_toolBar.Dock = DockStyle.Top;
		_toolBar.ShowToolTips = true;
		_toolBar.TabIndex = 1;
		Controls.Add (_toolBar);
		// 
		// _toolBarButton1
		// 
		_toolBarButton1 = new ToolBarButton ();
		_toolBar.Buttons.Add (_toolBarButton1);
		// 
		// _toolBarButton2
		// 
		_toolBarButton2 = new ToolBarButton ();
		_toolBar.Buttons.Add (_toolBarButton2);
		// 
		// _toolBarButton3
		// 
		_toolBarButton3 = new ToolBarButton ();
		_toolBar.Buttons.Add (_toolBarButton3);
		// 
		// _styleGroupBox
		// 
		_styleGroupBox = new GroupBox ();
		_styleGroupBox.Location = new Point (8, 30);
		_styleGroupBox.Size = new Size (270, 65);
		_styleGroupBox.Text = "Style";
		Controls.Add (_styleGroupBox);
		// 
		// _dropDownButtonStyleRadioButton
		// 
		_dropDownButtonStyleRadioButton = new RadioButton ();
		_dropDownButtonStyleRadioButton.Checked = (_toolBarButton2.Style == ToolBarButtonStyle.DropDownButton);
		_dropDownButtonStyleRadioButton.Location = new Point (8, 15);
		_dropDownButtonStyleRadioButton.Text = "DropDownButton";
		_dropDownButtonStyleRadioButton.Width = 120;
		_dropDownButtonStyleRadioButton.CheckedChanged += new EventHandler (DropDownButtonStyleRadioButton_CheckedChanged);
		_styleGroupBox.Controls.Add (_dropDownButtonStyleRadioButton);
		// 
		// _pushButtonStyleRadioButton
		// 
		_pushButtonStyleRadioButton = new RadioButton ();
		_pushButtonStyleRadioButton.Checked = (_toolBarButton2.Style == ToolBarButtonStyle.PushButton);
		_pushButtonStyleRadioButton.Location = new Point (8, 35);
		_pushButtonStyleRadioButton.Text = "PushButton";
		_pushButtonStyleRadioButton.CheckedChanged += new EventHandler (PushButtonStyleRadioButton_CheckedChanged);
		_styleGroupBox.Controls.Add (_pushButtonStyleRadioButton);
		// 
		// _separatorStyleRadioButton
		// 
		_separatorStyleRadioButton = new RadioButton ();
		_separatorStyleRadioButton.Checked = (_toolBarButton2.Style == ToolBarButtonStyle.Separator);
		_separatorStyleRadioButton.Location = new Point (150, 15);
		_separatorStyleRadioButton.Text = "Separator";
		_separatorStyleRadioButton.CheckedChanged += new EventHandler (SeparatorStyleRadioButton_CheckedChanged);
		_styleGroupBox.Controls.Add (_separatorStyleRadioButton);
		// 
		// _toggleButtonStyleRadioButton
		// 
		_toggleButtonStyleRadioButton = new RadioButton ();
		_toggleButtonStyleRadioButton.Checked = (_toolBarButton2.Style == ToolBarButtonStyle.ToggleButton);
		_toggleButtonStyleRadioButton.Location = new Point (150, 35);
		_toggleButtonStyleRadioButton.Text = "ToggleButton";
		_toggleButtonStyleRadioButton.CheckedChanged += new EventHandler (ToggleButtonStyleRadioButton_CheckedChanged);
		_styleGroupBox.Controls.Add (_toggleButtonStyleRadioButton);
		// 
		// MainForm
		// 
		ClientSize = new Size (285, 105);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81523";
		Load += new EventHandler (MainForm_Load);
	}
示例#60
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lblCoordinate = new System.Windows.Forms.Label();
     this.btnBuild      = new System.Windows.Forms.Button();
     this.groupBox1     = new System.Windows.Forms.GroupBox();
     this.label5        = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.cmbPurpose    = new System.Windows.Forms.ComboBox();
     this.txtFilename   = new System.Windows.Forms.TextBox();
     this.label3        = new System.Windows.Forms.Label();
     this.winformsMap1  = new WinformsMap();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // lblCoordinate
     //
     this.lblCoordinate.AutoSize = true;
     this.lblCoordinate.Location = new System.Drawing.Point(204, 234);
     this.lblCoordinate.Name     = "lblCoordinate";
     this.lblCoordinate.Size     = new System.Drawing.Size(0, 13);
     this.lblCoordinate.TabIndex = 6;
     this.lblCoordinate.Visible  = false;
     //
     // btnBuild
     //
     this.btnBuild.Location = new System.Drawing.Point(131, 129);
     this.btnBuild.Name     = "btnBuild";
     this.btnBuild.Size     = new System.Drawing.Size(75, 23);
     this.btnBuild.TabIndex = 3;
     this.btnBuild.Text     = "Build";
     this.btnBuild.UseVisualStyleBackColor = true;
     this.btnBuild.Click += new System.EventHandler(this.btnBuild_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.cmbPurpose);
     this.groupBox1.Controls.Add(this.txtFilename);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.btnBuild);
     this.groupBox1.Location = new System.Drawing.Point(514, 0);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(226, 165);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Instructions";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(6, 104);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(49, 13);
     this.label5.TabIndex = 19;
     this.label5.Text     = "Purpose:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(6, 74);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(60, 13);
     this.label2.TabIndex = 18;
     this.label2.Text     = "Target File:";
     //
     // cmbPurpose
     //
     this.cmbPurpose.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbPurpose.FormattingEnabled = true;
     this.cmbPurpose.Location          = new System.Drawing.Point(72, 101);
     this.cmbPurpose.Name                  = "cmbPurpose";
     this.cmbPurpose.Size                  = new System.Drawing.Size(148, 21);
     this.cmbPurpose.TabIndex              = 17;
     this.cmbPurpose.SelectedIndexChanged += new System.EventHandler(this.cmbPurpose_SelectedIndexChanged);
     //
     // txtFilename
     //
     this.txtFilename.Location = new System.Drawing.Point(72, 74);
     this.txtFilename.Name     = "txtFilename";
     this.txtFilename.Size     = new System.Drawing.Size(148, 20);
     this.txtFilename.TabIndex = 16;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(5, 21);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(215, 26);
     this.label3.TabIndex = 15;
     this.label3.Text     = "Click the button below to build the \r\nrouting data according to different purpose" +
                            "s.";
     //
     // winformsMap1
     //
     this.winformsMap1.BackColor          = System.Drawing.Color.White;
     this.winformsMap1.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.Default;
     this.winformsMap1.CurrentScale       = 590591790;
     this.winformsMap1.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.winformsMap1.DrawingQuality    = DrawingQuality.Default;
     this.winformsMap1.Location          = new System.Drawing.Point(0, 0);
     this.winformsMap1.MapFocusMode      = MapFocusMode.Default;
     this.winformsMap1.MapResizeMode     = MapResizeMode.PreserveScale;
     this.winformsMap1.MapUnit           = GeographyUnit.DecimalDegree;
     this.winformsMap1.MaximumScale      = 80000000000000;
     this.winformsMap1.MinimumScale      = 200;
     this.winformsMap1.Name              = "winformsMap1";
     this.winformsMap1.Size              = new System.Drawing.Size(740, 528);
     this.winformsMap1.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.winformsMap1.TabIndex          = 9;
     this.winformsMap1.Text              = "winformsMap1";
     this.winformsMap1.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
     this.winformsMap1.ThreadingMode     = MapThreadingMode.SingleThreaded;
     this.winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.Default;
     //
     // BuildingRoutingData
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.lblCoordinate);
     this.Controls.Add(this.winformsMap1);
     this.Name           = "BuildingRoutingData";
     this.Size           = new System.Drawing.Size(740, 528);
     this.Load          += new System.EventHandler(this.UserControl_Load);
     this.ParentChanged += new System.EventHandler(this.BuildingRoutingData_ParentChanged);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }