Esempio n. 1
1
	public MainForm ()
	{
		components = new Container ();
		ComponentResourceManager resources = new ComponentResourceManager (typeof (MainForm));
		menuStrip = new MenuStrip ();
		fileMenu = new ToolStripMenuItem ();
		openToolStripMenuItem = new ToolStripMenuItem ();
		reopenToolStripMenuItem = new ToolStripMenuItem ();
		closeToolStripMenuItem = new ToolStripMenuItem ();
		snipperToolStripMenuItem = new ToolStripMenuItem ();
		toolStripSeparator4 = new ToolStripSeparator ();
		exitToolStripMenuItem = new ToolStripMenuItem ();
		copyToolStripMenuItem = new ToolStripMenuItem ();
		viewMenu = new ToolStripMenuItem ();
		editMenu = new ToolStripMenuItem ();
		toolBarToolStripMenuItem = new ToolStripMenuItem ();
		statusBarToolStripMenuItem = new ToolStripMenuItem ();
		sourceViewToolStripMenuItem = new ToolStripMenuItem ();
		timeZoneToolStripMenuItem = new ToolStripMenuItem ();
		timeZoneMyLocalToolStripMenuItem = new ToolStripMenuItem ();
		timeZoneLogLocalToolStripMenuItem = new ToolStripMenuItem ();
		timeZoneUniversalToolStripMenuItem = new ToolStripMenuItem ();
		timeZoneCycleToolStripMenuItem = new ToolStripMenuItem ();
		toolsMenu = new ToolStripMenuItem ();
		optionsToolStripMenuItem = new ToolStripMenuItem ();
		traceConfigToolStripMenuItem = new ToolStripMenuItem ();
		windowsMenu = new ToolStripMenuItem ();
		cascadeToolStripMenuItem = new ToolStripMenuItem ();
		tileVerticalToolStripMenuItem = new ToolStripMenuItem ();
		tileHorizontalToolStripMenuItem = new ToolStripMenuItem ();
		closeAllToolStripMenuItem = new ToolStripMenuItem ();
		arrangeIconsToolStripMenuItem = new ToolStripMenuItem ();
		helpMenu = new ToolStripMenuItem ();
		contentsToolStripMenuItem = new ToolStripMenuItem ();
		indexToolStripMenuItem = new ToolStripMenuItem ();
		searchToolStripMenuItem = new ToolStripMenuItem ();
		toolStripSeparator8 = new ToolStripSeparator ();
		aboutToolStripMenuItem = new ToolStripMenuItem ();
		toolStrip = new ToolStrip ();
		newToolStripButton = new ToolStripButton ();
		openToolStripButton = new ToolStripButton ();
		saveToolStripButton = new ToolStripButton ();
		toolStripSeparator1 = new ToolStripSeparator ();
		printToolStripButton = new ToolStripButton ();
		printPreviewToolStripButton = new ToolStripButton ();
		helpToolStripButton = new ToolStripButton ();
		statusStrip = new StatusStrip ();
		toolStripStatusLabel = new ToolStripStatusLabel ();
		menuStrip.SuspendLayout ();
		toolStrip.SuspendLayout ();
		statusStrip.SuspendLayout ();
		SuspendLayout ();
		// 
		// menuStrip
		// 
		menuStrip.Items.AddRange (new ToolStripItem [] {
			fileMenu,
			editMenu,
			viewMenu,
			toolsMenu,
			windowsMenu,
			helpMenu});
		menuStrip.Location = new Point (0, 0);
		menuStrip.MdiWindowListItem = windowsMenu;
		menuStrip.Size = new Size (632, 24);
		menuStrip.TabIndex = 0;
		menuStrip.Text = "MenuStrip";
		// 
		// fileMenu
		// 
		fileMenu.DropDownItems.AddRange (new ToolStripItem [] {
			openToolStripMenuItem,
			reopenToolStripMenuItem,
			closeToolStripMenuItem,
			snipperToolStripMenuItem,
			toolStripSeparator4,
			exitToolStripMenuItem});
		fileMenu.ImageTransparentColor = SystemColors.ActiveBorder;
		fileMenu.Size = new Size (35, 20);
		fileMenu.MergeAction = MergeAction.Append;
		fileMenu.MergeIndex = 1;
		fileMenu.Text = "&File";
		// 
		// openToolStripMenuItem
		// 
		openToolStripMenuItem.Image = ((Image) (resources.GetObject ("openToolStripMenuItem.Image")));
		openToolStripMenuItem.ImageTransparentColor = Color.Black;
		openToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.O)));
		openToolStripMenuItem.Size = new Size (151, 22);
		openToolStripMenuItem.Text = "&Open";
		openToolStripMenuItem.Click += new System.EventHandler (OpenFile);
		openToolStripMenuItem.MergeAction = MergeAction.Append;
		openToolStripMenuItem.MergeIndex = 2;
		// 
		// reopenToolStripMenuItem
		// 
		reopenToolStripMenuItem.Image = ((Image) (resources.GetObject ("openToolStripMenuItem.Image")));
		reopenToolStripMenuItem.ImageTransparentColor = Color.Black;
		reopenToolStripMenuItem.Size = new Size (151, 22);
		reopenToolStripMenuItem.Text = "&Reopen";
		reopenToolStripMenuItem.MergeAction = MergeAction.Append;
		reopenToolStripMenuItem.MergeIndex = 3;
		// 
		// closeToolStripMenuItem
		// 
		//is.closeToolStripMenuItem.Image = ((Image)(resources.GetObject("saveToolStripMenuItem.Image")));
		closeToolStripMenuItem.ImageTransparentColor = Color.Black;
		//is.closeToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control | Keys.S)));
		closeToolStripMenuItem.Size = new Size (151, 22);
		closeToolStripMenuItem.Text = "&Close";
		closeToolStripMenuItem.MergeAction = MergeAction.Append;
		closeToolStripMenuItem.MergeIndex = 5;
		// 
		// snipperToolStripMenuItem
		// 
		snipperToolStripMenuItem.Size = new Size (151, 22);
		snipperToolStripMenuItem.Text = "Snip/Merge Log File(s)...";
		snipperToolStripMenuItem.MergeAction = MergeAction.Append;
		snipperToolStripMenuItem.MergeIndex = 6;
		// 
		// toolStripSeparator4
		// 
		toolStripSeparator4.Size = new Size (148, 6);
		toolStripSeparator4.MergeAction = MergeAction.Append;
		toolStripSeparator4.MergeIndex = 7;
		// 
		// exitToolStripMenuItem
		// 
		exitToolStripMenuItem.Size = new Size (151, 22);
		exitToolStripMenuItem.Text = "E&xit";
		exitToolStripMenuItem.Click += new System.EventHandler (ExitToolsStripMenuItem_Click);
		exitToolStripMenuItem.MergeAction = MergeAction.Append;
		exitToolStripMenuItem.MergeIndex = 11;
		// 
		// editMenu
		// 
		editMenu.DropDownItems.Add (copyToolStripMenuItem);
		editMenu.Size = new Size (41, 20);
		editMenu.Text = "&Edit";
		editMenu.MergeAction = MergeAction.Append;
		// 
		// copyToolStripMenuItem
		// 
		copyToolStripMenuItem.MergeAction = MergeAction.Append;
		copyToolStripMenuItem.MergeIndex = 1;
		copyToolStripMenuItem.Size = new Size (190, 22);
		copyToolStripMenuItem.Text = "Copy";
		copyToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C";
		copyToolStripMenuItem.ShowShortcutKeys = true;
		copyToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C;
		// 
		// viewMenu
		// 
		viewMenu.DropDownItems.AddRange (new ToolStripItem [] {
			toolBarToolStripMenuItem,
			statusBarToolStripMenuItem,
			sourceViewToolStripMenuItem,
			timeZoneToolStripMenuItem});
		viewMenu.Size = new Size (41, 20);
		viewMenu.Text = "&View";
		viewMenu.MergeAction = MergeAction.Append;
		// 
		// toolBarToolStripMenuItem
		// 
		toolBarToolStripMenuItem.Checked = true;
		toolBarToolStripMenuItem.CheckOnClick = true;
		toolBarToolStripMenuItem.CheckState = CheckState.Checked;
		toolBarToolStripMenuItem.Size = new Size (135, 22);
		toolBarToolStripMenuItem.Text = "&Toolbar";
		toolBarToolStripMenuItem.Click += new System.EventHandler (ToolBarToolStripMenuItem_Click);
		toolBarToolStripMenuItem.MergeAction = MergeAction.Append;
		toolBarToolStripMenuItem.MergeIndex = 68;
		// 
		// statusBarToolStripMenuItem
		// 
		statusBarToolStripMenuItem.Checked = true;
		statusBarToolStripMenuItem.CheckOnClick = true;
		statusBarToolStripMenuItem.CheckState = CheckState.Checked;
		statusBarToolStripMenuItem.Size = new Size (135, 22);
		statusBarToolStripMenuItem.Text = "&Status Bar";
		statusBarToolStripMenuItem.Click += new System.EventHandler (StatusBarToolStripMenuItem_Click);
		statusBarToolStripMenuItem.MergeAction = MergeAction.Append;
		statusBarToolStripMenuItem.MergeIndex = 99;
		// 
		// sourceViewToolStripMenuItem
		// 
		sourceViewToolStripMenuItem.Checked = true;
		sourceViewToolStripMenuItem.CheckOnClick = true;
		sourceViewToolStripMenuItem.CheckState = CheckState.Checked;
		sourceViewToolStripMenuItem.Size = new Size (135, 22);
		sourceViewToolStripMenuItem.Text = "Source &View";
		sourceViewToolStripMenuItem.MergeAction = MergeAction.Append;
		sourceViewToolStripMenuItem.MergeIndex = 100;
		//
		// timeZoneToolStripMenuItem
		//
		timeZoneToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			timeZoneMyLocalToolStripMenuItem,
			timeZoneLogLocalToolStripMenuItem,
			timeZoneUniversalToolStripMenuItem,
			timeZoneCycleToolStripMenuItem});
		timeZoneToolStripMenuItem.Size = new Size (41, 20);
		timeZoneToolStripMenuItem.Text = "Time Zone Setting";
		timeZoneToolStripMenuItem.MergeAction = MergeAction.Append;
		timeZoneToolStripMenuItem.MergeIndex = 10;
		//
		// timeZoneMyLocalToolStripMenuItem
		//
		timeZoneMyLocalToolStripMenuItem.Size = new Size (135, 22);
		timeZoneMyLocalToolStripMenuItem.Text = "My &Local Time Zone";
		timeZoneMyLocalToolStripMenuItem.MergeAction = MergeAction.Append;
		timeZoneMyLocalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T";
		timeZoneMyLocalToolStripMenuItem.ShowShortcutKeys = true;
		timeZoneMyLocalToolStripMenuItem.ShortcutKeys = Keys.None;
		//
		// timeZoneLogLocalToolStripMenuItem
		//
		timeZoneLogLocalToolStripMenuItem.Size = new Size (135, 22);
		timeZoneLogLocalToolStripMenuItem.Text = "Log &Creator's Time Zone";
		timeZoneLogLocalToolStripMenuItem.MergeAction = MergeAction.Append;
		timeZoneLogLocalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T";
		timeZoneLogLocalToolStripMenuItem.ShowShortcutKeys = true;
		timeZoneLogLocalToolStripMenuItem.ShortcutKeys = Keys.None;
		//
		// timeZoneUniversalToolStripMenuItem
		//
		timeZoneUniversalToolStripMenuItem.Size = new Size (135, 22);
		timeZoneUniversalToolStripMenuItem.Text = "&Universal Coordinated Time";
		timeZoneUniversalToolStripMenuItem.MergeAction = MergeAction.Append;
		timeZoneUniversalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T";
		timeZoneUniversalToolStripMenuItem.ShowShortcutKeys = true;
		timeZoneUniversalToolStripMenuItem.ShortcutKeys = Keys.None;
		//
		// timeZoneCycleToolStripMenuItem 
		//
		timeZoneCycleToolStripMenuItem.Size = new Size (135, 22);
		timeZoneCycleToolStripMenuItem.Text = "Cycle Time Zones";
		timeZoneCycleToolStripMenuItem.MergeAction = MergeAction.Append;
		timeZoneCycleToolStripMenuItem.Visible = false;
		timeZoneCycleToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T";
		timeZoneCycleToolStripMenuItem.ShowShortcutKeys = true;
		timeZoneCycleToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.T;
		// 
		// toolsMenu
		// 
		toolsMenu.DropDownItems.AddRange (new ToolStripItem [] {
			optionsToolStripMenuItem,
			traceConfigToolStripMenuItem});
		toolsMenu.Size = new Size (44, 20);
		toolsMenu.Text = "&Tools";
		// 
		// optionsToolStripMenuItem
		// 
		optionsToolStripMenuItem.Size = new Size (122, 22);
		optionsToolStripMenuItem.Text = "&Options...";
		// 
		// traceConfigToolStripMenuItem
		// 
		traceConfigToolStripMenuItem.Size = new Size (122, 22);
		traceConfigToolStripMenuItem.Text = "Launch Trace&Config";
		// 
		// windowsMenu
		// 
		windowsMenu.DropDownItems.AddRange (new ToolStripItem [] {
			cascadeToolStripMenuItem,
			tileVerticalToolStripMenuItem,
			tileHorizontalToolStripMenuItem,
			closeAllToolStripMenuItem,
			arrangeIconsToolStripMenuItem});
		windowsMenu.Size = new Size (62, 20);
		windowsMenu.Text = "&Windows";
		// 
		// cascadeToolStripMenuItem
		// 
		cascadeToolStripMenuItem.Size = new Size (153, 22);
		cascadeToolStripMenuItem.Text = "&Cascade";
		cascadeToolStripMenuItem.Click += new System.EventHandler (CascadeToolStripMenuItem_Click);
		// 
		// tileVerticalToolStripMenuItem
		// 
		tileVerticalToolStripMenuItem.Size = new Size (153, 22);
		tileVerticalToolStripMenuItem.Text = "Tile &Vertical";
		// 
		// tileHorizontalToolStripMenuItem
		// 
		tileHorizontalToolStripMenuItem.Size = new Size (153, 22);
		tileHorizontalToolStripMenuItem.Text = "Tile &Horizontal";
		tileHorizontalToolStripMenuItem.Click += new System.EventHandler (TileHorizontalToolStripMenuItem_Click);
		// 
		// closeAllToolStripMenuItem
		// 
		closeAllToolStripMenuItem.Size = new Size (153, 22);
		closeAllToolStripMenuItem.Text = "C&lose All";
		closeAllToolStripMenuItem.Click += new System.EventHandler (CloseAllToolStripMenuItem_Click);
		// 
		// arrangeIconsToolStripMenuItem
		// 
		arrangeIconsToolStripMenuItem.Size = new Size (153, 22);
		arrangeIconsToolStripMenuItem.Text = "&Arrange Icons";
		arrangeIconsToolStripMenuItem.Click += new System.EventHandler (ArrangeIconsToolStripMenuItem_Click);
		// 
		// helpMenu
		// 
		helpMenu.DropDownItems.AddRange (new ToolStripItem [] {
			contentsToolStripMenuItem,
			indexToolStripMenuItem,
			searchToolStripMenuItem,
			toolStripSeparator8,
			aboutToolStripMenuItem});
		helpMenu.Size = new Size (40, 20);
		helpMenu.Text = "&Help";
		// 
		// contentsToolStripMenuItem
		// 
		contentsToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.F1)));
		contentsToolStripMenuItem.Size = new Size (173, 22);
		contentsToolStripMenuItem.Text = "&Contents";
		// 
		// indexToolStripMenuItem
		// 
		indexToolStripMenuItem.Image = ((Image) (resources.GetObject ("indexToolStripMenuItem.Image")));
		indexToolStripMenuItem.ImageTransparentColor = Color.Black;
		indexToolStripMenuItem.Size = new Size (173, 22);
		indexToolStripMenuItem.Text = "&Index";
		// 
		// searchToolStripMenuItem
		// 
		searchToolStripMenuItem.Image = ((Image) (resources.GetObject ("searchToolStripMenuItem.Image")));
		searchToolStripMenuItem.ImageTransparentColor = Color.Black;
		searchToolStripMenuItem.Size = new Size (173, 22);
		searchToolStripMenuItem.Text = "&Search";
		// 
		// toolStripSeparator8
		// 
		toolStripSeparator8.Size = new Size (170, 6);
		// 
		// aboutToolStripMenuItem
		// 
		aboutToolStripMenuItem.Size = new Size (173, 22);
		aboutToolStripMenuItem.Text = "&About ...";
		// 
		// toolStrip
		// 
		toolStrip.Items.AddRange (new ToolStripItem [] {
			newToolStripButton,
			openToolStripButton,
			saveToolStripButton,
			toolStripSeparator1,
			printToolStripButton,
			printPreviewToolStripButton,
			helpToolStripButton});
		toolStrip.Location = new Point (0, 24);
		toolStrip.Size = new Size (632, 25);
		toolStrip.TabIndex = 1;
		toolStrip.Text = "ToolStrip";
		// 
		// newToolStripButton
		// 
		newToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		newToolStripButton.Image = ((Image) (resources.GetObject ("newToolStripButton.Image")));
		newToolStripButton.ImageTransparentColor = Color.Black;
		newToolStripButton.Text = "New";
		newToolStripButton.Click += new System.EventHandler (ShowNewForm);
		// 
		// openToolStripButton
		// 
		openToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		openToolStripButton.Image = ((Image) (resources.GetObject ("openToolStripButton.Image")));
		openToolStripButton.ImageTransparentColor = Color.Black;
		openToolStripButton.Text = "Open";
		openToolStripButton.Click += new System.EventHandler (OpenFile);
		// 
		// saveToolStripButton
		// 
		saveToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		saveToolStripButton.Image = ((Image) (resources.GetObject ("saveToolStripButton.Image")));
		saveToolStripButton.ImageTransparentColor = Color.Black;
		saveToolStripButton.Text = "Save";
		// 
		// toolStripSeparator1
		// 

		// 
		// printToolStripButton
		// 
		printToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		printToolStripButton.Image = ((Image) (resources.GetObject ("printToolStripButton.Image")));
		printToolStripButton.ImageTransparentColor = Color.Black;
		printToolStripButton.Text = "Print";
		// 
		// printPreviewToolStripButton
		// 
		printPreviewToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		printPreviewToolStripButton.Image = ((Image) (resources.GetObject ("printPreviewToolStripButton.Image")));
		printPreviewToolStripButton.ImageTransparentColor = Color.Black;
		printPreviewToolStripButton.Text = "Print Preview";
		// 
		// helpToolStripButton
		// 
		helpToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		helpToolStripButton.Image = ((Image) (resources.GetObject ("helpToolStripButton.Image")));
		helpToolStripButton.ImageTransparentColor = Color.Black;
		helpToolStripButton.Text = "Help";
		// 
		// statusStrip
		// 
		statusStrip.Items.Add (toolStripStatusLabel);
		statusStrip.LayoutStyle = ToolStripLayoutStyle.Table;
		statusStrip.Location = new Point (0, 433);
		statusStrip.Size = new Size (632, 20);
		statusStrip.TabIndex = 2;
		statusStrip.Text = "StatusStrip";
		// 
		// toolStripStatusLabel
		// 
		toolStripStatusLabel.Text = "Status";
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (400, 300);
		Controls.Add (statusStrip);
		Controls.Add (toolStrip);
		Controls.Add (menuStrip);
		IsMdiContainer = true;
		Location = new Point (200, 100);
		MainMenuStrip = menuStrip;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81477";
		menuStrip.ResumeLayout (false);
		toolStrip.ResumeLayout (false);
		statusStrip.ResumeLayout (false);
		ResumeLayout (false);
		PerformLayout ();
		Load += new EventHandler (MainForm_Load);
	}
    public ImageMenu()
    {
        this.Text = "메뉴 선택 표시와 이미지 넣기";

        // 이미지 개체 준비
        Bitmap bmp1 = new Bitmap(GetType(), "ImageMenu.image_1.bmp");
        Bitmap bmp2 = new Bitmap(GetType(), "ImageMenu.image_2.bmp");

        MenuStrip menu = new MenuStrip();
        menu.Parent = this;

        // File 항목
        ToolStripMenuItem file_item = new ToolStripMenuItem();
        file_item.Text = "&File";
        file_item.Image = bmp1;         // 메뉴에 출력할 이미지 지정
        menu.Items.Add(file_item);

        select_item = new ToolStripMenuItem();
        select_item.Text = "&Select";
        select_item.Click += EventProc;
        file_item.DropDownItems.Add(select_item);

        // 메뉴 구분선 넣기
        ToolStripSeparator file_item_sep = new ToolStripSeparator();
        file_item.DropDownItems.Add(file_item_sep);

        ToolStripMenuItem close_item = new ToolStripMenuItem();
        close_item.Text = "&Close";
        close_item.Image = bmp2;
        close_item.ShortcutKeys = Keys.Alt | Keys.F4;
        close_item.Click += EventProc;
        file_item.DropDownItems.Add(close_item);
    }
Esempio n. 3
0
	public MainForm ()
	{
		_menuStrip = new MenuStrip ();
		_fileToolStripMenuItem = new ToolStripMenuItem ();
		_openToolStripMenuItem = new ToolStripMenuItem ();
		_userToolStripMenuItem = new ToolStripMenuItem ();
		_loginToolStripMenuItem = new ToolStripMenuItem ();
		_menuStrip.Items.AddRange (new ToolStripItem [] {
			_fileToolStripMenuItem,
			_userToolStripMenuItem});
		_menuStrip.TabIndex = 0;
		_fileToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			_openToolStripMenuItem});
		_fileToolStripMenuItem.Text = "File";
		_openToolStripMenuItem.Text = "Open";
		_userToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			_loginToolStripMenuItem
		});
		_userToolStripMenuItem.Text = "&User";
		_loginToolStripMenuItem.Text = "Login";
		Controls.Add (_menuStrip);
		MainMenuStrip = _menuStrip;
		_menuStrip.PerformLayout ();
		// 
		// MainForm
		// 
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #343972";
		Load += new EventHandler (MainForm_Load);
		PerformLayout ();
	}
Esempio n. 4
0
    public MForm3()
    {
        Text = "MenuStrip";
        Size = new Size(250, 200);

        MenuStrip menuStrip = new MenuStrip();

        ToolStripMenuItem titem1 = new ToolStripMenuItem("File");
        menuStrip.Items.Add(titem1);

        ToolStripMenuItem titem2 = new ToolStripMenuItem("Tools");
        menuStrip.Items.Add(titem2);

        ToolStripMenuItem subm1 = new ToolStripMenuItem("New");
        subm1.Image = Image.FromFile("new.png");
        titem1.DropDownItems.Add(subm1);

        ToolStripMenuItem subm2 = new ToolStripMenuItem("Open");
        subm2.Image = Image.FromFile("open.png");
        titem1.DropDownItems.Add(subm2);

        titem1.DropDownItems.Add(new ToolStripSeparator());

        ToolStripMenuItem subm3 = new ToolStripMenuItem("Exit");
        subm3.Image = Image.FromFile("exit.png");
        titem1.DropDownItems.Add(subm3);

        subm3.Click += OnExit;
        Controls.Add(menuStrip);

        MainMenuStrip = menuStrip;

        CenterToScreen();
    }
Esempio n. 5
0
File: test.cs Progetto: mono/gert
	public MainForm ()
	{
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		Controls.Add (_menuStrip);
		// 
		// _fileMenu
		// 
		_fileMenu = new ToolStripMenuItem ();
		_fileMenu.Text = "File";
		_menuStrip.Items.Add (_fileMenu);
		// 
		// _closeItem
		// 
		_closeItem = new ToolStripMenuItem ();
		_closeItem.Text = "Close";
		_fileMenu.DropDownItems.Add (_closeItem);
		// 
		// MainForm
		// 
		MainMenuStrip = _menuStrip;
		Load += new EventHandler (MainForm_Load);
	}
Esempio n. 6
0
    public ShapeDrawingForm()
    {
        MenuStrip menuStrip;
        menuStrip = new MenuStrip();

        ToolStripDropDownItem menu;
        menu = new ToolStripMenuItem("File");
        menu.DropDownItems.Add("Open...", null, this.openFileHandler);
        menu.DropDownItems.Add("Export...", null, this.exportHandler);
        menu.DropDownItems.Add("Exit", null, this.closeHandler);
        menuStrip.Items.Add(menu);

        this.Controls.Add(menuStrip);
        // Some basic settings
        Text = "Shape Drawing and Converter";
        Size = new Size(400, 400);
        CenterToScreen();
        SetStyle(ControlStyles.ResizeRedraw, true);

        // Initialize shapes
        shapes = new List<Shape>();

        // Listen to Paint event to draw shapes
        this.Paint += new PaintEventHandler(this.OnPaint);
    }
    public MenuClickExam()
    {
        this.Text = "MenuStrip 예제";
        MenuStrip menu = new MenuStrip();
        menu.Parent = this;

        // File 항목
        ToolStripMenuItem file_item = new ToolStripMenuItem();
        file_item.Text = "&File";
        menu.Items.Add(file_item);

        ToolStripMenuItem file_open_item = new ToolStripMenuItem();
        file_open_item.Text = "&Open...";
        file_open_item.ShortcutKeys = Keys.Control | Keys.O;
        file_open_item.Click += FileOpenDlg;
        file_item.DropDownItems.Add(file_open_item);

        // 메뉴 구분선 넣기
        ToolStripSeparator file_item_sep = new ToolStripSeparator();
        file_item.DropDownItems.Add(file_item_sep);

        ToolStripMenuItem file_close_item = new ToolStripMenuItem();
        file_close_item.Text = "&Close";
        file_close_item.ShortcutKeys = Keys.Alt | Keys.F4;
        file_close_item.Click += CloseProgram;
        file_item.DropDownItems.Add(file_close_item);
    }
Esempio n. 8
0
    public MainWindow()
        : base()
    {
        Size = new System.Drawing.Size(300, 300);        //размер формы
                        FormBorderStyle = FormBorderStyle.FixedSingle;
                        MaximizeBox = false;

                        smMain   = new   MenuStrip();          //новая менюшка
                        smiFile  = new   ToolStripMenuItem();  //элементы менюшки
                        smiEdit  = new   ToolStripMenuItem();
                        smiHelp  = new   ToolStripMenuItem();
                        smiAbout = new   ToolStripMenuItem();
                        smiCopy  = new   ToolStripMenuItem();
                        smiPaste = new   ToolStripMenuItem();
                        smiOpen  = new   ToolStripMenuItem();
                        smiExit  = new   ToolStripMenuItem();

                        smMain.SuspendLayout();  //заморозить раскладку формы
                        SuspendLayout();         //заморозить раскладку меню

                        smMain.Location = new Point(0, 0);

                        smMain.Name   = "smMain";    smMain.Text   = "Главное меню";

                        smiFile.Name  = "smiFile";   smiFile.Text  = "Файл";
                        smiEdit.Name  = "smiEdit";   smiEdit.Text  = "Правка";
                        smiHelp.Name  = "smiHelp";   smiHelp.Text  = "Справка";

                        smiAbout.Name = "smiAbout";  smiAbout.Text = "О программе";
                        smiCopy.Name  = "smiCopy";   smiCopy.Text  = "Копировать";
                        smiPaste.Name = "smiPaste";  smiPaste.Text = "Вставить";
                        smiOpen.Name  = "smiOpen";   smiOpen.Text  = "Открыть";
                        smiExit.Name  = "smiExit";   smiExit.Text  = "Выход";

                        smMain.Items.AddRange(          new ToolStripItem[] { smiFile, smiEdit, smiHelp } );

                        smiFile.DropDownItems.AddRange( new ToolStripItem[] { smiOpen, smiExit  } );
                        smiEdit.DropDownItems.AddRange( new ToolStripItem[] { smiCopy, smiPaste } );
                        smiHelp.DropDownItems.AddRange( new ToolStripItem[] { smiAbout          } );

                        smiAbout.Click += new EventHandler(smMain_Click);  //добавляем обработчики событий
                        smiCopy.Click  += new EventHandler(smMain_Click);
                        smiPaste.Click += new EventHandler(smMain_Click);
                        smiOpen.Click  += new EventHandler(smMain_Click);
                        smiExit.Click  += new EventHandler(smMain_Click);

                        Controls.Add(this.smMain);       //добавить контрол на форму
                        MainMenuStrip = this.smMain;     //задействовать менюшку как основную

                        ResumeLayout(false);             //разморозить раскладку формы
                        smMain.ResumeLayout(false);      //разморозить раскладку меню
                        smMain.PerformLayout();          //произвести раскладку меню
                        PerformLayout();                 //произвести раскладку формы
    }
Esempio n. 9
0
    public ResultForm(object datasource)
    {
        MenuStrip ms = new MenuStrip();
          ToolStripMenuItem file = new ToolStripMenuItem("&File");
          ToolStripMenuItem exit = new ToolStripMenuItem(
                  "E&xit", null, new EventHandler(OnExit));
          DataGridView dgv = new DataGridView();

          file.DropDownItems.Add(exit);
          ms.Parent = this;
          ms.Items.Add(file);
          MainMenuStrip = ms;

          dgv.Parent = this;
          dgv.Dock = DockStyle.Fill;

          dgv.DataSource = datasource;
    }
Esempio n. 10
0
        public void _runInit()
        {
            if (true == mInited)
            {
                return;
            }

            Button button_ = new Button();
            this._regControl(button_);
            MenuStrip menuStrip_ = new MenuStrip();
            this._regControl(menuStrip_);
            ToolPanel toolPanel_ = new ToolPanel();
            this._regControl(toolPanel_);
            SideBar sideBar_ = new SideBar();
            this._regControl(sideBar_);
            DockPanel dockPanel_ = new DockPanel();
            this._regControl(dockPanel_);
            StatusBar statusBar_ = new StatusBar();
            this._regControl(statusBar_);
            Panel panel_ = new Panel();
            this._regControl(panel_);
            TextLabel textLabel_ = new TextLabel();
            this._regControl(textLabel_);
            TextBox textBox_ = new TextBox();
            this._regControl(textBox_);
            ListView listView_ = new ListView();
            this._regControl(listView_);
            TreeView treeView_ = new TreeView();
            this._regControl(treeView_);
            TextEdit textEdit_ = new TextEdit();
            this._regControl(textEdit_);
            ComboBox combox_ = new ComboBox();
            this._regControl(combox_);
            RadioButtonEx radioButtonEx_ = new RadioButtonEx();
            this._regControl(radioButtonEx_);
            RadioButton radioButton_ = new RadioButton();
            this._regControl(radioButton_);
            GroupBox groupBox_ = new GroupBox();
            this._regControl(groupBox_);
            mInited = true;
        }
Esempio n. 11
0
	public MainForm ()
	{
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		_menuStrip.Items.Add (new ToolStripMenuItem ("main", null,
			new ToolStripMenuItem ("item1")));
		MainMenuStrip = _menuStrip;
		Controls.Add (_menuStrip);
		// 
		// MainForm
		// 
		ClientSize = new Size (390, 340);
		IsMdiContainer = true;
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #336296";
		Load += new EventHandler (MainForm_Load);

	}
Esempio n. 12
0
    public MultiMenuSelect()
    {
        this.Text = "메뉴 이벤트 처리하기";

        MenuStrip menu = new MenuStrip();
        menu.Parent = this;

        // Color 항목
        ToolStripMenuItem color_item = new ToolStripMenuItem();
        color_item.Text = "&Color";
        menu.Items.Add(color_item);

        for (int i = 0; i < color.Length; i++)
        {
            color[i] = new ToolStripMenuItem();
            color[i].Text = "&" + color_txt[i];
            color[i].ForeColor = color_data[i];
            color[i].Click += new EventHandler(MultiMenuSelect_Click);
            color_item.DropDownItems.Add(color[i]);
        }
    }
Esempio n. 13
0
    public MenuExam()
    {
        this.Text = "MenuStrip 예제";
        MenuStrip menu = new MenuStrip();
        menu.Parent = this;     // Form에 MenuStrip을 지정

        // File 항목 생성 및 화면 출력
        ToolStripMenuItem file_item = new ToolStripMenuItem();
        file_item.Text = "&File";
        menu.Items.Add(file_item);

        ToolStripMenuItem file_open_item = new ToolStripMenuItem();
        file_open_item.Text = "&Open";
        file_item.DropDownItems.Add(file_open_item);

        // 메뉴 구분선 넣기
        ToolStripSeparator file_item_sep = new ToolStripSeparator();
        file_item.DropDownItems.Add(file_item_sep);

        ToolStripMenuItem file_close_item = new ToolStripMenuItem();
        file_close_item.Text = "&Close";
        file_item.DropDownItems.Add(file_close_item);

        // Edit 항목
        ToolStripMenuItem edit_item = new ToolStripMenuItem();
        edit_item.Text = "&Edit";
        menu.Items.Add(edit_item);

        ToolStripMenuItem edit_1_item = new ToolStripMenuItem();
        edit_1_item.Text = "&&Copy";   // & 를 화면에 출력
        edit_item.DropDownItems.Add(edit_1_item);

        ToolStripMenuItem edit_2_item = new ToolStripMenuItem();
        edit_2_item.Text = "Pa&st";    // s 에 밑줄 넣기
        edit_1_item.DropDownItems.Add(edit_2_item);
    }
Esempio n. 14
0
    public MForm()
    {
        Text = "Submenu";

        MenuStrip ms = new MenuStrip();
        ms.Parent = this;

        ToolStripMenuItem file = new ToolStripMenuItem("&File");
        ToolStripMenuItem exit = new ToolStripMenuItem("&Exit", null,
            new EventHandler(OnExit));

        ToolStripMenuItem import = new ToolStripMenuItem();
        import.Text = "Import";

        file.DropDownItems.Add(import);

        ToolStripMenuItem temp = new ToolStripMenuItem();
        temp.Text = "Import newsfeed list...";
        import.DropDownItems.Add(temp);

        temp = new ToolStripMenuItem();
        temp.Text = "Import bookmarks...";
        import.DropDownItems.Add(temp);

        temp = new ToolStripMenuItem();
        temp.Text = "Import mail...";
        import.DropDownItems.Add(temp);

        file.DropDownItems.Add(exit);

        ms.Items.Add(file);
        MainMenuStrip = ms;
        Size = new Size(380, 200);

        CenterToScreen();
    }
Esempio n. 15
0
	public ChildForm ()
	{
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		_menuStrip.Visible = false;
		Controls.Add (_menuStrip);
		// 
		// _fileToolStripMenuItem
		// 
		_fileToolStripMenuItem = new ToolStripMenuItem ();
		_fileToolStripMenuItem.MergeAction = MergeAction.MatchOnly;
		_fileToolStripMenuItem.Text = "&File";
		_menuStrip.Items.Add (_fileToolStripMenuItem);
		// 
		// _saveToolStripMenuItem
		// 
		_saveToolStripMenuItem = new ToolStripMenuItem ();
		_saveToolStripMenuItem.MergeAction = MergeAction.Insert;
		_saveToolStripMenuItem.MergeIndex = 1;
		_saveToolStripMenuItem.Text = "&Save";
		_fileToolStripMenuItem.DropDownItems.Add (_saveToolStripMenuItem);
		// 
		// _closeToolStripMenuItem
		// 
		_closeToolStripMenuItem = new ToolStripMenuItem ();
		_closeToolStripMenuItem.MergeAction = MergeAction.Insert;
		_closeToolStripMenuItem.MergeIndex = 2;
		_closeToolStripMenuItem.Text = "&Close";
		_closeToolStripMenuItem.Click += new EventHandler (CloseToolStripMenuItem_Click);
		_fileToolStripMenuItem.DropDownItems.Add (_closeToolStripMenuItem);
		// 
		// _editToolStripMenuItem
		// 
		_editToolStripMenuItem = new ToolStripMenuItem ();
		_editToolStripMenuItem.MergeAction = MergeAction.Insert;
		_editToolStripMenuItem.MergeIndex = 1;
		_editToolStripMenuItem.Text = "&Edit";
		_menuStrip.Items.Add (_editToolStripMenuItem);
		// 
		// MDIChildForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (209, 100);
		MainMenuStrip = _menuStrip;
		Text = "Child";
	}
Esempio n. 16
0
	public MainForm()
	{
		// 
		// _rightPanel
		// 
		_rightPanel = new ToolStripPanel ();
		_rightPanel.Dock = DockStyle.Right;
		Controls.Add (_rightPanel);
		// 
		// _leftPanel
		// 
		_leftPanel = new ToolStripPanel ();
		_leftPanel.Dock = DockStyle.Left;
		Controls.Add (_leftPanel);
		// 
		// _bottomPanel
		// 
		_bottomPanel = new ToolStripPanel ();
		_bottomPanel.Dock = DockStyle.Bottom;
		Controls.Add (_bottomPanel);
		// 
		// _topPanel
		// 
		_topPanel = new ToolStripPanel ();
		_topPanel.Dock = DockStyle.Top;
		Controls.Add (_topPanel);
		// 
		// _topStrip
		// 
		_topStrip = new ToolStrip ();
		_topStrip.Items.Add ("Top");
		_topPanel.Join (_topStrip);
		// 
		// _bottomStrip
		// 
		_bottomStrip = new ToolStrip ();
		_bottomStrip.Items.Add ("Bottom");
		_bottomPanel.Join (_bottomStrip);
		// 
		// _leftStrip
		// 
		_leftStrip = new ToolStrip ();
		_leftStrip.Items.Add ("Left");
		_leftPanel.Join (_leftStrip);
		// 
		// _leftStrip
		// 
		_rightStrip = new ToolStrip();
		_rightStrip.Items.Add ("Right");
		_rightPanel.Join (_rightStrip);
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		_menuStrip.Dock = DockStyle.Top;
		Controls.Add (_menuStrip);
		// 
		// _windowMenu
		// 
		_windowMenu = new ToolStripMenuItem ("Window");
		_menuStrip.MdiWindowListItem = _windowMenu;
		((ToolStripDropDownMenu) (_windowMenu.DropDown)).ShowImageMargin = false;
		((ToolStripDropDownMenu) (_windowMenu.DropDown)).ShowCheckMargin = true;
		_menuStrip.Items.Add (_windowMenu);
		// 
		// _newWindowMenu
		// 
		_newWindowMenu = new ToolStripMenuItem ("New", null, new EventHandler (NewWindowMenu_Click));
		_windowMenu.DropDownItems.Add (_newWindowMenu);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 300);
		IsMdiContainer = true;
		Location = new Point (250, 100);
		MainMenuStrip = _menuStrip;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #341998";
		Load += new EventHandler (MainForm_Load);
	}
Esempio n. 17
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager componentResourceManager               = new ComponentResourceManager(typeof(MdiForm));
            DockPanelSkin            dockPanelSkin                          = new DockPanelSkin();
            AutoHideStripSkin        autoHideStripSkin                      = new AutoHideStripSkin();
            DockPanelGradient        dockPanelGradient                      = new DockPanelGradient();
            TabGradient                     tabGradient                     = new TabGradient();
            DockPaneStripSkin               dockPaneStripSkin               = new DockPaneStripSkin();
            DockPaneStripGradient           dockPaneStripGradient           = new DockPaneStripGradient();
            TabGradient                     controlLightLight               = new TabGradient();
            DockPanelGradient               control                         = new DockPanelGradient();
            TabGradient                     controlLight                    = new TabGradient();
            DockPaneStripToolWindowGradient dockPaneStripToolWindowGradient = new DockPaneStripToolWindowGradient();
            TabGradient                     activeCaption                   = new TabGradient();
            TabGradient                     controlText                     = new TabGradient();
            DockPanelGradient               dockPanelGradient1              = new DockPanelGradient();
            TabGradient                     gradientInactiveCaption         = new TabGradient();
            TabGradient                     transparent                     = new TabGradient();

            this.MainMenu               = new MenuStrip();
            this.MainMenu.Font          = new System.Drawing.Font(Localization.Font, 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.toolStripMenuItem_0    = new ToolStripMenuItem();
            this.toolStripMenuItem_1    = new ToolStripMenuItem();
            this.toolStripMenuItem_2    = new ToolStripMenuItem();
            this.toolStripMenuItem_3    = new ToolStripMenuItem();
            this.toolStripMenuItem_4    = new ToolStripMenuItem();
            this.toolStripMenuItem_23   = new ToolStripMenuItem();
            this.toolStripMenuItem_8    = new ToolStripMenuItem();
            this.toolStripMenuItem1     = new ToolStripMenuItem();
            this.toolStripMenuItem_7    = new ToolStripMenuItem();
            this.toolStripMenuItem_9    = new ToolStripMenuItem();
            this.toolStripMenuItem_25   = new ToolStripMenuItem();
            this.toolStripMenuItem_26   = new ToolStripMenuItem();
            this.toolStripMenuItem_27   = new ToolStripMenuItem();
            this.toolStripMenuItem_5    = new ToolStripMenuItem();
            this.toolStripMenuItem_13   = new ToolStripMenuItem();
            this.toolStripMenuItem_12   = new ToolStripMenuItem();
            this.高级设置ToolStripMenuItem  = new ToolStripMenuItem();
            this.图转文设置ToolStripMenuItem = new ToolStripMenuItem();
            this.toolStripMenuItem_14   = new ToolStripMenuItem();
            this.toolStripMenuItem_15   = new ToolStripMenuItem();
            this.toolStripMenuItem_16   = new ToolStripMenuItem();
            this.toolStripMenuItem_10   = new ToolStripMenuItem();
            this.toolStripMenuItem_11   = new ToolStripMenuItem();
            this.toolStripMenuItem_6    = new ToolStripMenuItem();
            this.toolStripMenuItem_18   = new ToolStripMenuItem();
            this.toolStripMenuItem_19   = new ToolStripMenuItem();
            this.toolStripMenuItem_24   = new ToolStripMenuItem();
            this.toolStripMenuItem_20   = new ToolStripMenuItem();
            this.toolStripMenuItem_21   = new ToolStripMenuItem();
            this.toolStripMenuItem_28   = new ToolStripMenuItem();
            this.dockPanel              = new DockPanel();
            this.timer_0 = new System.Windows.Forms.Timer(this.components);
            this.MainMenu.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.MainMenu.Items;

            ToolStripItem[] toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_0, this.toolStripMenuItem_4, this.toolStripMenuItem_5, this.toolStripMenuItem_10, this.toolStripMenuItem_6, this.toolStripMenuItem_18 };
            items.AddRange(toolStripMenuItem0);
            this.MainMenu.Location          = new Point(0, 0);
            this.MainMenu.MdiWindowListItem = this.toolStripMenuItem_6;
            this.MainMenu.Name       = "MainMenu";
            this.MainMenu.RenderMode = ToolStripRenderMode.System;
            this.MainMenu.Size       = new System.Drawing.Size(834, 25);
            this.MainMenu.TabIndex   = 0;
            this.MainMenu.Text       = Localization.Get("主菜单");
            ToolStripItemCollection dropDownItems = this.toolStripMenuItem_0.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_1, this.toolStripMenuItem_2, this.toolStripMenuItem_3 };
            dropDownItems.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_0.Name      = "toolStripMenuItem_0";
            this.toolStripMenuItem_0.Size      = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_0.Text      = Localization.Get("采集(&C)");
            this.toolStripMenuItem_1.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_1.Image");
            this.toolStripMenuItem_1.Name      = "toolStripMenuItem_1";
            this.toolStripMenuItem_1.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_1.Text      = Localization.Get("标准采集模式");
            this.toolStripMenuItem_1.Click    += new EventHandler(this.toolStripMenuItem_1_Click);
            this.toolStripMenuItem_2.ForeColor = Color.Maroon;
            this.toolStripMenuItem_2.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_2.Image");
            this.toolStripMenuItem_2.Name      = "toolStripMenuItem_2";
            this.toolStripMenuItem_2.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_2.Text      = Localization.Get("超级修复模式");
            this.toolStripMenuItem_2.Click    += new EventHandler(this.toolStripMenuItem_2_Click);
            this.toolStripMenuItem_3.Image     = (Image)componentResourceManager.GetObject("toolStripMenuItem_3.Image");
            this.toolStripMenuItem_3.Name      = "toolStripMenuItem_3";
            this.toolStripMenuItem_3.Size      = new System.Drawing.Size(152, 22);
            this.toolStripMenuItem_3.Text      = Localization.Get("手动控制模式");
            this.toolStripMenuItem_3.Click    += new EventHandler(this.toolStripMenuItem_3_Click);
            ToolStripItemCollection toolStripItemCollections = this.toolStripMenuItem_4.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_23, this.toolStripMenuItem_8, this.toolStripMenuItem1, this.toolStripMenuItem_7, this.toolStripMenuItem_9, this.toolStripMenuItem_25, this.toolStripMenuItem_26, this.toolStripMenuItem_27 };
            toolStripItemCollections.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_4.Name     = "toolStripMenuItem_4";
            this.toolStripMenuItem_4.Size     = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_4.Text     = Localization.Get("辅助(&A)");
            this.toolStripMenuItem_23.Name    = "toolStripMenuItem_23";
            this.toolStripMenuItem_23.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_23.Text    = Localization.Get("子窗口冲突监控");
            this.toolStripMenuItem_23.Click  += new EventHandler(this.toolStripMenuItem_23_Click);
            this.toolStripMenuItem_8.Name     = "toolStripMenuItem_8";
            this.toolStripMenuItem_8.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_8.Text     = Localization.Get("错误生成器");
            this.toolStripMenuItem_8.Click   += new EventHandler(this.toolStripMenuItem_8_Click);
            this.toolStripMenuItem1.Name      = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size      = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem1.Text      = ("数据库维护");
            this.toolStripMenuItem1.Visible   = false;
            this.toolStripMenuItem1.Click    += new EventHandler(this.toolStripMenuItem1_Click);
            this.toolStripMenuItem_7.Name     = "toolStripMenuItem_7";
            this.toolStripMenuItem_7.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_7.Text     = Localization.Get("批量生成");
            this.toolStripMenuItem_7.Click   += new EventHandler(this.toolStripMenuItem_7_Click);
            this.toolStripMenuItem_9.Name     = "toolStripMenuItem_9";
            this.toolStripMenuItem_9.Size     = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_9.Text     = Localization.Get("批量删除小说");
            this.toolStripMenuItem_9.Click   += new EventHandler(this.toolStripMenuItem_9_Click);
            this.toolStripMenuItem_25.Enabled = false;
            this.toolStripMenuItem_25.Name    = "toolStripMenuItem_25";
            this.toolStripMenuItem_25.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_25.Text    = Localization.Get("批量删除章节");
            this.toolStripMenuItem_25.Visible = false;
            this.toolStripMenuItem_26.Name    = "toolStripMenuItem_26";
            this.toolStripMenuItem_26.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_26.Text    = Localization.Get("更新小说信息");
            this.toolStripMenuItem_26.Click  += new EventHandler(this.toolStripMenuItem_26_Click);
            this.toolStripMenuItem_27.Name    = "toolStripMenuItem_27";
            this.toolStripMenuItem_27.Size    = new System.Drawing.Size(166, 22);
            this.toolStripMenuItem_27.Text    = Localization.Get("MYSQL时间换算");
            this.toolStripMenuItem_27.Click  += new EventHandler(this.toolStripMenuItem_27_Click);
            ToolStripItemCollection dropDownItems1 = this.toolStripMenuItem_5.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_13, this.toolStripMenuItem_12, this.高级设置ToolStripMenuItem, this.toolStripMenuItem_14, this.图转文设置ToolStripMenuItem, this.toolStripMenuItem_15, this.toolStripMenuItem_16 };
            dropDownItems1.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_5.Name      = "toolStripMenuItem_5";
            this.toolStripMenuItem_5.Size      = new System.Drawing.Size(59, 21);
            this.toolStripMenuItem_5.Text      = Localization.Get("设置(&S)");
            this.toolStripMenuItem_13.Name     = "toolStripMenuItem_13";
            this.toolStripMenuItem_13.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_13.Text     = Localization.Get("系统设置");
            this.toolStripMenuItem_13.Click   += new EventHandler(this.toolStripMenuItem_13_Click);
            this.toolStripMenuItem_12.Name     = "toolStripMenuItem_12";
            this.toolStripMenuItem_12.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_12.Text     = Localization.Get("分类对应");
            this.toolStripMenuItem_12.Click   += new EventHandler(this.toolStripMenuItem_12_Click);
            this.高级设置ToolStripMenuItem.Name    = Localization.Get("高级设置ToolStripMenuItem");
            this.高级设置ToolStripMenuItem.Size    = new System.Drawing.Size(136, 22);
            this.高级设置ToolStripMenuItem.Text    = Localization.Get("高级设置");
            this.高级设置ToolStripMenuItem.Click  += new EventHandler(this.高级设置ToolStripMenuItem_Click);
            this.图转文设置ToolStripMenuItem.Name   = Localization.Get("图转文设置ToolStripMenuItem");
            this.图转文设置ToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.图转文设置ToolStripMenuItem.Text   = Localization.Get("附加设置");
            this.图转文设置ToolStripMenuItem.Click += new EventHandler(this.图转文设置ToolStripMenuItem_Click);
            this.toolStripMenuItem_14.Name     = Localization.Get("toolStripMenuItem_14");
            this.toolStripMenuItem_14.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_14.Text     = Localization.Get("生成设置");
            this.toolStripMenuItem_14.Click   += new EventHandler(this.toolStripMenuItem_14_Click);
            this.toolStripMenuItem_15.Name     = "toolStripMenuItem_15";
            this.toolStripMenuItem_15.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_15.Text     = Localization.Get("文字广告");
            this.toolStripMenuItem_15.Click   += new EventHandler(this.toolStripMenuItem_15_Click);
            this.toolStripMenuItem_16.Name     = "toolStripMenuItem_16";
            this.toolStripMenuItem_16.Size     = new System.Drawing.Size(136, 22);
            this.toolStripMenuItem_16.Text     = Localization.Get("过滤替换");
            this.toolStripMenuItem_16.Click   += new EventHandler(this.toolStripMenuItem_16_Click);
            ToolStripItemCollection toolStripItemCollections1 = this.toolStripMenuItem_10.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_11 };
            toolStripItemCollections1.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_10.Name   = "toolStripMenuItem_10";
            this.toolStripMenuItem_10.Size   = new System.Drawing.Size(60, 21);
            this.toolStripMenuItem_10.Text   = Localization.Get("规则(&R)");
            this.toolStripMenuItem_11.Name   = "toolStripMenuItem_11";
            this.toolStripMenuItem_11.Size   = new System.Drawing.Size(148, 22);
            this.toolStripMenuItem_11.Text   = Localization.Get("采集规则管理");
            this.toolStripMenuItem_11.Click += new EventHandler(this.toolStripMenuItem_11_Click);
            this.toolStripMenuItem_6.Name    = "toolStripMenuItem_6";
            this.toolStripMenuItem_6.Size    = new System.Drawing.Size(64, 21);
            this.toolStripMenuItem_6.Text    = Localization.Get("窗口(&W)");
            ToolStripItemCollection dropDownItems2 = this.toolStripMenuItem_18.DropDownItems;

            toolStripMenuItem0 = new ToolStripItem[] { this.toolStripMenuItem_19, this.toolStripMenuItem_24, this.toolStripMenuItem_20, this.toolStripMenuItem_21, this.toolStripMenuItem_28 };
            dropDownItems2.AddRange(toolStripMenuItem0);
            this.toolStripMenuItem_18.Name       = "toolStripMenuItem_18";
            this.toolStripMenuItem_18.Size       = new System.Drawing.Size(61, 21);
            this.toolStripMenuItem_18.Text       = Localization.Get("帮助(&H)");
            this.toolStripMenuItem_19.Name       = "toolStripMenuItem_19";
            this.toolStripMenuItem_19.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_19.Text       = Localization.Get("帮助内容");
            this.toolStripMenuItem_19.Click     += new EventHandler(this.toolStripMenuItem_19_Click);
            this.toolStripMenuItem_24.Name       = "toolStripMenuItem_24";
            this.toolStripMenuItem_24.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_24.Text       = Localization.Get("查看日志");
            this.toolStripMenuItem_24.Click     += new EventHandler(this.toolStripMenuItem_24_Click);
            this.toolStripMenuItem_20.Name       = "toolStripMenuItem_20";
            this.toolStripMenuItem_20.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_20.Text       = Localization.Get("检查更新");
            this.toolStripMenuItem_20.Visible    = false;
            this.toolStripMenuItem_20.Click     += new EventHandler(this.toolStripMenuItem_20_Click);
            this.toolStripMenuItem_21.Name       = "toolStripMenuItem_21";
            this.toolStripMenuItem_21.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_21.Text       = Localization.Get("最新消息");
            this.toolStripMenuItem_21.Click     += new EventHandler(this.toolStripMenuItem_21_Click);
            this.toolStripMenuItem_28.Name       = "toolStripMenuItem_28";
            this.toolStripMenuItem_28.Size       = new System.Drawing.Size(124, 22);
            this.toolStripMenuItem_28.Text       = Localization.Get("高级功能");
            this.toolStripMenuItem_28.Click     += new EventHandler(this.toolStripMenuItem_28_Click);
            this.dockPanel.ActiveAutoHideContent = null;
            this.dockPanel.Dock                     = DockStyle.Fill;
            this.dockPanel.DockBackColor            = SystemColors.AppWorkspace;
            this.dockPanel.Location                 = new Point(0, 0);
            this.dockPanel.Name                     = "dockPanel";
            this.dockPanel.Size                     = new System.Drawing.Size(834, 452);
            dockPanelGradient.EndColor              = SystemColors.ControlLight;
            dockPanelGradient.StartColor            = SystemColors.ControlLight;
            autoHideStripSkin.DockStripGradient     = dockPanelGradient;
            tabGradient.EndColor                    = SystemColors.Control;
            tabGradient.StartColor                  = SystemColors.Control;
            tabGradient.TextColor                   = SystemColors.ControlDarkDark;
            autoHideStripSkin.TabGradient           = tabGradient;
            dockPanelSkin.AutoHideStripSkin         = autoHideStripSkin;
            controlLightLight.EndColor              = SystemColors.ControlLightLight;
            controlLightLight.StartColor            = SystemColors.ControlLightLight;
            controlLightLight.TextColor             = SystemColors.ControlText;
            dockPaneStripGradient.ActiveTabGradient = controlLightLight;
            control.EndColor   = SystemColors.Control;
            control.StartColor = SystemColors.Control;
            dockPaneStripGradient.DockStripGradient = control;
            controlLight.EndColor   = SystemColors.ControlLight;
            controlLight.StartColor = SystemColors.ControlLight;
            controlLight.TextColor  = SystemColors.ControlText;
            dockPaneStripGradient.InactiveTabGradient = controlLight;
            dockPaneStripSkin.DocumentGradient        = dockPaneStripGradient;
            activeCaption.EndColor           = SystemColors.ActiveCaption;
            activeCaption.LinearGradientMode = LinearGradientMode.Vertical;
            activeCaption.StartColor         = SystemColors.GradientActiveCaption;
            activeCaption.TextColor          = SystemColors.ActiveCaptionText;
            dockPaneStripToolWindowGradient.ActiveCaptionGradient = activeCaption;
            controlText.EndColor   = SystemColors.Control;
            controlText.StartColor = SystemColors.Control;
            controlText.TextColor  = SystemColors.ControlText;
            dockPaneStripToolWindowGradient.ActiveTabGradient = controlText;
            dockPanelGradient1.EndColor   = SystemColors.ControlLight;
            dockPanelGradient1.StartColor = SystemColors.ControlLight;
            dockPaneStripToolWindowGradient.DockStripGradient = dockPanelGradient1;
            gradientInactiveCaption.EndColor           = SystemColors.GradientInactiveCaption;
            gradientInactiveCaption.LinearGradientMode = LinearGradientMode.Vertical;
            gradientInactiveCaption.StartColor         = SystemColors.GradientInactiveCaption;
            gradientInactiveCaption.TextColor          = SystemColors.ControlText;
            dockPaneStripToolWindowGradient.InactiveCaptionGradient = gradientInactiveCaption;
            transparent.EndColor   = Color.Transparent;
            transparent.StartColor = Color.Transparent;
            transparent.TextColor  = SystemColors.ControlDarkDark;
            dockPaneStripToolWindowGradient.InactiveTabGradient = transparent;
            dockPaneStripSkin.ToolWindowGradient = dockPaneStripToolWindowGradient;
            dockPanelSkin.DockPaneStripSkin      = dockPaneStripSkin;
            this.dockPanel.Skin     = dockPanelSkin;
            this.dockPanel.TabIndex = 2;
            this.timer_0.Interval   = 1000;
            this.timer_0.Tick      += new EventHandler(this.timer_0_Tick);
            this.BackColor          = SystemColors.Control;
            base.ClientSize         = new System.Drawing.Size(834, 452);
            base.Controls.Add(this.MainMenu);
            base.Controls.Add(this.dockPanel);
            base.Icon           = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
            base.IsMdiContainer = true;
            base.MainMenuStrip  = this.MainMenu;
            base.Name           = "MdiForm";
            base.StartPosition  = FormStartPosition.CenterScreen;
            this.Text           = Localization.Get("超级小说采集器 V8.0");
            base.Load          += new EventHandler(this.MdiForm_Load);
            base.Shown         += new EventHandler(this.MdiForm_Shown);
            this.MainMenu.ResumeLayout(false);
            this.MainMenu.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 18
0
 private void InitializeComponent()
 {
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
         this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.openDirectoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.label1 = new System.Windows.Forms.Label();
         this.textBox1 = new System.Windows.Forms.TextBox();
         this.label2 = new System.Windows.Forms.Label();
         this.textBox2 = new System.Windows.Forms.TextBox();
         this.button1 = new System.Windows.Forms.Button();
         this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
         this.progressBar1 = new System.Windows.Forms.ProgressBar();
         this.menuStrip1.SuspendLayout();
         this.SuspendLayout();
         //
         // menuStrip1
         //
         this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem});
         this.menuStrip1.Location = new System.Drawing.Point(0, 0);
         this.menuStrip1.Name = "menuStrip1";
         this.menuStrip1.Size = new System.Drawing.Size(284, 24);
         this.menuStrip1.TabIndex = 0;
         this.menuStrip1.Text = "menuStrip1";
         //
         // fileToolStripMenuItem
         //
         this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.openDirectoryToolStripMenuItem,
         this.closeToolStripMenuItem});
         this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
         this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
         this.fileToolStripMenuItem.Text = "File";
         //
         // openDirectoryToolStripMenuItem
         //
         this.openDirectoryToolStripMenuItem.Name = "openDirectoryToolStripMenuItem";
         this.openDirectoryToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
         this.openDirectoryToolStripMenuItem.Text = "Open Downloads Directory";
         this.openDirectoryToolStripMenuItem.Click += new System.EventHandler(this.openDirectoryToolStripMenuItem_Click);
         //
         // closeToolStripMenuItem
         //
         this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
         this.closeToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
         this.closeToolStripMenuItem.Text = "Close";
         this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
         //
         // label1
         //
         this.label1.AutoSize = true;
         this.label1.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.label1.Location = new System.Drawing.Point(21, 70);
         this.label1.Name = "label1";
         this.label1.Size = new System.Drawing.Size(80, 23);
         this.label1.TabIndex = 1;
         this.label1.Text = "Username";
         //
         // textBox1
         //
         this.textBox1.Location = new System.Drawing.Point(137, 71);
         this.textBox1.Name = "textBox1";
         this.textBox1.Size = new System.Drawing.Size(100, 20);
         this.textBox1.TabIndex = 2;
         //
         // label2
         //
         this.label2.AutoSize = true;
         this.label2.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
         this.label2.Location = new System.Drawing.Point(21, 112);
         this.label2.Name = "label2";
         this.label2.Size = new System.Drawing.Size(76, 23);
         this.label2.TabIndex = 3;
         this.label2.Text = "Password";
         //
         // textBox2
         //
         this.textBox2.Location = new System.Drawing.Point(137, 112);
         this.textBox2.Name = "textBox2";
         this.textBox2.PasswordChar = '*';
         this.textBox2.Size = new System.Drawing.Size(100, 20);
         this.textBox2.TabIndex = 4;
         this.textBox2.UseSystemPasswordChar = true;
         //
         // button1
         //
         this.button1.Location = new System.Drawing.Point(95, 167);
         this.button1.Name = "button1";
         this.button1.Size = new System.Drawing.Size(84, 27);
         this.button1.TabIndex = 5;
         this.button1.Text = "Download";
         this.button1.UseVisualStyleBackColor = true;
         this.button1.Click += new System.EventHandler(this.button1_Click);
         //
         // backgroundWorker1
         //
         this.backgroundWorker1.WorkerReportsProgress = true;
         this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);
         this.backgroundWorker1.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.backgroundWorker1_ProgressChanged);
         this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
         //
         // progressBar1
         //
         this.progressBar1.Location = new System.Drawing.Point(0, 245);
         this.progressBar1.Name = "progressBar1";
         this.progressBar1.Size = new System.Drawing.Size(284, 17);
         this.progressBar1.TabIndex = 6;
         //
         // MainForm
         //
         this.ClientSize = new System.Drawing.Size(284, 262);
         this.Controls.Add(this.progressBar1);
         this.Controls.Add(this.button1);
         this.Controls.Add(this.textBox2);
         this.Controls.Add(this.label2);
         this.Controls.Add(this.textBox1);
         this.Controls.Add(this.label1);
         this.Controls.Add(this.menuStrip1);
         this.MainMenuStrip = this.menuStrip1;
         this.Name = "MainForm";
         this.Text = "Mapled ";
         this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyDown);
         this.menuStrip1.ResumeLayout(false);
         this.menuStrip1.PerformLayout();
         this.ResumeLayout(false);
         this.PerformLayout();
 }
Esempio n. 19
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(FormEmailJobs));
     this.label3                        = new System.Windows.Forms.Label();
     this.label2                        = new System.Windows.Forms.Label();
     this.comboEmailFrom                = new System.Windows.Forms.ComboBox();
     this.menuStrip1                    = new System.Windows.Forms.MenuStrip();
     this.setupToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.editTemplateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.label1                        = new System.Windows.Forms.Label();
     this.label4                        = new System.Windows.Forms.Label();
     this.label5                        = new System.Windows.Forms.Label();
     this.gridRecipients                = new OpenDental.UI.ODGrid();
     this.textVersions                  = new OpenDental.ODtextBox();
     this.textDescriptions              = new OpenDental.ODtextBox();
     this.textPledgeTemplate            = new OpenDental.ODtextBox();
     this.textSubject                   = new OpenDental.ODtextBox();
     this.textFromAddress               = new OpenDental.ODtextBox();
     this.textBodyTextTemplate          = new OpenDental.ODtextBox();
     this.butSend                       = new OpenDental.UI.Button();
     this.butCancel                     = new OpenDental.UI.Button();
     this.butExport                     = new OpenDental.UI.Button();
     this.menuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label3.Location  = new System.Drawing.Point(12, 285);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(88, 14);
     this.label3.TabIndex  = 38;
     this.label3.Text      = "From:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // 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(12, 306);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(88, 14);
     this.label2.TabIndex  = 40;
     this.label2.Text      = "Subject:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // comboEmailFrom
     //
     this.comboEmailFrom.Anchor           = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.comboEmailFrom.DropDownStyle    = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboEmailFrom.Location         = new System.Drawing.Point(645, 281);
     this.comboEmailFrom.MaxDropDownItems = 40;
     this.comboEmailFrom.Name             = "comboEmailFrom";
     this.comboEmailFrom.Size             = new System.Drawing.Size(359, 21);
     this.comboEmailFrom.TabIndex         = 227;
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.setupToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(1018, 24);
     this.menuStrip1.TabIndex = 229;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // setupToolStripMenuItem
     //
     this.setupToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.editTemplateToolStripMenuItem
     });
     this.setupToolStripMenuItem.Name = "setupToolStripMenuItem";
     this.setupToolStripMenuItem.Size = new System.Drawing.Size(49, 20);
     this.setupToolStripMenuItem.Text = "Setup";
     //
     // editTemplateToolStripMenuItem
     //
     this.editTemplateToolStripMenuItem.Name   = "editTemplateToolStripMenuItem";
     this.editTemplateToolStripMenuItem.Size   = new System.Drawing.Size(151, 22);
     this.editTemplateToolStripMenuItem.Text   = "Edit Templates";
     this.editTemplateToolStripMenuItem.Click += new System.EventHandler(this.editTemplateToolStripMenuItem_Click);
     //
     // 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(11, 559);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(88, 31);
     this.label1.TabIndex  = 232;
     this.label1.Text      = "Feature Description(s):";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label4.Location  = new System.Drawing.Point(12, 528);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(88, 14);
     this.label4.TabIndex  = 233;
     this.label4.Text      = "Pledge:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label5.Location  = new System.Drawing.Point(771, 533);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(88, 14);
     this.label5.TabIndex  = 234;
     this.label5.Text      = "Version(s):";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // gridRecipients
     //
     this.gridRecipients.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.gridRecipients.HasAddButton        = false;
     this.gridRecipients.HasMultilineHeaders = true;
     this.gridRecipients.HeaderHeight        = 15;
     this.gridRecipients.HScrollVisible      = false;
     this.gridRecipients.Location            = new System.Drawing.Point(98, 27);
     this.gridRecipients.Name            = "gridRecipients";
     this.gridRecipients.ScrollValue     = 0;
     this.gridRecipients.Size            = new System.Drawing.Size(906, 250);
     this.gridRecipients.TabIndex        = 226;
     this.gridRecipients.Title           = "Recipients";
     this.gridRecipients.TitleHeight     = 18;
     this.gridRecipients.TranslationName = "FormTaskEdit";
     this.gridRecipients.CellClick      += new OpenDental.UI.ODGridClickEventHandler(this.gridRecipients_CellClick);
     //
     // textVersions
     //
     this.textVersions.AcceptsTab         = true;
     this.textVersions.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.textVersions.BackColor          = System.Drawing.SystemColors.Window;
     this.textVersions.DetectLinksEnabled = false;
     this.textVersions.DetectUrls         = false;
     this.textVersions.Location           = new System.Drawing.Point(857, 529);
     this.textVersions.Multiline          = false;
     this.textVersions.Name                = "textVersions";
     this.textVersions.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textVersions.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.textVersions.Size                = new System.Drawing.Size(147, 22);
     this.textVersions.SpellCheckIsEnabled = false;
     this.textVersions.TabIndex            = 235;
     this.textVersions.Text                = "";
     this.textVersions.WordWrap            = false;
     //
     // textDescriptions
     //
     this.textDescriptions.AcceptsTab = true;
     this.textDescriptions.Anchor     = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.textDescriptions.BackColor          = System.Drawing.SystemColors.Window;
     this.textDescriptions.DetectLinksEnabled = false;
     this.textDescriptions.DetectUrls         = false;
     this.textDescriptions.Location           = new System.Drawing.Point(98, 557);
     this.textDescriptions.Name                = "textDescriptions";
     this.textDescriptions.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textDescriptions.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.textDescriptions.Size                = new System.Drawing.Size(667, 127);
     this.textDescriptions.SpellCheckIsEnabled = false;
     this.textDescriptions.TabIndex            = 230;
     this.textDescriptions.Text                = "";
     //
     // textPledgeTemplate
     //
     this.textPledgeTemplate.AcceptsTab = true;
     this.textPledgeTemplate.Anchor     = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.textPledgeTemplate.BackColor          = System.Drawing.SystemColors.Control;
     this.textPledgeTemplate.DetectLinksEnabled = false;
     this.textPledgeTemplate.DetectUrls         = false;
     this.textPledgeTemplate.Location           = new System.Drawing.Point(98, 526);
     this.textPledgeTemplate.Name                = "textPledgeTemplate";
     this.textPledgeTemplate.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textPledgeTemplate.ReadOnly            = true;
     this.textPledgeTemplate.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.textPledgeTemplate.Size                = new System.Drawing.Size(667, 25);
     this.textPledgeTemplate.SpellCheckIsEnabled = false;
     this.textPledgeTemplate.TabIndex            = 231;
     this.textPledgeTemplate.Text                = "";
     //
     // textSubject
     //
     this.textSubject.AcceptsTab = true;
     this.textSubject.Anchor     = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.textSubject.BackColor          = System.Drawing.SystemColors.Window;
     this.textSubject.DetectLinksEnabled = false;
     this.textSubject.DetectUrls         = false;
     this.textSubject.Location           = new System.Drawing.Point(98, 304);
     this.textSubject.Multiline          = false;
     this.textSubject.Name                = "textSubject";
     this.textSubject.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textSubject.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.textSubject.Size                = new System.Drawing.Size(906, 22);
     this.textSubject.SpellCheckIsEnabled = false;
     this.textSubject.TabIndex            = 44;
     this.textSubject.Text                = "";
     this.textSubject.WordWrap            = false;
     //
     // textFromAddress
     //
     this.textFromAddress.AcceptsTab = true;
     this.textFromAddress.Anchor     = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.textFromAddress.BackColor          = System.Drawing.SystemColors.Window;
     this.textFromAddress.DetectLinksEnabled = false;
     this.textFromAddress.DetectUrls         = false;
     this.textFromAddress.Location           = new System.Drawing.Point(98, 281);
     this.textFromAddress.Multiline          = false;
     this.textFromAddress.Name                = "textFromAddress";
     this.textFromAddress.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textFromAddress.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.textFromAddress.Size                = new System.Drawing.Size(544, 22);
     this.textFromAddress.SpellCheckIsEnabled = false;
     this.textFromAddress.TabIndex            = 41;
     this.textFromAddress.Text                = "";
     this.textFromAddress.WordWrap            = false;
     //
     // textBodyTextTemplate
     //
     this.textBodyTextTemplate.AcceptsTab = true;
     this.textBodyTextTemplate.Anchor     = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.textBodyTextTemplate.BackColor          = System.Drawing.SystemColors.Control;
     this.textBodyTextTemplate.DetectLinksEnabled = false;
     this.textBodyTextTemplate.DetectUrls         = false;
     this.textBodyTextTemplate.Location           = new System.Drawing.Point(98, 327);
     this.textBodyTextTemplate.Name                = "textBodyTextTemplate";
     this.textBodyTextTemplate.QuickPasteType      = OpenDentBusiness.QuickPasteType.Email;
     this.textBodyTextTemplate.ReadOnly            = true;
     this.textBodyTextTemplate.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.textBodyTextTemplate.Size                = new System.Drawing.Size(906, 193);
     this.textBodyTextTemplate.SpellCheckIsEnabled = false;
     this.textBodyTextTemplate.TabIndex            = 46;
     this.textBodyTextTemplate.Text                = "";
     //
     // butSend
     //
     this.butSend.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butSend.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butSend.Autosize     = true;
     this.butSend.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butSend.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butSend.CornerRadius = 4F;
     this.butSend.Location     = new System.Drawing.Point(848, 659);
     this.butSend.Name         = "butSend";
     this.butSend.Size         = new System.Drawing.Size(75, 25);
     this.butSend.TabIndex     = 9;
     this.butSend.Text         = "&Send";
     this.butSend.Click       += new System.EventHandler(this.butSend_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(929, 659);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 25);
     this.butCancel.TabIndex     = 10;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // butExport
     //
     this.butExport.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butExport.Autosize            = true;
     this.butExport.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butExport.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butExport.CornerRadius        = 4F;
     this.butExport.Location            = new System.Drawing.Point(17, 253);
     this.butExport.Name     = "butExport";
     this.butExport.Size     = new System.Drawing.Size(75, 24);
     this.butExport.TabIndex = 236;
     this.butExport.Text     = "Export";
     this.butExport.Click   += new System.EventHandler(this.butExport_Click);
     //
     // FormEmailJobs
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(1018, 696);
     this.Controls.Add(this.butExport);
     this.Controls.Add(this.textVersions);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.textDescriptions);
     this.Controls.Add(this.textPledgeTemplate);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.comboEmailFrom);
     this.Controls.Add(this.gridRecipients);
     this.Controls.Add(this.textSubject);
     this.Controls.Add(this.textFromAddress);
     this.Controls.Add(this.textBodyTextTemplate);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.butSend);
     this.Controls.Add(this.butCancel);
     this.Controls.Add(this.menuStrip1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.menuStrip1;
     this.MinimumSize   = new System.Drawing.Size(875, 735);
     this.Name          = "FormEmailJobs";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Edit Email Message";
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormEmailJobs_FormClosing);
     this.Load         += new System.EventHandler(this.FormEmailJobs_Load);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 20
0
        private void InitForm()
        {
            this.addButton      = new Button();
            this.removeButton   = new Button();
            this.flyButton      = new Button();
            this.groundButton   = new Button();
            this.trayMenu       = new ContextMenu();
            this.daysLeftLabel  = new Label();
            this.menuStrip      = new MenuStrip();
            this.flyMenuItem    = new MenuItem();
            this.groundMenuItem = new MenuItem();
            this.trayIcon       = new NotifyIcon();
            this.logPanel       = new PkLogPanel();
            this.kitePanel      = new PkKitePanel();
            this.mainBox        = new GroupBox();

            string fontName = "Tahoma";

            this.mainBox.Location = new Point(10, 40);
            this.mainBox.Size     = new Size(630, 270);
            this.mainBox.Font     = new Font(fontName, 10);
            this.mainBox.Text     = "Your Kites: ";

            this.CreateMenuStrip();
            this.CreateSystemTrayIcon();

            this.kitePanel.Location          = new Point(20, 30);
            this.kitePanel.Size              = new Size(590, 190);
            this.kitePanel.KiteDetail_Click += new PkKitePanel.PkKiteUpdateHandler(this.OnShowDetails_Click);

            this.daysLeftLabel.Location = new Point(530, 25);
            this.daysLeftLabel.AutoSize = true;
            this.daysLeftLabel.Font     = new Font(fontName, 10);

            this.addButton.Location = new Point(20, 230);
            this.addButton.Size     = new Size(50, 30);
            this.addButton.Font     = new Font(fontName, 12);
            this.addButton.Text     = "+";
            this.addButton.Click   += new EventHandler(this.OnAdd_Click);

            this.removeButton.Location = new Point(80, 230);
            this.removeButton.Size     = new Size(50, 30);
            this.removeButton.Font     = new Font(fontName, 12);
            this.removeButton.Text     = "-";
            this.removeButton.Click   += new EventHandler(this.OnRemove_Click);

            this.flyButton.Location = new Point(440, 230);
            this.flyButton.Size     = new Size(80, 30);
            this.flyButton.Font     = new Font(fontName, 10);
            this.flyButton.Text     = "Fly";
            this.flyButton.Click   += new EventHandler(this.OnFly_Click);

            this.groundButton.Location = new Point(530, 230);
            this.groundButton.Size     = new Size(80, 30);
            this.groundButton.Font     = new Font(fontName, 10);
            this.groundButton.Enabled  = false;
            this.groundButton.Text     = "Ground";
            this.groundButton.Click   += new EventHandler(this.OnGround_Click);

            this.logPanel.Location = new Point(10, 320);

            this.mainBox.Controls.Add(this.kitePanel);
            this.mainBox.Controls.Add(this.addButton);
            this.mainBox.Controls.Add(this.removeButton);
            this.mainBox.Controls.Add(this.flyButton);
            this.mainBox.Controls.Add(this.groundButton);

            this.Controls.Add(this.menuStrip);
            this.Controls.Add(this.daysLeftLabel);
            this.Controls.Add(this.mainBox);
            this.Controls.Add(this.logPanel);

            this.ClientSize      = new Size(650, 560);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "PageKite";
            this.FormClosing    += new FormClosingEventHandler(this.PkMainForm_FormClosing);
            this.Resize         += new EventHandler(this.PkMainForm_Resize);
        }
Esempio n. 21
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(MainForm));
     this._mainMenu             = new System.Windows.Forms.MenuStrip();
     this._menuItem1            = new System.Windows.Forms.ToolStripMenuItem();
     this._newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuConnect           = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuOpen = new System.Windows.Forms.ToolStripMenuItem();
     this._recentConnectionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this._saveAllToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuRecentFileList                 = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuExit                           = new System.Windows.Forms.ToolStripMenuItem();
     this.optionsMenuItem                    = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuWindow                         = new System.Windows.Forms.ToolStripMenuItem();
     this._closeAllDocumentsMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuHelp                           = new System.Windows.Forms.ToolStripMenuItem();
     this._contentsToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._checkForToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._mnuAbout                          = new System.Windows.Forms.ToolStripMenuItem();
     this._toolStrip                         = new System.Windows.Forms.ToolStrip();
     this._imageList                         = new System.Windows.Forms.ImageList(this.components);
     this._btnConnect                        = new System.Windows.Forms.ToolStripButton();
     this._openButton                        = new System.Windows.Forms.ToolStripButton();
     this._saveButton                        = new System.Windows.Forms.ToolStripButton();
     this._toolStripSeparator1               = new System.Windows.Forms.ToolStripSeparator();
     this._helpButton                        = new System.Windows.Forms.ToolStripButton();
     this._toolStripSeparator2               = new System.Windows.Forms.ToolStripSeparator();
     this._activeMdiChildToolStripTextBox    = new System.Windows.Forms.ToolStripTextBox();
     this._statusBar                         = new System.Windows.Forms.StatusStrip();
     this._toolStripStatusLabel              = new System.Windows.Forms.ToolStripStatusLabel();
     this._managedMemoryToolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
     this._toolStripPanel                    = new System.Windows.Forms.ToolStripPanel();
     this._mainMenu.SuspendLayout();
     this._toolStrip.SuspendLayout();
     this._statusBar.SuspendLayout();
     this._toolStripPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // _mainMenu
     //
     this._mainMenu.Dock             = System.Windows.Forms.DockStyle.None;
     this._mainMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
     this._mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._menuItem1,
         this.optionsMenuItem,
         this._mnuWindow,
         this._mnuHelp
     });
     this._mainMenu.Location          = new System.Drawing.Point(0, 0);
     this._mainMenu.MdiWindowListItem = this._mnuWindow;
     this._mainMenu.Name     = "_mainMenu";
     this._mainMenu.Size     = new System.Drawing.Size(982, 24);
     this._mainMenu.TabIndex = 1;
     //
     // _menuItem1
     //
     this._menuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._newToolStripMenuItem,
         this._mnuConnect,
         this._mnuOpen,
         this._recentConnectionsToolStripMenuItem,
         this._saveAllToolStripMenuItem,
         this._mnuRecentFileList,
         this._mnuExit
     });
     this._menuItem1.MergeIndex = 1;
     this._menuItem1.Name       = "_menuItem1";
     this._menuItem1.Size       = new System.Drawing.Size(67, 20);
     this._menuItem1.Text       = "&Database";
     //
     // _newToolStripMenuItem
     //
     this._newToolStripMenuItem.Name   = "_newToolStripMenuItem";
     this._newToolStripMenuItem.Size   = new System.Drawing.Size(191, 26);
     this._newToolStripMenuItem.Text   = "&Create";
     this._newToolStripMenuItem.Click += new System.EventHandler(this.CreateMenuItem_Click);
     //
     // _mnuConnect
     //
     this._mnuConnect.Image        = ((System.Drawing.Image)(resources.GetObject("_mnuConnect.Image")));
     this._mnuConnect.MergeIndex   = 0;
     this._mnuConnect.Name         = "_mnuConnect";
     this._mnuConnect.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     this._mnuConnect.Size         = new System.Drawing.Size(191, 26);
     this._mnuConnect.Text         = "&Connect";
     this._mnuConnect.Click       += new System.EventHandler(this.mnuConnect_Click);
     //
     // _mnuOpen
     //
     this._mnuOpen.Image        = ((System.Drawing.Image)(resources.GetObject("_mnuOpen.Image")));
     this._mnuOpen.MergeIndex   = 1;
     this._mnuOpen.Name         = "_mnuOpen";
     this._mnuOpen.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this._mnuOpen.Size         = new System.Drawing.Size(191, 26);
     this._mnuOpen.Text         = "&Open";
     this._mnuOpen.Click       += new System.EventHandler(this.mnuOpen_Click);
     //
     // _recentConnectionsToolStripMenuItem
     //
     this._recentConnectionsToolStripMenuItem.Name = "_recentConnectionsToolStripMenuItem";
     this._recentConnectionsToolStripMenuItem.Size = new System.Drawing.Size(191, 26);
     this._recentConnectionsToolStripMenuItem.Text = "Recent connections";
     //
     // _saveAllToolStripMenuItem
     //
     this._saveAllToolStripMenuItem.Name         = "_saveAllToolStripMenuItem";
     this._saveAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
                                                                                 | System.Windows.Forms.Keys.S)));
     this._saveAllToolStripMenuItem.Size   = new System.Drawing.Size(191, 26);
     this._saveAllToolStripMenuItem.Text   = "Save All";
     this._saveAllToolStripMenuItem.Click += new System.EventHandler(this.saveAllToolStripMenuItem_Click);
     //
     // _mnuRecentFileList
     //
     this._mnuRecentFileList.MergeIndex = 2;
     this._mnuRecentFileList.Name       = "_mnuRecentFileList";
     this._mnuRecentFileList.Size       = new System.Drawing.Size(191, 26);
     this._mnuRecentFileList.Text       = "Recent &File List";
     //
     // _mnuExit
     //
     this._mnuExit.Name         = "_mnuExit";
     this._mnuExit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
     this._mnuExit.Size         = new System.Drawing.Size(191, 26);
     this._mnuExit.Text         = "Exit";
     this._mnuExit.Click       += new System.EventHandler(this.mnuExit_Click);
     //
     // optionsMenuItem
     //
     this.optionsMenuItem.MergeIndex = 5;
     this.optionsMenuItem.Name       = "optionsMenuItem";
     this.optionsMenuItem.Size       = new System.Drawing.Size(61, 20);
     this.optionsMenuItem.Text       = "Options";
     this.optionsMenuItem.Click     += new System.EventHandler(this.optionsMenuItem_Click);
     //
     // _mnuWindow
     //
     this._mnuWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._closeAllDocumentsMenuItem
     });
     this._mnuWindow.MergeIndex = 6;
     this._mnuWindow.Name       = "_mnuWindow";
     this._mnuWindow.Size       = new System.Drawing.Size(63, 20);
     this._mnuWindow.Text       = "&Window";
     //
     // _closeAllDocumentsMenuItem
     //
     this._closeAllDocumentsMenuItem.Name   = "_closeAllDocumentsMenuItem";
     this._closeAllDocumentsMenuItem.Size   = new System.Drawing.Size(184, 22);
     this._closeAllDocumentsMenuItem.Text   = "Close All Documents";
     this._closeAllDocumentsMenuItem.Click += new System.EventHandler(this.closeAllDocumentsMenuItem_Click);
     //
     // _mnuHelp
     //
     this._mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._contentsToolStripMenuItem,
         this._checkForToolStripMenuItem,
         this._mnuAbout
     });
     this._mnuHelp.MergeIndex = 7;
     this._mnuHelp.Name       = "_mnuHelp";
     this._mnuHelp.Size       = new System.Drawing.Size(44, 20);
     this._mnuHelp.Text       = "&Help";
     //
     // _contentsToolStripMenuItem
     //
     this._contentsToolStripMenuItem.Name         = "_contentsToolStripMenuItem";
     this._contentsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1;
     this._contentsToolStripMenuItem.Size         = new System.Drawing.Size(198, 22);
     this._contentsToolStripMenuItem.Text         = "Contents";
     this._contentsToolStripMenuItem.Click       += new System.EventHandler(this.contentsToolStripMenuItem_Click);
     //
     // _checkForToolStripMenuItem
     //
     this._checkForToolStripMenuItem.Name         = "_checkForToolStripMenuItem";
     this._checkForToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F12;
     this._checkForToolStripMenuItem.Size         = new System.Drawing.Size(198, 22);
     this._checkForToolStripMenuItem.Text         = "Check for updates ";
     this._checkForToolStripMenuItem.Click       += new System.EventHandler(this.checkForToolStripMenuItem_Click);
     //
     // _mnuAbout
     //
     this._mnuAbout.MergeIndex = 0;
     this._mnuAbout.Name       = "_mnuAbout";
     this._mnuAbout.Size       = new System.Drawing.Size(198, 22);
     this._mnuAbout.Text       = "About...";
     //
     // _toolStrip
     //
     this._toolStrip.Dock             = System.Windows.Forms.DockStyle.None;
     this._toolStrip.ImageList        = this._imageList;
     this._toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
     this._toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._btnConnect,
         this._openButton,
         this._saveButton,
         this._toolStripSeparator1,
         this._helpButton,
         this._toolStripSeparator2,
         this._activeMdiChildToolStripTextBox
     });
     this._toolStrip.Location = new System.Drawing.Point(3, 24);
     this._toolStrip.Name     = "_toolStrip";
     this._toolStrip.Size     = new System.Drawing.Size(522, 27);
     this._toolStrip.TabIndex = 2;
     //
     // _imageList
     //
     this._imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_imageList.ImageStream")));
     this._imageList.TransparentColor = System.Drawing.Color.Transparent;
     this._imageList.Images.SetKeyName(0, "");
     this._imageList.Images.SetKeyName(1, "");
     this._imageList.Images.SetKeyName(2, "");
     this._imageList.Images.SetKeyName(3, "");
     //
     // _btnConnect
     //
     this._btnConnect.Image       = ((System.Drawing.Image)(resources.GetObject("_btnConnect.Image")));
     this._btnConnect.Name        = "_btnConnect";
     this._btnConnect.Size        = new System.Drawing.Size(24, 24);
     this._btnConnect.ToolTipText = "Connect to database";
     this._btnConnect.Click      += new System.EventHandler(this.btnConnect_Click);
     //
     // _openButton
     //
     this._openButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._openButton.Image                 = ((System.Drawing.Image)(resources.GetObject("_openButton.Image")));
     this._openButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._openButton.Name        = "_openButton";
     this._openButton.Size        = new System.Drawing.Size(24, 24);
     this._openButton.Text        = "toolStripButton1";
     this._openButton.ToolTipText = "Open database";
     this._openButton.Click      += new System.EventHandler(this.openButton_Click);
     //
     // _saveButton
     //
     this._saveButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._saveButton.Enabled               = false;
     this._saveButton.Image                 = ((System.Drawing.Image)(resources.GetObject("_saveButton.Image")));
     this._saveButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._saveButton.Name        = "_saveButton";
     this._saveButton.Size        = new System.Drawing.Size(24, 24);
     this._saveButton.ToolTipText = "Save Query";
     this._saveButton.Click      += new System.EventHandler(this.saveButton_Click);
     //
     // _toolStripSeparator1
     //
     this._toolStripSeparator1.Name = "_toolStripSeparator1";
     this._toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
     //
     // _helpButton
     //
     this._helpButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._helpButton.Image                 = ((System.Drawing.Image)(resources.GetObject("_helpButton.Image")));
     this._helpButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._helpButton.Name = "_helpButton";
     this._helpButton.Size = new System.Drawing.Size(24, 24);
     this._helpButton.Text = "Help";
     //
     // _toolStripSeparator2
     //
     this._toolStripSeparator2.Name = "_toolStripSeparator2";
     this._toolStripSeparator2.Size = new System.Drawing.Size(6, 27);
     //
     // _activeMdiChildToolStripTextBox
     //
     this._activeMdiChildToolStripTextBox.Name     = "_activeMdiChildToolStripTextBox";
     this._activeMdiChildToolStripTextBox.ReadOnly = true;
     this._activeMdiChildToolStripTextBox.Size     = new System.Drawing.Size(400, 27);
     //
     // _statusBar
     //
     this._statusBar.ImageScalingSize = new System.Drawing.Size(20, 20);
     this._statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._toolStripStatusLabel,
         this._managedMemoryToolStripStatusLabel
     });
     this._statusBar.Location         = new System.Drawing.Point(0, 731);
     this._statusBar.Name             = "_statusBar";
     this._statusBar.ShowItemToolTips = true;
     this._statusBar.Size             = new System.Drawing.Size(982, 22);
     this._statusBar.TabIndex         = 3;
     //
     // _toolStripStatusLabel
     //
     this._toolStripStatusLabel.Name      = "_toolStripStatusLabel";
     this._toolStripStatusLabel.Size      = new System.Drawing.Size(867, 17);
     this._toolStripStatusLabel.Spring    = true;
     this._toolStripStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // _managedMemoryToolStripStatusLabel
     //
     this._managedMemoryToolStripStatusLabel.AutoSize     = false;
     this._managedMemoryToolStripStatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._managedMemoryToolStripStatusLabel.Name         = "_managedMemoryToolStripStatusLabel";
     this._managedMemoryToolStripStatusLabel.Size         = new System.Drawing.Size(100, 17);
     this._managedMemoryToolStripStatusLabel.TextAlign    = System.Drawing.ContentAlignment.MiddleRight;
     this._managedMemoryToolStripStatusLabel.ToolTipText  = "Managed memory";
     this._managedMemoryToolStripStatusLabel.MouseUp     += new System.Windows.Forms.MouseEventHandler(this.managedMemoryToolStripStatusLabel_MouseUp);
     //
     // _toolStripPanel
     //
     this._toolStripPanel.Controls.Add(this._mainMenu);
     this._toolStripPanel.Controls.Add(this._toolStrip);
     this._toolStripPanel.Dock        = System.Windows.Forms.DockStyle.Top;
     this._toolStripPanel.Location    = new System.Drawing.Point(0, 0);
     this._toolStripPanel.Name        = "_toolStripPanel";
     this._toolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this._toolStripPanel.RowMargin   = new System.Windows.Forms.Padding(3, 0, 0, 0);
     this._toolStripPanel.Size        = new System.Drawing.Size(982, 51);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(982, 753);
     this.Controls.Add(this._toolStripPanel);
     this.Controls.Add(this._statusBar);
     this.Font           = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
     this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IsMdiContainer = true;
     this.MainMenuStrip  = this._mainMenu;
     this.Name           = "MainForm";
     this.StartPosition  = System.Windows.Forms.FormStartPosition.Manual;
     this.Text           = "Data Commander";
     this._mainMenu.ResumeLayout(false);
     this._mainMenu.PerformLayout();
     this._toolStrip.ResumeLayout(false);
     this._toolStrip.PerformLayout();
     this._statusBar.ResumeLayout(false);
     this._statusBar.PerformLayout();
     this._toolStripPanel.ResumeLayout(false);
     this._toolStripPanel.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        public static void Translate(ICatalog catalog, object myObject, ToolTip tooltip, object[] extra)
        {
            #region Translating myObject
            if (myObject != null)
            {
                string objtype = myObject.GetType().ToString();
                if (objtype.IndexOf("Forms.ToolStripContainer", StringComparison.InvariantCultureIgnoreCase) >= 0)
                {
                    //continue;
                }
                //System.Windows.Forms.ColorDialog
                //System.Windows.Forms.FileDialog
                //System.Windows.Forms.FolderBrowserDialog
                //System.Windows.Forms.FontDialog
                //System.Windows.Forms.PageSetupDialog
                //System.Windows.Forms.PrintDialog
                else if (
                    (objtype.IndexOf("Forms.OpenFileDialog", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                    (objtype.IndexOf("Forms.SaveFileDialog", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    FileDialog dlg = myObject as FileDialog;
                    dlg.Title  = _(catalog, dlg.Title);
                    dlg.Filter = _(catalog, dlg.Filter);
                }
                else if (
                    (objtype.IndexOf("Forms.ToolStripMenuItem", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                    (objtype.IndexOf("Forms.ToolStripDropDownItem", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    ToolStripMenuItem menuitems = myObject as ToolStripMenuItem;
                    foreach (ToolStripMenuItem Item in menuitems.DropDownItems)
                    {
                        Item.Text = _(catalog, Item.Text);
                        if (Item.DropDownItems.Count > 0)
                        {
                            Translate(catalog, Item, tooltip);
                        }
                    }
                }
                else if (
                    (objtype.IndexOf("Forms.ToolStripDropDownButton", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    ToolStripDropDownButton menuitems = myObject as ToolStripDropDownButton;
                    foreach (ToolStripMenuItem Item in menuitems.DropDownItems)
                    {
                        Item.Text = _(catalog, Item.Text);
                        if (Item.DropDownItems.Count > 0)
                        {
                            Translate(catalog, Item, tooltip);
                        }
                    }
                }
                else if (
                    (objtype.IndexOf("Forms.ToolStripSplitButton", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    ToolStripSplitButton menuitems = myObject as ToolStripSplitButton;
                    foreach (ToolStripMenuItem Item in menuitems.DropDownItems)
                    {
                        Item.Text = _(catalog, Item.Text);
                        if (Item.DropDownItems.Count > 0)
                        {
                            Translate(catalog, Item, tooltip);
                        }
                    }
                }
                else if (
                    (objtype.IndexOf("Forms.MenuStrip", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                    (objtype.IndexOf("Forms.ToolStripDropDownMenu", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                    (objtype.IndexOf("Forms.ContextMenuStrip", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    MenuStrip menuitems = myObject as MenuStrip;
                    foreach (ToolStripMenuItem Item in menuitems.Items)
                    {
                        Item.Text = _(catalog, Item.Text);
                        if (Item.DropDownItems.Count > 0)
                        {
                            Translate(catalog, Item, tooltip);
                        }
                    }
                }
                else if (
                    (objtype.IndexOf("Forms.StatusStrip", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                    (objtype.IndexOf("Forms.ToolStrip", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    ToolStrip tools = myObject as ToolStrip;
                    foreach (ToolStripItem Item in tools.Items)
                    {
                        Item.Text        = _(catalog, Item.Text);
                        Item.ToolTipText = _(catalog, Item.ToolTipText);
                        string itemType = Item.GetType().ToString();
                        if (
                            (itemType.IndexOf("Forms.ToolStripMenuItem", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                            (itemType.IndexOf("Forms.ToolStripDropDownButton", StringComparison.InvariantCultureIgnoreCase) >= 0) ||
                            (itemType.IndexOf("Forms.ToolStripSplitButton", StringComparison.InvariantCultureIgnoreCase) >= 0)
                            )
                        {
                            Translate(catalog, Item, tooltip);
                        }
                    }
                }
                else if (
                    (objtype.IndexOf("Forms.ComboBox", StringComparison.InvariantCultureIgnoreCase) >= 0)
                    )
                {
                    ComboBox comboBox = myObject as ComboBox;
                    ComboBox.ObjectCollection oldItems = comboBox.Items as ComboBox.ObjectCollection;
                    List <string>             newItems = new List <string>();
                    if (oldItems != null)
                    {
                        try
                        {
                            foreach (string Item in oldItems)
                            {
                                newItems.Add(_(catalog, Item));
                            }
                            comboBox.Items.Clear();
                            comboBox.Items.AddRange(newItems.ToArray());
                        }
                        catch { }
                    }
                }
                else if (myObject != null)
                {
                    //Control obj = myObject as Control;
                    //var obj = myObject as Control;
                    //var obj = myObject;
                    //if ( myObject.GetType() == System.ComponentModel.Component )
                    //   obj = myObject as System.ComponentModel.Component;
                    //else
                    //   obj = myObject as Control;

                    var obj = myObject as Control;

                    if (obj != null)
                    {
                        try
                        {
                            if (!string.IsNullOrEmpty(obj.Text))
                            {
                                obj.Text = _(catalog, obj.Text);
                            }
                            if (tooltip != null)
                            {
                                if (!string.IsNullOrEmpty(tooltip.ToolTipTitle))
                                {
                                    tooltip.ToolTipTitle = _(tooltip.ToolTipTitle);
                                }
                                //if ( !string.IsNullOrEmpty( obj.Text ) )
                                //{
                                //    tooltip.ToolTipTitle = obj.Text;
                                //}
                                tooltip.SetToolTip(obj, _(catalog, tooltip.GetToolTip(obj)).Replace("\\n", "\n"));
                            }
                            //try
                            //{
                            //    if ( !obj.ToolTipText )
                            //    {
                            //        obj.ToolTipText = _( catalog, obj.ToolTipText );
                            //    }
                            //}
                            //catch ( Exception ett )
                            //{
                            //}
                        }
                        catch (Exception ee)
                        {
                        }

                        foreach (Control child in obj.Controls)
                        {
                            Translate(catalog, child, tooltip);
                        }
                    }
                }
            }
            #endregion

            #region Translating extra
            if (extra != null)
            {
                foreach (object control in extra)
                {
                    Translate(catalog, control, tooltip);
                }
            }
            #endregion
        }
Esempio n. 23
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config1   = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
            System.ComponentModel.ComponentResourceManager             resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.editControl1                   = new Syncfusion.Windows.Forms.Edit.EditControl();
            this.toolStrip1                     = new System.Windows.Forms.ToolStrip();
            this.toolStripLabel1                = new System.Windows.Forms.ToolStripLabel();
            this.toolStripButton1               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton2               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton3               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton4               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator4            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton5               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton6               = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator8            = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton7               = new System.Windows.Forms.ToolStripButton();
            this.menuStrip1                     = new System.Windows.Forms.MenuStrip();
            this.fielToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.newToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator6            = new System.Windows.Forms.ToolStripSeparator();
            this.saveToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.saveAsToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator7            = new System.Windows.Forms.ToolStripSeparator();
            this.closeToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this.exitToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
            this.setTextToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
            this.textPanelToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.fileNamePanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.statusPanelToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.encodngPanelToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
            this.positToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this.insertPanelToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).BeginInit();
            this.toolStrip1.SuspendLayout();
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // editControl1
            //
            this.editControl1.BackColor                = System.Drawing.SystemColors.Window;
            this.editControl1.BorderStyle              = System.Windows.Forms.BorderStyle.Fixed3D;
            this.editControl1.CodeSnipptSize           = new System.Drawing.Size(100, 100);
            this.editControl1.Configurator             = config1;
            this.editControl1.Dock                     = System.Windows.Forms.DockStyle.Fill;
            this.editControl1.IndicatorMarginBackColor = System.Drawing.Color.Empty;
            this.editControl1.LineNumbersFont          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.editControl1.Location                 = new System.Drawing.Point(10, 59);
            this.editControl1.Name                     = "editControl1";
            this.editControl1.RenderRightToLeft        = false;
            this.editControl1.ScrollPosition           = new System.Drawing.Point(0, 0);
            this.editControl1.ScrollVisualStyle        = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
            this.editControl1.ShowHorizontalSplitters  = false;
            this.editControl1.ShowIndicatorMargin      = false;
            this.editControl1.ShowSelectionMargin      = false;
            this.editControl1.ShowVerticalSplitters    = false;
            this.editControl1.Size                     = new System.Drawing.Size(522, 376);

            this.editControl1.StatusBarSettings.GripVisibility = Syncfusion.Windows.Forms.Edit.Enums.SizingGripVisibility.Visible;

            this.editControl1.StatusBarSettings.TextPanel.AutoSize = false;
            this.editControl1.StatusBarSettings.StatusPanel.Width  = 100;
            this.editControl1.StatusBarSettings.Visible            = true;
            this.editControl1.TabIndex           = 0;
            this.editControl1.Text               = "";
            this.editControl1.TransferFocusOnTab = true;
            this.editControl1.UseXPStyleBorder   = true;
            this.editControl1.VisualColumn       = 1;
            this.editControl1.WordWrap           = true;
            //
            // toolStrip1
            //
            this.toolStrip1.BackColor = System.Drawing.Color.White;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripLabel1,
                this.toolStripButton1,
                this.toolStripSeparator1,
                this.toolStripButton2,
                this.toolStripSeparator2,
                this.toolStripButton3,
                this.toolStripSeparator3,
                this.toolStripButton4,
                this.toolStripSeparator4,
                this.toolStripButton5,
                this.toolStripSeparator5,
                this.toolStripButton6,
                this.toolStripSeparator8,
                this.toolStripButton7
            });
            this.toolStrip1.Location     = new System.Drawing.Point(10, 34);
            this.toolStrip1.Name         = "toolStrip1";
            this.toolStrip1.Size         = new System.Drawing.Size(522, 25);
            this.toolStrip1.TabIndex     = 1;
            this.toolStrip1.Text         = "toolStrip1";
            this.toolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.VisibilityMenuClick);
            //
            // toolStripLabel1
            //
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new System.Drawing.Size(99, 22);
            this.toolStripLabel1.Text = "Status Bar Panels:";
            //
            // toolStripButton1
            //
            this.toolStripButton1.Checked               = true;
            this.toolStripButton1.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton1.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton1.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(33, 22);
            this.toolStripButton1.Text = "Text";
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton2
            //
            this.toolStripButton2.Checked               = true;
            this.toolStripButton2.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton2.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton2.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(61, 22);
            this.toolStripButton2.Text = "FileName";
            //
            // toolStripSeparator2
            //
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton3
            //
            this.toolStripButton3.Checked               = true;
            this.toolStripButton3.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton3.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton3.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(43, 22);
            this.toolStripButton3.Text = "Status";
            //
            // toolStripSeparator3
            //
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton4
            //
            this.toolStripButton4.Checked               = true;
            this.toolStripButton4.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton4.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton4.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
            this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.Size = new System.Drawing.Size(61, 22);
            this.toolStripButton4.Text = "Encoding";
            //
            // toolStripSeparator4
            //
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton5
            //
            this.toolStripButton5.Checked               = true;
            this.toolStripButton5.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton5.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton5.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
            this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton5.Name = "toolStripButton5";
            this.toolStripButton5.Size = new System.Drawing.Size(54, 22);
            this.toolStripButton5.Text = "Position";
            //
            // toolStripSeparator5
            //
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton6
            //
            this.toolStripButton6.Checked               = true;
            this.toolStripButton6.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton6.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton6.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton6.Image")));
            this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton6.Name = "toolStripButton6";
            this.toolStripButton6.Size = new System.Drawing.Size(40, 22);
            this.toolStripButton6.Text = "Insert";
            //
            // toolStripSeparator8
            //
            this.toolStripSeparator8.Name = "toolStripSeparator8";
            this.toolStripSeparator8.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton7
            //
            this.toolStripButton7.Checked               = true;
            this.toolStripButton7.CheckState            = System.Windows.Forms.CheckState.Checked;
            this.toolStripButton7.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.toolStripButton7.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
            this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton7.Name = "toolStripButton7";
            this.toolStripButton7.Size = new System.Drawing.Size(83, 22);
            this.toolStripButton7.Text = "Sizing gripper";
            //
            // menuStrip1
            //
            this.menuStrip1.BackColor = System.Drawing.Color.White;
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.fielToolStripMenuItem,
                this.setTextToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(10, 10);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(522, 24);
            this.menuStrip1.TabIndex = 2;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // fielToolStripMenuItem
            //
            this.fielToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.newToolStripMenuItem,
                this.openToolStripMenuItem,
                this.toolStripSeparator6,
                this.saveToolStripMenuItem,
                this.saveAsToolStripMenuItem,
                this.toolStripSeparator7,
                this.closeToolStripMenuItem,
                this.exitToolStripMenuItem
            });
            this.fielToolStripMenuItem.Name = "fielToolStripMenuItem";
            this.fielToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
            this.fielToolStripMenuItem.Text = "File";
            //
            // newToolStripMenuItem
            //
            this.newToolStripMenuItem.Name   = "newToolStripMenuItem";
            this.newToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.newToolStripMenuItem.Text   = "New";
            this.newToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // openToolStripMenuItem
            //
            this.openToolStripMenuItem.Name   = "openToolStripMenuItem";
            this.openToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.openToolStripMenuItem.Text   = "Open...";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // toolStripSeparator6
            //
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new System.Drawing.Size(120, 6);
            //
            // saveToolStripMenuItem
            //
            this.saveToolStripMenuItem.Name   = "saveToolStripMenuItem";
            this.saveToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.saveToolStripMenuItem.Text   = "Save";
            this.saveToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // saveAsToolStripMenuItem
            //
            this.saveAsToolStripMenuItem.Name   = "saveAsToolStripMenuItem";
            this.saveAsToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.saveAsToolStripMenuItem.Text   = "Save As...";
            this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // toolStripSeparator7
            //
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new System.Drawing.Size(120, 6);
            //
            // closeToolStripMenuItem
            //
            this.closeToolStripMenuItem.Name   = "closeToolStripMenuItem";
            this.closeToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.closeToolStripMenuItem.Text   = "Close";
            this.closeToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // exitToolStripMenuItem
            //
            this.exitToolStripMenuItem.Name   = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.exitToolStripMenuItem.Text   = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // setTextToolStripMenuItem
            //
            this.setTextToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.textPanelToolStripMenuItem,
                this.fileNamePanelToolStripMenuItem,
                this.statusPanelToolStripMenuItem,
                this.encodngPanelToolStripMenuItem,
                this.positToolStripMenuItem,
                this.insertPanelToolStripMenuItem
            });
            this.setTextToolStripMenuItem.Name = "setTextToolStripMenuItem";
            this.setTextToolStripMenuItem.Size = new System.Drawing.Size(63, 20);
            this.setTextToolStripMenuItem.Text = "Set Text ";
            //
            // textPanelToolStripMenuItem
            //
            this.textPanelToolStripMenuItem.Name   = "textPanelToolStripMenuItem";
            this.textPanelToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.textPanelToolStripMenuItem.Text   = "Text Panel";
            this.textPanelToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // fileNamePanelToolStripMenuItem
            //
            this.fileNamePanelToolStripMenuItem.Name   = "fileNamePanelToolStripMenuItem";
            this.fileNamePanelToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.fileNamePanelToolStripMenuItem.Text   = "FileName Panel";
            this.fileNamePanelToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // statusPanelToolStripMenuItem
            //
            this.statusPanelToolStripMenuItem.Name   = "statusPanelToolStripMenuItem";
            this.statusPanelToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.statusPanelToolStripMenuItem.Text   = "Status Panel";
            this.statusPanelToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // encodngPanelToolStripMenuItem
            //
            this.encodngPanelToolStripMenuItem.Name   = "encodngPanelToolStripMenuItem";
            this.encodngPanelToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.encodngPanelToolStripMenuItem.Text   = "Encoding Panel";
            this.encodngPanelToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // positToolStripMenuItem
            //
            this.positToolStripMenuItem.Name   = "positToolStripMenuItem";
            this.positToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.positToolStripMenuItem.Text   = "Position Panel";
            this.positToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // insertPanelToolStripMenuItem
            //
            this.insertPanelToolStripMenuItem.Name   = "insertPanelToolStripMenuItem";
            this.insertPanelToolStripMenuItem.Size   = new System.Drawing.Size(156, 22);
            this.insertPanelToolStripMenuItem.Text   = "Insert Panel";
            this.insertPanelToolStripMenuItem.Click += new System.EventHandler(this.SetTextMenuClick);
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
            this.ClientSize        = new System.Drawing.Size(542, 445);
            this.Controls.Add(this.editControl1);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.menuStrip1);
            this.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.MinimumSize   = new System.Drawing.Size(554, 482);
            this.Name          = "Form1";
            this.Padding       = new System.Windows.Forms.Padding(10);
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "StatusBar";
            this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).EndInit();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 24
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(RoomClientForm));

            this.UserImage           = new ImageList(this.components);
            this.UserList            = new ListView();
            this.UserNameColumn      = new ColumnHeader();
            this.StateColumn         = new ColumnHeader();
            this.UserMenu            = new ContextMenuStrip(this.components);
            this.ChatToMenuItem      = new ToolStripMenuItem();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.ChallengeMenuItem   = new ToolStripMenuItem();
            this.ObserveMenuItem     = new ToolStripMenuItem();
            this.RoomTab             = new TabControl();
            this.ChatPage            = new TabPage();
            this.BcCounterLabel      = new Label();
            this.BroadcastLabel      = new Label();
            this.CommandCheck        = new CheckBox();
            this.SendButton          = new Button();
            this.MessageText         = new TextBox();
            this.DisplayText         = new TextBox();
            this.FourPlayerPage      = new TabPage();
            this.CreateButton        = new Button();
            this.EnterButton         = new Button();
            this.FourPlayerList      = new ListView();
            this.RoomNameColumn      = new ColumnHeader();
            this.PlayerCount         = new ColumnHeader();
            this.MainMenu            = new MenuStrip();
            this.RoomMenuItem        = new ToolStripMenuItem();
            this.UserInfoMenuItem    = new ToolStripMenuItem();
            this.AwayMenuItem        = new ToolStripMenuItem();
            this.ExitMenuItem        = new ToolStripMenuItem();
            this.ChatsMenuItem       = new ToolStripMenuItem();
            this.UserMenu.SuspendLayout();
            this.RoomTab.SuspendLayout();
            this.ChatPage.SuspendLayout();
            this.FourPlayerPage.SuspendLayout();
            this.MainMenu.SuspendLayout();
            base.SuspendLayout();
            this.UserImage.ImageStream      = (ImageListStreamer)manager.GetObject("UserImage.ImageStream");
            this.UserImage.TransparentColor = Color.Transparent;
            this.UserImage.Images.SetKeyName(0, "Pokemon1.ico");
            this.UserImage.Images.SetKeyName(1, "Pokemon2.ico");
            this.UserImage.Images.SetKeyName(2, "Pokemon3.ico");
            this.UserImage.Images.SetKeyName(3, "Pokemon4.ico");
            this.UserImage.Images.SetKeyName(4, "Pokemon5.ico");
            this.UserImage.Images.SetKeyName(5, "Pokemon6.ico");
            this.UserImage.Images.SetKeyName(6, "Pokemon7.ico");
            this.UserImage.Images.SetKeyName(7, "Pokemon8.ico");
            this.UserImage.Images.SetKeyName(8, "Pokemon9.ico");
            this.UserImage.Images.SetKeyName(9, "Pokemon10.ico");
            this.UserImage.Images.SetKeyName(10, "Pokemon11.ico");
            this.UserImage.Images.SetKeyName(11, "Pokemon12.ico");
            this.UserImage.Images.SetKeyName(12, "Pokemon13.ico");
            this.UserImage.Images.SetKeyName(13, "Pokemon14.ico");
            this.UserImage.Images.SetKeyName(14, "Pokemon15.ico");
            this.UserList.Alignment = ListViewAlignment.Left;
            this.UserList.Columns.AddRange(new ColumnHeader[] { this.UserNameColumn, this.StateColumn });
            this.UserList.ContextMenuStrip = this.UserMenu;
            this.UserList.FullRowSelect    = true;
            this.UserList.Location         = new Point(0x1bd, 0x30);
            this.UserList.MultiSelect      = false;
            this.UserList.Name             = "UserList";
            this.UserList.Size             = new Size(0xc4, 410);
            this.UserList.SmallImageList   = this.UserImage;
            this.UserList.Sorting          = SortOrder.Ascending;
            this.UserList.TabIndex         = 4;
            this.UserList.UseCompatibleStateImageBehavior = false;
            this.UserList.View        = View.Details;
            this.UserNameColumn.Text  = "名称";
            this.UserNameColumn.Width = 0x71;
            this.StateColumn.Text     = "状态";
            this.UserMenu.Items.AddRange(new ToolStripItem[] { this.ChatToMenuItem, this.ToolStripSeparator1, this.ChallengeMenuItem, this.ObserveMenuItem });
            this.UserMenu.Name            = "mnuRoomList";
            this.UserMenu.ShowImageMargin = false;
            this.UserMenu.Size            = new Size(100, 0x4c);
            this.ChatToMenuItem.Name      = "ChatToMenuItem";
            this.ChatToMenuItem.Size      = new Size(0x63, 0x16);
            this.ChatToMenuItem.Text      = "私人聊天";
            this.ChatToMenuItem.Click    += new EventHandler(this.ChatToMenuItem_Click);
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            this.ToolStripSeparator1.Size = new Size(0x60, 6);
            this.ChallengeMenuItem.Name   = "ChallengeMenuItem";
            this.ChallengeMenuItem.Size   = new Size(0x63, 0x16);
            this.ChallengeMenuItem.Text   = "挑战";
            this.ChallengeMenuItem.Click += new EventHandler(this.ChallengeMenuItem_Click);
            this.ObserveMenuItem.Name     = "ObserveMenuItem";
            this.ObserveMenuItem.Size     = new Size(0x63, 0x16);
            this.ObserveMenuItem.Text     = "观战";
            this.ObserveMenuItem.Click   += new EventHandler(this.ObserveMenuItem_Click);
            this.RoomTab.Controls.Add(this.ChatPage);
            this.RoomTab.Controls.Add(this.FourPlayerPage);
            this.RoomTab.Location      = new Point(0, 0x1b);
            this.RoomTab.Name          = "RoomTab";
            this.RoomTab.SelectedIndex = 0;
            this.RoomTab.Size          = new Size(0x1b6, 0x1bb);
            this.RoomTab.TabIndex      = 5;
            this.ChatPage.Controls.Add(this.BcCounterLabel);
            this.ChatPage.Controls.Add(this.BroadcastLabel);
            this.ChatPage.Controls.Add(this.CommandCheck);
            this.ChatPage.Controls.Add(this.SendButton);
            this.ChatPage.Controls.Add(this.MessageText);
            this.ChatPage.Controls.Add(this.DisplayText);
            this.ChatPage.Location = new Point(4, 0x16);
            this.ChatPage.Name     = "ChatPage";
            this.ChatPage.Padding  = new Padding(3);
            this.ChatPage.Size     = new Size(430, 0x1a1);
            this.ChatPage.TabIndex = 1;
            this.ChatPage.Text     = "房间";
            this.ChatPage.UseVisualStyleBackColor = true;
            this.BcCounterLabel.AutoSize          = true;
            this.BcCounterLabel.ForeColor         = Color.Red;
            this.BcCounterLabel.Location          = new Point(80, 0x18c);
            this.BcCounterLabel.Name     = "BcCounterLabel";
            this.BcCounterLabel.Size     = new Size(0x11, 12);
            this.BcCounterLabel.TabIndex = 5;
            this.BcCounterLabel.Text     = "0%";
            this.BroadcastLabel.AutoSize = true;
            this.BroadcastLabel.Location = new Point(9, 0x18c);
            this.BroadcastLabel.Name     = "BroadcastLabel";
            this.BroadcastLabel.Size     = new Size(0x41, 12);
            this.BroadcastLabel.TabIndex = 4;
            this.BroadcastLabel.Text     = "发言限制 :";
            this.CommandCheck.AutoSize   = true;
            this.CommandCheck.Location   = new Point(280, 0x187);
            this.CommandCheck.Name       = "CommandCheck";
            this.CommandCheck.Size       = new Size(0x48, 0x10);
            this.CommandCheck.TabIndex   = 3;
            this.CommandCheck.Text       = "房间命令";
            this.CommandCheck.UseVisualStyleBackColor = true;
            this.SendButton.Enabled  = false;
            this.SendButton.Location = new Point(0x166, 0x183);
            this.SendButton.Name     = "SendButton";
            this.SendButton.Size     = new Size(0x3f, 0x17);
            this.SendButton.TabIndex = 2;
            this.SendButton.Text     = "发送(&S)";
            this.SendButton.UseVisualStyleBackColor = true;
            this.SendButton.Click      += new EventHandler(this.SendButton_Click);
            this.MessageText.ImeMode    = ImeMode.Alpha;
            this.MessageText.Location   = new Point(3, 360);
            this.MessageText.MaxLength  = 50;
            this.MessageText.Name       = "MessageText";
            this.MessageText.ScrollBars = ScrollBars.Vertical;
            this.MessageText.Size       = new Size(0x1a2, 0x15);
            this.MessageText.TabIndex   = 1;
            this.DisplayText.BackColor  = Color.White;
            this.DisplayText.Dock       = DockStyle.Top;
            this.DisplayText.Location   = new Point(3, 3);
            this.DisplayText.Multiline  = true;
            this.DisplayText.Name       = "DisplayText";
            this.DisplayText.ReadOnly   = true;
            this.DisplayText.ScrollBars = ScrollBars.Vertical;
            this.DisplayText.Size       = new Size(0x1a8, 0x15f);
            this.DisplayText.TabIndex   = 0;
            this.FourPlayerPage.Controls.Add(this.CreateButton);
            this.FourPlayerPage.Controls.Add(this.EnterButton);
            this.FourPlayerPage.Controls.Add(this.FourPlayerList);
            this.FourPlayerPage.Location = new Point(4, 0x16);
            this.FourPlayerPage.Name     = "FourPlayerPage";
            this.FourPlayerPage.Padding  = new Padding(3);
            this.FourPlayerPage.Size     = new Size(430, 0x1a1);
            this.FourPlayerPage.TabIndex = 2;
            this.FourPlayerPage.Text     = "4P对战";
            this.FourPlayerPage.UseVisualStyleBackColor = true;
            this.CreateButton.Enabled  = false;
            this.CreateButton.Location = new Point(0x10c, 0x183);
            this.CreateButton.Name     = "CreateButton";
            this.CreateButton.Size     = new Size(0x4b, 0x17);
            this.CreateButton.TabIndex = 5;
            this.CreateButton.Text     = "创建(&C)";
            this.CreateButton.UseVisualStyleBackColor = true;
            this.CreateButton.Click  += new EventHandler(this.CreateButton_Click);
            this.EnterButton.Enabled  = false;
            this.EnterButton.Location = new Point(0x15d, 0x183);
            this.EnterButton.Name     = "EnterButton";
            this.EnterButton.Size     = new Size(0x4b, 0x17);
            this.EnterButton.TabIndex = 4;
            this.EnterButton.Text     = "进入(&E)";
            this.EnterButton.UseVisualStyleBackColor = true;
            this.EnterButton.Click += new EventHandler(this.EnterButton_Click);
            this.FourPlayerList.Columns.AddRange(new ColumnHeader[] { this.RoomNameColumn, this.PlayerCount });
            this.FourPlayerList.FullRowSelect = true;
            this.FourPlayerList.Location      = new Point(0, 0);
            this.FourPlayerList.MultiSelect   = false;
            this.FourPlayerList.Name          = "FourPlayerList";
            this.FourPlayerList.Size          = new Size(430, 0x173);
            this.FourPlayerList.TabIndex      = 3;
            this.FourPlayerList.UseCompatibleStateImageBehavior = false;
            this.FourPlayerList.View = View.Details;
            this.FourPlayerList.SelectedIndexChanged += new EventHandler(this.FourPlayerList_SelectedIndexChanged);
            this.RoomNameColumn.Text  = "4P房间";
            this.RoomNameColumn.Width = 0xfc;
            this.PlayerCount.Text     = "人数";
            this.PlayerCount.Width    = 0x60;
            this.MainMenu.AllowMerge  = false;
            this.MainMenu.Items.AddRange(new ToolStripItem[] { this.RoomMenuItem, this.ChatsMenuItem });
            this.MainMenu.Location = new Point(0, 0);
            this.MainMenu.Name     = "MainMenu";
            this.MainMenu.Size     = new Size(0x284, 0x19);
            this.MainMenu.TabIndex = 6;
            this.RoomMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.UserInfoMenuItem, this.AwayMenuItem, this.ExitMenuItem });
            this.RoomMenuItem.Enabled         = false;
            this.RoomMenuItem.Name            = "RoomMenuItem";
            this.RoomMenuItem.Size            = new Size(60, 0x15);
            this.RoomMenuItem.Text            = "房间(&R)";
            this.UserInfoMenuItem.Name        = "UserInfoMenuItem";
            this.UserInfoMenuItem.Size        = new Size(0x8b, 0x16);
            this.UserInfoMenuItem.Text        = "用户信息(&S)";
            this.UserInfoMenuItem.Click      += new EventHandler(this.UserInfoMenuItem_Click);
            this.AwayMenuItem.CheckOnClick    = true;
            this.AwayMenuItem.Name            = "AwayMenuItem";
            this.AwayMenuItem.Size            = new Size(0x8b, 0x16);
            this.AwayMenuItem.Text            = "离开(&A)";
            this.AwayMenuItem.CheckedChanged += new EventHandler(this.AwayMenuItem_CheckedChanged);
            this.ExitMenuItem.Name            = "ExitMenuItem";
            this.ExitMenuItem.Size            = new Size(0x8b, 0x16);
            this.ExitMenuItem.Text            = "退出(&X)";
            this.ExitMenuItem.Click          += new EventHandler(this.ExitMenuItem_Click);
            this.ChatsMenuItem.Enabled        = false;
            this.ChatsMenuItem.Name           = "ChatsMenuItem";
            this.ChatsMenuItem.Size           = new Size(0x54, 0x15);
            this.ChatsMenuItem.Text           = "私人聊天(&C)";
            base.AutoScaleDimensions          = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize    = new Size(0x284, 470);
            base.Controls.Add(this.MainMenu);
            base.Controls.Add(this.RoomTab);
            base.Controls.Add(this.UserList);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.MaximizeBox     = false;
            base.Name            = "RoomClientForm";
            this.Text            = "房间窗口";
            base.Load           += new EventHandler(this.RoomUserForm_Load);
            this.UserMenu.ResumeLayout(false);
            this.RoomTab.ResumeLayout(false);
            this.ChatPage.ResumeLayout(false);
            this.ChatPage.PerformLayout();
            this.FourPlayerPage.ResumeLayout(false);
            this.MainMenu.ResumeLayout(false);
            this.MainMenu.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 25
0
 private void InitializeComponent()
 {
     this.components              = new System.ComponentModel.Container();
     this.timer1                  = new System.Windows.Forms.Timer(this.components);
     this.lblDateTime             = new System.Windows.Forms.Label();
     this.label2                  = new System.Windows.Forms.Label();
     this.label3                  = new System.Windows.Forms.Label();
     this.lblSalMali              = new System.Windows.Forms.Label();
     this.btnLine                 = new System.Windows.Forms.Label();
     this.label6                  = new System.Windows.Forms.Label();
     this.label8                  = new System.Windows.Forms.Label();
     this.btnShortcutDesk         = new System.Windows.Forms.Label();
     this.label10                 = new System.Windows.Forms.Label();
     this.msUserActivs            = new System.Windows.Forms.MenuStrip();
     this.miRestartApplication    = new System.Windows.Forms.ToolStripMenuItem();
     this.miUserActivs            = new System.Windows.Forms.ToolStripMenuItem();
     this.sadfsfToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.lblClose                = new System.Windows.Forms.PictureBox();
     this.lblMinimis              = new System.Windows.Forms.Label();
     this.lblMaximis              = new System.Windows.Forms.Label();
     this.msUserActivs.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lblClose)).BeginInit();
     this.SuspendLayout();
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // lblDateTime
     //
     this.lblDateTime.BackColor   = System.Drawing.Color.Transparent;
     this.lblDateTime.Cursor      = System.Windows.Forms.Cursors.Arrow;
     this.lblDateTime.Font        = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblDateTime.Location    = new System.Drawing.Point(3, 5);
     this.lblDateTime.Name        = "lblDateTime";
     this.lblDateTime.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.lblDateTime.Size        = new System.Drawing.Size(160, 31);
     this.lblDateTime.TabIndex    = 5;
     this.lblDateTime.Text        = "1398/08/08   12/12/12";
     this.lblDateTime.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(81)))), ((int)(((byte)(100)))));
     this.label2.Cursor    = System.Windows.Forms.Cursors.Arrow;
     this.label2.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location  = new System.Drawing.Point(164, 2);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(3, 38);
     this.label2.TabIndex  = 6;
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(81)))), ((int)(((byte)(100)))));
     this.label3.Cursor    = System.Windows.Forms.Cursors.Arrow;
     this.label3.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location  = new System.Drawing.Point(287, 1);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(3, 38);
     this.label3.TabIndex  = 8;
     //
     // lblSalMali
     //
     this.lblSalMali.BackColor   = System.Drawing.Color.Transparent;
     this.lblSalMali.Cursor      = System.Windows.Forms.Cursors.Arrow;
     this.lblSalMali.Font        = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblSalMali.Location    = new System.Drawing.Point(167, 5);
     this.lblSalMali.Name        = "lblSalMali";
     this.lblSalMali.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.lblSalMali.Size        = new System.Drawing.Size(120, 31);
     this.lblSalMali.TabIndex    = 7;
     this.lblSalMali.Text        = "سال جاري";
     this.lblSalMali.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btnLine
     //
     this.btnLine.BackColor   = System.Drawing.Color.Transparent;
     this.btnLine.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.btnLine.Font        = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnLine.Location    = new System.Drawing.Point(292, 1);
     this.btnLine.Name        = "btnLine";
     this.btnLine.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.btnLine.Size        = new System.Drawing.Size(200, 36);
     this.btnLine.TabIndex    = 7;
     this.btnLine.Text        = "لاين فروش انتخاب نشده";
     this.btnLine.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnLine.Click      += new System.EventHandler(this.btnLine_Click);
     this.btnLine.MouseEnter += new System.EventHandler(this.label_MouseEnter);
     this.btnLine.MouseLeave += new System.EventHandler(this.label_MouseLeave);
     //
     // label6
     //
     this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(81)))), ((int)(((byte)(100)))));
     this.label6.Cursor    = System.Windows.Forms.Cursors.Arrow;
     this.label6.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.Location  = new System.Drawing.Point(493, 1);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(3, 38);
     this.label6.TabIndex  = 8;
     //
     // label8
     //
     this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(81)))), ((int)(((byte)(100)))));
     this.label8.Cursor    = System.Windows.Forms.Cursors.Arrow;
     this.label8.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label8.Location  = new System.Drawing.Point(621, 0);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(3, 38);
     this.label8.TabIndex  = 8;
     //
     // btnShortcutDesk
     //
     this.btnShortcutDesk.BackColor   = System.Drawing.Color.Transparent;
     this.btnShortcutDesk.Cursor      = System.Windows.Forms.Cursors.Hand;
     this.btnShortcutDesk.Font        = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnShortcutDesk.Location    = new System.Drawing.Point(625, 1);
     this.btnShortcutDesk.Name        = "btnShortcutDesk";
     this.btnShortcutDesk.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.btnShortcutDesk.Size        = new System.Drawing.Size(150, 36);
     this.btnShortcutDesk.TabIndex    = 7;
     this.btnShortcutDesk.Text        = "ميزكار";
     this.btnShortcutDesk.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnShortcutDesk.Click      += new System.EventHandler(this.lblShortcutDesk_Click);
     this.btnShortcutDesk.MouseEnter += new System.EventHandler(this.label_MouseEnter);
     this.btnShortcutDesk.MouseLeave += new System.EventHandler(this.label_MouseLeave);
     //
     // label10
     //
     this.label10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(81)))), ((int)(((byte)(100)))));
     this.label10.Cursor    = System.Windows.Forms.Cursors.Arrow;
     this.label10.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location  = new System.Drawing.Point(776, 0);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(3, 38);
     this.label10.TabIndex  = 8;
     //
     // msUserActivs
     //
     this.msUserActivs.AutoSize  = false;
     this.msUserActivs.BackColor = System.Drawing.Color.Transparent;
     this.msUserActivs.Dock      = System.Windows.Forms.DockStyle.None;
     this.msUserActivs.Font      = new System.Drawing.Font("IRANSans(FaNum)", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.msUserActivs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.miRestartApplication,
         this.miUserActivs
     });
     this.msUserActivs.Location = new System.Drawing.Point(439, 1);
     this.msUserActivs.Name     = "msUserActivs";
     this.msUserActivs.Size     = new System.Drawing.Size(180, 36);
     this.msUserActivs.TabIndex = 9;
     this.msUserActivs.Text     = "menuStrip1";
     //
     // miRestartApplication
     //
     this.miRestartApplication.AutoSize          = false;
     this.miRestartApplication.DisplayStyle      = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.miRestartApplication.Image             = global::Atiran.MenuBar.Properties.Resources.icoUser;
     this.miRestartApplication.Name              = "miRestartApplication";
     this.miRestartApplication.Size              = new System.Drawing.Size(28, 37);
     this.miRestartApplication.Text              = " ";
     this.miRestartApplication.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.miRestartApplication.Click            += new System.EventHandler(this.miRestartApplication_Click);
     //
     // miUserActivs
     //
     this.miUserActivs.AutoSize     = false;
     this.miUserActivs.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.miUserActivs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.sadfsfToolStripMenuItem
     });
     this.miUserActivs.Font              = new System.Drawing.Font("Segoe UI", 10F);
     this.miUserActivs.ForeColor         = System.Drawing.Color.White;
     this.miUserActivs.Name              = "miUserActivs";
     this.miUserActivs.RightToLeft       = System.Windows.Forms.RightToLeft.Yes;
     this.miUserActivs.Size              = new System.Drawing.Size(94, 37);
     this.miUserActivs.Text              = "كاربر";
     this.miUserActivs.TextAlign         = System.Drawing.ContentAlignment.MiddleLeft;
     this.miUserActivs.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     //
     // sadfsfToolStripMenuItem
     //
     this.sadfsfToolStripMenuItem.AutoSize     = false;
     this.sadfsfToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.sadfsfToolStripMenuItem.Image        = global::Atiran.MenuBar.Properties.Resources.expandleft;
     this.sadfsfToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.sadfsfToolStripMenuItem.Name         = "sadfsfToolStripMenuItem";
     this.sadfsfToolStripMenuItem.Size         = new System.Drawing.Size(180, 24);
     this.sadfsfToolStripMenuItem.Text         = "sadfsf";
     //
     // lblClose
     //
     this.lblClose.Anchor                = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblClose.BackColor             = System.Drawing.Color.Transparent;
     this.lblClose.BackgroundImage       = global::Atiran.MenuBar.Properties.Resources.Exit_1;
     this.lblClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     this.lblClose.Location              = new System.Drawing.Point(1060, 1);
     this.lblClose.Name        = "lblClose";
     this.lblClose.Size        = new System.Drawing.Size(34, 38);
     this.lblClose.TabIndex    = 10;
     this.lblClose.TabStop     = false;
     this.lblClose.Click      += new System.EventHandler(this.lblClose_Click);
     this.lblClose.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.lblClose_MouseDown);
     this.lblClose.MouseEnter += new System.EventHandler(this.label_MouseEnter);
     this.lblClose.MouseLeave += new System.EventHandler(this.label_MouseLeave);
     //
     // lblMinimis
     //
     this.lblMinimis.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblMinimis.BackColor   = System.Drawing.Color.Transparent;
     this.lblMinimis.Cursor      = System.Windows.Forms.Cursors.Arrow;
     this.lblMinimis.Font        = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.lblMinimis.ForeColor   = System.Drawing.Color.Transparent;
     this.lblMinimis.Image       = global::Atiran.MenuBar.Properties.Resources.Minimis_1;
     this.lblMinimis.Location    = new System.Drawing.Point(996, 1);
     this.lblMinimis.Name        = "lblMinimis";
     this.lblMinimis.Size        = new System.Drawing.Size(32, 38);
     this.lblMinimis.TabIndex    = 4;
     this.lblMinimis.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblMinimis.Click      += new System.EventHandler(this.lblMinimis_Click);
     this.lblMinimis.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.label_MouseDown);
     this.lblMinimis.MouseEnter += new System.EventHandler(this.label_MouseEnter);
     this.lblMinimis.MouseLeave += new System.EventHandler(this.label_MouseLeave);
     //
     // lblMaximis
     //
     this.lblMaximis.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.lblMaximis.BackColor   = System.Drawing.Color.Transparent;
     this.lblMaximis.Cursor      = System.Windows.Forms.Cursors.Arrow;
     this.lblMaximis.Font        = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.lblMaximis.ForeColor   = System.Drawing.Color.Transparent;
     this.lblMaximis.Image       = global::Atiran.MenuBar.Properties.Resources.Maximis_1;
     this.lblMaximis.Location    = new System.Drawing.Point(1028, 1);
     this.lblMaximis.Name        = "lblMaximis";
     this.lblMaximis.Size        = new System.Drawing.Size(32, 38);
     this.lblMaximis.TabIndex    = 3;
     this.lblMaximis.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblMaximis.Click      += new System.EventHandler(this.lblMaximis_Click);
     this.lblMaximis.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.label_MouseDown);
     this.lblMaximis.MouseEnter += new System.EventHandler(this.label_MouseEnter);
     this.lblMaximis.MouseLeave += new System.EventHandler(this.label_MouseLeave);
     //
     // MainButton
     //
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(100)))), ((int)(((byte)(123)))));
     this.Controls.Add(this.lblClose);
     this.Controls.Add(this.lblDateTime);
     this.Controls.Add(this.lblSalMali);
     this.Controls.Add(this.btnLine);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.btnShortcutDesk);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lblMinimis);
     this.Controls.Add(this.lblMaximis);
     this.Controls.Add(this.msUserActivs);
     this.Font        = new System.Drawing.Font("IRANSans(FaNum)", 8.249999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.ForeColor   = System.Drawing.Color.White;
     this.Name        = "MainButton";
     this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.Size        = new System.Drawing.Size(1094, 278);
     this.Load       += new System.EventHandler(this.MainButton_Load);
     this.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.MainButton_MouseDown);
     this.msUserActivs.ResumeLayout(false);
     this.msUserActivs.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.lblClose)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 26
0
        // </snippet2>

        #region Windows Form Designer generated code

        private void InitializeComponent()
        {
            this.menuStrip1           = new System.Windows.Forms.MenuStrip();
            this.toolStripMenuItem1   = new System.Windows.Forms.ToolStripMenuItem();
            this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripPanel1      = new System.Windows.Forms.ToolStripPanel();
            this.toolStrip1           = new System.Windows.Forms.ToolStrip();
            this.toolStripPanel2      = new System.Windows.Forms.ToolStripPanel();
            this.toolStrip2           = new System.Windows.Forms.ToolStrip();
            this.toolStripPanel3      = new System.Windows.Forms.ToolStripPanel();
            this.toolStrip3           = new System.Windows.Forms.ToolStrip();
            this.toolStripPanel4      = new System.Windows.Forms.ToolStripPanel();
            this.toolStrip4           = new System.Windows.Forms.ToolStrip();
            this.menuStrip1.SuspendLayout();
            this.toolStripPanel1.SuspendLayout();
            this.toolStripPanel2.SuspendLayout();
            this.toolStripPanel3.SuspendLayout();
            this.toolStripPanel4.SuspendLayout();
            this.SuspendLayout();
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripMenuItem1
            });
            this.menuStrip1.Location          = new System.Drawing.Point(0, 0);
            this.menuStrip1.MdiWindowListItem = this.toolStripMenuItem1;
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(292, 24);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // toolStripMenuItem1
            //
            this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.newToolStripMenuItem
            });
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(57, 20);
            this.toolStripMenuItem1.Text = "Window";
            //
            // newToolStripMenuItem
            //
            this.newToolStripMenuItem.Name   = "newToolStripMenuItem";
            this.newToolStripMenuItem.Size   = new System.Drawing.Size(106, 22);
            this.newToolStripMenuItem.Text   = "New";
            this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
            //
            // toolStripPanel1
            //
            this.toolStripPanel1.Controls.Add(this.toolStrip1);
            this.toolStripPanel1.Dock        = System.Windows.Forms.DockStyle.Left;
            this.toolStripPanel1.Location    = new System.Drawing.Point(0, 49);
            this.toolStripPanel1.Name        = "toolStripPanel1";
            this.toolStripPanel1.Orientation = System.Windows.Forms.Orientation.Vertical;
            this.toolStripPanel1.RowMargin   = new System.Windows.Forms.Padding(0, 3, 0, 0);
            this.toolStripPanel1.Size        = new System.Drawing.Size(26, 199);
            //
            // toolStrip1
            //
            this.toolStrip1.Dock     = System.Windows.Forms.DockStyle.None;
            this.toolStrip1.Location = new System.Drawing.Point(0, 3);
            this.toolStrip1.Name     = "toolStrip1";
            this.toolStrip1.Size     = new System.Drawing.Size(26, 109);
            this.toolStrip1.TabIndex = 0;
            //
            // toolStripPanel2
            //
            this.toolStripPanel2.Controls.Add(this.toolStrip2);
            this.toolStripPanel2.Dock        = System.Windows.Forms.DockStyle.Top;
            this.toolStripPanel2.Location    = new System.Drawing.Point(0, 24);
            this.toolStripPanel2.Name        = "toolStripPanel2";
            this.toolStripPanel2.Orientation = System.Windows.Forms.Orientation.Horizontal;
            this.toolStripPanel2.RowMargin   = new System.Windows.Forms.Padding(3, 0, 0, 0);
            this.toolStripPanel2.Size        = new System.Drawing.Size(292, 25);
            //
            // toolStrip2
            //
            this.toolStrip2.Dock     = System.Windows.Forms.DockStyle.None;
            this.toolStrip2.Location = new System.Drawing.Point(3, 0);
            this.toolStrip2.Name     = "toolStrip2";
            this.toolStrip2.Size     = new System.Drawing.Size(109, 25);
            this.toolStrip2.TabIndex = 0;
            //
            // toolStripPanel3
            //
            this.toolStripPanel3.Controls.Add(this.toolStrip3);
            this.toolStripPanel3.Dock        = System.Windows.Forms.DockStyle.Right;
            this.toolStripPanel3.Location    = new System.Drawing.Point(266, 49);
            this.toolStripPanel3.Name        = "toolStripPanel3";
            this.toolStripPanel3.Orientation = System.Windows.Forms.Orientation.Vertical;
            this.toolStripPanel3.RowMargin   = new System.Windows.Forms.Padding(0, 3, 0, 0);
            this.toolStripPanel3.Size        = new System.Drawing.Size(26, 199);
            //
            // toolStrip3
            //
            this.toolStrip3.Dock     = System.Windows.Forms.DockStyle.None;
            this.toolStrip3.Location = new System.Drawing.Point(0, 3);
            this.toolStrip3.Name     = "toolStrip3";
            this.toolStrip3.Size     = new System.Drawing.Size(26, 109);
            this.toolStrip3.TabIndex = 0;
            //
            // toolStripPanel4
            //
            this.toolStripPanel4.Controls.Add(this.toolStrip4);
            this.toolStripPanel4.Dock        = System.Windows.Forms.DockStyle.Bottom;
            this.toolStripPanel4.Location    = new System.Drawing.Point(0, 248);
            this.toolStripPanel4.Name        = "toolStripPanel4";
            this.toolStripPanel4.Orientation = System.Windows.Forms.Orientation.Horizontal;
            this.toolStripPanel4.RowMargin   = new System.Windows.Forms.Padding(3, 0, 0, 0);
            this.toolStripPanel4.Size        = new System.Drawing.Size(292, 25);
            //
            // toolStrip4
            //
            this.toolStrip4.Dock     = System.Windows.Forms.DockStyle.None;
            this.toolStrip4.Location = new System.Drawing.Point(3, 0);
            this.toolStrip4.Name     = "toolStrip4";
            this.toolStrip4.Size     = new System.Drawing.Size(109, 25);
            this.toolStrip4.TabIndex = 0;
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(292, 273);
            this.Controls.Add(this.toolStripPanel3);
            this.Controls.Add(this.toolStripPanel1);
            this.Controls.Add(this.toolStripPanel2);
            this.Controls.Add(this.menuStrip1);
            this.Controls.Add(this.toolStripPanel4);
            this.IsMdiContainer = true;
            this.MainMenuStrip  = this.menuStrip1;
            this.Name           = "Form1";
            this.Text           = "Form1";
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStripPanel1.ResumeLayout(false);
            this.toolStripPanel1.PerformLayout();
            this.toolStripPanel2.ResumeLayout(false);
            this.toolStripPanel2.PerformLayout();
            this.toolStripPanel3.ResumeLayout(false);
            this.toolStripPanel3.PerformLayout();
            this.toolStripPanel4.ResumeLayout(false);
            this.toolStripPanel4.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 27
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(clipboard));
     this.textBox1               = new System.Windows.Forms.RichTextBox();
     this.timer1                 = new System.Windows.Forms.Timer(this.components);
     this.menuStrip1             = new System.Windows.Forms.MenuStrip();
     this.getToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.setToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.textBox1.Location = new System.Drawing.Point(0, 24);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(583, 375);
     this.textBox1.TabIndex = 3;
     this.textBox1.Text     = "";
     //
     // timer1
     //
     this.timer1.Enabled  = true;
     this.timer1.Interval = 500;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.getToolStripMenuItem,
         this.setToolStripMenuItem,
         this.clearToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(583, 24);
     this.menuStrip1.TabIndex = 4;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // getToolStripMenuItem
     //
     this.getToolStripMenuItem.Image  = ((System.Drawing.Image)(resources.GetObject("getToolStripMenuItem.Image")));
     this.getToolStripMenuItem.Name   = "getToolStripMenuItem";
     this.getToolStripMenuItem.Size   = new System.Drawing.Size(53, 20);
     this.getToolStripMenuItem.Text   = "Get";
     this.getToolStripMenuItem.Click += new System.EventHandler(this.getToolStripMenuItem_Click);
     //
     // setToolStripMenuItem
     //
     this.setToolStripMenuItem.Image  = ((System.Drawing.Image)(resources.GetObject("setToolStripMenuItem.Image")));
     this.setToolStripMenuItem.Name   = "setToolStripMenuItem";
     this.setToolStripMenuItem.Size   = new System.Drawing.Size(51, 20);
     this.setToolStripMenuItem.Text   = "Set";
     this.setToolStripMenuItem.Click += new System.EventHandler(this.setToolStripMenuItem_Click);
     //
     // clearToolStripMenuItem
     //
     this.clearToolStripMenuItem.Image  = ((System.Drawing.Image)(resources.GetObject("clearToolStripMenuItem.Image")));
     this.clearToolStripMenuItem.Name   = "clearToolStripMenuItem";
     this.clearToolStripMenuItem.Size   = new System.Drawing.Size(62, 20);
     this.clearToolStripMenuItem.Text   = "Clear";
     this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
     //
     // clipboard
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(583, 399);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.menuStrip1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MainMenuStrip   = this.menuStrip1;
     this.Name            = "clipboard";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Clipboard";
     this.Load           += new System.EventHandler(this.clipboard_Load);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 28
0
	public MainForm ()
	{
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		_menuStrip.TabIndex = 1;
		Controls.Add (_menuStrip);
		// 
		// _fileToolStripMenuItem
		// 
		_fileToolStripMenuItem = new ToolStripMenuItem ();
		_fileToolStripMenuItem.Text = "&File";
		_menuStrip.Items.Add (_fileToolStripMenuItem);
		// 
		// _newToolStripMenuItem
		// 
		_newToolStripMenuItem = new ToolStripMenuItem ();
		_newToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.N)));
		_newToolStripMenuItem.Text = "&New";
		_newToolStripMenuItem.Click += new EventHandler (NewToolStripMenuItem_Click);
		_fileToolStripMenuItem.DropDownItems.Add (_newToolStripMenuItem);
		// 
		// _toolStripSeparator
		// 
		_toolStripSeparator = new ToolStripSeparator ();
		_fileToolStripMenuItem.DropDownItems.Add (_toolStripSeparator);
		// 
		// _exitToolStripMenuItem
		// 
		_exitToolStripMenuItem = new ToolStripMenuItem ();
		_exitToolStripMenuItem.Text = "E&xit";
		_exitToolStripMenuItem.Click += new EventHandler (ExitToolStripMenuItem_Click);
		_fileToolStripMenuItem.DropDownItems.Add (_exitToolStripMenuItem);
		// 
		// _windowToolStripMenuItem
		// 
		_windowToolStripMenuItem = new ToolStripMenuItem ();
		_windowToolStripMenuItem.Text = "&Window";
		_menuStrip.Items.Add (_windowToolStripMenuItem);
		_menuStrip.MdiWindowListItem = _windowToolStripMenuItem;
		// 
		// _arrangeIconsToolStripMenuItem
		// 
		_arrangeIconsToolStripMenuItem = new ToolStripMenuItem ();
		_arrangeIconsToolStripMenuItem.Text = "&Arrange Icons";
		_arrangeIconsToolStripMenuItem.Click += new EventHandler (ArrangeIconsToolStripMenuItem_Click);
		_windowToolStripMenuItem.DropDownItems.Add (_arrangeIconsToolStripMenuItem);
		// 
		// _cascadeToolStripMenuItem
		// 
		_cascadeToolStripMenuItem = new ToolStripMenuItem ();
		_cascadeToolStripMenuItem.Text = "&Cascade";
		_cascadeToolStripMenuItem.Click += new EventHandler (CascadeToolStripMenuItem_Click);
		_windowToolStripMenuItem.DropDownItems.Add (_cascadeToolStripMenuItem);
		// 
		// _tileVerticallyToolStripMenuItem
		// 
		_tileVerticallyToolStripMenuItem = new ToolStripMenuItem ();
		_tileVerticallyToolStripMenuItem.Text = "Tile &Vertically";
		_tileVerticallyToolStripMenuItem.Click += new EventHandler (TileVerticallyToolStripMenuItem_Click);
		_windowToolStripMenuItem.DropDownItems.Add (_tileVerticallyToolStripMenuItem);
		// 
		// _tileHorizontallyToolStripMenuItem
		// 
		_tileHorizontallyToolStripMenuItem = new ToolStripMenuItem ();
		_tileHorizontallyToolStripMenuItem.Text = "Tile &Horizontally";
		_tileHorizontallyToolStripMenuItem.Click += new EventHandler (TileHorizontallyToolStripMenuItem_Click);
		_windowToolStripMenuItem.DropDownItems.Add (_tileHorizontallyToolStripMenuItem);
		// 
		// _closeAllToolStripMenuItem
		// 
		_closeAllToolStripMenuItem = new ToolStripMenuItem ();
		_closeAllToolStripMenuItem.Text = "C&lose All";
		_closeAllToolStripMenuItem.Click += new EventHandler (CloseAllToolStripMenuItem_Click);
		_windowToolStripMenuItem.DropDownItems.Add (_closeAllToolStripMenuItem);
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (300, 200);
		IsMdiContainer = true;
		Location = new Point (250, 100);
		MainMenuStrip = _menuStrip;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82803";
		Load += new EventHandler (MainForm_Load);
	}
Esempio n. 29
0
        private void CreateMenu(CommandGroup [] groups)
        {
            _menuStrip = new MenuStrip ();
            _pluginMenu = new ToolStripMenuItem ("Plugins");
            foreach (CommandGroup cg in groups) {
                var topItem = new ToolStripMenuItem (cg.Name);
                topItem.DropDownItems.AddRange
                    (cg.Items.Select (x => new ToolStripMenuItem (x.Name, null, x.Event)).ToArray());

                _menuStrip.Items.Add (topItem);
            }
            _menuStrip.Items.Add (_pluginMenu);
            CollectPlugins ();
            MainMenuStrip = _menuStrip;
        }
Esempio n. 30
0
        internal MainForm()
        {
            components = new Container();

            // Main Menu
            openROMToolStripMenuItem = new ToolStripMenuItem {
                Text = "Open ROM", ShortcutKeys = Keys.Control | Keys.O
            };
            openROMToolStripMenuItem.Click += OpenROM;

            openMIDIToolStripMenuItem = new ToolStripMenuItem {
                Text = "Open MIDI", Enabled = false, ShortcutKeys = Keys.Control | Keys.M
            };
            openMIDIToolStripMenuItem.Click += OpenMIDIConverter;

            openASMToolStripMenuItem = new ToolStripMenuItem {
                Text = "Open ASM", Enabled = false, ShortcutKeys = Keys.Control | Keys.Shift | Keys.M
            };
            openASMToolStripMenuItem.Click += OpenAssembler;

            configToolStripMenuItem = new ToolStripMenuItem {
                Text = "Refresh Config", ShortcutKeys = Keys.Control | Keys.R
            };
            configToolStripMenuItem.Click += ReloadConfig;

            fileToolStripMenuItem = new ToolStripMenuItem {
                Text = "File"
            };
            fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { openROMToolStripMenuItem, openMIDIToolStripMenuItem, openASMToolStripMenuItem, configToolStripMenuItem });


            teToolStripMenuItem = new ToolStripMenuItem {
                Text = "Track Editor", Enabled = false, ShortcutKeys = Keys.Control | Keys.T
            };
            teToolStripMenuItem.Click += OpenTrackEditor;

            //eSf2ToolStripMenuItem = new ToolStripMenuItem { Text = "Export Voicetable To SF2", Enabled = false };
            //eSf2ToolStripMenuItem.Click += ExportSF2;

            eASMToolStripMenuItem = new ToolStripMenuItem {
                Text = "Export Song To ASM", Enabled = false
            };
            eASMToolStripMenuItem.Click += ExportASM;

            eMIDIToolStripMenuItem = new ToolStripMenuItem {
                Text = "Export Song To MIDI", Enabled = false
            };
            eMIDIToolStripMenuItem.Click += ExportMIDI;

            dataToolStripMenuItem = new ToolStripMenuItem {
                Text = "Data"
            };
            dataToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { teToolStripMenuItem, /*eSf2ToolStripMenuItem, */ eASMToolStripMenuItem, eMIDIToolStripMenuItem });


            mainMenu = new MenuStrip {
                Size = new Size(iWidth, 24)
            };
            mainMenu.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem, dataToolStripMenuItem });

            // Buttons
            playButton = new ThemedButton {
                ForeColor = Color.MediumSpringGreen, Location = new Point(5, 3), Text = "Play"
            };
            playButton.Click += Play;
            pauseButton       = new ThemedButton {
                ForeColor = Color.DeepSkyBlue, Location = new Point(85, 3), Text = "Pause"
            };
            pauseButton.Click += Pause;
            stopButton         = new ThemedButton {
                ForeColor = Color.MediumVioletRed, Location = new Point(166, 3), Text = "Stop"
            };
            stopButton.Click += Stop;

            playButton.Enabled = pauseButton.Enabled = stopButton.Enabled = false;
            playButton.Size    = stopButton.Size = new Size(75, 23);
            pauseButton.Size   = new Size(76, 23);

            // Numericals
            songNumerical = new ThemedNumeric {
                Enabled = false, Location = new Point(246, 4)
            };
            tableNumerical = new ThemedNumeric {
                Location = new Point(246, 35), Maximum = 0, Visible = false
            };

            songNumerical.Size           = tableNumerical.Size = new Size(45, 23);
            songNumerical.ValueChanged  += LoadSong;
            tableNumerical.ValueChanged += TableChanged;

            // Labels
            creatorLabel = new ThemedLabel {
                Location = new Point(3, 43), Size = new Size(72, 13)
            };
            gameLabel = new ThemedLabel {
                Location = new Point(3, 30), Size = new Size(66, 13)
            };
            codeLabel = new ThemedLabel {
                Location = new Point(3, 56), Size = new Size(63, 13)
            };

            creatorLabel.AutoSize  = gameLabel.AutoSize = codeLabel.AutoSize = true;
            creatorLabel.TextAlign = gameLabel.TextAlign = codeLabel.TextAlign = ContentAlignment.MiddleCenter;

            // Timer
            timer       = new Timer(components);
            timer.Tick += UpdateUI;

            // Piano
            piano = new PianoControl {
                Anchor = AnchorStyles.Bottom, Location = new Point(0, 125 - 50 - 1), Size = new Size(iWidth, 50)
            };

            // Volume bar & Position bar
            int sWidth = (int)(iWidth / sfWidth);
            int sX     = iWidth - sWidth - 4;

            positionBar = new ColorSlider()
            {
                Anchor   = AnchorStyles.Top | AnchorStyles.Right,
                Enabled  = false,
                Location = new Point(sX, 45),
                Maximum  = 0,
                Size     = new Size(sWidth, 27)
            };
            positionBar.MouseUp   += SetPosition;
            positionBar.MouseDown += (o, e) => drag = true;
            volumeBar              = new ColorSlider()
            {
                LargeChange = 20,
                Location    = new Point(83, 45),
                Maximum     = 100,
                Size        = new Size(155, 27),
                SmallChange = 5
            };
            volumeBar.ValueChanged += (o, e) => SoundMixer.MasterVolume = (volumeBar.Value / (float)volumeBar.Maximum);
            volumeBar.Value         = Config.Volume; // Update MusicPlayer volume

            // Playlist box
            ImageList il = new ImageList(components)
            {
                ColorDepth       = ColorDepth.Depth16Bit,
                ImageSize        = new Size(64, 64),
                TransparentColor = Color.Transparent
            };

            il.Images.AddRange(new Image[] { Resources.PlaylistIcon, Resources.SongIcon });
            songsComboBox = new ImageComboBox.ImageComboBox()
            {
                Anchor    = AnchorStyles.Top | AnchorStyles.Right,
                Enabled   = false,
                ImageList = il,
                Indent    = 15,
                Location  = new Point(sX, 4),
                Size      = new Size(sWidth, 23)
            };
            songsComboBox.SelectedIndexChanged += SongsComboBox_SelectedIndexChanged;

            // Track info
            trackInfo = new TrackInfoControl()
            {
                Dock = DockStyle.Fill,
                Size = new Size(iWidth, 690)
            };

            // Split container
            splitContainer = new SplitContainer()
            {
                BackColor        = Theme.TitleBar,
                Dock             = DockStyle.Fill,
                FixedPanel       = FixedPanel.Panel1,
                IsSplitterFixed  = true,
                Orientation      = Orientation.Horizontal,
                Size             = new Size(iWidth, iHeight),
                SplitterDistance = 125,
                SplitterWidth    = 1
            };
            splitContainer.Panel1.Controls.AddRange(new Control[] { playButton, creatorLabel, gameLabel, codeLabel, pauseButton, stopButton, songNumerical, tableNumerical, songsComboBox, piano, positionBar, volumeBar });
            splitContainer.Panel2.Controls.Add(trackInfo);

            // MainForm
            AutoScaleDimensions = new SizeF(6F, 13F);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(iWidth, iHeight);
            Controls.AddRange(new Control[] { splitContainer, mainMenu });
            Icon                  = Resources.Icon;
            MainMenuStrip         = mainMenu;
            MinimumSize           = new Size(8 + iWidth + 8, 30 + iHeight + 8); // Borders
            SongPlayer.SongEnded += () => stopUI = true;
            Resize               += OnResize;
            Text                  = "GBA Music Studio";
        }
Esempio n. 31
0
	public MainForm ()
	{
		// 
		// menuStrip
		// 
		menuStrip = new MenuStrip ();
		menuStrip.Location = new Point (0, 0);
		menuStrip.Size = new Size (632, 24);
		menuStrip.TabIndex = 0;
		menuStrip.Text = "MenuStrip";
		Controls.Add (menuStrip);
		// 
		// fileMenu
		// 
		fileMenu = new ToolStripMenuItem ();
		fileMenu.ImageTransparentColor = SystemColors.ActiveBorder;
		fileMenu.Size = new Size (35, 20);
		fileMenu.MergeAction = MergeAction.Append;
		fileMenu.MergeIndex = 1;
		fileMenu.Text = "&File";
		fileMenu.DropDownOpened += new EventHandler (FileMenu_DropDownOpened);
		menuStrip.Items.Add (fileMenu);
		// 
		// openToolStripMenuItem
		// 
		openToolStripMenuItem = new ToolStripMenuItem ();
		openToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.O)));
		openToolStripMenuItem.Size = new Size (151, 22);
		openToolStripMenuItem.Text = "&Open";
		openToolStripMenuItem.Click += new EventHandler (OpenFile);
		openToolStripMenuItem.MergeAction = MergeAction.Append;
		openToolStripMenuItem.MergeIndex = 2;
		fileMenu.DropDownItems.Add (openToolStripMenuItem);
		// 
		// toolStripSeparator4
		// 
		toolStripSeparator4 = new ToolStripSeparator ();
		toolStripSeparator4.Size = new Size (148, 6);
		toolStripSeparator4.MergeAction = MergeAction.Append;
		toolStripSeparator4.MergeIndex = 7;
		// 
		// exitToolStripMenuItem
		// 
		exitToolStripMenuItem = new ToolStripMenuItem ();
		exitToolStripMenuItem.Size = new Size (151, 22);
		exitToolStripMenuItem.Text = "E&xit";
		exitToolStripMenuItem.Click += new EventHandler (ExitToolsStripMenuItem_Click);
		exitToolStripMenuItem.MergeAction = MergeAction.Append;
		exitToolStripMenuItem.MergeIndex = 11;
		fileMenu.DropDownItems.Add (exitToolStripMenuItem);
		// 
		// windowsMenu
		// 
		windowsMenu = new ToolStripMenuItem ();
		windowsMenu.Size = new Size (62, 20);
		windowsMenu.Text = "&Windows";
		menuStrip.MdiWindowListItem = windowsMenu;
		menuStrip.Items.Add (windowsMenu);
		// 
		// cascadeToolStripMenuItem
		// 
		cascadeToolStripMenuItem = new ToolStripMenuItem ();
		cascadeToolStripMenuItem.Size = new Size (153, 22);
		cascadeToolStripMenuItem.Text = "&Cascade";
		cascadeToolStripMenuItem.Click += new EventHandler (CascadeToolStripMenuItem_Click);
		windowsMenu.DropDownItems.Add (cascadeToolStripMenuItem);
		// 
		// tileVerticalToolStripMenuItem
		// 
		tileVerticalToolStripMenuItem = new ToolStripMenuItem ();
		tileVerticalToolStripMenuItem.Size = new Size (153, 22);
		tileVerticalToolStripMenuItem.Text = "Tile &Vertical";
		windowsMenu.DropDownItems.Add (tileVerticalToolStripMenuItem);
		// 
		// tileHorizontalToolStripMenuItem
		// 
		tileHorizontalToolStripMenuItem = new ToolStripMenuItem ();
		tileHorizontalToolStripMenuItem.Size = new Size (153, 22);
		tileHorizontalToolStripMenuItem.Text = "Tile &Horizontal";
		tileHorizontalToolStripMenuItem.Click += new EventHandler (TileHorizontalToolStripMenuItem_Click);
		windowsMenu.DropDownItems.Add (tileHorizontalToolStripMenuItem);
		// 
		// closeAllToolStripMenuItem
		// 
		closeAllToolStripMenuItem = new ToolStripMenuItem ();
		closeAllToolStripMenuItem.Size = new Size (153, 22);
		closeAllToolStripMenuItem.Text = "C&lose All";
		closeAllToolStripMenuItem.Click += new EventHandler (CloseAllToolStripMenuItem_Click);
		windowsMenu.DropDownItems.Add (closeAllToolStripMenuItem);
		// 
		// arrangeIconsToolStripMenuItem
		// 
		arrangeIconsToolStripMenuItem = new ToolStripMenuItem ();
		arrangeIconsToolStripMenuItem.Size = new Size (153, 22);
		arrangeIconsToolStripMenuItem.Text = "&Arrange Icons";
		arrangeIconsToolStripMenuItem.Click += new EventHandler (ArrangeIconsToolStripMenuItem_Click);
		windowsMenu.DropDownItems.Add (arrangeIconsToolStripMenuItem);
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (400, 300);
		IsMdiContainer = true;
		Location = new Point (200, 100);
		MainMenuStrip = menuStrip;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82374";
		Load += new EventHandler (MainForm_Load);
	}
Esempio n. 32
0
        public FrmEditor()
        {
            _initialize = true;
            InitializeComponent();
            var version = Assembly.GetExecutingAssembly().GetName().Version;

            Text = string.Format("CodePad - v{0}.{1}.{2} (build: {3}) ©2020 KangaSoft Software", version.Major,
                                 version.Minor,
                                 version.MinorRevision, version.Build);
            /* Load application settings */
            SettingsManager.Load();
            /* Set window size, location and window state */
            ClientSize  = SettingsManager.ApplicationSettings.ApplicationWindow.Size;
            Location    = SettingsManager.ApplicationSettings.ApplicationWindow.Location;
            WindowState = SettingsManager.ApplicationSettings.ApplicationWindow.Maximized
                              ? FormWindowState.Maximized
                              : FormWindowState.Normal;
            /* Set menu and toolbar */
            _menu = new MenuStrip
            {
                CanOverflow = false,
                GripStyle   = ToolStripGripStyle.Visible,
                Stretch     = true,
                Padding     = new Padding(2, 2, 0, 2)
            };

            /* File */
            _mnuFile = new ToolStripMenuItem {
                AutoSize = true, Text = @"&File"
            };
            _mnuFile.DropDownItems.AddRange(
                new ToolStripItem[]
            {
                new ToolStripMenuItem("New", Properties.Resources.fileNew.ToBitmap(), MenuClickCallback, Keys.Control | Keys.N),
                new ToolStripSeparator(),
                new ToolStripMenuItem("Open", Properties.Resources.fileOpen.ToBitmap(), MenuClickCallback, Keys.Control | Keys.O),
                new ToolStripMenuItem("Save", Properties.Resources.fileSave.ToBitmap(), MenuClickCallback, Keys.Control | Keys.S),
                new ToolStripMenuItem("Save As...", Properties.Resources.fileSaveAs.ToBitmap(), MenuClickCallback, Keys.Control | Keys.Shift | Keys.S)
                ,
                new ToolStripMenuItem("Save All", Properties.Resources.fileSaveAll.ToBitmap(), MenuClickCallback),
                new ToolStripSeparator(),
                new ToolStripMenuItem("Close", Properties.Resources.fileClose.ToBitmap(), MenuClickCallback, Keys.Control | Keys.F4),
                new ToolStripSeparator(),
                new ToolStripMenuItem("Print", Properties.Resources.filePrint.ToBitmap(), MenuClickCallback, Keys.Control | Keys.P),
                new ToolStripSeparator(),
                new ToolStripMenuItem("Exit", Properties.Resources.fileExit.ToBitmap(), MenuClickCallback, Keys.Alt | Keys.F4)
            });
            /* View */
            _mnuView = new ToolStripMenuItem {
                AutoSize = true, Text = @"&View"
            };
            var theme = new ToolStripMenuItem {
                Text = @"Theme", Image = Properties.Resources.viewTheme.ToBitmap()
            };
            var index      = 0;
            var themeIndex = SettingsManager.ApplicationSettings.ApplicationWindow.Theme;

            foreach (var preset in ThemeManager.Presets)
            {
                var d = new ToolStripMenuItem(preset.Name)
                {
                    Tag = index
                };
                d.Click += MenuThemeClickCallback;
                if (index == themeIndex)
                {
                    d.Checked = true;
                }
                theme.DropDownItems.Add(d);
                index++;
            }
            _mnuView.DropDownItems.AddRange(new ToolStripItem[] { theme });
            /* Syntax */
            _mnuSyntax = new ToolStripMenuItem {
                AutoSize = true, Text = @"&Syntax"
            };
            _mnuSyntax.DropDownItems.AddRange(new ToolStripItem[]
            {
                new ToolStripMenuItem("Auto", null, MenuSyntaxClickCallback),
                new ToolStripSeparator(),
                new ToolStripMenuItem("CSharp (C#)", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("Visual Basic (VB)", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("HTML", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("XML", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("SQL", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("PHP", null, MenuSyntaxClickCallback),
                new ToolStripMenuItem("Java Script", null, MenuSyntaxClickCallback)
            });
            var lang = SettingsManager.ApplicationSettings.EditorWindow.SyntaxLanguage;

            if (SettingsManager.ApplicationSettings.EditorWindow.AutoHighLight)
            {
                ((ToolStripMenuItem)_mnuSyntax.DropDownItems[0]).Checked = true;
            }
            else if (lang != Language.Custom)
            {
                ((ToolStripMenuItem)_mnuSyntax.DropDownItems[(int)lang + 1]).Checked = true;
            }
            /* Help */
            _mnuHelp = new ToolStripMenuItem {
                AutoSize = true, Text = @"&Help"
            };
            _mnuHelp.DropDownItems.AddRange(new ToolStripItem[]
            {
                new ToolStripMenuItem("About", null, MenuClickCallback, Keys.None)
            });

            _menu.Items.AddRange(new ToolStripItem[] { _mnuFile, _mnuView, _mnuSyntax, _mnuHelp });

            _toolBar = new ToolStrip
            {
                Stretch          = true,
                AutoSize         = false,
                ImageScalingSize = new Size(16, 16),
                Padding          = new Padding(3, 0, 0, 1),
                Size             = new Size(704, 25)
            };

            _btnNew = new ToolStripMenuItem
            {
                Image        = Properties.Resources.fileNew.ToBitmap(),
                ImageScaling = ToolStripItemImageScaling.None,
                Size         = new Size(16, 16),
                ToolTipText  = @"New document",
                Tag          = "NEW"
            };
            _btnNew.Click += MenuClickCallback;

            _btnOpen = new ToolStripMenuItem
            {
                Image        = Properties.Resources.fileOpen.ToBitmap(),
                ImageScaling = ToolStripItemImageScaling.None,
                Size         = new Size(16, 16),
                ToolTipText  = @"Open",
                Tag          = "OPEN"
            };
            _btnOpen.Click += MenuClickCallback;

            _btnSave = new ToolStripMenuItem
            {
                Image        = Properties.Resources.fileSave.ToBitmap(),
                ImageScaling = ToolStripItemImageScaling.None,
                Size         = new Size(16, 16),
                ToolTipText  = @"Save",
                Tag          = "SAVE"
            };
            _btnSave.Click += MenuClickCallback;

            _btnSaveAll = new ToolStripMenuItem
            {
                Image        = Properties.Resources.fileSaveAll.ToBitmap(),
                ImageScaling = ToolStripItemImageScaling.None,
                Size         = new Size(16, 16),
                ToolTipText  = @"Save All",
                Tag          = "SAVE ALL"
            };
            _btnSaveAll.Click += MenuClickCallback;

            _btnPrint = new ToolStripMenuItem
            {
                Image        = Properties.Resources.filePrint.ToBitmap(),
                ImageScaling = ToolStripItemImageScaling.None,
                Size         = new Size(16, 16),
                ToolTipText  = @"Print",
                Tag          = "PRINT"
            };
            _btnPrint.Click += MenuClickCallback;

            _toolBar.Items.AddRange(new ToolStripItem[]
            {
                _btnNew,
                new ToolStripSeparator(),
                _btnOpen,
                _btnSave,
                _btnSaveAll,
                new ToolStripSeparator(),
                _btnPrint
            });

            _tsFiles = new FaTabStrip
            {
                Font =
                    new Font("Segoe UI", 9F, FontStyle.Regular,
                             GraphicsUnit.Point, 0),
                Location = new Point(136, 70),
                Dock     = DockStyle.Fill,
                Size     = new Size(350, 200),
                TabIndex = 10
            };
            _tsFiles.TabStripItemSelectionChanged += OnTabStripSelectionChanged;
            _tsFiles.TabStripItemClosing          += OnTabStripItemClosing;

            _doc = new DocumentControl(_tsFiles);

            _statusBar = new StatusStrip
            {
                Location   = new Point(0, 451),
                Padding    = new Padding(1, 0, 16, 0),
                RenderMode = ToolStripRenderMode.Professional,
                Size       = new Size(822, 22),
                Dock       = DockStyle.Bottom
            };

            Controls.AddRange(new Control[] { _tsFiles, _statusBar, _toolBar, _menu });
            /* Set renderers for toolbars */
            _statusBar.RenderMode = ToolStripRenderMode.ManagerRenderMode;

            ThemeManager.ThemeChanged += ThemeChanged;
            ToolStripManager.Renderer  = ThemeManager.Renderer;
            ThemeManager.SetTheme(SettingsManager.ApplicationSettings.ApplicationWindow.Theme);
            _initialize = false;
        }
        void BuildForm()
        {
            Label lbl = null;

            this.Text       = mFormText;
            this.Activated += new EventHandler(SettingsEntryForm_Activated);
            this.Height     = Font.Height * 25;
            this.Width      = Font.Height * 45;

            FlowLayoutPanel flow = new FlowLayoutPanel();

            flow.Parent = this;
            flow.Dock   = DockStyle.Fill;

            MenuStrip menu = new MenuStrip();

            menu.Parent = this;
            menu.Items.Add("Exit", null, menu_Exit_Click);

            // system name
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "System name";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbSystemName          = new TextBox();
            tbSystemName.Parent   = flow;
            tbSystemName.AutoSize = true;
            tbSystemName.Enter   += new EventHandler(tbSystemName_Enter);
            flow.SetFlowBreak(tbSystemName, true);

            // UserName
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "User name";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbUserName          = new TextBox();
            tbUserName.Parent   = flow;
            tbUserName.AutoSize = true;
            flow.SetFlowBreak(tbUserName, true);

            // password
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "Password";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbPassword              = new TextBox();
            tbPassword.Parent       = flow;
            tbPassword.AutoSize     = true;
            tbPassword.PasswordChar = '*';
            flow.SetFlowBreak(tbPassword, true);

            // sessId
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "Session ID";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbSessId          = new TextBox();
            tbSessId.Parent   = flow;
            tbSessId.AutoSize = true;
            flow.SetFlowBreak(tbSessId, true);

            // workstation profile file path
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "Wrkstn profile file path";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbPath_WrkstnProfile        = new TextBox();
            tbPath_WrkstnProfile.Parent = flow;
            tbPath_WrkstnProfile.Width  = Font.Height * 30;

            butPath_WrkstnProfile        = new Button();
            butPath_WrkstnProfile.Parent = flow;
            butPath_WrkstnProfile.Width  = Font.Height * 3;
            butPath_WrkstnProfile.Text   = "...";
            butPath_WrkstnProfile.Click += new EventHandler(butPath_WrkstnProfile_Click);
            flow.SetFlowBreak(butPath_WrkstnProfile, true);

            // pcsws file path
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "PCSWS file path";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbPath_pcsws        = new TextBox();
            tbPath_pcsws.Parent = flow;
            tbPath_pcsws.Width  = Font.Height * 25;

            butPath_pcsws        = new Button();
            butPath_pcsws.Parent = flow;
            butPath_pcsws.Width  = Font.Height * 3;
            butPath_pcsws.Text   = "...";
            butPath_pcsws.Click += new EventHandler(butPath_pcsws_Click);
            flow.SetFlowBreak(butPath_pcsws, true);

            // cwblogon file path
            lbl          = new Label();
            lbl.Parent   = flow;
            lbl.Text     = "CWBLOGON file path";
            lbl.AutoSize = true;
            lbl.Anchor   = AnchorStyles.Left;

            tbPath_cwblogon        = new TextBox();
            tbPath_cwblogon.Parent = flow;
            tbPath_cwblogon.Width  = Font.Height * 25;

            butPath_cwblogon        = new Button();
            butPath_cwblogon.Parent = flow;
            butPath_cwblogon.Width  = Font.Height * 3;
            butPath_cwblogon.Text   = "...";
            butPath_cwblogon.Click += new EventHandler(butPath_cwblogon_Click);
            flow.SetFlowBreak(butPath_cwblogon, true);

            // ok button
            butOk        = new Button();
            butOk.Parent = flow;
            butOk.Text   = "OK";
            butOk.Click += butOk_Click;

            // cancel button
            butCancel        = new Button();
            butCancel.Parent = flow;
            butCancel.Text   = "Cancel";
            butCancel.Click += butCancel_Click;
            flow.SetFlowBreak(butCancel, true);
        }
Esempio n. 34
0
    private void setupMenu()
    {
        MenuStrip ms = new MenuStrip();
        ms.Dock = DockStyle.Top;

        // File menu
        ToolStripMenuItem fileMenu = new ToolStripMenuItem("&File");
        ms.Items.Add(fileMenu);

        ToolStripMenuItem openItem = new ToolStripMenuItem("&Open...", null,
        new EventHandler(Menu_Open), Keys.Control | Keys.O);

        ToolStripMenuItem exitItem = new ToolStripMenuItem("E&xit", null,
        new EventHandler(Menu_Exit));

        fileMenu.DropDownItems.Add(openItem);
        fileMenu.DropDownItems.Add(exitItem);

        // Convert menu
        ToolStripMenuItem convertMenu = new ToolStripMenuItem("&Convert");
        ms.Items.Add(convertMenu);

        goItem = new ToolStripMenuItem("&Go", null,
        new EventHandler(Menu_Go));

        goItem.Enabled = false;

        convertMenu.DropDownItems.Add(goItem);

        // Add menu to form
        this.Controls.Add(ms);
    }
Esempio n. 35
0
 private void SetMenuStripStyle(MenuStrip menustrip)
 {
     menustrip.RenderMode = ToolStripRenderMode.System;
 }
Esempio n. 36
0
        public MainForm()
        {
            Text = "ReSearcher";
            Icon = IconUtilities.loadCurrentModuleIcon();

            StartPosition = FormStartPosition.CenterScreen;
            Size          = new Size(
                (int)(Screen.PrimaryScreen.Bounds.Width * 0.6f),
                (int)(Screen.PrimaryScreen.Bounds.Height * 0.6f)
                );

            // assemble UI components
            // extension methods are in use here to provide a fluent and elegant component hierarchy
            this.appendControls(
                tabControl = new TabControl()
            {
                Dock = DockStyle.Fill, Padding = new Point(24, 4)
            },
                statusStrip = new StatusStrip(),
                new ToolStripPanel()
            {
                Dock = DockStyle.Top
            }.withControls(
                    new ToolStrip().withItems(
                        new ToolStripButton()
            {
                Text = "Search..."
            }.withAction(search),
                        new ToolStripSeparator(),
                        new ToolStripButton()
            {
                Text = "Browse..."
            }.withAction(browse),
                        new ToolStripButton()
            {
                Text = "Open..."
            }.withAction(open),
                        new ToolStripSeparator(),
                        new ToolStripButton()
            {
                Text = "Download..."
            }.withAction(download)
                        )
                    ),
                MainMenuStrip = new MenuStrip()
            {
                Dock = DockStyle.Top
            }.withItems(
                    new ToolStripMenuItem()
            {
                Text = "ReSearcher"
            }.withDropDownItems(
                        new ToolStripMenuItem()
            {
                Text = "Search..."
            }.withAction(search),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "Browse..."
            }.withAction(browse),
                        new ToolStripMenuItem()
            {
                Text = "Open..."
            }.withAction(open),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "Download..."
            }.withAction(download),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "Settings"
            }.withAction(showSettings),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "Quit"
            }.withAction(quit)
                        ),
                    new ToolStripMenuItem()
            {
                Text = "Tab"
            }.withDropDownItems(
                        new ToolStripMenuItem()
            {
                Text = "Close"
            }.withAction(closeSelectedTab)
                        ),
                    new ToolStripMenuItem()
            {
                Text = "Help"
            }.withDropDownItems(
                        new ToolStripMenuItem()
            {
                Text = "Help table of contents"
            }.withAction(showHelp),
                        new ToolStripMenuItem()
            {
                Text = "Help index"
            }.withAction(showHelpIndex),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "Help online"
            }.withAction(showHelpOnline),
                        new ToolStripSeparator(),
                        new ToolStripMenuItem()
            {
                Text = "About"
            }.withAction(showHelpAbout)
                        )
                    )
                );
        }
Esempio n. 37
0
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

            this.progressBar1             = new ProgressBar();
            this.menuStrip1               = new MenuStrip();
            this.fileToolStripMenuItem    = new ToolStripMenuItem();
            this.startToolStripMenuItem   = new ToolStripMenuItem();
            this.optionsToolStripMenuItem = new ToolStripMenuItem();
            this.exitToolStripMenuItem    = new ToolStripMenuItem();
            this.helpToolStripMenuItem    = new ToolStripMenuItem();
            this.aboutToolStripMenuItem   = new ToolStripMenuItem();
            this.progressBar2             = new ProgressBar();
            this.label1            = new Label();
            this.label2            = new Label();
            this.textBox1          = new TextBox();
            this.label3            = new Label();
            this.backgroundWorker1 = new BackgroundWorker();
            this.menuStrip1.SuspendLayout();
            base.SuspendLayout();
            this.progressBar1.Location = new Point(12, 195);
            this.progressBar1.Name     = "progressBar1";
            this.progressBar1.Size     = new System.Drawing.Size(375, 23);
            this.progressBar1.TabIndex = 0;
            ToolStripItemCollection items = this.menuStrip1.Items;

            ToolStripItem[] toolStripItemArray = new ToolStripItem[] { this.fileToolStripMenuItem, this.helpToolStripMenuItem };
            items.AddRange(toolStripItemArray);
            this.menuStrip1.Location = new Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(399, 24);
            this.menuStrip1.TabIndex = 3;
            this.menuStrip1.Text     = "menuStrip1";
            ToolStripItemCollection dropDownItems = this.fileToolStripMenuItem.DropDownItems;

            toolStripItemArray = new ToolStripItem[] { this.startToolStripMenuItem, this.optionsToolStripMenuItem, this.exitToolStripMenuItem };
            dropDownItems.AddRange(toolStripItemArray);
            this.fileToolStripMenuItem.Name      = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size      = new System.Drawing.Size(35, 20);
            this.fileToolStripMenuItem.Text      = "File";
            this.startToolStripMenuItem.Name     = "startToolStripMenuItem";
            this.startToolStripMenuItem.Size     = new System.Drawing.Size(122, 22);
            this.startToolStripMenuItem.Text     = "Start";
            this.startToolStripMenuItem.Click   += new EventHandler(this.startToolStripMenuItem_Click);
            this.optionsToolStripMenuItem.Name   = "optionsToolStripMenuItem";
            this.optionsToolStripMenuItem.Size   = new System.Drawing.Size(122, 22);
            this.optionsToolStripMenuItem.Text   = "Options";
            this.optionsToolStripMenuItem.Click += new EventHandler(this.optionsToolStripMenuItem_Click);
            this.exitToolStripMenuItem.Name      = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size      = new System.Drawing.Size(122, 22);
            this.exitToolStripMenuItem.Text      = "Exit";
            this.exitToolStripMenuItem.Click    += new EventHandler(this.exitToolStripMenuItem_Click);
            ToolStripItemCollection ToolStripItemCollection = this.helpToolStripMenuItem.DropDownItems;

            toolStripItemArray = new ToolStripItem[] { this.aboutToolStripMenuItem };
            ToolStripItemCollection.AddRange(toolStripItemArray);
            this.helpToolStripMenuItem.Name    = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size    = new System.Drawing.Size(40, 20);
            this.helpToolStripMenuItem.Text    = "Help";
            this.aboutToolStripMenuItem.Name   = "aboutToolStripMenuItem";
            this.aboutToolStripMenuItem.Size   = new System.Drawing.Size(114, 22);
            this.aboutToolStripMenuItem.Text   = "About";
            this.aboutToolStripMenuItem.Click += new EventHandler(this.aboutToolStripMenuItem_Click);
            this.progressBar2.Location         = new Point(12, 126);
            this.progressBar2.Name             = "progressBar2";
            this.progressBar2.Size             = new System.Drawing.Size(374, 23);
            this.progressBar2.TabIndex         = 5;
            this.label1.AutoSize   = true;
            this.label1.Location   = new Point(9, 110);
            this.label1.Name       = "label1";
            this.label1.Size       = new System.Drawing.Size(111, 13);
            this.label1.TabIndex   = 6;
            this.label1.Text       = "Table / View progress";
            this.label2.AutoSize   = true;
            this.label2.Location   = new Point(12, 179);
            this.label2.Name       = "label2";
            this.label2.Size       = new System.Drawing.Size(84, 13);
            this.label2.TabIndex   = 7;
            this.label2.Text       = "Overall Progress";
            this.textBox1.Location = new Point(12, 62);
            this.textBox1.Name     = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size     = new System.Drawing.Size(374, 20);
            this.textBox1.TabIndex = 8;
            this.label3.AutoSize   = true;
            this.label3.Location   = new Point(12, 46);
            this.label3.Name       = "label3";
            this.label3.Size       = new System.Drawing.Size(100, 13);
            this.label3.TabIndex   = 9;
            this.label3.Text       = "Current table / view";
            this.backgroundWorker1.WorkerReportsProgress      = true;
            this.backgroundWorker1.WorkerSupportsCancellation = true;
            this.backgroundWorker1.DoWork             += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
            this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
            this.backgroundWorker1.ProgressChanged    += new ProgressChangedEventHandler(this.backgroundWorker1_ProgressChanged);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize          = new System.Drawing.Size(399, 250);
            base.Controls.Add(this.label3);
            base.Controls.Add(this.textBox1);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.progressBar2);
            base.Controls.Add(this.progressBar1);
            base.Controls.Add(this.menuStrip1);
            base.MainMenuStrip = this.menuStrip1;
            this.MaximumSize   = new System.Drawing.Size(407, 277);
            this.MinimumSize   = new System.Drawing.Size(407, 277);
            base.Name          = "Form1";
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Text          = "ODBC Data Exporter";
            base.Load         += new EventHandler(this.Form1_Load);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 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();
            Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config1   = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
            System.ComponentModel.ComponentResourceManager             resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.editControl1            = new Syncfusion.Windows.Forms.Edit.EditControl();
            this.colorDialog1            = new System.Windows.Forms.ColorDialog();
            this.toolTip1                = new System.Windows.Forms.ToolTip(this.components);
            this.menuStrip1              = new System.Windows.Forms.MenuStrip();
            this.fileToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.newToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1     = new System.Windows.Forms.ToolStripSeparator();
            this.saveToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator2     = new System.Windows.Forms.ToolStripSeparator();
            this.exitToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStrip1              = new System.Windows.Forms.ToolStrip();
            this.toolStripButton4        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton1        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton3        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton2        = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5     = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton7        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton8        = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6     = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton5        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton6        = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator7     = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton9        = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton10       = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator8     = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripButton12       = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton11       = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3     = new System.Windows.Forms.ToolStripSeparator();
            this.highlightItem           = new System.Windows.Forms.ToolStripButton();
            this.toolStripSplitButton1   = new System.Windows.Forms.ToolStripButton();
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).BeginInit();
            this.menuStrip1.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // editControl1
            //
            this.editControl1.AutoIndentMode           = Syncfusion.Windows.Forms.Edit.Enums.AutoIndentMode.Smart;
            this.editControl1.BackColor                = System.Drawing.SystemColors.Window;
            this.editControl1.BorderStyle              = System.Windows.Forms.BorderStyle.Fixed3D;
            this.editControl1.CodeSnipptSize           = new System.Drawing.Size(100, 100);
            this.editControl1.Configurator             = config1;
            this.editControl1.Dock                     = System.Windows.Forms.DockStyle.Fill;
            this.editControl1.IndicatorMarginBackColor = System.Drawing.Color.Empty;
            this.editControl1.LineNumbersFont          = new System.Drawing.Font("Segoe UI", 8.25F);
            this.editControl1.Location                 = new System.Drawing.Point(10, 59);
            this.editControl1.Name                     = "editControl1";
            this.editControl1.RenderRightToLeft        = false;
            this.editControl1.ScrollPosition           = new System.Drawing.Point(0, 0);
            this.editControl1.ScrollVisualStyle        = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
            this.editControl1.ShowHorizontalSplitters  = false;
            this.editControl1.ShowIndicatorMargin      = false;
            this.editControl1.ShowVerticalSplitters    = false;
            this.editControl1.Size                     = new System.Drawing.Size(651, 376);

            this.editControl1.StatusBarSettings.TextPanel.AutoSize = false;
            this.editControl1.TabIndex           = 3;
            this.editControl1.Text               = "editControl1";
            this.editControl1.TransferFocusOnTab = true;
            this.editControl1.UseXPStyleBorder   = true;
            this.editControl1.VisualColumn       = 1;
            this.editControl1.WordWrap           = true;
            //
            // menuStrip1
            //
            this.menuStrip1.BackColor = System.Drawing.Color.Transparent;
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.fileToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(10, 10);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(651, 24);
            this.menuStrip1.TabIndex = 7;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // fileToolStripMenuItem
            //
            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.newToolStripMenuItem,
                this.openToolStripMenuItem,
                this.toolStripSeparator1,
                this.saveToolStripMenuItem,
                this.saveAsToolStripMenuItem,
                this.toolStripSeparator2,
                this.exitToolStripMenuItem
            });
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
            this.fileToolStripMenuItem.Text = "File";
            //
            // newToolStripMenuItem
            //
            this.newToolStripMenuItem.Name   = "newToolStripMenuItem";
            this.newToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.newToolStripMenuItem.Text   = "New";
            this.newToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // openToolStripMenuItem
            //
            this.openToolStripMenuItem.Name   = "openToolStripMenuItem";
            this.openToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.openToolStripMenuItem.Text   = "Open...";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(120, 6);
            //
            // saveToolStripMenuItem
            //
            this.saveToolStripMenuItem.Name   = "saveToolStripMenuItem";
            this.saveToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.saveToolStripMenuItem.Text   = "Save";
            this.saveToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // saveAsToolStripMenuItem
            //
            this.saveAsToolStripMenuItem.Name   = "saveAsToolStripMenuItem";
            this.saveAsToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.saveAsToolStripMenuItem.Text   = "Save As...";
            this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // toolStripSeparator2
            //
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(120, 6);
            //
            // exitToolStripMenuItem
            //
            this.exitToolStripMenuItem.Name   = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size   = new System.Drawing.Size(123, 22);
            this.exitToolStripMenuItem.Text   = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.MainMenuClick);
            //
            // toolStrip1
            //
            this.toolStrip1.BackColor = System.Drawing.Color.White;
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripButton4,
                this.toolStripButton1,
                this.toolStripButton3,
                this.toolStripButton2,
                this.toolStripSeparator5,
                this.toolStripButton7,
                this.toolStripButton8,
                this.toolStripSeparator6,
                this.toolStripButton5,
                this.toolStripButton6,
                this.toolStripSeparator7,
                this.toolStripButton9,
                this.toolStripButton10,
                this.toolStripSeparator8,
                this.toolStripButton12,
                this.toolStripButton11,
                this.toolStripSeparator3,
                this.highlightItem,
                this.toolStripSplitButton1
            });
            this.toolStrip1.Location     = new System.Drawing.Point(10, 34);
            this.toolStrip1.Name         = "toolStrip1";
            this.toolStrip1.Size         = new System.Drawing.Size(651, 25);
            this.toolStrip1.TabIndex     = 8;
            this.toolStrip1.Text         = "toolStrip1";
            this.toolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStrip1_ItemClicked);
            //
            // toolStripButton4
            //
            this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
            this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.Size = new System.Drawing.Size(75, 22);
            this.toolStripButton4.Tag  = "Move Up";
            this.toolStripButton4.Text = "Move Up";
            //
            // toolStripButton1
            //

            this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton1.Tag  = "Move Down";
            this.toolStripButton1.Text = "Move Down";
            //
            // toolStripButton3
            //

            this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton3.Tag  = "Move Left";
            this.toolStripButton3.Text = "Move Left";
            //
            // toolStripButton2
            //

            this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton2.Tag  = "Move Right";
            this.toolStripButton2.Text = "Move Right";
            //
            // toolStripSeparator5
            //
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton7
            //
            this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
            this.toolStripButton7.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton7.Name = "toolStripButton7";
            this.toolStripButton7.Size = new System.Drawing.Size(71, 22);
            this.toolStripButton7.Tag  = "Page Up";
            this.toolStripButton7.Text = "Page Up";
            //
            // toolStripButton8
            //

            this.toolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton8.Image")));
            this.toolStripButton8.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton8.Name = "toolStripButton8";
            this.toolStripButton8.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton8.Tag  = "Page Down";
            this.toolStripButton8.Text = "Page Down";
            //
            // toolStripSeparator6
            //
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton5
            //
            this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
            this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton5.Name = "toolStripButton5";
            this.toolStripButton5.Size = new System.Drawing.Size(76, 22);
            this.toolStripButton5.Tag  = "Line Start";
            this.toolStripButton5.Text = "Line Start";
            //
            // toolStripButton6
            //

            this.toolStripButton6.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton6.Image")));
            this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton6.Name = "toolStripButton6";
            this.toolStripButton6.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton6.Tag  = "Line End";
            this.toolStripButton6.Text = "Line End";
            //
            // toolStripSeparator7
            //
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton9
            //
            this.toolStripButton9.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton9.Image")));
            this.toolStripButton9.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton9.Name = "toolStripButton9";
            this.toolStripButton9.Size = new System.Drawing.Size(102, 22);
            this.toolStripButton9.Tag  = "Left One word";
            this.toolStripButton9.Text = "Left One word";
            //
            // toolStripButton10
            //

            this.toolStripButton10.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton10.Image")));
            this.toolStripButton10.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton10.Name = "toolStripButton10";
            this.toolStripButton10.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton10.Tag  = "Right One word";
            this.toolStripButton10.Text = "Right One word";
            //
            // toolStripSeparator8
            //
            this.toolStripSeparator8.Name = "toolStripSeparator8";
            this.toolStripSeparator8.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButton12
            //
            this.toolStripButton12.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton12.Image")));
            this.toolStripButton12.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton12.Name = "toolStripButton12";
            this.toolStripButton12.Size = new System.Drawing.Size(98, 22);
            this.toolStripButton12.Tag  = "Move to Start";
            this.toolStripButton12.Text = "Move to Start";
            //
            // toolStripButton11
            //

            this.toolStripButton11.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton11.Image")));
            this.toolStripButton11.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton11.Name = "toolStripButton11";
            this.toolStripButton11.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton11.Tag  = "Move to End";
            this.toolStripButton11.Text = "Move to End";
            //
            // toolStripSeparator3
            //
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            //
            // highlightItem
            //
            this.highlightItem.Checked    = true;
            this.highlightItem.CheckState = System.Windows.Forms.CheckState.Checked;

            this.highlightItem.Image = ((System.Drawing.Image)(resources.GetObject("highlightItem.Image")));
            this.highlightItem.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.highlightItem.Name = "highlightItem";
            this.highlightItem.Size = new System.Drawing.Size(23, 20);
            this.highlightItem.Tag  = "Highlight current line";
            this.highlightItem.Text = "Highlight current line";
            //
            // toolStripSplitButton1
            //

            this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
            this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripSplitButton1.Name = "toolStripSplitButton1";
            this.toolStripSplitButton1.Size = new System.Drawing.Size(23, 20);
            this.toolStripSplitButton1.Tag  = "Change HighlightColor";
            this.toolStripSplitButton1.Text = "Change HighlightColor";
            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
            this.ClientSize        = new System.Drawing.Size(671, 445);
            this.Controls.Add(this.editControl1);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.menuStrip1);
            this.Font          = new System.Drawing.Font("Segoe UI", 8.25F);
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MinimumSize   = new System.Drawing.Size(683, 482);
            this.Name          = "Form1";
            this.Padding       = new System.Windows.Forms.Padding(10);
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "Text Navigation";
            this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
            ((System.ComponentModel.ISupportInitialize)(this.editControl1)).EndInit();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 39
0
	public MainForm ()
	{
		// 
		// _toolStrip
		// 
		_toolStrip = new ToolStrip ();
		_toolStrip.Dock = DockStyle.Top;
		_toolStrip.Height = 25;
		Controls.Add (_toolStrip);
		// 
		// _statusStrip;
		// 
		_statusStrip = new StatusStrip ();
		Controls.Add (_statusStrip);
		// 
		// _toolStripLabel1
		// 
		_toolStripLabel1 = new ToolStripLabel ();
		_toolStripLabel1.Text = "Mono";
		_statusStrip.Items.Add (_toolStripLabel1);
		// 
		// _toolStripLabel2
		// 
		_toolStripLabel2 = new ToolStripLabel ();
		_toolStripLabel2.Text = "Mono";
		_toolStrip.Items.Add (_toolStripLabel2);
		// 
		// _menuStrip
		// 
		_menuStrip = new MenuStrip ();
		_menuStrip.Dock = DockStyle.Left;
		_menuStrip.LayoutStyle = ToolStripLayoutStyle.Flow;
		_menuStrip.Location = new Point (0, 0);
		_menuStrip.Size = new Size (303, 23);
		Controls.Add (_menuStrip);
		// 
		// _fileToolStripMenuItem
		// 
		_fileToolStripMenuItem = new ToolStripMenuItem ();
		_fileToolStripMenuItem.Text = "&File";
		_menuStrip.Items.Add (_fileToolStripMenuItem);
		// 
		// _newToolStripMenuItem
		// 
		_newToolStripMenuItem = new ToolStripMenuItem ();
		_newToolStripMenuItem.Text = "&New";
		_fileToolStripMenuItem.DropDownItems.Add (_newToolStripMenuItem);
		// 
		// _openToolStripMenuItem
		// 
		_openToolStripMenuItem = new ToolStripMenuItem ();
		_openToolStripMenuItem.Text = "&Open";
		_fileToolStripMenuItem.DropDownItems.Add (_openToolStripMenuItem);
		// 
		// _editToolStripMenuItem
		// 
		_editToolStripMenuItem = new ToolStripMenuItem ();
		_editToolStripMenuItem.Text = "&Edit";
		_menuStrip.Items.Add (_editToolStripMenuItem);
		// 
		// _undoToolStripMenuItem
		// 
		_undoToolStripMenuItem = new ToolStripMenuItem ();
		_undoToolStripMenuItem.Text = "&Undo";
		_editToolStripMenuItem.DropDownItems.Add (_undoToolStripMenuItem);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 250);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82739";
		Load += new EventHandler (MainForm_Load);
	}
Esempio n. 40
0
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     this.richTextBox1 = new RichTextBox();
     this.timer_0 = new System.Windows.Forms.Timer(this.icontainer_0);
     this.menuStrip1 = new MenuStrip();
     this.logOptionsToolStripMenuItem = new ToolStripMenuItem();
     this.stopTheServerLogToolStripMenuItem = new ToolStripMenuItem();
     this.stopTheClientLogToolStripMenuItem = new ToolStripMenuItem();
     this.clearLogToolStripMenuItem = new ToolStripMenuItem();
     this.toolsToolStripMenuItem = new ToolStripMenuItem();
     this.saveHabboswfToolStripMenuItem = new ToolStripMenuItem();
     this.saveLogToolStripMenuItem = new ToolStripMenuItem();
     this.txtSearch = new TextBox();
     this.txtInject = new TextBox();
     this.fontDialog_0 = new FontDialog();
     this.fontStyleToolStripMenuItem = new ToolStripMenuItem();
     this.backgroundColorToolStripMenuItem = new ToolStripMenuItem();
     this.fontColorsToolStripMenuItem = new ToolStripMenuItem();
     this.clientToolStripMenuItem = new ToolStripMenuItem();
     this.serverToolStripMenuItem = new ToolStripMenuItem();
     this.fontFamilyToolStripMenuItem = new ToolStripMenuItem();
     this.colorDialog_0 = new ColorDialog();
     this.menuStrip1.SuspendLayout();
     base.SuspendLayout();
     this.richTextBox1.BackColor = Color.FromArgb(0x40, 0x40, 0x40);
     this.richTextBox1.BorderStyle = BorderStyle.None;
     this.richTextBox1.Dock = DockStyle.Fill;
     this.richTextBox1.ForeColor = Color.PaleGreen;
     this.richTextBox1.Location = new Point(0, 0x21);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.Size = new Size(0x38d, 0x20e);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text = "";
     this.richTextBox1.SizeChanged += new EventHandler(this.richTextBox1_SizeChanged);
     this.richTextBox1.TextChanged += new EventHandler(this.richTextBox1_TextChanged);
     this.richTextBox1.KeyDown += new KeyEventHandler(this.Packetlogger_KeyDown);
     this.richTextBox1.KeyPress += new KeyPressEventHandler(this.Packetlogger_KeyPress);
     this.timer_0.Enabled = true;
     this.timer_0.Tick += new EventHandler(this.timer_0_Tick);
     this.menuStrip1.Font = new Font("Segoe UI", 14f);
     this.menuStrip1.Items.AddRange(new ToolStripItem[] { this.logOptionsToolStripMenuItem, this.toolsToolStripMenuItem });
     this.menuStrip1.Location = new Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new Size(0x38d, 0x21);
     this.menuStrip1.TabIndex = 2;
     this.menuStrip1.Text = "menuStrip1";
     this.logOptionsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.fontStyleToolStripMenuItem, this.stopTheServerLogToolStripMenuItem, this.stopTheClientLogToolStripMenuItem, this.clearLogToolStripMenuItem });
     this.logOptionsToolStripMenuItem.Name = "logOptionsToolStripMenuItem";
     this.logOptionsToolStripMenuItem.Size = new Size(0x7e, 0x1d);
     this.logOptionsToolStripMenuItem.Text = "Log Options";
     this.stopTheServerLogToolStripMenuItem.Name = "stopTheServerLogToolStripMenuItem";
     this.stopTheServerLogToolStripMenuItem.Size = new Size(0xf2, 30);
     this.stopTheServerLogToolStripMenuItem.Text = "Stop the server log";
     this.stopTheServerLogToolStripMenuItem.Click += new EventHandler(this.stopTheServerLogToolStripMenuItem_Click);
     this.stopTheClientLogToolStripMenuItem.Name = "stopTheClientLogToolStripMenuItem";
     this.stopTheClientLogToolStripMenuItem.Size = new Size(0xf2, 30);
     this.stopTheClientLogToolStripMenuItem.Text = "Stop the client log";
     this.stopTheClientLogToolStripMenuItem.Click += new EventHandler(this.stopTheClientLogToolStripMenuItem_Click);
     this.clearLogToolStripMenuItem.Name = "clearLogToolStripMenuItem";
     this.clearLogToolStripMenuItem.Size = new Size(0xf2, 30);
     this.clearLogToolStripMenuItem.Text = "Clear log";
     this.clearLogToolStripMenuItem.Click += new EventHandler(this.clearLogToolStripMenuItem_Click);
     this.toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.saveHabboswfToolStripMenuItem, this.saveLogToolStripMenuItem });
     this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
     this.toolsToolStripMenuItem.Size = new Size(0x45, 0x1d);
     this.toolsToolStripMenuItem.Text = "Tools";
     this.saveHabboswfToolStripMenuItem.Name = "saveHabboswfToolStripMenuItem";
     this.saveHabboswfToolStripMenuItem.Size = new Size(0xd8, 30);
     this.saveHabboswfToolStripMenuItem.Text = "Save Habbo.swf";
     this.saveHabboswfToolStripMenuItem.Click += new EventHandler(this.saveHabboswfToolStripMenuItem_Click);
     this.saveLogToolStripMenuItem.Name = "saveLogToolStripMenuItem";
     this.saveLogToolStripMenuItem.Size = new Size(0xd8, 30);
     this.saveLogToolStripMenuItem.Text = "Save log";
     this.saveLogToolStripMenuItem.Click += new EventHandler(this.saveLogToolStripMenuItem_Click);
     this.txtSearch.BackColor = Color.Silver;
     this.txtSearch.BorderStyle = BorderStyle.FixedSingle;
     this.txtSearch.Dock = DockStyle.Bottom;
     this.txtSearch.Location = new Point(0, 0x204);
     this.txtSearch.Name = "txtSearch";
     this.txtSearch.Size = new Size(0x38d, 0x2b);
     this.txtSearch.TabIndex = 3;
     this.txtSearch.Visible = false;
     this.txtSearch.TextChanged += new EventHandler(this.txtSearch_TextChanged);
     this.txtSearch.KeyDown += new KeyEventHandler(this.Packetlogger_KeyDown);
     this.txtInject.BackColor = Color.Silver;
     this.txtInject.BorderStyle = BorderStyle.FixedSingle;
     this.txtInject.Dock = DockStyle.Bottom;
     this.txtInject.Location = new Point(0, 0x1d9);
     this.txtInject.Name = "txtInject";
     this.txtInject.Size = new Size(0x38d, 0x2b);
     this.txtInject.TabIndex = 4;
     this.txtInject.Visible = false;
     this.txtInject.TextChanged += new EventHandler(this.txtInject_TextChanged);
     this.txtInject.KeyDown += new KeyEventHandler(this.txtInject_KeyDown);
     this.fontDialog_0.Color = SystemColors.ControlText;
     this.fontDialog_0.Apply += new EventHandler(this.fontDialog_0_Apply);
     this.fontStyleToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.backgroundColorToolStripMenuItem, this.fontColorsToolStripMenuItem, this.fontFamilyToolStripMenuItem });
     this.fontStyleToolStripMenuItem.Name = "fontStyleToolStripMenuItem";
     this.fontStyleToolStripMenuItem.Size = new Size(0xf2, 30);
     this.fontStyleToolStripMenuItem.Text = "Font Style";
     this.fontStyleToolStripMenuItem.Click += new EventHandler(this.fontStyleToolStripMenuItem_Click);
     this.backgroundColorToolStripMenuItem.Name = "backgroundColorToolStripMenuItem";
     this.backgroundColorToolStripMenuItem.Size = new Size(0xe9, 30);
     this.backgroundColorToolStripMenuItem.Text = "Background color";
     this.backgroundColorToolStripMenuItem.Click += new EventHandler(this.backgroundColorToolStripMenuItem_Click);
     this.fontColorsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.clientToolStripMenuItem, this.serverToolStripMenuItem });
     this.fontColorsToolStripMenuItem.Name = "fontColorsToolStripMenuItem";
     this.fontColorsToolStripMenuItem.Size = new Size(0xe9, 30);
     this.fontColorsToolStripMenuItem.Text = "Font colors";
     this.clientToolStripMenuItem.Name = "clientToolStripMenuItem";
     this.clientToolStripMenuItem.Size = new Size(0x98, 30);
     this.clientToolStripMenuItem.Text = "Client";
     this.clientToolStripMenuItem.Click += new EventHandler(this.clientToolStripMenuItem_Click);
     this.serverToolStripMenuItem.Name = "serverToolStripMenuItem";
     this.serverToolStripMenuItem.Size = new Size(0x98, 30);
     this.serverToolStripMenuItem.Text = "Server";
     this.serverToolStripMenuItem.Click += new EventHandler(this.serverToolStripMenuItem_Click);
     this.fontFamilyToolStripMenuItem.Name = "fontFamilyToolStripMenuItem";
     this.fontFamilyToolStripMenuItem.Size = new Size(0xe9, 30);
     this.fontFamilyToolStripMenuItem.Text = "Font Family";
     this.fontFamilyToolStripMenuItem.Click += new EventHandler(this.fontFamilyToolStripMenuItem_Click);
     base.AutoScaleDimensions = new SizeF(15f, 37f);
     base.AutoScaleMode = AutoScaleMode.Font;
     this.BackColor = Color.FromArgb(0x40, 0x40, 0x40);
     base.ClientSize = new Size(0x38d, 0x22f);
     base.Controls.Add(this.txtInject);
     base.Controls.Add(this.txtSearch);
     base.Controls.Add(this.richTextBox1);
     base.Controls.Add(this.menuStrip1);
     this.Font = new Font("Segoe UI", 20f);
     this.ForeColor = Color.LimeGreen;
     base.MainMenuStrip = this.menuStrip1;
     base.Margin = new Padding(8, 9, 8, 9);
     base.Name = "Packetlogger";
     this.Text = "Packetlogger";
     base.FormClosed += new FormClosedEventHandler(this.Packetlogger_FormClosed);
     base.Load += new EventHandler(this.Packetlogger_Load);
     base.SizeChanged += new EventHandler(this.Packetlogger_SizeChanged);
     base.KeyDown += new KeyEventHandler(this.Packetlogger_KeyDown);
     base.KeyPress += new KeyPressEventHandler(this.Packetlogger_KeyPress);
     base.Resize += new EventHandler(this.Packetlogger_Resize);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Esempio n. 41
0
 protected void showFooter(MenuStrip menuStrip)
 {
     menuStrip.Visible = true;
 }
Esempio n. 42
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!");
        }
Esempio n. 43
0
	public ChildForm ()
	{
		_menuStrip = new MenuStrip ();
		fileToolStripMenuItem = new ToolStripMenuItem ();
		fileNewWindowToolStripMenuItem = new ToolStripMenuItem ();
		fileOpenLatestToolStripMenuItem = new ToolStripMenuItem ();
		fileDeleteLogToolStripMenuItem = new ToolStripMenuItem ();
		editToolStripMenuItem = new ToolStripMenuItem ();
		copyAsToolStripMenuItem = new ToolStripMenuItem ();
		copyAsSimpleTextToolStripMenuItem = new ToolStripMenuItem ();
		copyAsRichTextToolStripMenuItem = new ToolStripMenuItem ();
		copyAsHtmlToolStripMenuItem = new ToolStripMenuItem ();
		copyAsCsvToolStripMenuItem = new ToolStripMenuItem ();
		viewToolStripMenuItem = new ToolStripMenuItem ();
		timeJitterToolStripMenuItem = new ToolStripMenuItem ();
		logHeaderToolStripMenuItem = new ToolStripMenuItem ();
		showFunctionNamesToolStripMenuItem = new ToolStripMenuItem ();
		showContextInDetailToolStripMenuItem = new ToolStripMenuItem ();
		manageColumnsToolStripMenuItem = new ToolStripMenuItem ();
		refreshLogToolStripMenuItem = new ToolStripMenuItem ();
		autoRefreshLogToolStripMenuItem = new ToolStripMenuItem ();
		showBookmarksToolStripMenuItem = new ToolStripMenuItem ();
		colorColumnToolStripMenuItem = new ToolStripMenuItem ();
		timeSynchroNowToolStripMenuItem = new ToolStripMenuItem ();
		decryptMessageToolStripMenuItem = new ToolStripMenuItem ();
		filterToolStripMenuItem = new ToolStripMenuItem ();
		filterUndoToolStripMenuItem = new ToolStripMenuItem ();
		filterRedoToolStripMenuItem = new ToolStripMenuItem ();
		filterSeparator90 = new ToolStripSeparator ();
		filterQuickStringToolStripMenuItem = new ToolStripMenuItem ();
		filterAddToCurrentToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelAllToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelVerboseToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelNotesToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelStatusToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelWarningToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelErrorToolStripMenuItem = new ToolStripMenuItem ();
		filterSetTraceLevelCriticalToolStripMenuItem = new ToolStripMenuItem ();
		filterConfigToolStripMenuItem = new ToolStripMenuItem ();
		filterClearAllToolStripMenuItem = new ToolStripMenuItem ();
		filterSavedFiltersToolStripMenuItem = new ToolStripMenuItem ();
		filterSaveCurrentFilterToolStripMenuItem = new ToolStripMenuItem ();
		filterImportFiltersToolStripMenuItem = new ToolStripMenuItem ();
		searchToolStripMenuItem = new ToolStripMenuItem ();
		searchForwardToolStripMenuItem = new ToolStripMenuItem ();
		searchBackwardToolStripMenuItem = new ToolStripMenuItem ();
		searchForwardOnNamedFilterToolStripMenuItem = new ToolStripMenuItem ();
		searchBackwardOnNamedFilterToolStripMenuItem = new ToolStripMenuItem ();
		searchForwardOnMsgTypeFilterToolStripMenuItem = new ToolStripMenuItem ();
		searchBackwardOnMsgTypeFilterToolStripMenuItem = new ToolStripMenuItem ();
		toolStripSeparator80 = new ToolStripSeparator ();
		searchForwardAgainToolStripMenuItem = new ToolStripMenuItem ();
		searchBackwardAgainToolStripMenuItem = new ToolStripMenuItem ();
		toolStripSeparator81 = new ToolStripSeparator ();
		searchMatchingScopeToolStripMenuItem = new ToolStripMenuItem ();
		searchTimestampJumpToolStripMenuItem = new ToolStripMenuItem ();
		searchNextSameThreadToolStripMenuItem = new ToolStripMenuItem ();
		searchPrevSameThreadToolStripMenuItem = new ToolStripMenuItem ();
		searchStepOutForwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		searchStepOutBackwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		searchStepOverForwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		searchStepOverBackwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		searchStepIntoForwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		searchStepIntoBackwardCallLevelToolStripMenuItem = new ToolStripMenuItem ();
		toolStripSeparator82 = new ToolStripSeparator ();
		searchToggleBookmarkToolStripMenuItem = new ToolStripMenuItem ();
		searchNextBookmarkToolStripMenuItem = new ToolStripMenuItem ();
		searchPrevBookmarkToolStripMenuItem = new ToolStripMenuItem ();
		toolsMenu = new ToolStripMenuItem ();
		toolsAnaylzeContextAttribs = new ToolStripMenuItem ();
		_menuStrip.SuspendLayout ();
		SuspendLayout ();
		// 
		// _menuStrip
		// 
		_menuStrip.Items.AddRange (new ToolStripItem [] {
			fileToolStripMenuItem,
			editToolStripMenuItem,
			viewToolStripMenuItem,
			toolsMenu,
			filterToolStripMenuItem,
			searchToolStripMenuItem });
		_menuStrip.Location = new Point (0, 0);
		_menuStrip.Size = new Size (706, 24);
		_menuStrip.TabIndex = 2;
		_menuStrip.Text = "_menuStrip";
		_menuStrip.Visible = false;
		Controls.Add (_menuStrip);
		// 
		// fileToolStripMenuItem
		// 
		fileToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			fileNewWindowToolStripMenuItem,
			fileOpenLatestToolStripMenuItem,
			fileDeleteLogToolStripMenuItem});
		fileToolStripMenuItem.MergeAction = MergeAction.MatchOnly;
		fileToolStripMenuItem.MergeIndex = -1;
		fileToolStripMenuItem.Size = new Size (41, 20);
		fileToolStripMenuItem.Text = "&File";
		// 
		// fileNewWindowToolStripMenuItem
		// 
		fileNewWindowToolStripMenuItem.MergeAction = MergeAction.Insert;
		fileNewWindowToolStripMenuItem.MergeIndex = 0;
		fileNewWindowToolStripMenuItem.Size = new Size (190, 22);
		fileNewWindowToolStripMenuItem.Text = "Clone Log &Window";
		fileNewWindowToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+N";
		fileNewWindowToolStripMenuItem.ShowShortcutKeys = true;
		fileNewWindowToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N;
		// 
		// fileOpenLatestToolStripMenuItem
		// 
		fileOpenLatestToolStripMenuItem.MergeAction = MergeAction.Insert;
		fileOpenLatestToolStripMenuItem.MergeIndex = 1;
		fileOpenLatestToolStripMenuItem.Size = new Size (190, 22);
		fileOpenLatestToolStripMenuItem.Text = "Open Latest in &Series";
		fileOpenLatestToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+N";
		fileOpenLatestToolStripMenuItem.ShowShortcutKeys = true;
		fileOpenLatestToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.N;
		// 
		// fileDeleteLogToolStripMenuItem
		// 
		fileDeleteLogToolStripMenuItem.MergeAction = MergeAction.Insert;
		fileDeleteLogToolStripMenuItem.MergeIndex = 4;
		fileDeleteLogToolStripMenuItem.Size = new Size (190, 22);
		fileDeleteLogToolStripMenuItem.Text = "&Delete Log";
		fileDeleteLogToolStripMenuItem.ShowShortcutKeys = false;
		// 
		// editToolStripMenuItem
		// 
		editToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			copyAsToolStripMenuItem});
		editToolStripMenuItem.MergeAction = MergeAction.MatchOnly;
		editToolStripMenuItem.MergeIndex = -1;
		editToolStripMenuItem.Size = new Size (41, 20);
		editToolStripMenuItem.Text = "&Edit";
		// 
		// copyAsToolStripMenuItem
		// 
		copyAsToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			copyAsSimpleTextToolStripMenuItem,
			copyAsRichTextToolStripMenuItem,
			copyAsHtmlToolStripMenuItem,
			copyAsCsvToolStripMenuItem});
		copyAsToolStripMenuItem.MergeAction = MergeAction.Insert;
		copyAsToolStripMenuItem.MergeIndex = 2;
		copyAsToolStripMenuItem.Size = new Size (190, 22);
		copyAsToolStripMenuItem.Text = "Copy &As";
		copyAsToolStripMenuItem.ShowShortcutKeys = false;
		// 
		// copyAsSimpleTextToolStripMenuItem
		// 
		copyAsSimpleTextToolStripMenuItem.Size = new Size (190, 22);
		copyAsSimpleTextToolStripMenuItem.Text = "&Simple Text";
		// 
		// copyAsRichTextToolStripMenuItem
		// 
		copyAsRichTextToolStripMenuItem.Size = new Size (190, 22);
		copyAsRichTextToolStripMenuItem.Text = "&Rich Text";
		// 
		// copyAsHtmlToolStripMenuItem
		// 
		copyAsHtmlToolStripMenuItem.Size = new Size (190, 22);
		copyAsHtmlToolStripMenuItem.Text = "&HTML Table";
		// 
		// copyAsCsvToolStripMenuItem
		// 
		copyAsCsvToolStripMenuItem.Size = new Size (190, 22);
		copyAsCsvToolStripMenuItem.Text = "&CSV Text";
		// 
		// viewToolStripMenuItem
		// 
		viewToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
			timeJitterToolStripMenuItem,
			logHeaderToolStripMenuItem,
			showFunctionNamesToolStripMenuItem,
			showContextInDetailToolStripMenuItem,
			manageColumnsToolStripMenuItem,
			showBookmarksToolStripMenuItem,
			autoRefreshLogToolStripMenuItem,
			refreshLogToolStripMenuItem,
			colorColumnToolStripMenuItem,
			timeSynchroNowToolStripMenuItem,
			decryptMessageToolStripMenuItem});
		viewToolStripMenuItem.MergeAction = MergeAction.MatchOnly;
		viewToolStripMenuItem.MergeIndex = -1;
		viewToolStripMenuItem.Size = new Size (41, 20);
		viewToolStripMenuItem.Text = "&View";
		// 
		// timeJitterToolStripMenuItem
		// 
		timeJitterToolStripMenuItem.MergeAction = MergeAction.Append;
		timeJitterToolStripMenuItem.MergeIndex = 3;
		timeJitterToolStripMenuItem.Size = new Size (190, 22);
		timeJitterToolStripMenuItem.Text = "Set Manual Time Offset...";
		// 
		// logHeaderToolStripMenuItem
		// 
		logHeaderToolStripMenuItem.MergeAction = MergeAction.Append;
		logHeaderToolStripMenuItem.MergeIndex = 3;
		logHeaderToolStripMenuItem.Size = new Size (190, 22);
		logHeaderToolStripMenuItem.Text = "Log &Header...";
		// 
		// showFunctionNamesToolStripMenuItem
		// 
		showFunctionNamesToolStripMenuItem.Checked = true;
		showFunctionNamesToolStripMenuItem.CheckState = CheckState.Checked;
		showFunctionNamesToolStripMenuItem.MergeAction = MergeAction.Append;
		showFunctionNamesToolStripMenuItem.MergeIndex = 4;
		showFunctionNamesToolStripMenuItem.Size = new Size (190, 22);
		showFunctionNamesToolStripMenuItem.Text = "Show &Function Names";
		//
		// showContextInDetailToolStripMenuItem
		//
		showContextInDetailToolStripMenuItem.CheckOnClick = true;
		showContextInDetailToolStripMenuItem.Checked = true;
		showContextInDetailToolStripMenuItem.MergeAction = MergeAction.Append;
		showContextInDetailToolStripMenuItem.MergeIndex = 5;
		showContextInDetailToolStripMenuItem.Size = new Size (190, 22);
		showContextInDetailToolStripMenuItem.Text = "Show Context Attributes in Message &Detail";
		// 
		// manageColumnsToolStripMenuItem
		// 
		manageColumnsToolStripMenuItem.MergeAction = MergeAction.Append;
		manageColumnsToolStripMenuItem.MergeIndex = 6;
		manageColumnsToolStripMenuItem.Size = new Size (190, 22);
		manageColumnsToolStripMenuItem.Text = "Manage &Columns...";
		// 
		// refreshLogToolStripMenuItem
		// 
		refreshLogToolStripMenuItem.MergeAction = MergeAction.Append;
		refreshLogToolStripMenuItem.MergeIndex = 9;
		refreshLogToolStripMenuItem.Size = new Size (190, 22);
		refreshLogToolStripMenuItem.Text = "&Refresh Log!";
		refreshLogToolStripMenuItem.ShortcutKeys = Keys.F5;
		refreshLogToolStripMenuItem.ShowShortcutKeys = true;
		refreshLogToolStripMenuItem.ShortcutKeyDisplayString = "F5";
		// 
		// autoRefreshLogToolStripMenuItem
		// 
		autoRefreshLogToolStripMenuItem.MergeAction = MergeAction.Append;
		autoRefreshLogToolStripMenuItem.MergeIndex = 8;
		autoRefreshLogToolStripMenuItem.Size = new Size (190, 22);
		autoRefreshLogToolStripMenuItem.Text = "&Auto Refresh Log";
		autoRefreshLogToolStripMenuItem.CheckOnClick = true;
		// 
		// showBookmarksToolStripMenuItem
		// 
		showBookmarksToolStripMenuItem.MergeAction = MergeAction.Append;
		showBookmarksToolStripMenuItem.MergeIndex = 7;
		showBookmarksToolStripMenuItem.Size = new Size (190, 22);
		showBookmarksToolStripMenuItem.Text = "Show Bookmarks...";
		showBookmarksToolStripMenuItem.ShowShortcutKeys = true;
		showBookmarksToolStripMenuItem.ShortcutKeyDisplayString = "Alt+F2";
		showBookmarksToolStripMenuItem.ShortcutKeys = Keys.Alt | Keys.F2;
		// 
		// colorColumnToolStripMenuItem
		// 
		colorColumnToolStripMenuItem.MergeAction = MergeAction.Append;
		colorColumnToolStripMenuItem.MergeIndex = 19;
		colorColumnToolStripMenuItem.Size = new Size (190, 22);
		colorColumnToolStripMenuItem.Text = "Color Column";
		colorColumnToolStripMenuItem.ShowShortcutKeys = false;
		// 
		// timeSynchroNowToolStripMenuItem
		// 
		timeSynchroNowToolStripMenuItem.MergeAction = MergeAction.Append;
		timeSynchroNowToolStripMenuItem.MergeIndex = 20;
		timeSynchroNowToolStripMenuItem.Size = new Size (190, 22);
		timeSynchroNowToolStripMenuItem.Text = "Synchronize Now With Other Logs";
		timeSynchroNowToolStripMenuItem.ShowShortcutKeys = false;
		// 
		// decryptMessageToolStripMenuItem
		// 
		decryptMessageToolStripMenuItem.MergeAction = MergeAction.Append;
		decryptMessageToolStripMenuItem.MergeIndex = 21;
		decryptMessageToolStripMenuItem.Size = new Size (190, 22);
		decryptMessageToolStripMenuItem.Text = "Decrypt Message";
		decryptMessageToolStripMenuItem.ShowShortcutKeys = false;
		// 
		// filterToolStripMenuItem
		// 
		filterToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
            filterUndoToolStripMenuItem,
            filterRedoToolStripMenuItem,
            filterSeparator90,
            filterQuickStringToolStripMenuItem,
            filterAddToCurrentToolStripMenuItem,
            filterSetTraceLevelToolStripMenuItem,
            filterConfigToolStripMenuItem,
            filterClearAllToolStripMenuItem,
            filterSavedFiltersToolStripMenuItem});
		filterToolStripMenuItem.MergeAction = MergeAction.Insert;
		filterToolStripMenuItem.MergeIndex = 3;
		filterToolStripMenuItem.Size = new Size (41, 20);
		filterToolStripMenuItem.Text = "F&ilter";
		// 
		// filterUndoToolStripMenuItem
		// 
		filterUndoToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterUndoToolStripMenuItem.MergeIndex = 167;
		filterUndoToolStripMenuItem.Size = new Size (190, 22);
		filterUndoToolStripMenuItem.Text = "&Undo Filter Change";
		filterUndoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Z;
		filterUndoToolStripMenuItem.ShowShortcutKeys = true;
		filterUndoToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Z";
		// 
		// filterRedoToolStripMenuItem
		// 
		filterRedoToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterRedoToolStripMenuItem.MergeIndex = 167;
		filterRedoToolStripMenuItem.Size = new Size (190, 22);
		filterRedoToolStripMenuItem.Text = "&Redo Filter Change";
		filterRedoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Y;
		filterRedoToolStripMenuItem.ShowShortcutKeys = true;
		filterRedoToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
		// 
		// filterSeparator90
		//            
		filterSeparator90.Size = new Size (148, 6);
		filterSeparator90.MergeAction = MergeAction.Insert;
		// 
		// filterQuickStringToolStripMenuItem
		// 
		filterQuickStringToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterQuickStringToolStripMenuItem.MergeIndex = 167;
		filterQuickStringToolStripMenuItem.Size = new Size (190, 22);
		filterQuickStringToolStripMenuItem.Text = "Quick &String Filter...";
		filterQuickStringToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Alt+F";
		filterQuickStringToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Alt | Keys.F;
		filterQuickStringToolStripMenuItem.ShowShortcutKeys = true;
		//
		// filterAddToCurrentToolStripMenuItem
		//
		filterAddToCurrentToolStripMenuItem.Text = "Add to Filter";
		//
		// filterSetTraceLevelToolStripMenuItem
		//
		filterSetTraceLevelToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
            filterSetTraceLevelAllToolStripMenuItem,
            filterSetTraceLevelVerboseToolStripMenuItem,
            filterSetTraceLevelNotesToolStripMenuItem,
            filterSetTraceLevelStatusToolStripMenuItem,
            filterSetTraceLevelWarningToolStripMenuItem,
            filterSetTraceLevelErrorToolStripMenuItem,
            filterSetTraceLevelCriticalToolStripMenuItem});
		filterSetTraceLevelToolStripMenuItem.Text = "Set Trace Level Filter";
		//
		// filterSetTraceLevelAllToolStripMenuItem
		//
		filterSetTraceLevelAllToolStripMenuItem.Text = "&All";
		//
		// filterSetTraceLevelVerboseToolStripMenuItem
		//
		filterSetTraceLevelVerboseToolStripMenuItem.Text = "&Verbose Notes";
		//
		// filterSetTraceLevelNotesToolStripMenuItem
		//
		filterSetTraceLevelNotesToolStripMenuItem.Text = "&Notes";
		//
		// filterSetTraceLevelStatusToolStripMenuItem
		//
		filterSetTraceLevelStatusToolStripMenuItem.Text = "&Status";
		//
		// filterSetTraceLevelWarningToolStripMenuItem
		//
		filterSetTraceLevelWarningToolStripMenuItem.Text = "&Warning";
		//
		// filterSetTraceLevelErrorToolStripMenuItem
		//
		filterSetTraceLevelErrorToolStripMenuItem.Text = "&Error";
		//
		// filterSetTraceLevelCriticalToolStripMenuItem
		//
		filterSetTraceLevelCriticalToolStripMenuItem.Text = "&Critical Error";
		// 
		// filterConfigToolStripMenuItem
		// 
		filterConfigToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterConfigToolStripMenuItem.MergeIndex = 167;
		filterConfigToolStripMenuItem.Size = new Size (190, 22);
		filterConfigToolStripMenuItem.Text = "&Filter Configuration...";
		// 
		// filterClearAllToolStripMenuItem
		// 
		filterClearAllToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterClearAllToolStripMenuItem.MergeIndex = 168;
		filterClearAllToolStripMenuItem.Size = new Size (190, 22);
		filterClearAllToolStripMenuItem.Text = "Clear &All Filters";
		// 
		// filterSavedFiltersToolStripMenuItem
		// 
		filterSavedFiltersToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
            filterSaveCurrentFilterToolStripMenuItem,
            filterImportFiltersToolStripMenuItem});
		filterSavedFiltersToolStripMenuItem.MergeAction = MergeAction.Insert;
		filterSavedFiltersToolStripMenuItem.Size = new Size (190, 22);
		filterSavedFiltersToolStripMenuItem.Text = "Saved Filters";
		// 
		// filterSaveCurrentFilterToolStripMenuItem
		// 
		filterSaveCurrentFilterToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterSaveCurrentFilterToolStripMenuItem.MergeIndex = 168;
		filterSaveCurrentFilterToolStripMenuItem.Size = new Size (190, 22);
		filterSaveCurrentFilterToolStripMenuItem.Text = "&Save Current Filter As...";
		// 
		// filterImportFiltersToolStripMenuItem
		// 
		filterImportFiltersToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.filterImportFiltersToolStripMenuItem.MergeIndex = 168;
		filterImportFiltersToolStripMenuItem.Size = new Size (190, 22);
		filterImportFiltersToolStripMenuItem.Text = "I&mport Filters From...";
		// 
		// searchToolStripMenuItem
		// 
		searchToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] {
            searchForwardToolStripMenuItem,
            searchBackwardToolStripMenuItem,
            searchForwardOnNamedFilterToolStripMenuItem,
            searchBackwardOnNamedFilterToolStripMenuItem,
            searchForwardOnMsgTypeFilterToolStripMenuItem,
            searchBackwardOnMsgTypeFilterToolStripMenuItem,
            toolStripSeparator80,
            searchForwardAgainToolStripMenuItem,
            searchBackwardAgainToolStripMenuItem,
            toolStripSeparator81,
            searchMatchingScopeToolStripMenuItem,
            searchTimestampJumpToolStripMenuItem,
            searchNextSameThreadToolStripMenuItem,
            searchPrevSameThreadToolStripMenuItem,
            searchStepOutForwardCallLevelToolStripMenuItem,
            searchStepOutBackwardCallLevelToolStripMenuItem,
            searchStepOverForwardCallLevelToolStripMenuItem,
            searchStepOverBackwardCallLevelToolStripMenuItem,
            searchStepIntoForwardCallLevelToolStripMenuItem,
            searchStepIntoBackwardCallLevelToolStripMenuItem,
            toolStripSeparator82,
            searchToggleBookmarkToolStripMenuItem,
            searchNextBookmarkToolStripMenuItem,
            searchPrevBookmarkToolStripMenuItem});
		searchToolStripMenuItem.MergeAction = MergeAction.Insert;
		searchToolStripMenuItem.MergeIndex = 4;
		searchToolStripMenuItem.Size = new Size (41, 20);
		searchToolStripMenuItem.Text = "&Search";
		// 
		// searchForwardToolStripMenuItem
		// 
		searchForwardToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchForwardToolStripMenuItem.MergeIndex = 167;
		searchForwardToolStripMenuItem.Size = new Size (190, 22);
		searchForwardToolStripMenuItem.Text = "Search &Forward...";
		searchForwardToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+F";
		searchForwardToolStripMenuItem.ShowShortcutKeys = true;
		searchForwardToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.F;
		// 
		// searchBackwardToolStripMenuItem
		// 
		searchBackwardToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchBackwardToolStripMenuItem.MergeIndex = 167;
		searchBackwardToolStripMenuItem.Size = new Size (190, 22);
		searchBackwardToolStripMenuItem.Text = "Search &Backward...";
		searchBackwardToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+F";
		searchBackwardToolStripMenuItem.ShowShortcutKeys = true;
		searchBackwardToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.F;
		// 
		// searchForwardOnNamedFilterToolStripMenuItem 
		// 
		searchForwardOnNamedFilterToolStripMenuItem.DropDownItems.Add ("(none)");
		searchForwardOnNamedFilterToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchForwardOnNamedFilterToolStripMenuItem .MergeIndex = 167;
		searchForwardOnNamedFilterToolStripMenuItem.Size = new Size (190, 22);
		searchForwardOnNamedFilterToolStripMenuItem.Text = "Search Forward on Named Expression";
		// 
		// searchBackwardOnNamedFilterToolStripMenuItem 
		// 
		searchBackwardOnNamedFilterToolStripMenuItem.DropDownItems.Add ("(none)");
		searchBackwardOnNamedFilterToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchBackwardOnNamedFilterToolStripMenuItem .MergeIndex = 167;
		searchBackwardOnNamedFilterToolStripMenuItem.Size = new Size (190, 22);
		searchBackwardOnNamedFilterToolStripMenuItem.Text = "Search Backward on Named Expression";
		// 
		// searchForwardOnMsgTypeFilterToolStripMenuItem 
		// 
		searchForwardOnMsgTypeFilterToolStripMenuItem.Size = new Size (190, 22);
		searchForwardOnMsgTypeFilterToolStripMenuItem.Text = "Search Forward on Message Type";
		// 
		// searchBackwardOnMsgTypeFilterToolStripMenuItem 
		// 
		searchBackwardOnMsgTypeFilterToolStripMenuItem.Size = new Size (190, 22);
		searchBackwardOnMsgTypeFilterToolStripMenuItem.Text = "Search Backward on Message Type";
		// 
		// toolStripSeparator80
		// 
		toolStripSeparator80.Size = new Size (148, 6);
		toolStripSeparator80.MergeAction = MergeAction.Insert;
		// 
		// searchForwardAgainToolStripMenuItem
		// 
		searchForwardAgainToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchForwardAgainToolStripMenuItem.MergeIndex = 167;
		searchForwardAgainToolStripMenuItem.Size = new Size (190, 22);
		searchForwardAgainToolStripMenuItem.Text = "Search Forward Again";
		searchForwardAgainToolStripMenuItem.ShortcutKeyDisplayString = "F3";
		searchForwardAgainToolStripMenuItem.ShowShortcutKeys = true;
		searchForwardAgainToolStripMenuItem.ShortcutKeys = Keys.F3;
		// 
		// searchBackwardAgainToolStripMenuItem
		// 
		searchBackwardAgainToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchBackwardAgainToolStripMenuItem.MergeIndex = 167;
		searchBackwardAgainToolStripMenuItem.Size = new Size (190, 22);
		searchBackwardAgainToolStripMenuItem.Text = "Search Backward Again";
		searchBackwardAgainToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F3";
		searchBackwardAgainToolStripMenuItem.ShowShortcutKeys = true;
		searchBackwardAgainToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F3;
		// 
		// toolStripSeparator81
		// 
		toolStripSeparator81.Size = new Size (148, 6);
		toolStripSeparator81.MergeAction = MergeAction.Insert;
		// 
		// searchMatchingScopeToolStripMenuItem
		// 
		searchMatchingScopeToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchMatchingScopeToolStripMenuItem.MergeIndex = 167;
		searchMatchingScopeToolStripMenuItem.Size = new Size (190, 22);
		searchMatchingScopeToolStripMenuItem.Text = "Jump to Matching Scope/Create";
		searchMatchingScopeToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+E";
		searchMatchingScopeToolStripMenuItem.ShowShortcutKeys = true;
		searchMatchingScopeToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.E;
		// 
		// searchTimestampJumpToolStripMenuItem
		// 
		searchTimestampJumpToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchTimestampJumpToolStripMenuItem.MergeIndex = 167;
		searchTimestampJumpToolStripMenuItem.Size = new Size (190, 22);
		searchTimestampJumpToolStripMenuItem.Text = "Jump to Specific Timestamp";
		searchTimestampJumpToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+T";
		searchTimestampJumpToolStripMenuItem.ShowShortcutKeys = true;
		searchTimestampJumpToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.T;
		// 
		// searchNextSameThreadToolStripMenuItem
		// 
		searchNextSameThreadToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchNextSameThreadToolStripMenuItem.MergeIndex = 167;
		searchNextSameThreadToolStripMenuItem.Size = new Size (190, 22);
		searchNextSameThreadToolStripMenuItem.Text = "Jump to Next Thread Message";
		searchNextSameThreadToolStripMenuItem.ShortcutKeyDisplayString = "F4";
		searchNextSameThreadToolStripMenuItem.ShowShortcutKeys = true;
		searchNextSameThreadToolStripMenuItem.ShortcutKeys = Keys.F4;
		// 
		// searchPrevSameThreadToolStripMenuItem
		// 
		searchPrevSameThreadToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchPrevSameThreadToolStripMenuItem.MergeIndex = 167;
		searchPrevSameThreadToolStripMenuItem.Size = new Size (190, 22);
		searchPrevSameThreadToolStripMenuItem.Text = "Jump to Previous Thread Message";
		searchPrevSameThreadToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F4";
		searchPrevSameThreadToolStripMenuItem.ShowShortcutKeys = true;
		searchPrevSameThreadToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F4;
		// 
		// searchStepOutForwardCallLevelToolStripMenuItem
		// 
		searchStepOutForwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepOutForwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepOutForwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepOutForwardCallLevelToolStripMenuItem.Text = "Jump Out of Current Call Level";
		searchStepOutForwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "F12";
		searchStepOutForwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepOutForwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.F12;
		// 
		// searchStepOutBackwardCallLevelToolStripMenuItem
		// 
		searchStepOutBackwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepOutBackwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepOutBackwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepOutBackwardCallLevelToolStripMenuItem.Text = "Back Out of Current Call Level";
		searchStepOutBackwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F12";
		searchStepOutBackwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepOutBackwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F12;
		// 
		// searchStepOverForwardCallLevelToolStripMenuItem
		// 
		searchStepOverForwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepOverForwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepOverForwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepOverForwardCallLevelToolStripMenuItem.Text = "Step Over Next Call Level";
		searchStepOverForwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "F10";
		searchStepOverForwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepOverForwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.F10;
		// 
		// searchStepOverBackwardCallLevelToolStripMenuItem
		// 
		searchStepOverBackwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepOverBackwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepOverBackwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepOverBackwardCallLevelToolStripMenuItem.Text = "Back Over Next Call Level";
		searchStepOverBackwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F10";
		searchStepOverBackwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepOverBackwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F10;
		// 
		// searchStepIntoForwardCallLevelToolStripMenuItem
		// 
		searchStepIntoForwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepIntoForwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepIntoForwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepIntoForwardCallLevelToolStripMenuItem.Text = "Step Into Next Call Level";
		searchStepIntoForwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "F11";
		searchStepIntoForwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepIntoForwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.F11;
		// 
		// searchStepIntoBackwardCallLevelToolStripMenuItem
		// 
		searchStepIntoBackwardCallLevelToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchStepIntoBackwardCallLevelToolStripMenuItem.MergeIndex = 167;
		searchStepIntoBackwardCallLevelToolStripMenuItem.Size = new Size (190, 22);
		searchStepIntoBackwardCallLevelToolStripMenuItem.Text = "Back Into Next Call Level";
		searchStepIntoBackwardCallLevelToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F11";
		searchStepIntoBackwardCallLevelToolStripMenuItem.ShowShortcutKeys = true;
		searchStepIntoBackwardCallLevelToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F11;
		// 
		// toolStripSeparator82
		// 
		toolStripSeparator82.Size = new Size (148, 6);
		toolStripSeparator82.MergeAction = MergeAction.Insert;
		// 
		// searchToggleBookmarkToolStripMenuItem
		// 
		searchToggleBookmarkToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchToggleBookmarkToolStripMenuItem.MergeIndex = 167;
		searchToggleBookmarkToolStripMenuItem.Size = new Size (190, 22);
		searchToggleBookmarkToolStripMenuItem.Text = "Toggle Bookmark";
		searchToggleBookmarkToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+F2";
		searchToggleBookmarkToolStripMenuItem.ShowShortcutKeys = true;
		searchToggleBookmarkToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.F2;
		// 
		// searchNextBookmarkToolStripMenuItem
		// 
		searchNextBookmarkToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchNextBookmarkToolStripMenuItem.MergeIndex = 167;
		searchNextBookmarkToolStripMenuItem.Size = new Size (190, 22);
		searchNextBookmarkToolStripMenuItem.Text = "Jump to Next Bookmark";
		searchNextBookmarkToolStripMenuItem.ShortcutKeyDisplayString = "F2";
		searchNextBookmarkToolStripMenuItem.ShowShortcutKeys = true;
		searchNextBookmarkToolStripMenuItem.ShortcutKeys = Keys.F2;
		// 
		// searchPrevBookmarkToolStripMenuItem
		// 
		searchPrevBookmarkToolStripMenuItem.MergeAction = MergeAction.Insert;
		//is.searchPrevBookmarkToolStripMenuItem.MergeIndex = 167;
		searchPrevBookmarkToolStripMenuItem.Size = new Size (190, 22);
		searchPrevBookmarkToolStripMenuItem.Text = "Jump to Previous Bookmark";
		searchPrevBookmarkToolStripMenuItem.ShortcutKeyDisplayString = "Shift+F2";
		searchPrevBookmarkToolStripMenuItem.ShowShortcutKeys = true;
		searchPrevBookmarkToolStripMenuItem.ShortcutKeys = Keys.Shift | Keys.F2;
		// 
		// toolsMenu
		// 
		toolsMenu.DropDownItems.Add (toolsAnaylzeContextAttribs);
		toolsMenu.MergeAction = MergeAction.MatchOnly;
		toolsMenu.MergeIndex = -1;
		toolsMenu.Size = new Size (41, 20);
		toolsMenu.Text = "&Tools";
		// 
		// toolsAnaylzeContextAttribs
		// 
		toolsAnaylzeContextAttribs.Size = new Size (23, 22);
		toolsAnaylzeContextAttribs.Text = "Analyze &Distinct Context Attribute Values";
		// 
		// ChildForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (150, 150);
		_menuStrip.ResumeLayout (false);
		_menuStrip.PerformLayout ();
		ResumeLayout (false);
		PerformLayout ();
	}
Esempio n. 44
0
    void InitUI()
    {
        MenuStrip ms = new MenuStrip();
          ToolStripMenuItem file = new ToolStripMenuItem("&File");
          ToolStripMenuItem newDB = new ToolStripMenuItem(
                  "&New", null, new EventHandler(OnNew));
          ToolStripMenuItem exit = new ToolStripMenuItem(
                  "E&xit", null, new EventHandler(OnExit));
          Button btnOK = new Button();
          int PANEL_HEIGHT = btnOK.Height + PANEL_SPACE;
          tb = new TextBox();
          Panel btnPnl = new Panel();

          newDB.ShortcutKeys = Keys.Control | Keys.N;
          file.DropDownItems.Add(newDB);
          file.DropDownItems.Add(exit);

          ms.Parent = this;
          ms.Items.Add(file);
          MainMenuStrip = ms;

          tb.Parent = this;
          tb.Width = this.Width-BORDERPADDING;
          int X = (this.Width - tb.Width)/2;
          int Y = (this.Height - tb.Height)/2;
          tb.Location = new Point(X,Y);

          btnPnl.Parent = this;
          btnPnl.Dock = DockStyle.Bottom;

          X += btnOK.Width;
          Y = (PANEL_HEIGHT - btnOK.Height) / 2;

          btnOK.Text = "Velja";
          btnOK.Parent = btnPnl;
          btnOK.Location = new Point(this.Width-X, Y);
          btnOK.Click += new EventHandler(OkClicked);
    }
Esempio n. 45
0
 private void InitializeComponent()
 {
     this.dtGdVw1    = new DataGridView();
     this.menuStrip1 = new MenuStrip();
     this.оценкаСтиляToolStripMenuItem         = new ToolStripMenuItem();
     this.оценкаНадежностиToolStripMenuItem    = new ToolStripMenuItem();
     this.оценкаЕкономичностиToolStripMenuItem = new ToolStripMenuItem();
     this.весаКритериевToolStripMenuItem       = new ToolStripMenuItem();
     this.результатToolStripMenuItem           = new ToolStripMenuItem();
     this.dataGridView1 = new DataGridView();
     ((ISupportInitialize)this.dtGdVw1).BeginInit();
     this.menuStrip1.SuspendLayout();
     ((ISupportInitialize)this.dataGridView1).BeginInit();
     base.SuspendLayout();
     this.dtGdVw1.AllowUserToAddRows          = false;
     this.dtGdVw1.AllowUserToDeleteRows       = false;
     this.dtGdVw1.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
     this.dtGdVw1.BackgroundColor             = SystemColors.Control;
     this.dtGdVw1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dtGdVw1.Location        = new Point(27, 251);
     this.dtGdVw1.Name            = "dtGdVw1";
     this.dtGdVw1.ReadOnly        = true;
     this.dtGdVw1.RowHeadersWidth = 120;
     this.dtGdVw1.Size            = new Size(502, 210);
     this.dtGdVw1.TabIndex        = 0;
     this.dtGdVw1.Visible         = false;
     this.menuStrip1.Items.AddRange(new ToolStripItem[]
     {
         this.оценкаСтиляToolStripMenuItem,
         this.оценкаНадежностиToolStripMenuItem,
         this.оценкаЕкономичностиToolStripMenuItem,
         this.весаКритериевToolStripMenuItem,
         this.результатToolStripMenuItem
     });
     this.menuStrip1.Location = new Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new Size(563, 24);
     this.menuStrip1.TabIndex = 7;
     this.menuStrip1.Text     = "menuStrip1";
     this.оценкаСтиляToolStripMenuItem.Name            = "оценкаСилыToolStripMenuItem";
     this.оценкаСтиляToolStripMenuItem.Size            = new Size(89, 20);
     this.оценкаСтиляToolStripMenuItem.Text            = "Оценка силы";
     this.оценкаСтиляToolStripMenuItem.Click          += new EventHandler(this.оценкаСтиляToolStripMenuItem_Click);
     this.оценкаНадежностиToolStripMenuItem.Enabled    = false;
     this.оценкаНадежностиToolStripMenuItem.Name       = "оценкаСкоростиToolStripMenuItem";
     this.оценкаНадежностиToolStripMenuItem.Size       = new Size(123, 20);
     this.оценкаНадежностиToolStripMenuItem.Text       = "Оценка Скорости";
     this.оценкаНадежностиToolStripMenuItem.Click     += new EventHandler(this.оценкаНадежностиToolStripMenuItem_Click);
     this.оценкаЕкономичностиToolStripMenuItem.Enabled = false;
     this.оценкаЕкономичностиToolStripMenuItem.Name    = "оценкаЛовкостиToolStripMenuItem";
     this.оценкаЕкономичностиToolStripMenuItem.Size    = new Size(137, 20);
     this.оценкаЕкономичностиToolStripMenuItem.Text    = "Оценка Ловкости";
     this.оценкаЕкономичностиToolStripMenuItem.Click  += new EventHandler(this.оценкаЕкономичностиToolStripMenuItem_Click);
     this.весаКритериевToolStripMenuItem.Enabled       = false;
     this.весаКритериевToolStripMenuItem.Name          = "весаКритериевToolStripMenuItem";
     this.весаКритериевToolStripMenuItem.Size          = new Size(99, 20);
     this.весаКритериевToolStripMenuItem.Text          = "Веса критериев";
     this.весаКритериевToolStripMenuItem.Click        += new EventHandler(this.весаКритериевToolStripMenuItem_Click);
     this.результатToolStripMenuItem.Enabled           = false;
     this.результатToolStripMenuItem.Name           = "результатToolStripMenuItem";
     this.результатToolStripMenuItem.Size           = new Size(72, 20);
     this.результатToolStripMenuItem.Text           = "Результат";
     this.результатToolStripMenuItem.Click         += new EventHandler(this.результатToolStripMenuItem_Click);
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
     this.dataGridView1.BackgroundColor             = SystemColors.Control;
     this.dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Location        = new Point(27, 39);
     this.dataGridView1.Name            = "dataGridView1";
     this.dataGridView1.ReadOnly        = true;
     this.dataGridView1.RowHeadersWidth = 120;
     this.dataGridView1.Size            = new Size(502, 190);
     this.dataGridView1.TabIndex        = 8;
     this.dataGridView1.Visible         = false;
     base.AutoScaleDimensions           = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize    = new Size(563, 514);
     base.Controls.Add(this.dataGridView1);
     base.Controls.Add(this.dtGdVw1);
     base.Controls.Add(this.menuStrip1);
     base.MainMenuStrip = this.menuStrip1;
     base.Name          = "Form1";
     this.Text          = "Аналитическая иерархическая процедура Швец СП-13-2";
     base.Load         += new EventHandler(this.Form1_Load);
     ((ISupportInitialize)this.dtGdVw1).EndInit();
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     ((ISupportInitialize)this.dataGridView1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }