Inheritance: ToolStripItem, System.ComponentModel.IComponent, System.IDisposable, IDropTarget, ISupportOleDropSource, System.Windows.Forms.Layout.IArrangedElement
Example #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 ContextMenuStripExam()
    {
        this.Text = "ContextMenuStrip 예제";

        Bitmap bmp1 = new Bitmap(GetType(), "ContextMenuStripExam.image_1.bmp");
        Bitmap bmp2 = new Bitmap(GetType(), "ContextMenuStripExam.image_2.bmp");

        // 2) 마우스 이벤트 추가
        this.MouseClick += new MouseEventHandler(ImageMenu_MouseClick);

        // 1) 개체 생성
        contextmenu = new ContextMenuStrip();

        // File 항목
        ToolStripMenuItem file_item = new ToolStripMenuItem();
        file_item.Text = "&File";
        file_item.Image = bmp1;
        contextmenu.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);
    }
    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);
    }
    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);
    }
    public StatusStripExam()
    {
        this.Text = "StatusStrip 예제";

        ImageList imglst = new ImageList();
        imglst.TransparentColor = Color.Black;
        imglst.Images.Add("Color", new Bitmap(GetType(), "StatusStripExam.ColorHS.BMP"));
        imglst.Images.Add("Comment", new Bitmap(GetType(), "StatusStripExam.CommentHS.bmp"));

        StatusStrip status = new StatusStrip();
        status.Parent = this;
        status.ImageList = imglst;

        color_btn = new ToolStripButton();
        color_btn.Image = imglst.Images[0];
        color_btn.Click += EventProc;
        status.Items.Add(color_btn);

        comment_btn = new ToolStripButton();
        comment_btn.ImageKey = "Comment";
        comment_btn.Click += EventProc;
        status.Items.Add(comment_btn);

        // 메뉴 구분선 넣기
        ToolStripSeparator item_sep = new ToolStripSeparator();
        status.Items.Add(item_sep);

        txt_box = new ToolStripComboBox();
        txt_box.ToolTipText = "글꼴 선택";
        txt_box.Text = "글꼴 선택";
        txt_box.Items.Add("궁서체");
        txt_box.Items.Add("돋움체");
        txt_box.Items.Add("바탕체");
        status.Items.Add(txt_box);

        label = new ToolStripLabel();
        label.Size = new Size(100, 10);
        status.Items.Add(label);

        // 프로그래스바 설정
        prog_bar = new ToolStripProgressBar();

        prog_bar.Size = new Size(100, 10);
        prog_bar.Maximum = 100;
        prog_bar.Minimum = 0;
        status.Items.Add(prog_bar);

        Timer timer = new Timer();
        timer.Tick += new EventHandler(TimerProc);
        timer.Interval = 1000;
        timer.Start();
    }
    public ToolStripExam()
    {
        this.Text = "ToolStrip 예제";

        // 이미지리스트 초기화
        ImageList imglst = new ImageList();
        imglst.TransparentColor = Color.Black;
        imglst.Images.Add("Copy", new Bitmap(GetType(), "ToolStripExam.CopyHS.bmp"));
        imglst.Images.Add("CopyFolder", new Bitmap(GetType(), "ToolStripExam.CopyFolderHS.bmp"));
        imglst.Images.Add("Cut", new Bitmap(GetType(), "ToolStripExam.CutHS.bmp"));

        // 툴바 생성
        ToolStrip tool = new ToolStrip();
        tool.Parent = this;     // 부모
        tool.ImageList = imglst;// 이미지 리스트 설정

        // 1. 툴바에 버튼 생성
        copy_btn = new ToolStripButton();
        copy_btn.ToolTipText = "복사";
        copy_btn.Image = imglst.Images[0];  // 이미지 설정1
        copy_btn.Click += EventProc;
        tool.Items.Add(copy_btn);

        // 2. 툴바에 버튼 생성
        copyfolder_btn = new ToolStripButton();
        copyfolder_btn.ToolTipText = "디렉토리 복사";
        copyfolder_btn.ImageKey = "CopyFolder"; //이미지설정2
        copyfolder_btn.Click += EventProc;
        tool.Items.Add(copyfolder_btn);

        // 3. 메뉴 구분선 넣기
        ToolStripSeparator item_sep = new ToolStripSeparator();
        tool.Items.Add(item_sep);

        // 4. 툴바에 버튼 생성
        cut_btn = new ToolStripButton();
        cut_btn.ToolTipText = "오려두기";
        cut_btn.ImageIndex = 2;         // 이미지설정3
        cut_btn.Click += EventProc;
        tool.Items.Add(cut_btn);

        // 5. 툴바에 콤보박스 추가
        txt_box = new ToolStripComboBox();
        txt_box.ToolTipText = "글꼴 선택";
        txt_box.Text = "글꼴 선택";
        txt_box.Items.Add("궁서체");
        txt_box.Items.Add("돋움체");
        txt_box.Items.Add("바탕체");
        txt_box.Click += FontDrawProc;
        tool.Items.Add(txt_box);
    }
    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);
    }
Example #8
0
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     this.panel1 = new Panel();
     this.cboConnectionString = new ComboBox();
     this.btnConnect = new Button();
     this.label1 = new Label();
     this.panel2 = new Panel();
     this.splitter2 = new Splitter();
     this.panel5 = new Panel();
     this.linkLabel1 = new LinkLabel();
     this.splitter1 = new Splitter();
     this.panel3 = new Panel();
     this.treeView1 = new TreeView();
     this.imageList_0 = new ImageList(this.icontainer_0);
     this.panel4 = new Panel();
     this.contextMenuStrip5 = new ContextMenuStrip(this.icontainer_0);
     this.显示隐藏代码窗口ToolStripMenuItem = new ToolStripMenuItem();
     this.label2 = new Label();
     this.contextMenuStrip1 = new ContextMenuStrip(this.icontainer_0);
     this.menuCopySpName = new ToolStripMenuItem();
     this.toolStripMenuItem1 = new ToolStripSeparator();
     this.menuGetXmlCommandBySP = new ToolStripMenuItem();
     this.contextMenuStrip2 = new ContextMenuStrip(this.icontainer_0);
     this.menuCopyTableName = new ToolStripMenuItem();
     this.toolStripMenuItem2 = new ToolStripSeparator();
     this.生成增删改命令到剪切板ToolStripMenuItem = new ToolStripMenuItem();
     this.contextMenuStrip3 = new ContextMenuStrip(this.icontainer_0);
     this.menuCopyDbName = new ToolStripMenuItem();
     this.名称ToolStripMenuItem = new ToolStripSeparator();
     this.根据查询生成数据实体类ToolStripMenuItem = new ToolStripMenuItem();
     this.toolStripMenuItem3 = new ToolStripSeparator();
     this.定位到指定对象ToolStripMenuItem = new ToolStripMenuItem();
     this.contextMenuStrip4 = new ContextMenuStrip(this.icontainer_0);
     this.menuCopyViewName = new ToolStripMenuItem();
     this.txtSqlScript = new SyntaxHighlighterControlFix();
     this.txtCsCode = new SyntaxHighlighterControlFix();
     this.ucParameterStyle1 = new ucParameterStyleFix();
     this.ucCsClassStyle1 = new UcCsClassStyleFix();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel3.SuspendLayout();
     this.panel4.SuspendLayout();
     this.contextMenuStrip5.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.contextMenuStrip2.SuspendLayout();
     this.contextMenuStrip3.SuspendLayout();
     this.contextMenuStrip4.SuspendLayout();
     base.SuspendLayout();
     this.panel1.Controls.Add(this.cboConnectionString);
     this.panel1.Controls.Add(this.btnConnect);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock = DockStyle.Top;
     this.panel1.Location = new Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new Size(0x38f, 0x24);
     this.panel1.TabIndex = 0;
     this.cboConnectionString.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this.cboConnectionString.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.cboConnectionString.FormattingEnabled = true;
     this.cboConnectionString.Location = new Point(0x4d, 7);
     this.cboConnectionString.Name = "cboConnectionString";
     this.cboConnectionString.Size = new Size(0x2ca, 0x17);
     this.cboConnectionString.TabIndex = 2;
     this.btnConnect.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this.btnConnect.FlatStyle = FlatStyle.Popup;
     this.btnConnect.Location = new Point(0x328, 8);
     this.btnConnect.Name = "btnConnect";
     this.btnConnect.Size = new Size(0x5e, 0x15);
     this.btnConnect.TabIndex = 0;
     this.btnConnect.Text = "连接数据库(&C)";
     this.btnConnect.UseVisualStyleBackColor = true;
     this.btnConnect.Click += new EventHandler(this.btnConnect_Click);
     this.label1.AutoSize = true;
     this.label1.Location = new Point(4, 11);
     this.label1.Name = "label1";
     this.label1.Size = new Size(0x41, 12);
     this.label1.TabIndex = 1;
     this.label1.Text = "连接字符串";
     this.panel2.Controls.Add(this.txtSqlScript);
     this.panel2.Controls.Add(this.splitter2);
     this.panel2.Controls.Add(this.txtCsCode);
     this.panel2.Controls.Add(this.panel5);
     this.panel2.Controls.Add(this.splitter1);
     this.panel2.Controls.Add(this.panel3);
     this.panel2.Dock = DockStyle.Fill;
     this.panel2.Location = new Point(0, 0x24);
     this.panel2.Name = "panel2";
     this.panel2.Size = new Size(0x38f, 0x221);
     this.panel2.TabIndex = 1;
     this.splitter2.Dock = DockStyle.Top;
     this.splitter2.Location = new Point(0xe1, 0x18a);
     this.splitter2.Name = "splitter2";
     this.splitter2.Size = new Size(0x2ae, 7);
     this.splitter2.TabIndex = 4;
     this.splitter2.TabStop = false;
     this.panel5.Controls.Add(this.ucParameterStyle1);
     this.panel5.Controls.Add(this.ucCsClassStyle1);
     this.panel5.Controls.Add(this.linkLabel1);
     this.panel5.Dock = DockStyle.Top;
     this.panel5.Location = new Point(0xe1, 0);
     this.panel5.Name = "panel5";
     this.panel5.Size = new Size(0x2ae, 0x1a);
     this.panel5.TabIndex = 2;
     this.linkLabel1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     //this.linkLabel1.Image = Resources.Help;
     this.linkLabel1.ImageAlign = ContentAlignment.MiddleLeft;
     this.linkLabel1.LinkBehavior = LinkBehavior.NeverUnderline;
     this.linkLabel1.Location = new Point(0x24b, 4);
     this.linkLabel1.Name = "linkLabel1";
     this.linkLabel1.Size = new Size(0x60, 0x11);
     this.linkLabel1.TabIndex = 7;
     this.linkLabel1.TabStop = true;
     this.linkLabel1.Text = "查看帮助页面";
     this.linkLabel1.TextAlign = ContentAlignment.MiddleRight;
     this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     this.splitter1.Location = new Point(0xdb, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new Size(6, 0x221);
     this.splitter1.TabIndex = 1;
     this.splitter1.TabStop = false;
     this.panel3.Controls.Add(this.treeView1);
     this.panel3.Controls.Add(this.panel4);
     this.panel3.Dock = DockStyle.Left;
     this.panel3.Location = new Point(0, 0);
     this.panel3.Name = "panel3";
     this.panel3.Size = new Size(0xdb, 0x221);
     this.panel3.TabIndex = 0;
     this.treeView1.Dock = DockStyle.Fill;
     this.treeView1.HideSelection = false;
     this.treeView1.ImageIndex = 0;
     this.treeView1.ImageList = this.imageList_0;
     this.treeView1.Location = new Point(0, 0x1a);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = 0;
     this.treeView1.Size = new Size(0xdb, 0x207);
     this.treeView1.TabIndex = 1;
     this.treeView1.AfterCollapse += new TreeViewEventHandler(this.treeView1_AfterCollapse);
     this.treeView1.BeforeExpand += new TreeViewCancelEventHandler(this.treeView1_BeforeExpand);
     this.treeView1.AfterSelect += new TreeViewEventHandler(this.treeView1_AfterSelect);
     this.treeView1.NodeMouseClick += new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
     this.treeView1.KeyDown += new KeyEventHandler(this.treeView1_KeyDown);
     this.treeView1.AfterExpand += new TreeViewEventHandler(this.treeView1_AfterExpand);
     this.imageList_0.ColorDepth = ColorDepth.Depth8Bit;
     this.imageList_0.ImageSize = new Size(0x10, 0x10);
     this.imageList_0.TransparentColor = Color.Transparent;
     this.panel4.ContextMenuStrip = this.contextMenuStrip5;
     this.panel4.Controls.Add(this.label2);
     this.panel4.Dock = DockStyle.Top;
     this.panel4.Location = new Point(0, 0);
     this.panel4.Name = "panel4";
     this.panel4.Size = new Size(0xdb, 0x1a);
     this.panel4.TabIndex = 0;
     this.contextMenuStrip5.Items.AddRange(new ToolStripItem[] { this.显示隐藏代码窗口ToolStripMenuItem });
     this.contextMenuStrip5.Name = "contextMenuStrip5";
     this.contextMenuStrip5.Size = new Size(0x99, 0x30);
     this.显示隐藏代码窗口ToolStripMenuItem.Name = "显示隐藏代码窗口ToolStripMenuItem";
     this.显示隐藏代码窗口ToolStripMenuItem.Size = new Size(0x98, 0x16);
     this.显示隐藏代码窗口ToolStripMenuItem.Text = "隐藏 代码窗口";
     this.显示隐藏代码窗口ToolStripMenuItem.Click += new EventHandler(this.显示隐藏代码窗口ToolStripMenuItem_Click);
     this.label2.AutoSize = true;
     this.label2.Location = new Point(4, 6);
     this.label2.Name = "label2";
     this.label2.Size = new Size(0x53, 12);
     this.label2.TabIndex = 0;
     this.label2.Text = "数据表列表(&D)";
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.menuCopySpName, this.toolStripMenuItem1, this.menuGetXmlCommandBySP });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new Size(210, 0x36);
     this.menuCopySpName.Name = "menuCopySpName";
     this.menuCopySpName.Size = new Size(0xd1, 0x16);
     this.menuCopySpName.Text = "复制名称";
     this.menuCopySpName.Click += new EventHandler(this.menuCopyViewName_Click);
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new Size(0xce, 6);
     this.menuGetXmlCommandBySP.Name = "menuGetXmlCommandBySP";
     this.menuGetXmlCommandBySP.Size = new Size(0xd1, 0x16);
     this.menuGetXmlCommandBySP.Text = "生成XmlCommand到剪切板";
     this.menuGetXmlCommandBySP.Click += new EventHandler(this.menuGetXmlCommandBySP_Click);
     this.contextMenuStrip2.Items.AddRange(new ToolStripItem[] { this.menuCopyTableName, this.toolStripMenuItem2, this.生成增删改命令到剪切板ToolStripMenuItem });
     this.contextMenuStrip2.Name = "contextMenuStrip2";
     this.contextMenuStrip2.Size = new Size(0xf6, 0x36);
     this.menuCopyTableName.Name = "menuCopyTableName";
     this.menuCopyTableName.Size = new Size(0xf5, 0x16);
     this.menuCopyTableName.Text = "复制名称";
     this.menuCopyTableName.Click += new EventHandler(this.menuCopyViewName_Click);
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new Size(0xf2, 6);
     this.生成增删改命令到剪切板ToolStripMenuItem.Name = "生成增删改命令到剪切板ToolStripMenuItem";
     this.生成增删改命令到剪切板ToolStripMenuItem.Size = new Size(0xf5, 0x16);
     this.生成增删改命令到剪切板ToolStripMenuItem.Text = "生成增删改XmlCommand到剪切板";
     this.生成增删改命令到剪切板ToolStripMenuItem.Click += new EventHandler(this.生成增删改命令到剪切板ToolStripMenuItem_Click);
     this.contextMenuStrip3.Items.AddRange(new ToolStripItem[] { this.menuCopyDbName, this.名称ToolStripMenuItem, this.根据查询生成数据实体类ToolStripMenuItem, this.toolStripMenuItem3, this.定位到指定对象ToolStripMenuItem });
     this.contextMenuStrip3.Name = "contextMenuStrip3";
     this.contextMenuStrip3.Size = new Size(0xcf, 0x52);
     this.menuCopyDbName.Name = "menuCopyDbName";
     this.menuCopyDbName.Size = new Size(0xce, 0x16);
     this.menuCopyDbName.Text = "复制名称";
     this.menuCopyDbName.Click += new EventHandler(this.menuCopyViewName_Click);
     this.名称ToolStripMenuItem.Name = "名称ToolStripMenuItem";
     this.名称ToolStripMenuItem.Size = new Size(0xcb, 6);
     this.根据查询生成数据实体类ToolStripMenuItem.Name = "根据查询生成数据实体类ToolStripMenuItem";
     this.根据查询生成数据实体类ToolStripMenuItem.Size = new Size(0xce, 0x16);
     this.根据查询生成数据实体类ToolStripMenuItem.Text = "根据查询生成数据实体类";
     this.根据查询生成数据实体类ToolStripMenuItem.Click += new EventHandler(this.根据查询生成数据实体类ToolStripMenuItem_Click);
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new Size(0xcb, 6);
     this.定位到指定对象ToolStripMenuItem.Name = "定位到指定对象ToolStripMenuItem";
     this.定位到指定对象ToolStripMenuItem.Size = new Size(0xce, 0x16);
     this.定位到指定对象ToolStripMenuItem.Text = "定位到指定对象";
     this.定位到指定对象ToolStripMenuItem.Click += new EventHandler(this.定位到指定对象ToolStripMenuItem_Click);
     this.contextMenuStrip4.Items.AddRange(new ToolStripItem[] { this.menuCopyViewName });
     this.contextMenuStrip4.Name = "contextMenuStrip4";
     this.contextMenuStrip4.Size = new Size(0x7b, 0x1a);
     this.menuCopyViewName.Name = "menuCopyViewName";
     this.menuCopyViewName.Size = new Size(0x7a, 0x16);
     this.menuCopyViewName.Text = "复制名称";
     this.menuCopyViewName.Click += new EventHandler(this.menuCopyViewName_Click);
     this.txtSqlScript.Dock = DockStyle.Fill;
     this.txtSqlScript.Location = new Point(0xe1, 0x191);
     this.txtSqlScript.Name = "txtSqlScript";
     this.txtSqlScript.Size = new Size(0x2ae, 0x90);
     this.txtSqlScript.TabIndex = 6;
     this.txtCsCode.Dock = DockStyle.Top;
     this.txtCsCode.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.txtCsCode.method_0("cs");
     this.txtCsCode.Location = new Point(0xe1, 0x1a);
     this.txtCsCode.Margin = new Padding(3, 4, 3, 4);
     this.txtCsCode.Name = "txtCsCode";
     this.txtCsCode.method_6(false);
     this.txtCsCode.Size = new Size(0x2ae, 0x170);
     this.txtCsCode.TabIndex = 5;
     this.ucParameterStyle1.Location = new Point(0x41, 0);
     this.ucParameterStyle1.Name = "ucParameterStyle1";
     this.ucParameterStyle1.Size = new Size(0x18d, 0x19);
     this.ucParameterStyle1.TabIndex = 9;
     this.ucParameterStyle1.Visible = false;
     this.ucParameterStyle1.method_0(new EventHandler(this.method_7));
     this.ucCsClassStyle1.Location = new Point(3, 0);
     this.ucCsClassStyle1.Name = "ucCsClassStyle1";
     this.ucCsClassStyle1.Size = new Size(0x1f6, 0x19);
     this.ucCsClassStyle1.TabIndex = 8;
     this.ucCsClassStyle1.Visible = false;
     this.ucCsClassStyle1.method_0(new EventHandler(this.method_7));
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x38f, 0x245);
     base.Controls.Add(this.panel2);
     base.Controls.Add(this.panel1);
     base.KeyPreview = true;
     this.MinimumSize = new Size(700, 400);
     base.Name = "MainForm";
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "FastDBEngine CodeGenerator for ORACLE";
     base.WindowState = FormWindowState.Maximized;
     base.Load += new EventHandler(this.MainForm_Load);
     base.Shown += new EventHandler(this.MainForm_Shown);
     base.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing);
     base.KeyDown += new KeyEventHandler(this.MainForm_KeyDown);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel5.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel4.PerformLayout();
     this.contextMenuStrip5.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.contextMenuStrip2.ResumeLayout(false);
     this.contextMenuStrip3.ResumeLayout(false);
     this.contextMenuStrip4.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Example #9
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);
	}
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(EncyclopediaEntryDetailsForm));

            this.Browser             = new WebBrowser();
            this.Toolbar             = new ToolStrip();
            this.DMBtn               = new ToolStripButton();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.ExportMenu          = new ToolStripDropDownButton();
            this.ExportHTML          = new ToolStripMenuItem();
            this.PlayerViewBtn       = new ToolStripButton();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.Browser.Dock = DockStyle.Fill;
            this.Browser.IsWebBrowserContextMenuEnabled = false;
            this.Browser.Location = new Point(0, 25);
            this.Browser.Name     = "Browser";
            this.Browser.ScriptErrorsSuppressed = true;
            this.Browser.Size     = new System.Drawing.Size(372, 337);
            this.Browser.TabIndex = 2;
            this.Browser.WebBrowserShortcutsEnabled = false;
            this.Browser.Navigating += new WebBrowserNavigatingEventHandler(this.Browser_Navigating);
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] dMBtn = new ToolStripItem[] { this.DMBtn, this.toolStripSeparator2, this.ExportMenu, this.PlayerViewBtn };
            items.AddRange(dMBtn);
            this.Toolbar.Location            = new Point(0, 0);
            this.Toolbar.Name                = "Toolbar";
            this.Toolbar.Size                = new System.Drawing.Size(372, 25);
            this.Toolbar.TabIndex            = 3;
            this.Toolbar.Text                = "toolStrip1";
            this.DMBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.DMBtn.Image                 = (Image)componentResourceManager.GetObject("DMBtn.Image");
            this.DMBtn.ImageTransparentColor = Color.Magenta;
            this.DMBtn.Name   = "DMBtn";
            this.DMBtn.Size   = new System.Drawing.Size(86, 22);
            this.DMBtn.Text   = "Show DM Info";
            this.DMBtn.Click += new EventHandler(this.DMBtn_Click);
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            this.ExportMenu.DisplayStyle  = ToolStripItemDisplayStyle.Text;
            this.ExportMenu.DropDownItems.AddRange(new ToolStripItem[] { this.ExportHTML });
            this.ExportMenu.Image = (Image)componentResourceManager.GetObject("ExportMenu.Image");
            this.ExportMenu.ImageTransparentColor = Color.Magenta;
            this.ExportMenu.Name                     = "ExportMenu";
            this.ExportMenu.Size                     = new System.Drawing.Size(53, 22);
            this.ExportMenu.Text                     = "Export";
            this.ExportHTML.Name                     = "ExportHTML";
            this.ExportHTML.Size                     = new System.Drawing.Size(157, 22);
            this.ExportHTML.Text                     = "Export to HTML";
            this.ExportHTML.Click                   += new EventHandler(this.ExportHTML_Click);
            this.PlayerViewBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.PlayerViewBtn.Image                 = (Image)componentResourceManager.GetObject("PlayerViewBtn.Image");
            this.PlayerViewBtn.ImageTransparentColor = Color.Magenta;
            this.PlayerViewBtn.Name                  = "PlayerViewBtn";
            this.PlayerViewBtn.Size                  = new System.Drawing.Size(114, 22);
            this.PlayerViewBtn.Text                  = "Send to Player View";
            this.PlayerViewBtn.Click                += new EventHandler(this.PlayerViewBtn_Click);
            base.AutoScaleDimensions                 = new SizeF(6f, 13f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize    = new System.Drawing.Size(372, 362);
            base.Controls.Add(this.Browser);
            base.Controls.Add(this.Toolbar);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "EncyclopediaEntryDetailsForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Encyclopedia Entry";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Example #11
0
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     this.toolStrip1 = new ToolStrip();
     this.btnState = new ToolStripDropDownButton();
     this.监听消息ToolStripMenuItem = new ToolStripMenuItem();
     this.停止监听ToolStripMenuItem = new ToolStripMenuItem();
     this.btnExport = new ToolStripDropDownButton();
     this.btnExportText = new ToolStripMenuItem();
     this.btnExportXml = new ToolStripMenuItem();
     this.toolStripMenuItem1 = new ToolStripSeparator();
     this.btnImportXml = new ToolStripMenuItem();
     this.btnDelete = new ToolStripDropDownButton();
     this.删除选定项ToolStripMenuItem = new ToolStripMenuItem();
     this.删除全部ToolStripMenuItem = new ToolStripMenuItem();
     this.toolStripSeparator2 = new ToolStripSeparator();
     this.btnTopMost = new ToolStripButton();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.btnExit = new ToolStripButton();
     this.txtExecuteInfo = new TextBox();
     this.splitter1 = new Splitter();
     this.listView1 = new ListView();
     this.columnHeader_5 = new ColumnHeader();
     this.columnHeader_0 = new ColumnHeader();
     this.columnHeader_1 = new ColumnHeader();
     this.columnHeader_2 = new ColumnHeader();
     this.columnHeader_3 = new ColumnHeader();
     this.columnHeader_4 = new ColumnHeader();
     this.imageList_0 = new ImageList(this.icontainer_0);
     this.toolStrip1.SuspendLayout();
     base.SuspendLayout();
     this.toolStrip1.Items.AddRange(new ToolStripItem[]
     {
         this.btnState,
         this.btnExport,
         this.btnDelete,
         this.toolStripSeparator2,
         this.btnTopMost,
         this.toolStripSeparator1,
         this.btnExit
     });
     this.toolStrip1.Location = new Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new Size(881, 25);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text = "toolStrip1";
     this.btnState.DropDownItems.AddRange(new ToolStripItem[]
     {
         this.监听消息ToolStripMenuItem,
         this.停止监听ToolStripMenuItem
     });
     //this.btnState.Image = Resources.ball3;
     this.btnState.Name = "btnState";
     this.btnState.Size = new Size(84, 22);
     this.btnState.Text = "监听消息";
     //this.监听消息ToolStripMenuItem.Image = Resources.ball3;
     this.监听消息ToolStripMenuItem.Name = "监听消息ToolStripMenuItem";
     this.监听消息ToolStripMenuItem.Size = new Size(122, 22);
     this.监听消息ToolStripMenuItem.Text = "监听消息";
     this.监听消息ToolStripMenuItem.Click += new EventHandler(this.监听消息ToolStripMenuItem_Click);
     //this.停止监听ToolStripMenuItem.Image = Resources.ball2;
     this.停止监听ToolStripMenuItem.Name = "停止监听ToolStripMenuItem";
     this.停止监听ToolStripMenuItem.Size = new Size(122, 22);
     this.停止监听ToolStripMenuItem.Text = "停止监听";
     this.停止监听ToolStripMenuItem.Click += new EventHandler(this.停止监听ToolStripMenuItem_Click);
     this.btnExport.DropDownItems.AddRange(new ToolStripItem[]
     {
         this.btnExportText,
         this.btnExportXml,
         this.toolStripMenuItem1,
         this.btnImportXml
     });
     //this.btnExport.Image = Resources.grid7;
     this.btnExport.Name = "btnExport";
     this.btnExport.Size = new Size(108, 22);
     this.btnExport.Text = "消息导入导出";
     this.btnExportText.Name = "btnExportText";
     this.btnExportText.Size = new Size(182, 22);
     this.btnExportText.Text = "以普通文本格式导出";
     this.btnExportText.Click += new EventHandler(this.btnExportText_Click);
     this.btnExportXml.Name = "btnExportXml";
     this.btnExportXml.Size = new Size(182, 22);
     this.btnExportXml.Text = "以XML格式导出";
     this.btnExportXml.Click += new EventHandler(this.btnExportXml_Click);
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new Size(179, 6);
     this.btnImportXml.Name = "btnImportXml";
     this.btnImportXml.Size = new Size(182, 22);
     this.btnImportXml.Text = "导入XML格式消息";
     this.btnImportXml.Click += new EventHandler(this.btnImportXml_Click);
     this.btnDelete.DropDownItems.AddRange(new ToolStripItem[]
     {
         this.删除选定项ToolStripMenuItem,
         this.删除全部ToolStripMenuItem
     });
     //this.btnDelete.Image = Resources.dele2;
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new Size(84, 22);
     this.btnDelete.Text = "删除消息";
     this.删除选定项ToolStripMenuItem.Name = "删除选定项ToolStripMenuItem";
     this.删除选定项ToolStripMenuItem.Size = new Size(158, 22);
     this.删除选定项ToolStripMenuItem.Text = "删除选定项";
     this.删除选定项ToolStripMenuItem.Click += new EventHandler(this.删除选定项ToolStripMenuItem_Click);
     this.删除全部ToolStripMenuItem.Name = "删除全部ToolStripMenuItem";
     this.删除全部ToolStripMenuItem.Size = new Size(158, 22);
     this.删除全部ToolStripMenuItem.Text = "删除全部列表项";
     this.删除全部ToolStripMenuItem.Click += new EventHandler(this.删除全部ToolStripMenuItem_Click);
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new Size(6, 25);
     this.btnTopMost.CheckOnClick = true;
     //this.btnTopMost.Image = Resources.unlockWnd;
     this.btnTopMost.Name = "btnTopMost";
     this.btnTopMost.Size = new Size(75, 22);
     this.btnTopMost.Text = "窗口置顶";
     this.btnTopMost.CheckStateChanged += new EventHandler(this.btnTopMost_CheckStateChanged);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new Size(6, 25);
     //this.btnExit.Image = Resources.exit2;
     this.btnExit.Name = "btnExit";
     this.btnExit.Size = new Size(75, 22);
     this.btnExit.Text = "退出程序";
     this.btnExit.Click += new EventHandler(this.btnExit_Click);
     this.txtExecuteInfo.AcceptsReturn = true;
     this.txtExecuteInfo.Dock = DockStyle.Bottom;
     this.txtExecuteInfo.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.txtExecuteInfo.Location = new Point(0, 303);
     this.txtExecuteInfo.Multiline = true;
     this.txtExecuteInfo.Name = "txtExecuteInfo";
     this.txtExecuteInfo.ReadOnly = true;
     this.txtExecuteInfo.ScrollBars = ScrollBars.Both;
     this.txtExecuteInfo.Size = new Size(881, 201);
     this.txtExecuteInfo.TabIndex = 1;
     this.txtExecuteInfo.WordWrap = false;
     this.splitter1.Dock = DockStyle.Bottom;
     this.splitter1.Location = new Point(0, 296);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new Size(881, 7);
     this.splitter1.TabIndex = 2;
     this.splitter1.TabStop = false;
     this.listView1.Columns.AddRange(new ColumnHeader[]
     {
         this.columnHeader_5,
         this.columnHeader_0,
         this.columnHeader_1,
         this.columnHeader_2,
         this.columnHeader_3,
         this.columnHeader_4
     });
     this.listView1.Dock = DockStyle.Fill;
     this.listView1.FullRowSelect = true;
     this.listView1.HideSelection = false;
     this.listView1.Location = new Point(0, 25);
     this.listView1.Name = "listView1";
     this.listView1.Size = new Size(881, 271);
     this.listView1.SmallImageList = this.imageList_0;
     this.listView1.TabIndex = 3;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = View.Details;
     this.listView1.SelectedIndexChanged += new EventHandler(this.listView1_SelectedIndexChanged);
     this.columnHeader_5.Text = "序号";
     this.columnHeader_5.Width = 54;
     this.columnHeader_0.Text = "命令文本";
     this.columnHeader_0.Width = 196;
     this.columnHeader_1.Text = "命令参数";
     this.columnHeader_1.Width = 210;
     this.columnHeader_2.Text = "开始时间";
     this.columnHeader_2.Width = 115;
     this.columnHeader_3.Text = "完成时间";
     this.columnHeader_3.Width = 168;
     this.columnHeader_4.Text = "应用程序标识";
     this.columnHeader_4.Width = 110;
     this.imageList_0.ColorDepth = ColorDepth.Depth8Bit;
     this.imageList_0.ImageSize = new Size(16, 16);
     this.imageList_0.TransparentColor = Color.Transparent;
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(881, 504);
     base.Controls.Add(this.listView1);
     base.Controls.Add(this.splitter1);
     base.Controls.Add(this.txtExecuteInfo);
     base.Controls.Add(this.toolStrip1);
     base.Name = "SQLProfilerForm";
     this.Text = "FastDBEngineSQLProfiler";
     base.Load += new EventHandler(this.SQLProfilerForm_Load);
     base.Shown += new EventHandler(this.SQLProfilerForm_Shown);
     base.FormClosing += new FormClosingEventHandler(this.SQLProfilerForm_FormClosing);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Example #12
0
        private void InitializeComponent()
        {
            _cMenTreeConnect            = new ToolStripMenuItem();
            _cMenTreeConnectWithOptions = new ToolStripMenuItem();
            _cMenTreeConnectWithOptionsConnectToConsoleSession     = new ToolStripMenuItem();
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession = new ToolStripMenuItem();
            _cMenTreeConnectWithOptionsConnectInFullscreen         = new ToolStripMenuItem();
            _cMenTreeConnectWithOptionsNoCredentials = new ToolStripMenuItem();
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting = new ToolStripMenuItem();
            _cMenTreeDisconnect            = new ToolStripMenuItem();
            _cMenTreeSep1                  = new ToolStripSeparator();
            _cMenTreeToolsExternalApps     = new ToolStripMenuItem();
            _cMenTreeToolsTransferFile     = new ToolStripMenuItem();
            _cMenTreeSep2                  = new ToolStripSeparator();
            _cMenTreeDuplicate             = new ToolStripMenuItem();
            _cMenTreeRename                = new ToolStripMenuItem();
            _cMenTreeDelete                = new ToolStripMenuItem();
            _cMenTreeSep3                  = new ToolStripSeparator();
            _cMenTreeImport                = new ToolStripMenuItem();
            _cMenTreeImportFile            = new ToolStripMenuItem();
            _cMenTreeImportActiveDirectory = new ToolStripMenuItem();
            _cMenTreeImportPortScan        = new ToolStripMenuItem();
            _cMenTreeExportFile            = new ToolStripMenuItem();
            _cMenTreeSep4                  = new ToolStripSeparator();
            _cMenTreeAddConnection         = new ToolStripMenuItem();
            _cMenTreeAddFolder             = new ToolStripMenuItem();
            _toolStripSeparator1           = new ToolStripSeparator();
            _cMenTreeToolsSort             = new ToolStripMenuItem();
            _cMenTreeToolsSortAscending    = new ToolStripMenuItem();
            _cMenTreeToolsSortDescending   = new ToolStripMenuItem();
            _cMenTreeMoveUp                = new ToolStripMenuItem();
            _cMenTreeMoveDown              = new ToolStripMenuItem();


            //
            // cMenTree
            //
            Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
            Items.AddRange(new ToolStripItem[] {
                _cMenTreeConnect,
                _cMenTreeConnectWithOptions,
                _cMenTreeDisconnect,
                _cMenTreeSep1,
                _cMenTreeToolsExternalApps,
                _cMenTreeToolsTransferFile,
                _cMenTreeSep2,
                _cMenTreeDuplicate,
                _cMenTreeRename,
                _cMenTreeDelete,
                _cMenTreeSep3,
                _cMenTreeImport,
                _cMenTreeExportFile,
                _cMenTreeSep4,
                _cMenTreeAddConnection,
                _cMenTreeAddFolder,
                _toolStripSeparator1,
                _cMenTreeToolsSort,
                _cMenTreeMoveUp,
                _cMenTreeMoveDown
            });
            Name       = "cMenTree";
            RenderMode = ToolStripRenderMode.Professional;
            Size       = new System.Drawing.Size(200, 364);
            //
            // cMenTreeConnect
            //
            _cMenTreeConnect.Image  = Resources.Play;
            _cMenTreeConnect.Name   = "_cMenTreeConnect";
            _cMenTreeConnect.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeConnect.Text   = "Connect";
            _cMenTreeConnect.Click += OnConnectClicked;
            //
            // cMenTreeConnectWithOptions
            //
            _cMenTreeConnectWithOptions.DropDownItems.AddRange(new ToolStripItem[] {
                _cMenTreeConnectWithOptionsConnectToConsoleSession,
                _cMenTreeConnectWithOptionsDontConnectToConsoleSession,
                _cMenTreeConnectWithOptionsConnectInFullscreen,
                _cMenTreeConnectWithOptionsNoCredentials,
                _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting
            });
            _cMenTreeConnectWithOptions.Name = "_cMenTreeConnectWithOptions";
            _cMenTreeConnectWithOptions.Size = new System.Drawing.Size(199, 22);
            _cMenTreeConnectWithOptions.Text = "Connect (with options)";
            //
            // cMenTreeConnectWithOptionsConnectToConsoleSession
            //
            _cMenTreeConnectWithOptionsConnectToConsoleSession.Image  = Resources.monitor_go;
            _cMenTreeConnectWithOptionsConnectToConsoleSession.Name   = "_cMenTreeConnectWithOptionsConnectToConsoleSession";
            _cMenTreeConnectWithOptionsConnectToConsoleSession.Size   = new System.Drawing.Size(245, 22);
            _cMenTreeConnectWithOptionsConnectToConsoleSession.Text   = "Connect to console session";
            _cMenTreeConnectWithOptionsConnectToConsoleSession.Click += OnConnectToConsoleSessionClicked;
            //
            // cMenTreeConnectWithOptionsDontConnectToConsoleSession
            //
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Image   = Resources.monitor_delete;
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Name    = "_cMenTreeConnectWithOptionsDontConnectToConsoleSession";
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Size    = new System.Drawing.Size(245, 22);
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Text    = "Don\'t connect to console session";
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Visible = false;
            _cMenTreeConnectWithOptionsDontConnectToConsoleSession.Click  += OnDontConnectToConsoleSessionClicked;
            //
            // cMenTreeConnectWithOptionsConnectInFullscreen
            //
            _cMenTreeConnectWithOptionsConnectInFullscreen.Image  = Resources.arrow_out;
            _cMenTreeConnectWithOptionsConnectInFullscreen.Name   = "_cMenTreeConnectWithOptionsConnectInFullscreen";
            _cMenTreeConnectWithOptionsConnectInFullscreen.Size   = new System.Drawing.Size(245, 22);
            _cMenTreeConnectWithOptionsConnectInFullscreen.Text   = "Connect in fullscreen";
            _cMenTreeConnectWithOptionsConnectInFullscreen.Click += OnConnectInFullscreenClicked;
            //
            // cMenTreeConnectWithOptionsNoCredentials
            //
            _cMenTreeConnectWithOptionsNoCredentials.Image  = Resources.key_delete;
            _cMenTreeConnectWithOptionsNoCredentials.Name   = "_cMenTreeConnectWithOptionsNoCredentials";
            _cMenTreeConnectWithOptionsNoCredentials.Size   = new System.Drawing.Size(245, 22);
            _cMenTreeConnectWithOptionsNoCredentials.Text   = "Connect without credentials";
            _cMenTreeConnectWithOptionsNoCredentials.Click += OnConnectWithNoCredentialsClick;
            //
            // cMenTreeConnectWithOptionsChoosePanelBeforeConnecting
            //
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Image  = Resources.Panels;
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Name   = "_cMenTreeConnectWithOptionsChoosePanelBeforeConnecting";
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Size   = new System.Drawing.Size(245, 22);
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Text   = "Choose panel before connecting";
            _cMenTreeConnectWithOptionsChoosePanelBeforeConnecting.Click += OnChoosePanelBeforeConnectingClicked;
            //
            // cMenTreeDisconnect
            //
            _cMenTreeDisconnect.Image  = Resources.Pause;
            _cMenTreeDisconnect.Name   = "_cMenTreeDisconnect";
            _cMenTreeDisconnect.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeDisconnect.Text   = "Disconnect";
            _cMenTreeDisconnect.Click += OnDisconnectClicked;
            //
            // cMenTreeSep1
            //
            _cMenTreeSep1.Name = "_cMenTreeSep1";
            _cMenTreeSep1.Size = new System.Drawing.Size(196, 6);
            //
            // cMenTreeToolsExternalApps
            //
            _cMenTreeToolsExternalApps.Image = Resources.ExtApp;
            _cMenTreeToolsExternalApps.Name  = "_cMenTreeToolsExternalApps";
            _cMenTreeToolsExternalApps.Size  = new System.Drawing.Size(199, 22);
            _cMenTreeToolsExternalApps.Text  = "External Applications";
            //
            // cMenTreeToolsTransferFile
            //
            _cMenTreeToolsTransferFile.Image  = Resources.SSHTransfer;
            _cMenTreeToolsTransferFile.Name   = "_cMenTreeToolsTransferFile";
            _cMenTreeToolsTransferFile.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeToolsTransferFile.Text   = "Transfer File (SSH)";
            _cMenTreeToolsTransferFile.Click += OnTransferFileClicked;
            //
            // cMenTreeSep2
            //
            _cMenTreeSep2.Name = "_cMenTreeSep2";
            _cMenTreeSep2.Size = new System.Drawing.Size(196, 6);
            //
            // cMenTreeDuplicate
            //
            _cMenTreeDuplicate.Image  = Resources.page_copy;
            _cMenTreeDuplicate.Name   = "_cMenTreeDuplicate";
            _cMenTreeDuplicate.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeDuplicate.Text   = "Duplicate";
            _cMenTreeDuplicate.Click += OnDuplicateClicked;
            //
            // cMenTreeRename
            //
            _cMenTreeRename.Image  = Resources.Rename;
            _cMenTreeRename.Name   = "_cMenTreeRename";
            _cMenTreeRename.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeRename.Text   = "Rename";
            _cMenTreeRename.Click += OnRenameClicked;
            //
            // cMenTreeDelete
            //
            _cMenTreeDelete.Image  = Resources.Delete;
            _cMenTreeDelete.Name   = "_cMenTreeDelete";
            _cMenTreeDelete.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeDelete.Text   = "Delete";
            _cMenTreeDelete.Click += OnDeleteClicked;
            //
            // cMenTreeSep3
            //
            _cMenTreeSep3.Name = "_cMenTreeSep3";
            _cMenTreeSep3.Size = new System.Drawing.Size(196, 6);
            //
            // cMenTreeImport
            //
            _cMenTreeImport.DropDownItems.AddRange(new ToolStripItem[] {
                _cMenTreeImportFile,
                _cMenTreeImportActiveDirectory,
                _cMenTreeImportPortScan
            });
            _cMenTreeImport.Name = "_cMenTreeImport";
            _cMenTreeImport.Size = new System.Drawing.Size(199, 22);
            _cMenTreeImport.Text = "&Import";
            //
            // cMenTreeImportFile
            //
            _cMenTreeImportFile.Name   = "_cMenTreeImportFile";
            _cMenTreeImportFile.Size   = new System.Drawing.Size(226, 22);
            _cMenTreeImportFile.Text   = "Import from &File...";
            _cMenTreeImportFile.Click += OnImportFileClicked;
            //
            // cMenTreeImportActiveDirectory
            //
            _cMenTreeImportActiveDirectory.Name   = "_cMenTreeImportActiveDirectory";
            _cMenTreeImportActiveDirectory.Size   = new System.Drawing.Size(226, 22);
            _cMenTreeImportActiveDirectory.Text   = "Import from &Active Directory...";
            _cMenTreeImportActiveDirectory.Click += OnImportActiveDirectoryClicked;
            //
            // cMenTreeImportPortScan
            //
            _cMenTreeImportPortScan.Name   = "_cMenTreeImportPortScan";
            _cMenTreeImportPortScan.Size   = new System.Drawing.Size(226, 22);
            _cMenTreeImportPortScan.Text   = "Import from &Port Scan...";
            _cMenTreeImportPortScan.Click += OnImportPortScanClicked;
            //
            // cMenTreeExportFile
            //
            _cMenTreeExportFile.Name   = "_cMenTreeExportFile";
            _cMenTreeExportFile.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeExportFile.Text   = "&Export to File...";
            _cMenTreeExportFile.Click += OnExportFileClicked;
            //
            // cMenTreeSep4
            //
            _cMenTreeSep4.Name = "_cMenTreeSep4";
            _cMenTreeSep4.Size = new System.Drawing.Size(196, 6);
            //
            // cMenTreeAddConnection
            //
            _cMenTreeAddConnection.Image  = Resources.Connection_Add;
            _cMenTreeAddConnection.Name   = "_cMenTreeAddConnection";
            _cMenTreeAddConnection.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeAddConnection.Text   = "New Connection";
            _cMenTreeAddConnection.Click += OnAddConnectionClicked;
            //
            // cMenTreeAddFolder
            //
            _cMenTreeAddFolder.Image  = Resources.Folder_Add;
            _cMenTreeAddFolder.Name   = "_cMenTreeAddFolder";
            _cMenTreeAddFolder.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeAddFolder.Text   = "New Folder";
            _cMenTreeAddFolder.Click += OnAddFolderClicked;
            //
            // ToolStripSeparator1
            //
            _toolStripSeparator1.Name = "_toolStripSeparator1";
            _toolStripSeparator1.Size = new System.Drawing.Size(196, 6);
            //
            // cMenTreeToolsSort
            //
            _cMenTreeToolsSort.DropDownItems.AddRange(new ToolStripItem[] {
                _cMenTreeToolsSortAscending,
                _cMenTreeToolsSortDescending
            });
            _cMenTreeToolsSort.Name = "_cMenTreeToolsSort";
            _cMenTreeToolsSort.Size = new System.Drawing.Size(199, 22);
            _cMenTreeToolsSort.Text = "Sort";
            //
            // cMenTreeToolsSortAscending
            //
            _cMenTreeToolsSortAscending.Image  = Resources.Sort_AZ;
            _cMenTreeToolsSortAscending.Name   = "_cMenTreeToolsSortAscending";
            _cMenTreeToolsSortAscending.Size   = new System.Drawing.Size(161, 22);
            _cMenTreeToolsSortAscending.Text   = "Ascending (A-Z)";
            _cMenTreeToolsSortAscending.Click += OnSortAscendingClicked;
            //
            // cMenTreeToolsSortDescending
            //
            _cMenTreeToolsSortDescending.Image  = Resources.Sort_ZA;
            _cMenTreeToolsSortDescending.Name   = "_cMenTreeToolsSortDescending";
            _cMenTreeToolsSortDescending.Size   = new System.Drawing.Size(161, 22);
            _cMenTreeToolsSortDescending.Text   = "Descending (Z-A)";
            _cMenTreeToolsSortDescending.Click += OnSortDescendingClicked;
            //
            // cMenTreeMoveUp
            //
            _cMenTreeMoveUp.Image  = Resources.Arrow_Up;
            _cMenTreeMoveUp.Name   = "_cMenTreeMoveUp";
            _cMenTreeMoveUp.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeMoveUp.Text   = "Move up";
            _cMenTreeMoveUp.Click += OnMoveUpClicked;
            //
            // cMenTreeMoveDown
            //
            _cMenTreeMoveDown.Image  = Resources.Arrow_Down;
            _cMenTreeMoveDown.Name   = "_cMenTreeMoveDown";
            _cMenTreeMoveDown.Size   = new System.Drawing.Size(199, 22);
            _cMenTreeMoveDown.Text   = "Move down";
            _cMenTreeMoveDown.Click += OnMoveDownClicked;
        }
Example #13
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(LibraryForm));
     this.mainMenu = new System.Windows.Forms.MenuStrip();
     this.fileMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.openItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveItem              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1   = new System.Windows.Forms.ToolStripSeparator();
     this.closeItem             = new System.Windows.Forms.ToolStripMenuItem();
     this.editMenu              = new System.Windows.Forms.ToolStripMenuItem();
     this.undoItem              = new System.Windows.Forms.ToolStripMenuItem();
     this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1    = new System.Windows.Forms.ToolStripSeparator();
     this.cutItem                = new System.Windows.Forms.ToolStripMenuItem();
     this.copyItem               = new System.Windows.Forms.ToolStripMenuItem();
     this.pasteItem              = new System.Windows.Forms.ToolStripMenuItem();
     this.compileMenu            = new System.Windows.Forms.ToolStripMenuItem();
     this.compileItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.optionsItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
     this.editor         = new JohnsHope.FPlot.CodeControl();
     this.mainMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileMenu,
         this.editMenu,
         this.compileMenu,
         this.helpToolStripMenuItem
     });
     this.mainMenu.Location = new System.Drawing.Point(0, 0);
     this.mainMenu.Name     = "mainMenu";
     this.mainMenu.Padding  = new System.Windows.Forms.Padding(4, 2, 0, 2);
     this.mainMenu.Size     = new System.Drawing.Size(538, 24);
     this.mainMenu.TabIndex = 0;
     //
     // fileMenu
     //
     this.fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.openItem,
         this.saveToolStripMenuItem,
         this.saveItem,
         this.toolStripSeparator1,
         this.closeItem
     });
     this.fileMenu.Name = "fileMenu";
     this.fileMenu.Size = new System.Drawing.Size(37, 20);
     this.fileMenu.Text = "&File";
     //
     // openItem
     //
     this.openItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuFileOpenIcon;
     this.openItem.Name   = "openItem";
     this.openItem.Size   = new System.Drawing.Size(121, 22);
     this.openItem.Text   = "&Open...";
     this.openItem.Click += new System.EventHandler(this.openClick);
     //
     // saveToolStripMenuItem
     //
     this.saveToolStripMenuItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuFileSaveIcon;
     this.saveToolStripMenuItem.Name   = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.Size   = new System.Drawing.Size(121, 22);
     this.saveToolStripMenuItem.Text   = "&Save";
     this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveClick);
     //
     // saveItem
     //
     this.saveItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuFileSaveAsIcon;
     this.saveItem.Name   = "saveItem";
     this.saveItem.Size   = new System.Drawing.Size(121, 22);
     this.saveItem.Text   = "Save &as...";
     this.saveItem.Click += new System.EventHandler(this.saveAsClick);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(118, 6);
     //
     // closeItem
     //
     this.closeItem.Name   = "closeItem";
     this.closeItem.Size   = new System.Drawing.Size(121, 22);
     this.closeItem.Text   = "&Close";
     this.closeItem.Click += new System.EventHandler(this.closeClick);
     //
     // editMenu
     //
     this.editMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.undoItem,
         this.redoToolStripMenuItem,
         this.toolStripMenuItem1,
         this.cutItem,
         this.copyItem,
         this.pasteItem
     });
     this.editMenu.Name = "editMenu";
     this.editMenu.Size = new System.Drawing.Size(39, 20);
     this.editMenu.Text = "&Edit";
     //
     // undoItem
     //
     this.undoItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuEditUndoIcon;
     this.undoItem.Name   = "undoItem";
     this.undoItem.Size   = new System.Drawing.Size(103, 22);
     this.undoItem.Text   = "&Undo";
     this.undoItem.Click += new System.EventHandler(this.undoClick);
     //
     // redoToolStripMenuItem
     //
     this.redoToolStripMenuItem.Image = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuEditRedoIcon;
     this.redoToolStripMenuItem.Name  = "redoToolStripMenuItem";
     this.redoToolStripMenuItem.Size  = new System.Drawing.Size(103, 22);
     this.redoToolStripMenuItem.Text  = "&Redo";
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(100, 6);
     //
     // cutItem
     //
     this.cutItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuEditCutIcon;
     this.cutItem.Name   = "cutItem";
     this.cutItem.Size   = new System.Drawing.Size(103, 22);
     this.cutItem.Text   = "Cu&t";
     this.cutItem.Click += new System.EventHandler(this.cutClick);
     //
     // copyItem
     //
     this.copyItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuEditCopyIcon;
     this.copyItem.Name   = "copyItem";
     this.copyItem.Size   = new System.Drawing.Size(103, 22);
     this.copyItem.Text   = "&Copy";
     this.copyItem.Click += new System.EventHandler(this.copyClick);
     //
     // pasteItem
     //
     this.pasteItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuEditPasteIcon;
     this.pasteItem.Name   = "pasteItem";
     this.pasteItem.Size   = new System.Drawing.Size(103, 22);
     this.pasteItem.Text   = "&Paste";
     this.pasteItem.Click += new System.EventHandler(this.pasteClick);
     //
     // compileMenu
     //
     this.compileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.compileItem,
         this.optionsItem
     });
     this.compileMenu.Name = "compileMenu";
     this.compileMenu.Size = new System.Drawing.Size(64, 20);
     this.compileMenu.Text = "&Compile";
     //
     // compileItem
     //
     this.compileItem.Image  = ((System.Drawing.Image)(resources.GetObject("compileItem.Image")));
     this.compileItem.Name   = "compileItem";
     this.compileItem.Size   = new System.Drawing.Size(175, 22);
     this.compileItem.Text   = "&Compile...";
     this.compileItem.Click += new System.EventHandler(this.compileClick);
     //
     // optionsItem
     //
     this.optionsItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuLayersLayerPropertiesIcon;
     this.optionsItem.Name   = "optionsItem";
     this.optionsItem.Size   = new System.Drawing.Size(175, 22);
     this.optionsItem.Text   = "Compiler &options...";
     this.optionsItem.Click += new System.EventHandler(this.optionsClick);
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.helpToolStripMenuItem1,
         this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem
     });
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
     this.helpToolStripMenuItem.Text = "&Help";
     //
     // helpToolStripMenuItem1
     //
     this.helpToolStripMenuItem1.Image = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuHelpHelpTopicsIcon;
     this.helpToolStripMenuItem1.Name  = "helpToolStripMenuItem1";
     this.helpToolStripMenuItem1.Size  = new System.Drawing.Size(256, 22);
     this.helpToolStripMenuItem1.Text  = "Help...";
     //
     // helpOnJohnsHopeFPlotLibraryToolStripMenuItem
     //
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem.Image  = global::JohnsHope.FPlot.Properties.Resources.Icons_MenuHelpTutorialsIcon;
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem.Name   = "helpOnJohnsHopeFPlotLibraryToolStripMenuItem";
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem.Size   = new System.Drawing.Size(256, 22);
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem.Text   = "Help on JohnsHope.FPlot.Library...";
     this.helpOnJohnsHopeFPlotLibraryToolStripMenuItem.Click += new System.EventHandler(this.helpClick);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "Source files (*.cs; *.c; *.cpp; *.txt)|*.cs;*.c;*.cpp;*.txt|All files|*.*";
     //
     // saveFileDialog
     //
     this.saveFileDialog.DefaultExt = "cs";
     this.saveFileDialog.Filter     = "Source files (*.cs; *.c; *.cpp; *.txt)|*.cs;*.c;*.cpp;*.txt|All files|*.*";
     //
     // editor
     //
     this.editor.AllowDrop = true;
     this.editor.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.editor.BackColor = System.Drawing.SystemColors.Control;
     this.editor.Location  = new System.Drawing.Point(0, 25);
     this.editor.Margin    = new System.Windows.Forms.Padding(2);
     this.editor.Name      = "editor";
     this.editor.Size      = new System.Drawing.Size(538, 517);
     this.editor.TabIndex  = 1;
     //
     // LibraryForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(538, 542);
     this.Controls.Add(this.editor);
     this.Controls.Add(this.mainMenu);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.mainMenu;
     this.Margin        = new System.Windows.Forms.Padding(2);
     this.Name          = "LibraryForm";
     this.mainMenu.ResumeLayout(false);
     this.mainMenu.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #14
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);
	}
Example #15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components                     = new Container();
     _contextMenuStrip              = new ContextMenuStrip(components);
     _selectAllToolStripMenuItem    = new ToolStripMenuItem();
     _toolStripSeparator1           = new ToolStripSeparator();
     _bringToFrontToolStripMenuItem = new ToolStripMenuItem();
     _sendToBackToolStripMenuItem   = new ToolStripMenuItem();
     _deleteToolStripMenuItem       = new ToolStripMenuItem();
     _toolStripSeparator2           = new ToolStripSeparator();
     _cutToolStripMenuItem          = new ToolStripMenuItem();
     _copyToolStripMenuItem         = new ToolStripMenuItem();
     _pasteToolStripMenuItem        = new ToolStripMenuItem();
     _toolStripSeparator3           = new ToolStripSeparator();
     _contextMenuStrip.SuspendLayout();
     SuspendLayout();
     //
     // contextMenuStrip
     //
     _contextMenuStrip.Items.AddRange(new ToolStripItem[] {
         _selectAllToolStripMenuItem,
         _toolStripSeparator1,
         _bringToFrontToolStripMenuItem,
         _sendToBackToolStripMenuItem,
         _toolStripSeparator3,
         _deleteToolStripMenuItem,
         _toolStripSeparator2,
         _cutToolStripMenuItem,
         _copyToolStripMenuItem,
         _pasteToolStripMenuItem
     });
     _contextMenuStrip.Name = @"_contextMenuStrip";
     _contextMenuStrip.Size = new Size(153, 198);
     //
     // selectAllToolStripMenuItem
     //
     _selectAllToolStripMenuItem.Name   = "selectAllToolStripMenuItem";
     _selectAllToolStripMenuItem.Size   = new Size(152, 22);
     _selectAllToolStripMenuItem.Text   = @"Select All";
     _selectAllToolStripMenuItem.Click += SelectAllToolStripMenuItemClick;
     //
     // toolStripSeparator1
     //
     _toolStripSeparator1.Name = "toolStripSeparator1";
     _toolStripSeparator1.Size = new Size(149, 6);
     //
     // bringToFrontToolStripMenuItem
     //
     _bringToFrontToolStripMenuItem.Name   = "bringToFrontToolStripMenuItem";
     _bringToFrontToolStripMenuItem.Size   = new Size(152, 22);
     _bringToFrontToolStripMenuItem.Text   = @"Bring to Front";
     _bringToFrontToolStripMenuItem.Click += BringToFrontToolStripMenuItemClick;
     //
     // sendToBackToolStripMenuItem
     //
     _sendToBackToolStripMenuItem.Name   = "sendToBackToolStripMenuItem";
     _sendToBackToolStripMenuItem.Size   = new Size(152, 22);
     _sendToBackToolStripMenuItem.Text   = @"Send to Back";
     _sendToBackToolStripMenuItem.Click += SendToBackToolStripMenuItemClick;
     //
     // deleteToolStripMenuItem
     //
     _deleteToolStripMenuItem.Name   = "deleteToolStripMenuItem";
     _deleteToolStripMenuItem.Size   = new Size(152, 22);
     _deleteToolStripMenuItem.Text   = @"Delete";
     _deleteToolStripMenuItem.Click += DeleteToolStripMenuItemClick;
     //
     // toolStripSeparator2
     //
     _toolStripSeparator2.Name = "toolStripSeparator2";
     _toolStripSeparator2.Size = new Size(149, 6);
     //
     // cutToolStripMenuItem
     //
     _cutToolStripMenuItem.Name   = "cutToolStripMenuItem";
     _cutToolStripMenuItem.Size   = new Size(152, 22);
     _cutToolStripMenuItem.Text   = @"Cut";
     _cutToolStripMenuItem.Click += CutToolStripMenuItemClick;
     //
     // copyToolStripMenuItem
     //
     _copyToolStripMenuItem.Name   = "copyToolStripMenuItem";
     _copyToolStripMenuItem.Size   = new Size(152, 22);
     _copyToolStripMenuItem.Text   = @"Copy";
     _copyToolStripMenuItem.Click += CopyToolStripMenuItemClick;
     //
     // pasteToolStripMenuItem
     //
     _pasteToolStripMenuItem.Name   = "pasteToolStripMenuItem";
     _pasteToolStripMenuItem.Size   = new Size(152, 22);
     _pasteToolStripMenuItem.Text   = @"Paste";
     _pasteToolStripMenuItem.Click += PasteToolStripMenuItemClick;
     //
     // toolStripSeparator3
     //
     _toolStripSeparator3.Name = "toolStripSeparator3";
     _toolStripSeparator3.Size = new Size(149, 6);
     //
     // DrawArea
     //
     AutoScroll = true;
     AutoSize   = true;
     Name       = "DrawArea";
     Size       = new Size(153, 136);
     Paint     += DrawArea_Paint;
     MouseMove += DrawArea_MouseMove;
     MouseDown += DrawArea_MouseDown;
     MouseUp   += DrawArea_MouseUp;
     _contextMenuStrip.ResumeLayout(false);
     ResumeLayout(false);
 }
Example #16
0
	public MainForm ()
	{
		ComponentResourceManager resources = new ComponentResourceManager (typeof (MainForm));
		SuspendLayout ();
		// 
		// _toolStrip
		// 
		_toolStrip = new ToolStrip ();
		_toolStrip.Location = new Point (0, 24);
		_toolStrip.Size = new Size (632, 25);
		_toolStrip.TabIndex = 1;
		_toolStrip.Text = "ToolStrip";
		Controls.Add (_toolStrip);
		// 
		// _separatorBar
		// 
		_separatorBar = new ToolStripSeparator ();
		// 
		// _newButton
		// 
		_newButton = new ToolStripButton ();
		_newButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		_newButton.Image = ((Image) (resources.GetObject ("_newButton.Image")));
		_newButton.ImageTransparentColor = Color.Black;
		_newButton.Text = "New";
		_toolStrip.Items.Add (_newButton);
		// 
		// _openButton
		// 
		_openButton = new ToolStripButton ();
		_openButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
		_openButton.Image = ((Image) (resources.GetObject ("_openButton.Image")));
		_openButton.ImageTransparentColor = Color.Black;
		_openButton.Text = "Open";
		_toolStrip.Items.Add (_openButton);
		_toolStrip.Items.Add (_separatorBar);
		// 
		// _textBox
		// 
		_textBox = new ToolStripTextBox ();
		_toolStrip.Items.Add (_textBox);
		_toolStrip.Items.Add (new ToolStripSeparator ());
		// 
		// _comboBox
		// 
		_comboBox = new ToolStripComboBox ();
		_toolStrip.Items.Add (_comboBox);
		// 
		// _toolStripEnabledCheckBox
		// 
		_toolStripEnabledCheckBox = new CheckBox ();
		_toolStripEnabledCheckBox.Checked = true;
		_toolStripEnabledCheckBox.Location = new Point (8, 75);
		_toolStripEnabledCheckBox.Size = new Size (70, 20);
		_toolStripEnabledCheckBox.Text = "Enabled";
		_toolStripEnabledCheckBox.CheckedChanged += new EventHandler (ToolStripEnabledCheckBox_CheckedChanged);
		Controls.Add (_toolStripEnabledCheckBox);
		// 
		// MainForm
		// 
		AutoScaleDimensions = new SizeF (6F, 13F);
		AutoScaleMode = AutoScaleMode.Font;
		ClientSize = new Size (300, 100);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82651";
		Load += new EventHandler (MainForm_Load);
		ResumeLayout (false);
		PerformLayout ();
	}
        //////////////////////////////////////////////////
        // Public static methods
        //////////////////////////////////////////////////
        #region Public static methods

        /// <summary>
        /// Clones the specified source tool strip menu item.
        /// </summary>
        /// <param name="sourceToolStripMenuItem">The source tool strip menu item.</param>
        /// <returns>A cloned version of the toolstrip menu item</returns>
        public static ToolStripMenuItem Clone(this ToolStripMenuItem sourceToolStripMenuItem)
        {
            ToolStripMenuItem menuItem = new ToolStripMenuItem();

            var propInfoList = from p in typeof(ToolStripMenuItem).GetProperties()
                               let attributes = p.GetCustomAttributes(true)
                                                let notBrowseable = (from a in attributes
                                                                     where a.GetType() == typeof(BrowsableAttribute)
                                                                     select !(a as BrowsableAttribute).Browsable).FirstOrDefault()
                                                                    where !notBrowseable && p.CanRead && p.CanWrite && p.Name != "DropDown"
                                                                    orderby p.Name
                                                                    select p;

            // Copy over using reflections
            foreach (var propertyInfo in propInfoList)
            {
                object propertyInfoValue = propertyInfo.GetValue(sourceToolStripMenuItem, null);
                propertyInfo.SetValue(menuItem, propertyInfoValue, null);
            }

            // Create a new menu name
            menuItem.Name = sourceToolStripMenuItem.Name + "-" + menuNameCounter++;

            // Process any other properties
            if (sourceToolStripMenuItem.ImageIndex != -1)
            {
                menuItem.ImageIndex = sourceToolStripMenuItem.ImageIndex;
            }

            if (!string.IsNullOrEmpty(sourceToolStripMenuItem.ImageKey))
            {
                menuItem.ImageKey = sourceToolStripMenuItem.ImageKey;
            }

            // We need to make this visible
            menuItem.Visible = true;

            // Recursively clone the drop down list
            foreach (var item in sourceToolStripMenuItem.DropDownItems)
            {
                ToolStripItem newItem;
                if (item is ToolStripMenuItem)
                {
                    newItem = ((ToolStripMenuItem)item).Clone();
                }
                else if (item is ToolStripSeparator)
                {
                    newItem = new ToolStripSeparator();
                }
                else
                {
                    throw new NotImplementedException("Menu item is not a ToolStripMenuItem or a ToolStripSeparatorr");
                }

                menuItem.DropDownItems.Add(newItem);
            }

            // The handler list starts empty because we created its parent via a new
            // So this is equivalen to a copy.
            menuItem.AddHandlers(sourceToolStripMenuItem);

            return(menuItem);
        }
Example #18
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MR));

            this.toolStrip1          = new ToolStrip();
            this.toolStripButton3    = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.toolStripComboBox1  = new ToolStripComboBox();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.toolStripButton1    = new ToolStripButton();
            this.toolStripButton2    = new ToolStripButton();
            this.propertyGrid1       = new PropertyGrid();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.toolStrip1.Items.AddRange(new ToolStripItem[6]
            {
                (ToolStripItem)this.toolStripButton3,
                (ToolStripItem)this.toolStripSeparator1,
                (ToolStripItem)this.toolStripComboBox1,
                (ToolStripItem)this.toolStripSeparator2,
                (ToolStripItem)this.toolStripButton1,
                (ToolStripItem)this.toolStripButton2
            });
            this.toolStrip1.Location                      = new Point(0, 0);
            this.toolStrip1.Name                          = "toolStrip1";
            this.toolStrip1.Size                          = new Size(462, 25);
            this.toolStrip1.TabIndex                      = 0;
            this.toolStrip1.Text                          = "toolStrip1";
            this.toolStripButton3.DisplayStyle            = ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Image                   = (Image)componentResourceManager.GetObject("toolStripButton3.Image");
            this.toolStripButton3.ImageTransparentColor   = Color.Magenta;
            this.toolStripButton3.Name                    = "toolStripButton3";
            this.toolStripButton3.Size                    = new Size(23, 22);
            this.toolStripButton3.Text                    = "toolStripButton3";
            this.toolStripButton3.Click                  += new EventHandler(this.toolStripButton3_Click);
            this.toolStripSeparator1.Name                 = "toolStripSeparator1";
            this.toolStripSeparator1.Size                 = new Size(6, 25);
            this.toolStripComboBox1.Name                  = "toolStripComboBox1";
            this.toolStripComboBox1.Size                  = new Size(121, 25);
            this.toolStripComboBox1.SelectedIndexChanged += new EventHandler(this.toolStripComboBox1_SelectedIndexChanged);
            this.toolStripSeparator2.Name                 = "toolStripSeparator2";
            this.toolStripSeparator2.Size                 = new Size(6, 25);
            this.toolStripButton1.DisplayStyle            = ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image                   = (Image)componentResourceManager.GetObject("toolStripButton1.Image");
            this.toolStripButton1.ImageTransparentColor   = Color.Magenta;
            this.toolStripButton1.Name                    = "toolStripButton1";
            this.toolStripButton1.Size                    = new Size(23, 22);
            this.toolStripButton1.Text                    = "toolStripButton1";
            this.toolStripButton1.Click                  += new EventHandler(this.toolStripButton1_Click);
            this.toolStripButton2.DisplayStyle            = ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Image                   = (Image)componentResourceManager.GetObject("toolStripButton2.Image");
            this.toolStripButton2.ImageTransparentColor   = Color.Magenta;
            this.toolStripButton2.Name                    = "toolStripButton2";
            this.toolStripButton2.Size                    = new Size(23, 22);
            this.toolStripButton2.Text                    = "toolStripButton2";
            this.toolStripButton2.Click                  += new EventHandler(this.toolStripButton2_Click);
            this.propertyGrid1.Dock                       = DockStyle.Fill;
            this.propertyGrid1.Location                   = new Point(0, 25);
            this.propertyGrid1.Name                       = "propertyGrid1";
            this.propertyGrid1.Size                       = new Size(462, 322);
            this.propertyGrid1.TabIndex                   = 1;
            this.propertyGrid1.PropertyValueChanged      += new PropertyValueChangedEventHandler(this.propertyGrid1_PropertyValueChanged);
            this.AutoScaleDimensions                      = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(462, 347);
            this.Controls.Add((Control)this.propertyGrid1);
            this.Controls.Add((Control)this.toolStrip1);
            this.Name  = nameof(MR);
            this.Text  = nameof(MR);
            this.Load += new EventHandler(this.MR_Load);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #19
0
        private void InitializeComponent()
        {
            this.components             = new System.ComponentModel.Container();
            this.menuStrip1             = new System.Windows.Forms.MenuStrip();
            this.menu_File              = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_LoadFile           = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_Save               = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem1     = new System.Windows.Forms.ToolStripSeparator();
            this.mnu_Close              = new System.Windows.Forms.ToolStripMenuItem();
            this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuPrintPreview        = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuPrint               = new System.Windows.Forms.ToolStripMenuItem();
            this.menu_Speech            = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_PlayFile           = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_StopPlayback       = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2     = new System.Windows.Forms.ToolStripSeparator();
            this.mnu_Voices             = new System.Windows.Forms.ToolStripMenuItem();
            this.cboVoices              = new System.Windows.Forms.ToolStripComboBox();
            this.mnu_PlaySpeed          = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_Faster             = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_Slower             = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_NormalSpeed        = new System.Windows.Forms.ToolStripMenuItem();
            this.EditMenu               = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.mnu_StartRedact        = new System.Windows.Forms.ToolStripMenuItem();
            this.mnu_EndRedact          = new System.Windows.Forms.ToolStripMenuItem();
            this.rulerBar1              = new TXTextControl.RulerBar();
            this.statusBar1             = new TXTextControl.StatusBar();
            this.rulerBar2              = new TXTextControl.RulerBar();
            this.menuStrip1.SuspendLayout();
            this.EditMenu.SuspendLayout();
            this.SuspendLayout();
            ToolStripItemCollection items = this.menuStrip1.Items;

            ToolStripItem[] menuFile = new ToolStripItem[] { this.menu_File, this.printToolStripMenuItem, this.menu_Speech };
            this.menuStrip1.Items.AddRange(menuFile);
            this.menuStrip1.Location = new Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new Size(936, 24);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            ToolStripItemCollection dropDownItems = this.menu_File.DropDownItems;

            ToolStripItem[] mnuLoadFile = new ToolStripItem[] { this.mnu_LoadFile, this.mnu_Save, this.toolStripMenuItem1, this.mnu_Close };
            this.menu_File.DropDownItems.AddRange(mnuLoadFile);
            this.menu_File.Name          = "menu_File";
            this.menu_File.Size          = new Size(37, 20);
            this.menu_File.Text          = "File";
            this.mnu_LoadFile.Name       = "mnu_LoadFile";
            this.mnu_LoadFile.Size       = new Size(103, 22);
            this.mnu_LoadFile.Text       = "Load";
            this.mnu_LoadFile.Click     += new EventHandler(this.mnu_LoadFile_Click);
            this.mnu_Save.Name           = "mnu_Save";
            this.mnu_Save.Size           = new Size(103, 22);
            this.mnu_Save.Text           = "Save";
            this.mnu_Save.Click         += new EventHandler(this.mnu_Save_Click);
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new Size(100, 6);
            this.mnu_Close.Name          = "mnu_Close";
            this.mnu_Close.Size          = new Size(103, 22);
            this.mnu_Close.Text          = "Close";
            this.mnu_Close.Click        += new EventHandler(this.mnu_Close_Click);
            ToolStripItemCollection toolStripItemCollections = this.printToolStripMenuItem.DropDownItems;

            ToolStripItem[] toolStripItemArray = new ToolStripItem[] { this.mnuPrintPreview, this.mnuPrint };
            this.printToolStripMenuItem.DropDownItems.AddRange(toolStripItemArray);
            this.printToolStripMenuItem.Name = "printToolStripMenuItem";
            this.printToolStripMenuItem.Size = new Size(44, 20);
            this.printToolStripMenuItem.Text = "Print";
            this.mnuPrintPreview.Name        = "mnuPrintPreview";
            this.mnuPrintPreview.Size        = new Size(180, 22);
            this.mnuPrintPreview.Text        = "Print Preview...";
            this.mnuPrintPreview.Click      += new EventHandler(this.mnuPrintPreview_Click);
            this.mnuPrint.Name   = "mnuPrint";
            this.mnuPrint.Size   = new Size(180, 22);
            this.mnuPrint.Text   = "Print Document(s)...";
            this.mnuPrint.Click += new EventHandler(this.mnuPrint_Click);
            ToolStripItemCollection dropDownItems1 = this.menu_Speech.DropDownItems;

            ToolStripItem[] mnuPlayFile = new ToolStripItem[] { this.mnu_PlayFile, this.mnu_StopPlayback, this.toolStripMenuItem2, this.mnu_Voices, this.mnu_PlaySpeed };
            this.menu_Speech.DropDownItems.AddRange(mnuPlayFile);
            this.menu_Speech.Name        = "menu_Speech";
            this.menu_Speech.Size        = new Size(57, 20);
            this.menu_Speech.Text        = "Speech";
            this.mnu_PlayFile.Name       = "mnu_PlayFile";
            this.mnu_PlayFile.Size       = new Size(148, 22);
            this.mnu_PlayFile.Text       = "Play File";
            this.mnu_PlayFile.Click     += new EventHandler(this.mnu_PlayFile_Click);
            this.mnu_StopPlayback.Name   = "mnu_StopPlayback";
            this.mnu_StopPlayback.Size   = new Size(148, 22);
            this.mnu_StopPlayback.Text   = "Stop Playback";
            this.mnu_StopPlayback.Click += new EventHandler(this.mnu_StopPlayback_Click);
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new Size(145, 6);
            this.mnu_Voices.DropDownItems.AddRange(new ToolStripItem[] { this.cboVoices });
            this.mnu_Voices.Name = "mnu_Voices";
            this.mnu_Voices.Size = new Size(148, 22);
            this.mnu_Voices.Text = "Voices";
            this.cboVoices.Name  = "cboVoices";
            this.cboVoices.Size  = new Size(121, 23);
            this.cboVoices.SelectedIndexChanged += new EventHandler(this.cboVoices_SelectedIndexChanged);
            ToolStripItemCollection toolStripItemCollections1 = this.mnu_PlaySpeed.DropDownItems;

            ToolStripItem[] mnuFaster = new ToolStripItem[] { this.mnu_Faster, this.mnu_Slower, this.mnu_NormalSpeed };
            this.mnu_PlaySpeed.DropDownItems.AddRange(mnuFaster);
            this.mnu_PlaySpeed.Name            = "mnu_PlaySpeed";
            this.mnu_PlaySpeed.Size            = new Size(148, 22);
            this.mnu_PlaySpeed.Text            = "Play Speed";
            this.mnu_Faster.Name               = "mnu_Faster";
            this.mnu_Faster.Size               = new Size(114, 22);
            this.mnu_Faster.Text               = "Faster";
            this.mnu_Faster.Click             += new EventHandler(this.mnu_Faster_Click);
            this.mnu_Slower.Name               = "mnu_Slower";
            this.mnu_Slower.Size               = new Size(114, 22);
            this.mnu_Slower.Text               = "Slower";
            this.mnu_Slower.Click             += new EventHandler(this.mnu_Slower_Click);
            this.mnu_NormalSpeed.Name          = "mnu_NormalSpeed";
            this.mnu_NormalSpeed.Size          = new Size(114, 22);
            this.mnu_NormalSpeed.Text          = "Normal";
            this.mnu_NormalSpeed.Click        += new EventHandler(this.mnu_NormalSpeed_Click);
            this.textControl1.ContextMenuStrip = this.EditMenu;
            this.textControl1.Dock             = DockStyle.Fill;
            this.textControl1.Font             = new Font("Arial", 10f);
            this.textControl1.Location         = new Point(0, 24);
            this.textControl1.Name             = "textControl1";
            this.textControl1.RulerBar         = this.rulerBar1;
            this.textControl1.Size             = new Size(936, 904);
            this.textControl1.StatusBar        = this.statusBar1;
            this.textControl1.TabIndex         = 1;
            this.textControl1.VerticalRulerBar = this.rulerBar2;
            this.textControl1.KeyUp           += new KeyEventHandler(this.textControl1_KeyUp);
            ToolStripItemCollection items1 = this.EditMenu.Items;

            ToolStripItem[] mnuStartRedact = new ToolStripItem[] { this.mnu_StartRedact, this.mnu_EndRedact };
            this.EditMenu.Items.AddRange(mnuStartRedact);
            this.EditMenu.Name          = "EditMenu";
            this.EditMenu.Size          = new Size(141, 48);
            this.mnu_StartRedact.Name   = "mnu_StartRedact";
            this.mnu_StartRedact.Size   = new Size(140, 22);
            this.mnu_StartRedact.Text   = "Redact Text";
            this.mnu_StartRedact.Click += new EventHandler(this.mnu_StartRedact_Click);
            this.mnu_EndRedact.Name     = "mnu_EndRedact";
            this.mnu_EndRedact.Size     = new Size(140, 22);
            this.mnu_EndRedact.Text     = "Clear Redact";
            this.mnu_EndRedact.Click   += new EventHandler(this.mnu_EndRedact_Click);
            this.rulerBar1.Dock         = DockStyle.Top;
            this.rulerBar1.Location     = new Point(0, 24);
            this.rulerBar1.Name         = "rulerBar1";
            this.rulerBar1.Size         = new Size(936, 25);
            this.rulerBar1.TabIndex     = 3;
            this.rulerBar1.Text         = "rulerBar1";
            this.statusBar1.BackColor   = SystemColors.Control;
            this.statusBar1.Dock        = DockStyle.Bottom;
            this.statusBar1.Location    = new Point(0, 928);
            this.statusBar1.Name        = "statusBar1";
            this.statusBar1.Size        = new Size(936, 22);
            this.statusBar1.TabIndex    = 2;
            this.rulerBar2.Alignment    = RulerBarAlignment.Left;
            this.rulerBar2.Dock         = DockStyle.Left;
            this.rulerBar2.Location     = new Point(0, 49);
            this.rulerBar2.Name         = "rulerBar2";
            this.rulerBar2.Size         = new Size(25, 879);
            this.rulerBar2.TabIndex     = 4;
            this.rulerBar2.Text         = "rulerBar2";
            this.AutoScaleDimensions    = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode          = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize             = new System.Drawing.Size(936, 741);
            this.Controls.Add(this.rulerBar2);
            this.Controls.Add(this.rulerBar1);
            this.Controls.Add(this.menuStrip1);
            this.Controls.Add(this.statusBar1);
            this.Controls.Add(this.textControl1);
            this.Icon          = Resources.EditorForm.EditorFormIcon;
            this.MainMenuStrip = this.menuStrip1;
            this.Name          = "EditorForm";
            this.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Memo Editor";
            this.FormClosing  += new FormClosingEventHandler(this.EditorForm_FormClosing);
            this.Load         += new System.EventHandler(this.EditorForm_Load);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.EditMenu.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #20
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FormDataOpera));

            this.BottomToolStripPanel = new ToolStripPanel();
            this.TopToolStripPanel    = new ToolStripPanel();
            this.RightToolStripPanel  = new ToolStripPanel();
            this.LeftToolStripPanel   = new ToolStripPanel();
            this.ContentPanel         = new ToolStripContentPanel();
            this.openFileDialog1      = new OpenFileDialog();
            this.toolStrip1           = new ToolStrip();
            this.toolStripLabel4      = new ToolStripLabel();
            this.toolStripTextBox1    = new ToolStripTextBox();
            this.toolStripButton2     = new ToolStripButton();
            this.toolStripSeparator2  = new ToolStripSeparator();
            this.splitContainer1      = new SplitContainer();
            this.toolStrip1.SuspendLayout();
            ((ISupportInitialize)this.splitContainer1).BeginInit();
            this.splitContainer1.SuspendLayout();
            base.SuspendLayout();
            this.BottomToolStripPanel.Location    = new Point(0, 0);
            this.BottomToolStripPanel.Name        = "BottomToolStripPanel";
            this.BottomToolStripPanel.Orientation = Orientation.Horizontal;
            this.BottomToolStripPanel.RowMargin   = new Padding(3, 0, 0, 0);
            this.BottomToolStripPanel.Size        = new Size(0, 0);
            this.TopToolStripPanel.Location       = new Point(0, 0);
            this.TopToolStripPanel.Name           = "TopToolStripPanel";
            this.TopToolStripPanel.Orientation    = Orientation.Horizontal;
            this.TopToolStripPanel.RowMargin      = new Padding(3, 0, 0, 0);
            this.TopToolStripPanel.Size           = new Size(0, 0);
            this.RightToolStripPanel.Location     = new Point(0, 0);
            this.RightToolStripPanel.Name         = "RightToolStripPanel";
            this.RightToolStripPanel.Orientation  = Orientation.Horizontal;
            this.RightToolStripPanel.RowMargin    = new Padding(3, 0, 0, 0);
            this.RightToolStripPanel.Size         = new Size(0, 0);
            this.LeftToolStripPanel.Location      = new Point(0, 0);
            this.LeftToolStripPanel.Name          = "LeftToolStripPanel";
            this.LeftToolStripPanel.Orientation   = Orientation.Horizontal;
            this.LeftToolStripPanel.RowMargin     = new Padding(3, 0, 0, 0);
            this.LeftToolStripPanel.Size          = new Size(0, 0);
            this.ContentPanel.Size        = new Size(710, 402);
            this.openFileDialog1.FileName = "openFileDialog1";
            this.openFileDialog1.Filter   = "*.xml|*.xml";
            this.toolStrip1.CanOverflow   = false;
            this.toolStrip1.Items.AddRange(new ToolStripItem[]
            {
                this.toolStripLabel4,
                this.toolStripTextBox1,
                this.toolStripButton2,
                this.toolStripSeparator2
            });
            this.toolStrip1.LayoutStyle                 = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            this.toolStrip1.Location                    = new Point(0, 0);
            this.toolStrip1.Name                        = "toolStrip1";
            this.toolStrip1.Size                        = new Size(558, 25);
            this.toolStrip1.TabIndex                    = 4;
            this.toolStripLabel4.Name                   = "toolStripLabel4";
            this.toolStripLabel4.Size                   = new Size(41, 22);
            this.toolStripLabel4.Text                   = "数据库";
            this.toolStripTextBox1.Name                 = "toolStripTextBox1";
            this.toolStripTextBox1.Size                 = new Size(400, 25);
            this.toolStripButton2.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Image                 = (Image)componentResourceManager.GetObject("toolStripButton2.Image");
            this.toolStripButton2.ImageTransparentColor = Color.Magenta;
            this.toolStripButton2.Name                  = "toolStripButton2";
            this.toolStripButton2.Size                  = new Size(23, 22);
            this.toolStripButton2.Text                  = "删除";
            this.toolStripButton2.Click                += new EventHandler(this.ToolStripButton2Click);
            this.toolStripSeparator2.Name               = "toolStripSeparator2";
            this.toolStripSeparator2.Size               = new Size(6, 25);
            this.splitContainer1.Cursor                 = Cursors.Default;
            this.splitContainer1.Dock                   = DockStyle.Fill;
            this.splitContainer1.FixedPanel             = FixedPanel.Panel1;
            this.splitContainer1.Location               = new Point(0, 25);
            this.splitContainer1.Name                   = "splitContainer1";
            this.splitContainer1.Panel1MinSize          = 0;
            this.splitContainer1.Panel2MinSize          = 0;
            this.splitContainer1.Size                   = new Size(558, 329);
            this.splitContainer1.SplitterDistance       = 213;
            this.splitContainer1.SplitterWidth          = 2;
            this.splitContainer1.TabIndex               = 5;
            base.AutoScaleDimensions                    = new SizeF(6f, 12f);

            this.BackColor  = Color.FromArgb(239, 237, 226);
            base.ClientSize = new Size(558, 354);
            base.Controls.Add(this.splitContainer1);
            base.Controls.Add(this.toolStrip1);
            this.Font          = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            base.Name          = "DataOpera";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "数据查询";
            base.WindowState   = FormWindowState.Maximized;
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            ((ISupportInitialize)this.splitContainer1).EndInit();
            this.splitContainer1.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Example #21
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
     this.Browser              = new System.Windows.Forms.WebBrowser();
     this.toolStrip1           = new System.Windows.Forms.ToolStrip();
     this.cmdBack              = new System.Windows.Forms.ToolStripButton();
     this.txtNavigate          = new System.Windows.Forms.ToolStripTextBox();
     this.cmdGo                = new System.Windows.Forms.ToolStripButton();
     this.rtmptool             = new System.Windows.Forms.ToolStripComboBox();
     this.toolStripSeparator2  = new System.Windows.Forms.ToolStripSeparator();
     this.monitor_status_label = new System.Windows.Forms.ToolStripLabel();
     this.Monitor_Button       = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1  = new System.Windows.Forms.ToolStripSeparator();
     this.rtmpport_label       = new System.Windows.Forms.ToolStripLabel();
     this.portconnect_text     = new System.Windows.Forms.ToolStripTextBox();
     this.toolStripSeparator3  = new System.Windows.Forms.ToolStripSeparator();
     this.showLog              = new System.Windows.Forms.ToolStripButton();
     this.statusStrip1         = new System.Windows.Forms.StatusStrip();
     this.statuslabel          = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStrip1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // Browser
     //
     this.Browser.Location               = new System.Drawing.Point(0, 28);
     this.Browser.MinimumSize            = new System.Drawing.Size(20, 20);
     this.Browser.Name                   = "Browser";
     this.Browser.ScriptErrorsSuppressed = true;
     this.Browser.Size                   = new System.Drawing.Size(391, 195);
     this.Browser.TabIndex               = 0;
     this.Browser.DocumentCompleted     += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
     this.Browser.Navigated             += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.Browser_Navigated);
     this.Browser.Navigating            += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.Browser_Navigating);
     this.Browser.NewWindow             += new System.ComponentModel.CancelEventHandler(this.webBrowser1_NewWindow);
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.cmdBack,
         this.txtNavigate,
         this.cmdGo,
         this.rtmptool,
         this.toolStripSeparator2,
         this.monitor_status_label,
         this.Monitor_Button,
         this.toolStripSeparator1,
         this.rtmpport_label,
         this.portconnect_text,
         this.toolStripSeparator3,
         this.showLog
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(997, 25);
     this.toolStrip1.TabIndex = 2;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // cmdBack
     //
     this.cmdBack.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.cmdBack.Font                  = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdBack.Image                 = ((System.Drawing.Image)(resources.GetObject("cmdBack.Image")));
     this.cmdBack.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.cmdBack.Name                  = "cmdBack";
     this.cmdBack.Size                  = new System.Drawing.Size(23, 22);
     this.cmdBack.Text                  = "◄";
     this.cmdBack.ToolTipText           = "Back";
     this.cmdBack.Click                += new System.EventHandler(this.cmdBack_Click);
     //
     // txtNavigate
     //
     this.txtNavigate.CausesValidation = false;
     this.txtNavigate.Name             = "txtNavigate";
     this.txtNavigate.Size             = new System.Drawing.Size(100, 25);
     this.txtNavigate.KeyPress        += new System.Windows.Forms.KeyPressEventHandler(this.txtNavigate_KeyPress);
     //
     // cmdGo
     //
     this.cmdGo.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.cmdGo.Font                  = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdGo.Image                 = ((System.Drawing.Image)(resources.GetObject("cmdGo.Image")));
     this.cmdGo.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.cmdGo.Name                  = "cmdGo";
     this.cmdGo.Size                  = new System.Drawing.Size(23, 22);
     this.cmdGo.Text                  = "►";
     this.cmdGo.ToolTipText           = "Navigate";
     this.cmdGo.Click                += new System.EventHandler(this.button1_Click);
     //
     // rtmptool
     //
     this.rtmptool.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.rtmptool.Name          = "rtmptool";
     this.rtmptool.Size          = new System.Drawing.Size(80, 25);
     this.rtmptool.Click        += new System.EventHandler(this.rtmptool_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // monitor_status_label
     //
     this.monitor_status_label.BackColor    = System.Drawing.SystemColors.Control;
     this.monitor_status_label.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.monitor_status_label.Font         = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.monitor_status_label.ForeColor    = System.Drawing.Color.IndianRed;
     this.monitor_status_label.Name         = "monitor_status_label";
     this.monitor_status_label.Size         = new System.Drawing.Size(16, 22);
     this.monitor_status_label.Text         = "█";
     //
     // Monitor_Button
     //
     this.Monitor_Button.BackColor             = System.Drawing.SystemColors.Control;
     this.Monitor_Button.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.Monitor_Button.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.Monitor_Button.Name        = "Monitor_Button";
     this.Monitor_Button.Size        = new System.Drawing.Size(54, 22);
     this.Monitor_Button.Text        = "Monitor";
     this.Monitor_Button.ToolTipText = "Reroute streams to rtmpdump";
     this.Monitor_Button.Click      += new System.EventHandler(this.MonitorStart_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // rtmpport_label
     //
     this.rtmpport_label.Name = "rtmpport_label";
     this.rtmpport_label.Size = new System.Drawing.Size(69, 22);
     this.rtmpport_label.Text = "RTMP-Port:";
     //
     // portconnect_text
     //
     this.portconnect_text.MaxLength = 5;
     this.portconnect_text.Name      = "portconnect_text";
     this.portconnect_text.Size      = new System.Drawing.Size(40, 25);
     this.portconnect_text.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.portconnect_text_KeyPress);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
     //
     // showLog
     //
     this.showLog.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.showLog.Image                 = ((System.Drawing.Image)(resources.GetObject("showLog.Image")));
     this.showLog.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.showLog.Name        = "showLog";
     this.showLog.Size        = new System.Drawing.Size(31, 22);
     this.showLog.Text        = "Log";
     this.showLog.ToolTipText = "Show passed parameters";
     this.showLog.Click      += new System.EventHandler(this.showLog_Click);
     //
     // statusStrip1
     //
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.statuslabel
     });
     this.statusStrip1.Location = new System.Drawing.Point(0, 444);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(997, 22);
     this.statusStrip1.TabIndex = 3;
     this.statusStrip1.Text     = "statusStrip1";
     //
     // statuslabel
     //
     this.statuslabel.Name = "statuslabel";
     this.statuslabel.Size = new System.Drawing.Size(39, 17);
     this.statuslabel.Text = "Ready";
     //
     // Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(997, 466);
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.Browser);
     this.Icon         = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name         = "Main";
     this.Text         = "RTMPExploreX";
     this.Load        += new System.EventHandler(this.Form1_Load);
     this.SizeChanged += new System.EventHandler(this.Main_SizeChanged);
     this.Resize      += new System.EventHandler(this.Main_Resize);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #22
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 ();
	}
Example #23
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(FViewer));
     this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
     this.tiffViewer1         = new NAPS2.WinForms.TiffViewerCtl();
     this.toolStrip1          = new System.Windows.Forms.ToolStrip();
     this.tbPageCurrent       = new System.Windows.Forms.ToolStripTextBox();
     this.lblPageTotal        = new System.Windows.Forms.ToolStripLabel();
     this.tsPrev = new System.Windows.Forms.ToolStripButton();
     this.tsNext = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.tsdRotate           = new System.Windows.Forms.ToolStripDropDownButton();
     this.tsRotateLeft        = new System.Windows.Forms.ToolStripMenuItem();
     this.tsRotateRight       = new System.Windows.Forms.ToolStripMenuItem();
     this.tsFlip           = new System.Windows.Forms.ToolStripMenuItem();
     this.tsCustomRotation = new System.Windows.Forms.ToolStripMenuItem();
     this.tsCrop           = new System.Windows.Forms.ToolStripButton();
     this.tsBrightness     = new System.Windows.Forms.ToolStripButton();
     this.tsContrast       = new System.Windows.Forms.ToolStripButton();
     this.tsDelete         = new System.Windows.Forms.ToolStripButton();
     this.toolStripContainer1.ContentPanel.SuspendLayout();
     this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
     this.toolStripContainer1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // toolStripContainer1
     //
     //
     // toolStripContainer1.ContentPanel
     //
     this.toolStripContainer1.ContentPanel.Controls.Add(this.tiffViewer1);
     resources.ApplyResources(this.toolStripContainer1.ContentPanel, "toolStripContainer1.ContentPanel");
     resources.ApplyResources(this.toolStripContainer1, "toolStripContainer1");
     this.toolStripContainer1.Name = "toolStripContainer1";
     //
     // toolStripContainer1.TopToolStripPanel
     //
     this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1);
     //
     // tiffViewer1
     //
     resources.ApplyResources(this.tiffViewer1, "tiffViewer1");
     this.tiffViewer1.Image    = null;
     this.tiffViewer1.Name     = "tiffViewer1";
     this.tiffViewer1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tiffViewer1_KeyDown);
     //
     // toolStrip1
     //
     resources.ApplyResources(this.toolStrip1, "toolStrip1");
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbPageCurrent,
         this.lblPageTotal,
         this.tsPrev,
         this.tsNext,
         this.toolStripSeparator1,
         this.tsdRotate,
         this.tsCrop,
         this.tsBrightness,
         this.tsContrast,
         this.tsDelete
     });
     this.toolStrip1.Name = "toolStrip1";
     //
     // tbPageCurrent
     //
     this.tbPageCurrent.Name = "tbPageCurrent";
     resources.ApplyResources(this.tbPageCurrent, "tbPageCurrent");
     this.tbPageCurrent.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.tbPageCurrent_KeyDown);
     this.tbPageCurrent.TextChanged += new System.EventHandler(this.tbPageCurrent_TextChanged);
     //
     // lblPageTotal
     //
     this.lblPageTotal.Name = "lblPageTotal";
     resources.ApplyResources(this.lblPageTotal, "lblPageTotal");
     //
     // tsPrev
     //
     this.tsPrev.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsPrev.Image        = global::NAPS2.Icons.arrow_left;
     resources.ApplyResources(this.tsPrev, "tsPrev");
     this.tsPrev.Name   = "tsPrev";
     this.tsPrev.Click += new System.EventHandler(this.tsPrev_Click);
     //
     // tsNext
     //
     this.tsNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsNext.Image        = global::NAPS2.Icons.arrow_right;
     resources.ApplyResources(this.tsNext, "tsNext");
     this.tsNext.Name   = "tsNext";
     this.tsNext.Click += new System.EventHandler(this.tsNext_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
     //
     // tsdRotate
     //
     this.tsdRotate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsdRotate.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsRotateLeft,
         this.tsRotateRight,
         this.tsFlip,
         this.tsCustomRotation
     });
     this.tsdRotate.Image = global::NAPS2.Icons.arrow_rotate_anticlockwise_small;
     resources.ApplyResources(this.tsdRotate, "tsdRotate");
     this.tsdRotate.Name = "tsdRotate";
     this.tsdRotate.ShowDropDownArrow = false;
     //
     // tsRotateLeft
     //
     this.tsRotateLeft.Image = global::NAPS2.Icons.arrow_rotate_anticlockwise_small;
     this.tsRotateLeft.Name  = "tsRotateLeft";
     resources.ApplyResources(this.tsRotateLeft, "tsRotateLeft");
     this.tsRotateLeft.Click += new System.EventHandler(this.tsRotateLeft_Click);
     //
     // tsRotateRight
     //
     this.tsRotateRight.Image = global::NAPS2.Icons.arrow_rotate_clockwise_small;
     this.tsRotateRight.Name  = "tsRotateRight";
     resources.ApplyResources(this.tsRotateRight, "tsRotateRight");
     this.tsRotateRight.Click += new System.EventHandler(this.tsRotateRight_Click);
     //
     // tsFlip
     //
     this.tsFlip.Image = global::NAPS2.Icons.arrow_switch_small;
     this.tsFlip.Name  = "tsFlip";
     resources.ApplyResources(this.tsFlip, "tsFlip");
     this.tsFlip.Click += new System.EventHandler(this.tsFlip_Click);
     //
     // tsCustomRotation
     //
     this.tsCustomRotation.Name = "tsCustomRotation";
     resources.ApplyResources(this.tsCustomRotation, "tsCustomRotation");
     this.tsCustomRotation.Click += new System.EventHandler(this.tsCustomRotation_Click);
     //
     // tsCrop
     //
     this.tsCrop.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsCrop.Image        = global::NAPS2.Icons.transform_crop;
     resources.ApplyResources(this.tsCrop, "tsCrop");
     this.tsCrop.Name   = "tsCrop";
     this.tsCrop.Click += new System.EventHandler(this.tsCrop_Click);
     //
     // tsBrightness
     //
     this.tsBrightness.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsBrightness.Image        = global::NAPS2.Icons.weather_sun;
     resources.ApplyResources(this.tsBrightness, "tsBrightness");
     this.tsBrightness.Name   = "tsBrightness";
     this.tsBrightness.Click += new System.EventHandler(this.tsBrightness_Click);
     //
     // tsContrast
     //
     this.tsContrast.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsContrast.Image        = global::NAPS2.Icons.contrast;
     resources.ApplyResources(this.tsContrast, "tsContrast");
     this.tsContrast.Name   = "tsContrast";
     this.tsContrast.Click += new System.EventHandler(this.tsContrast_Click);
     //
     // tsDelete
     //
     this.tsDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsDelete.Image        = global::NAPS2.Icons.cross_small;
     resources.ApplyResources(this.tsDelete, "tsDelete");
     this.tsDelete.Name   = "tsDelete";
     this.tsDelete.Click += new System.EventHandler(this.tsDelete_Click);
     //
     // FViewer
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.toolStripContainer1);
     this.Name          = "FViewer";
     this.ShowInTaskbar = false;
     this.toolStripContainer1.ContentPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.PerformLayout();
     this.toolStripContainer1.ResumeLayout(false);
     this.toolStripContainer1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
 }
Example #24
0
 // Required method for Designer support - do not modify
 // the contents of this method with the code editor.
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RTPPresenter));
     this.lblName                 = new System.Windows.Forms.Label();
     this.text_IP_Multicast       = new System.Windows.Forms.TextBox();
     this.label1                  = new System.Windows.Forms.Label();
     this.listBox1                = new System.Windows.Forms.ListBox();
     this.textLecture             = new System.Windows.Forms.TextBox();
     this.label2                  = new System.Windows.Forms.Label();
     this.button3                 = new System.Windows.Forms.Button();
     this.button1                 = new System.Windows.Forms.Button();
     this.btnJoinLeave            = new System.Windows.Forms.Button();
     this.MotionFlag              = new System.Windows.Forms.CheckBox();
     this.differencelab           = new System.Windows.Forms.Label();
     this.sendingSt               = new System.Windows.Forms.Label();
     this.menuStrip1              = new System.Windows.Forms.MenuStrip();
     this.actionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.hideToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1      = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.notifyIcon1             = new System.Windows.Forms.NotifyIcon(this.components);
     this.contextMenuStrip1       = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.showToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.hideToolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2      = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip1.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // lblName
     //
     this.lblName.Font     = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblName.Location = new System.Drawing.Point(12, 39);
     this.lblName.Name     = "lblName";
     this.lblName.Size     = new System.Drawing.Size(56, 16);
     this.lblName.TabIndex = 5;
     this.lblName.Text     = "Group";
     //
     // text_IP_Multicast
     //
     this.text_IP_Multicast.Font      = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.text_IP_Multicast.Location  = new System.Drawing.Point(74, 36);
     this.text_IP_Multicast.MaxLength = 32;
     this.text_IP_Multicast.Name      = "text_IP_Multicast";
     this.text_IP_Multicast.Size      = new System.Drawing.Size(129, 26);
     this.text_IP_Multicast.TabIndex  = 10;
     this.text_IP_Multicast.Text      = "224.0.0.1";
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(325, 68);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(93, 23);
     this.label1.TabIndex = 12;
     this.label1.Text     = "Join Log";
     //
     // listBox1
     //
     this.listBox1.FormattingEnabled   = true;
     this.listBox1.HorizontalScrollbar = true;
     this.listBox1.Location            = new System.Drawing.Point(284, 94);
     this.listBox1.Name = "listBox1";
     this.listBox1.ScrollAlwaysVisible = true;
     this.listBox1.Size     = new System.Drawing.Size(203, 134);
     this.listBox1.TabIndex = 14;
     //
     // textLecture
     //
     this.textLecture.Font      = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textLecture.Location  = new System.Drawing.Point(74, 62);
     this.textLecture.MaxLength = 32;
     this.textLecture.Name      = "textLecture";
     this.textLecture.Size      = new System.Drawing.Size(129, 26);
     this.textLecture.TabIndex  = 17;
     this.textLecture.Text      = "LectureTitle";
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(12, 65);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(56, 16);
     this.label2.TabIndex = 18;
     this.label2.Text     = "Lecture";
     //
     // button3
     //
     this.button3.Enabled  = false;
     this.button3.Image    = global::RTPPresenter.Properties.Resources.offpp;
     this.button3.Location = new System.Drawing.Point(3, 94);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(128, 135);
     this.button3.TabIndex = 16;
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // button1
     //
     this.button1.Enabled  = false;
     this.button1.Image    = global::RTPPresenter.Properties.Resources.PP;
     this.button1.Location = new System.Drawing.Point(150, 94);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(128, 135);
     this.button1.TabIndex = 15;
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // btnJoinLeave
     //
     this.btnJoinLeave.Font     = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnJoinLeave.Image    = global::RTPPresenter.Properties.Resources.Join;
     this.btnJoinLeave.Location = new System.Drawing.Point(209, 35);
     this.btnJoinLeave.Name     = "btnJoinLeave";
     this.btnJoinLeave.Size     = new System.Drawing.Size(110, 53);
     this.btnJoinLeave.TabIndex = 1;
     this.btnJoinLeave.Text     = "Join";
     this.btnJoinLeave.Click   += new System.EventHandler(this.btnJoinLeave_Click);
     //
     // MotionFlag
     //
     this.MotionFlag.AutoSize   = true;
     this.MotionFlag.Checked    = true;
     this.MotionFlag.CheckState = System.Windows.Forms.CheckState.Checked;
     this.MotionFlag.Location   = new System.Drawing.Point(325, 39);
     this.MotionFlag.Name       = "MotionFlag";
     this.MotionFlag.Size       = new System.Drawing.Size(107, 17);
     this.MotionFlag.TabIndex   = 21;
     this.MotionFlag.Text       = "Motion Detection";
     this.MotionFlag.UseVisualStyleBackColor = true;
     this.MotionFlag.CheckedChanged         += new System.EventHandler(this.MotionFlag_CheckedChanged);
     //
     // differencelab
     //
     this.differencelab.AutoSize = true;
     this.differencelab.Location = new System.Drawing.Point(428, 40);
     this.differencelab.Name     = "differencelab";
     this.differencelab.Size     = new System.Drawing.Size(13, 13);
     this.differencelab.TabIndex = 22;
     this.differencelab.Text     = "0";
     //
     // sendingSt
     //
     this.sendingSt.AutoSize  = true;
     this.sendingSt.Font      = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sendingSt.ForeColor = System.Drawing.Color.Red;
     this.sendingSt.Location  = new System.Drawing.Point(410, 62);
     this.sendingSt.Name      = "sendingSt";
     this.sendingSt.Size      = new System.Drawing.Size(38, 16);
     this.sendingSt.TabIndex  = 23;
     this.sendingSt.Text      = "Stop";
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.actionToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(499, 24);
     this.menuStrip1.TabIndex = 24;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // actionToolStripMenuItem
     //
     this.actionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.hideToolStripMenuItem,
         this.toolStripMenuItem1,
         this.exitToolStripMenuItem
     });
     this.actionToolStripMenuItem.Name = "actionToolStripMenuItem";
     this.actionToolStripMenuItem.Size = new System.Drawing.Size(49, 20);
     this.actionToolStripMenuItem.Text = "Action";
     //
     // hideToolStripMenuItem
     //
     this.hideToolStripMenuItem.Name   = "hideToolStripMenuItem";
     this.hideToolStripMenuItem.Size   = new System.Drawing.Size(95, 22);
     this.hideToolStripMenuItem.Text   = "Hide";
     this.hideToolStripMenuItem.Click += new System.EventHandler(this.hideToolStripMenuItem_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(92, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name   = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size   = new System.Drawing.Size(95, 22);
     this.exitToolStripMenuItem.Text   = "Exit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
     this.notifyIcon1.Icon             = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
     this.notifyIcon1.Text             = "RTP Presenter - Not started yet";
     this.notifyIcon1.Visible          = true;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.showToolStripMenuItem,
         this.hideToolStripMenuItem1,
         this.toolStripMenuItem2,
         this.exitToolStripMenuItem1
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(101, 76);
     //
     // showToolStripMenuItem
     //
     this.showToolStripMenuItem.Name   = "showToolStripMenuItem";
     this.showToolStripMenuItem.Size   = new System.Drawing.Size(100, 22);
     this.showToolStripMenuItem.Text   = "Show";
     this.showToolStripMenuItem.Click += new System.EventHandler(this.showToolStripMenuItem_Click);
     //
     // hideToolStripMenuItem1
     //
     this.hideToolStripMenuItem1.Name   = "hideToolStripMenuItem1";
     this.hideToolStripMenuItem1.Size   = new System.Drawing.Size(100, 22);
     this.hideToolStripMenuItem1.Text   = "Hide";
     this.hideToolStripMenuItem1.Click += new System.EventHandler(this.hideToolStripMenuItem1_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(97, 6);
     //
     // exitToolStripMenuItem1
     //
     this.exitToolStripMenuItem1.Name   = "exitToolStripMenuItem1";
     this.exitToolStripMenuItem1.Size   = new System.Drawing.Size(100, 22);
     this.exitToolStripMenuItem1.Text   = "Exit";
     this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click);
     //
     // RTPPresenter
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(499, 238);
     this.ContextMenuStrip  = this.contextMenuStrip1;
     this.Controls.Add(this.sendingSt);
     this.Controls.Add(this.differencelab);
     this.Controls.Add(this.MotionFlag);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textLecture);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.listBox1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.text_IP_Multicast);
     this.Controls.Add(this.btnJoinLeave);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.menuStrip1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MainMenuStrip   = this.menuStrip1;
     this.MaximizeBox     = false;
     this.Name            = "RTPPresenter";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "RTP Multicasting Teacher Presenter - (C)  www.fadidotnet.org FADI Abdel-qader ";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.frmChat_Closing);
     this.Load           += new System.EventHandler(this.frmChat_Load);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #25
0
 private void InitializeComponent()
 {
     components                   = new Container();
     richTextBox1                 = new RichTextBox();
     contextMenuStrip1            = new ContextMenuStrip(components);
     cutToolStripMenuItem         = new ToolStripMenuItem();
     copyToolStripMenuItem        = new ToolStripMenuItem();
     pasteToolStripMenuItem       = new ToolStripMenuItem();
     deleteToolStripMenuItem      = new ToolStripMenuItem();
     searchToolStripMenuItem      = new ToolStripMenuItem();
     toolStripSeparator1          = new ToolStripSeparator();
     colorToolStripMenuItem       = new ToolStripMenuItem();
     defaultToolStripMenuItem     = new ToolStripMenuItem();
     defaultFontToolStripMenuItem = new ToolStripMenuItem();
     listView1     = new ListView();
     columnHeader1 = new ColumnHeader();
     columnHeader2 = new ColumnHeader();
     textBox1      = new TextBox();
     button1       = new Button();
     contextMenuStrip1.SuspendLayout();
     SuspendLayout();
     richTextBox1.AcceptsTab        = true;
     richTextBox1.AutoWordSelection = true;
     richTextBox1.BorderStyle       = BorderStyle.FixedSingle;
     richTextBox1.ContextMenuStrip  = contextMenuStrip1;
     richTextBox1.Dock          = DockStyle.Fill;
     richTextBox1.HideSelection = false;
     richTextBox1.ImeMode       = ImeMode.On;
     richTextBox1.Location      = new Point(0, 0);
     richTextBox1.ScrollBars    = RichTextBoxScrollBars.Vertical;
     richTextBox1.Size          = new Size(0xe1, 0xe1);
     richTextBox1.TabIndex      = 0;
     richTextBox1.TabStop       = false;
     richTextBox1.Text          = "";
     richTextBox1.LinkClicked  += richTextBox1_LinkClicked;
     richTextBox1.KeyDown      += richTextBox1_KeyDown;
     contextMenuStrip1.Items.AddRange(new ToolStripItem[] { cutToolStripMenuItem, copyToolStripMenuItem, pasteToolStripMenuItem, deleteToolStripMenuItem, searchToolStripMenuItem, toolStripSeparator1, colorToolStripMenuItem, defaultToolStripMenuItem, defaultFontToolStripMenuItem });
     contextMenuStrip1.ShowImageMargin = false;
     contextMenuStrip1.Size            = new Size(0x80, 0xd0);
     contextMenuStrip1.Opening        += contextMenuStrip1_Opening;
     contextMenuStrip1.ItemClicked    += contextMenuStrip1_ItemClicked;
     cutToolStripMenuItem.Size         = new Size(0x7f, 0x16);
     cutToolStripMenuItem.Text         = "Cu&t";
     copyToolStripMenuItem.Size        = new Size(0x7f, 0x16);
     copyToolStripMenuItem.Text        = "&Copy";
     pasteToolStripMenuItem.Size       = new Size(0x7f, 0x16);
     pasteToolStripMenuItem.Text       = "&Paste";
     deleteToolStripMenuItem.Size      = new Size(0x7f, 0x16);
     deleteToolStripMenuItem.Text      = "&Delete";
     searchToolStripMenuItem.Size      = new Size(0x7f, 0x16);
     searchToolStripMenuItem.Text      = "&Search";
     toolStripSeparator1.Size          = new Size(0x7c, 6);
     colorToolStripMenuItem.Size       = new Size(0x7f, 0x16);
     colorToolStripMenuItem.Text       = "Co&lor";
     defaultToolStripMenuItem.Size     = new Size(0x7f, 0x16);
     defaultToolStripMenuItem.Text     = "D&efault color";
     defaultFontToolStripMenuItem.Size = new Size(0x7f, 0x16);
     defaultFontToolStripMenuItem.Text = "Default &font";
     listView1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     listView1.Columns.AddRange(new ColumnHeader[] { columnHeader1, columnHeader2 });
     listView1.FullRowSelect    = true;
     listView1.HeaderStyle      = ColumnHeaderStyle.Nonclickable;
     listView1.Location         = new Point(12, 0x29);
     listView1.MultiSelect      = false;
     listView1.ShowGroups       = false;
     listView1.ShowItemToolTips = true;
     listView1.Size             = new Size(0xc9, 0xac);
     listView1.TabIndex         = 1;
     listView1.UseCompatibleStateImageBehavior = false;
     listView1.View          = View.Details;
     listView1.ItemActivate += listView1_ItemActivate;
     columnHeader1.Text      = "Path";
     columnHeader1.Width     = 0x5d;
     columnHeader2.Text      = "Text";
     columnHeader2.Width     = 500;
     textBox1.Anchor         = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     textBox1.Location       = new Point(12, 14);
     textBox1.Size           = new Size(0x83, 20);
     textBox1.TabIndex       = 2;
     textBox1.KeyPress      += textBox1_KeyPress;
     button1.Anchor          = AnchorStyles.Right | AnchorStyles.Top;
     button1.Location        = new Point(0x95, 12);
     button1.Size            = new Size(0x40, 0x17);
     button1.TabIndex        = 3;
     button1.Text            = "Search";
     button1.Click          += button1_Click;
     AutoScaleDimensions     = new SizeF(6f, 13f);
     AutoScaleMode           = AutoScaleMode.Font;
     ClientSize              = new Size(0xe1, 0xe1);
     Controls.Add(richTextBox1);
     Controls.Add(listView1);
     Controls.Add(button1);
     Controls.Add(textBox1);
     FormBorderStyle = FormBorderStyle.SizableToolWindow;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "MemoForm";
     Opacity         = 0.85;
     ShowInTaskbar   = false;
     StartPosition   = FormStartPosition.Manual;
     Text            = "Memo";
     FormClosing    += MemoForm_FormClosing;
     contextMenuStrip1.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
Example #26
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModelView));
     this.contextMenu    = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.mnuNewProject  = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuOpen        = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuOpenFile    = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuSepOpenFile = new System.Windows.Forms.ToolStripSeparator();
     this.mnuRecentFile1 = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuRecentFile2 = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuRecentFile3 = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuRecentFile4 = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuRecentFile5 = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuSepOpen     = new System.Windows.Forms.ToolStripSeparator();
     this.mnuSaveAll     = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCloseAll    = new System.Windows.Forms.ToolStripMenuItem();
     this.imageList      = new System.Windows.Forms.ImageList(this.components);
     this.lblAddProject  = new System.Windows.Forms.Label();
     this.contextMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenu
     //
     this.contextMenu.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuNewProject,
         this.mnuOpen,
         this.mnuSepOpen,
         this.mnuSaveAll,
         this.mnuCloseAll
     });
     this.contextMenu.Name     = "contextMenu";
     this.contextMenu.Size     = new System.Drawing.Size(174, 130);
     this.contextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenu_Opening);
     //
     // mnuNewProject
     //
     this.mnuNewProject.Image  = global::NClass.GUI.Properties.Resources.Project;
     this.mnuNewProject.Name   = "mnuNewProject";
     this.mnuNewProject.Size   = new System.Drawing.Size(173, 30);
     this.mnuNewProject.Text   = "&New Project";
     this.mnuNewProject.Click += new System.EventHandler(this.mnuNewProject_Click);
     //
     // mnuOpen
     //
     this.mnuOpen.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuOpenFile,
         this.mnuSepOpenFile,
         this.mnuRecentFile1,
         this.mnuRecentFile2,
         this.mnuRecentFile3,
         this.mnuRecentFile4,
         this.mnuRecentFile5
     });
     this.mnuOpen.Image            = global::NClass.GUI.Properties.Resources.Open;
     this.mnuOpen.Name             = "mnuOpen";
     this.mnuOpen.Size             = new System.Drawing.Size(173, 30);
     this.mnuOpen.Text             = "&Open";
     this.mnuOpen.DropDownOpening += new System.EventHandler(this.mnuOpen_DropDownOpening);
     //
     // mnuOpenFile
     //
     this.mnuOpenFile.Name         = "mnuOpenFile";
     this.mnuOpenFile.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this.mnuOpenFile.Size         = new System.Drawing.Size(171, 22);
     this.mnuOpenFile.Text         = "&New File...";
     this.mnuOpenFile.Click       += new System.EventHandler(this.mnuOpenFile_Click);
     //
     // mnuSepOpenFile
     //
     this.mnuSepOpenFile.Name = "mnuSepOpenFile";
     this.mnuSepOpenFile.Size = new System.Drawing.Size(168, 6);
     //
     // mnuRecentFile1
     //
     this.mnuRecentFile1.Name   = "mnuRecentFile1";
     this.mnuRecentFile1.Size   = new System.Drawing.Size(171, 22);
     this.mnuRecentFile1.Tag    = 0;
     this.mnuRecentFile1.Text   = "Recent File 1";
     this.mnuRecentFile1.Click += new System.EventHandler(this.OpenRecentFile_Click);
     //
     // mnuRecentFile2
     //
     this.mnuRecentFile2.Name   = "mnuRecentFile2";
     this.mnuRecentFile2.Size   = new System.Drawing.Size(171, 22);
     this.mnuRecentFile2.Tag    = 1;
     this.mnuRecentFile2.Text   = "Recent File 2";
     this.mnuRecentFile2.Click += new System.EventHandler(this.OpenRecentFile_Click);
     //
     // mnuRecentFile3
     //
     this.mnuRecentFile3.Name   = "mnuRecentFile3";
     this.mnuRecentFile3.Size   = new System.Drawing.Size(171, 22);
     this.mnuRecentFile3.Tag    = 2;
     this.mnuRecentFile3.Text   = "Recent File 3";
     this.mnuRecentFile3.Click += new System.EventHandler(this.OpenRecentFile_Click);
     //
     // mnuRecentFile4
     //
     this.mnuRecentFile4.Name   = "mnuRecentFile4";
     this.mnuRecentFile4.Size   = new System.Drawing.Size(171, 22);
     this.mnuRecentFile4.Tag    = 3;
     this.mnuRecentFile4.Text   = "Recent File 4";
     this.mnuRecentFile4.Click += new System.EventHandler(this.OpenRecentFile_Click);
     //
     // mnuRecentFile5
     //
     this.mnuRecentFile5.Name   = "mnuRecentFile5";
     this.mnuRecentFile5.Size   = new System.Drawing.Size(171, 22);
     this.mnuRecentFile5.Tag    = 4;
     this.mnuRecentFile5.Text   = "Recent File 5";
     this.mnuRecentFile5.Click += new System.EventHandler(this.OpenRecentFile_Click);
     //
     // mnuSepOpen
     //
     this.mnuSepOpen.Name = "mnuSepOpen";
     this.mnuSepOpen.Size = new System.Drawing.Size(170, 6);
     //
     // mnuSaveAll
     //
     this.mnuSaveAll.Image  = global::NClass.GUI.Properties.Resources.SaveAll;
     this.mnuSaveAll.Name   = "mnuSaveAll";
     this.mnuSaveAll.Size   = new System.Drawing.Size(173, 30);
     this.mnuSaveAll.Text   = "Save A&ll Projects";
     this.mnuSaveAll.Click += new System.EventHandler(this.mnuSaveAll_Click);
     //
     // mnuCloseAll
     //
     this.mnuCloseAll.Name   = "mnuCloseAll";
     this.mnuCloseAll.Size   = new System.Drawing.Size(173, 30);
     this.mnuCloseAll.Text   = "Close All Projects";
     this.mnuCloseAll.Click += new System.EventHandler(this.mnuCloseAll_Click);
     //
     // imageList
     //
     this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList.Images.SetKeyName(0, "project");
     this.imageList.Images.SetKeyName(1, "diagram");
     this.imageList.Images.SetKeyName(2, "erd");
     this.imageList.Images.SetKeyName(3, "std");
     //
     // lblAddProject
     //
     this.lblAddProject.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.lblAddProject.ForeColor    = System.Drawing.SystemColors.GrayText;
     this.lblAddProject.Location     = new System.Drawing.Point(0, 0);
     this.lblAddProject.Name         = "lblAddProject";
     this.lblAddProject.Size         = new System.Drawing.Size(100, 23);
     this.lblAddProject.TabIndex     = 0;
     this.lblAddProject.Text         = "« Double click here to add new project »";
     this.lblAddProject.TextAlign    = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblAddProject.Visible      = false;
     this.lblAddProject.DoubleClick += new System.EventHandler(this.lblAddProject_DoubleClick);
     //
     // ModelView
     //
     this.ContextMenuStrip   = this.contextMenu;
     this.ImageIndex         = 0;
     this.ImageList          = this.imageList;
     this.LabelEdit          = true;
     this.LineColor          = System.Drawing.Color.Black;
     this.SelectedImageIndex = 0;
     this.ShowRootLines      = false;
     this.contextMenu.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #27
0
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlanetTypeForm));
            this.ArcticsButton = new System.Windows.Forms.Button();
            this.DesertsButton = new System.Windows.Forms.Button();
            this.EarthlikesButton = new System.Windows.Forms.Button();
            this.GreenhousesButton = new System.Windows.Forms.Button();
            this.MountainousButton = new System.Windows.Forms.Button();
            this.OceanicsButton = new System.Windows.Forms.Button();
            this.ParadisesButton = new System.Windows.Forms.Button();
            this.RockiesButton = new System.Windows.Forms.Button();
            this.VolcanicsButton = new System.Windows.Forms.Button();
            this.numberTextBox = new System.Windows.Forms.TextBox();
            this.NeedsDefensesButton = new System.Windows.Forms.Button();
            this.GrowingButton = new System.Windows.Forms.Button();
            this.ClearOutputButton = new System.Windows.Forms.Button();
            this.LineBreakButton = new System.Windows.Forms.Button();
            this.toolStripPT = new System.Windows.Forms.ToolStrip();
            this.OpenToolStripButtonPT = new System.Windows.Forms.ToolStripButton();
            this.SaveToolStripButtonPT = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
            this.CopyToolStripButtonPT = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.HelpMeNiggaDamnToolStripButtonPT = new System.Windows.Forms.ToolStripButton();
            this.DirectorshipListButton = new System.Windows.Forms.Button();
            this.PrisonListButton = new System.Windows.Forms.Button();
            this.SocialismListButton = new System.Windows.Forms.Button();
            this.DemocracyListButton = new System.Windows.Forms.Button();
            this.NukesListButton = new System.Windows.Forms.Button();
            this.CMinesListButton = new System.Windows.Forms.Button();
            this.SolarsListButton = new System.Windows.Forms.Button();
            this.LasersListButton = new System.Windows.Forms.Button();
            this.BuildListButton = new System.Windows.Forms.Button();
            this.SameSystemListButton = new System.Windows.Forms.Button();
            this.FindMoraleButton = new System.Windows.Forms.Button();
            this.RenameListsButton = new System.Windows.Forms.Button();
            this.DoubleDomeListButton = new System.Windows.Forms.Button();
            this.ArcticZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.ArcticsCheckBox = new System.Windows.Forms.CheckBox();
            this.DesertsCheckBox = new System.Windows.Forms.CheckBox();
            this.DesertZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.GreenhousesCheckBox = new System.Windows.Forms.CheckBox();
            this.GreenhouseZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.EarthlikesCheckBox = new System.Windows.Forms.CheckBox();
            this.EarthlikeZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.VolcanicsCheckBox = new System.Windows.Forms.CheckBox();
            this.VolcanicZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.RockiesCheckBox = new System.Windows.Forms.CheckBox();
            this.RockyZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.OceanicsCheckBox = new System.Windows.Forms.CheckBox();
            this.OceanicZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.MountainousCheckBox = new System.Windows.Forms.CheckBox();
            this.MountainZoundsCheckBox = new System.Windows.Forms.CheckBox();
            this.ConstructionListButton = new System.Windows.Forms.Button();
            this.LowMetalButton = new System.Windows.Forms.Button();
            this.planetLayoutPictureBox = new System.Windows.Forms.PictureBox();
            this.toolStripPT.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.planetLayoutPictureBox)).BeginInit();
            this.SuspendLayout();
            // 
            // ArcticsButton
            // 
            resources.ApplyResources(this.ArcticsButton, "ArcticsButton");
            this.ArcticsButton.Name = "ArcticsButton";
            this.ArcticsButton.UseVisualStyleBackColor = true;
            this.ArcticsButton.Click += new System.EventHandler(this.ArcticsButton_Click);
            // 
            // DesertsButton
            // 
            resources.ApplyResources(this.DesertsButton, "DesertsButton");
            this.DesertsButton.Name = "DesertsButton";
            this.DesertsButton.UseVisualStyleBackColor = true;
            this.DesertsButton.Click += new System.EventHandler(this.DesertsButton_Click);
            // 
            // EarthlikesButton
            // 
            resources.ApplyResources(this.EarthlikesButton, "EarthlikesButton");
            this.EarthlikesButton.Name = "EarthlikesButton";
            this.EarthlikesButton.UseVisualStyleBackColor = true;
            this.EarthlikesButton.Click += new System.EventHandler(this.EarthlikesButton_Click);
            // 
            // GreenhousesButton
            // 
            resources.ApplyResources(this.GreenhousesButton, "GreenhousesButton");
            this.GreenhousesButton.Name = "GreenhousesButton";
            this.GreenhousesButton.UseVisualStyleBackColor = true;
            this.GreenhousesButton.Click += new System.EventHandler(this.GreenhousesButton_Click);
            // 
            // MountainousButton
            // 
            resources.ApplyResources(this.MountainousButton, "MountainousButton");
            this.MountainousButton.Name = "MountainousButton";
            this.MountainousButton.UseVisualStyleBackColor = true;
            this.MountainousButton.Click += new System.EventHandler(this.MountainousButton_Click);
            // 
            // OceanicsButton
            // 
            resources.ApplyResources(this.OceanicsButton, "OceanicsButton");
            this.OceanicsButton.Name = "OceanicsButton";
            this.OceanicsButton.UseVisualStyleBackColor = true;
            this.OceanicsButton.Click += new System.EventHandler(this.OceanicsButton_Click);
            // 
            // ParadisesButton
            // 
            resources.ApplyResources(this.ParadisesButton, "ParadisesButton");
            this.ParadisesButton.Name = "ParadisesButton";
            this.ParadisesButton.UseVisualStyleBackColor = true;
            this.ParadisesButton.Click += new System.EventHandler(this.ParadisesButton_Click);
            // 
            // RockiesButton
            // 
            resources.ApplyResources(this.RockiesButton, "RockiesButton");
            this.RockiesButton.Name = "RockiesButton";
            this.RockiesButton.UseVisualStyleBackColor = true;
            this.RockiesButton.Click += new System.EventHandler(this.RockiesButton_Click);
            // 
            // VolcanicsButton
            // 
            resources.ApplyResources(this.VolcanicsButton, "VolcanicsButton");
            this.VolcanicsButton.Name = "VolcanicsButton";
            this.VolcanicsButton.UseVisualStyleBackColor = true;
            this.VolcanicsButton.Click += new System.EventHandler(this.VolcanicsButton_Click);
            // 
            // numberTextBox
            // 
            resources.ApplyResources(this.numberTextBox, "numberTextBox");
            this.numberTextBox.AllowDrop = true;
            this.numberTextBox.Name = "numberTextBox";
            // 
            // NeedsDefensesButton
            // 
            resources.ApplyResources(this.NeedsDefensesButton, "NeedsDefensesButton");
            this.NeedsDefensesButton.Name = "NeedsDefensesButton";
            this.NeedsDefensesButton.UseVisualStyleBackColor = true;
            this.NeedsDefensesButton.Click += new System.EventHandler(this.NeedsDefensesButton_Click);
            // 
            // GrowingButton
            // 
            resources.ApplyResources(this.GrowingButton, "GrowingButton");
            this.GrowingButton.Name = "GrowingButton";
            this.GrowingButton.UseVisualStyleBackColor = true;
            this.GrowingButton.Click += new System.EventHandler(this.GrowingButton_Click);
            // 
            // ClearOutputButton
            // 
            resources.ApplyResources(this.ClearOutputButton, "ClearOutputButton");
            this.ClearOutputButton.Name = "ClearOutputButton";
            this.ClearOutputButton.UseVisualStyleBackColor = true;
            this.ClearOutputButton.Click += new System.EventHandler(this.ClearOutputButton_Click);
            // 
            // LineBreakButton
            // 
            resources.ApplyResources(this.LineBreakButton, "LineBreakButton");
            this.LineBreakButton.Name = "LineBreakButton";
            this.LineBreakButton.UseVisualStyleBackColor = true;
            this.LineBreakButton.Click += new System.EventHandler(this.LineBreakButton_Click);
            // 
            // toolStripPT
            // 
            resources.ApplyResources(this.toolStripPT, "toolStripPT");
            this.toolStripPT.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.OpenToolStripButtonPT,
            this.SaveToolStripButtonPT,
            this.toolStripSeparator,
            this.CopyToolStripButtonPT,
            this.toolStripSeparator1,
            this.HelpMeNiggaDamnToolStripButtonPT});
            this.toolStripPT.Name = "toolStripPT";
            // 
            // OpenToolStripButtonPT
            // 
            resources.ApplyResources(this.OpenToolStripButtonPT, "OpenToolStripButtonPT");
            this.OpenToolStripButtonPT.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.OpenToolStripButtonPT.Name = "OpenToolStripButtonPT";
            this.OpenToolStripButtonPT.Click += new System.EventHandler(this.OpenToolStripButton_Click);
            // 
            // SaveToolStripButtonPT
            // 
            resources.ApplyResources(this.SaveToolStripButtonPT, "SaveToolStripButtonPT");
            this.SaveToolStripButtonPT.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.SaveToolStripButtonPT.Name = "SaveToolStripButtonPT";
            this.SaveToolStripButtonPT.Click += new System.EventHandler(this.SaveToolStripButton_Click);
            // 
            // toolStripSeparator
            // 
            resources.ApplyResources(this.toolStripSeparator, "toolStripSeparator");
            this.toolStripSeparator.Name = "toolStripSeparator";
            // 
            // CopyToolStripButtonPT
            // 
            resources.ApplyResources(this.CopyToolStripButtonPT, "CopyToolStripButtonPT");
            this.CopyToolStripButtonPT.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.CopyToolStripButtonPT.Name = "CopyToolStripButtonPT";
            this.CopyToolStripButtonPT.Click += new System.EventHandler(this.CopyToolStripButton_Click);
            // 
            // toolStripSeparator1
            // 
            resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            // 
            // HelpMeNiggaDamnToolStripButtonPT
            // 
            resources.ApplyResources(this.HelpMeNiggaDamnToolStripButtonPT, "HelpMeNiggaDamnToolStripButtonPT");
            this.HelpMeNiggaDamnToolStripButtonPT.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.HelpMeNiggaDamnToolStripButtonPT.Name = "HelpMeNiggaDamnToolStripButtonPT";
            this.HelpMeNiggaDamnToolStripButtonPT.Click += new System.EventHandler(this.HelpMeNiggaDamnToolStripButton_Click);
            // 
            // DirectorshipListButton
            // 
            resources.ApplyResources(this.DirectorshipListButton, "DirectorshipListButton");
            this.DirectorshipListButton.Name = "DirectorshipListButton";
            this.DirectorshipListButton.UseVisualStyleBackColor = true;
            this.DirectorshipListButton.Click += new System.EventHandler(this.DirectorshipListButton_Click);
            // 
            // PrisonListButton
            // 
            resources.ApplyResources(this.PrisonListButton, "PrisonListButton");
            this.PrisonListButton.Name = "PrisonListButton";
            this.PrisonListButton.UseVisualStyleBackColor = true;
            this.PrisonListButton.Click += new System.EventHandler(this.PrisonListButton_Click);
            // 
            // SocialismListButton
            // 
            resources.ApplyResources(this.SocialismListButton, "SocialismListButton");
            this.SocialismListButton.Name = "SocialismListButton";
            this.SocialismListButton.UseVisualStyleBackColor = true;
            this.SocialismListButton.Click += new System.EventHandler(this.SocialismListButton_Click);
            // 
            // DemocracyListButton
            // 
            resources.ApplyResources(this.DemocracyListButton, "DemocracyListButton");
            this.DemocracyListButton.Name = "DemocracyListButton";
            this.DemocracyListButton.UseVisualStyleBackColor = true;
            this.DemocracyListButton.Click += new System.EventHandler(this.DemocracyListButton_Click);
            // 
            // NukesListButton
            // 
            resources.ApplyResources(this.NukesListButton, "NukesListButton");
            this.NukesListButton.Name = "NukesListButton";
            this.NukesListButton.UseVisualStyleBackColor = true;
            this.NukesListButton.Click += new System.EventHandler(this.NukesListButton_Click);
            // 
            // CMinesListButton
            // 
            resources.ApplyResources(this.CMinesListButton, "CMinesListButton");
            this.CMinesListButton.Name = "CMinesListButton";
            this.CMinesListButton.UseVisualStyleBackColor = true;
            this.CMinesListButton.Click += new System.EventHandler(this.CMinesListButton_Click);
            // 
            // SolarsListButton
            // 
            resources.ApplyResources(this.SolarsListButton, "SolarsListButton");
            this.SolarsListButton.Name = "SolarsListButton";
            this.SolarsListButton.UseVisualStyleBackColor = true;
            this.SolarsListButton.Click += new System.EventHandler(this.SolarsListButton_Click);
            // 
            // LasersListButton
            // 
            resources.ApplyResources(this.LasersListButton, "LasersListButton");
            this.LasersListButton.Name = "LasersListButton";
            this.LasersListButton.UseVisualStyleBackColor = true;
            this.LasersListButton.Click += new System.EventHandler(this.LasersListButton_Click);
            // 
            // BuildListButton
            // 
            resources.ApplyResources(this.BuildListButton, "BuildListButton");
            this.BuildListButton.Name = "BuildListButton";
            this.BuildListButton.UseVisualStyleBackColor = true;
            this.BuildListButton.Click += new System.EventHandler(this.BuildListButton_Click);
            // 
            // SameSystemListButton
            // 
            resources.ApplyResources(this.SameSystemListButton, "SameSystemListButton");
            this.SameSystemListButton.Name = "SameSystemListButton";
            this.SameSystemListButton.UseVisualStyleBackColor = true;
            this.SameSystemListButton.Click += new System.EventHandler(this.SameSystemListButton_Click);
            // 
            // FindMoraleButton
            // 
            resources.ApplyResources(this.FindMoraleButton, "FindMoraleButton");
            this.FindMoraleButton.Name = "FindMoraleButton";
            this.FindMoraleButton.UseVisualStyleBackColor = true;
            this.FindMoraleButton.Click += new System.EventHandler(this.FindMoraleButton_Click);
            // 
            // RenameListsButton
            // 
            resources.ApplyResources(this.RenameListsButton, "RenameListsButton");
            this.RenameListsButton.Name = "RenameListsButton";
            this.RenameListsButton.UseVisualStyleBackColor = true;
            this.RenameListsButton.Click += new System.EventHandler(this.RenameListsButton_Click);
            // 
            // DoubleDomeListButton
            // 
            resources.ApplyResources(this.DoubleDomeListButton, "DoubleDomeListButton");
            this.DoubleDomeListButton.Name = "DoubleDomeListButton";
            this.DoubleDomeListButton.UseVisualStyleBackColor = true;
            this.DoubleDomeListButton.Click += new System.EventHandler(this.DoubleDomeListButton_Click);
            // 
            // ArcticZoundsCheckBox
            // 
            resources.ApplyResources(this.ArcticZoundsCheckBox, "ArcticZoundsCheckBox");
            this.ArcticZoundsCheckBox.Name = "ArcticZoundsCheckBox";
            this.ArcticZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // ArcticsCheckBox
            // 
            resources.ApplyResources(this.ArcticsCheckBox, "ArcticsCheckBox");
            this.ArcticsCheckBox.Name = "ArcticsCheckBox";
            this.ArcticsCheckBox.UseVisualStyleBackColor = true;
            // 
            // DesertsCheckBox
            // 
            resources.ApplyResources(this.DesertsCheckBox, "DesertsCheckBox");
            this.DesertsCheckBox.Name = "DesertsCheckBox";
            this.DesertsCheckBox.UseVisualStyleBackColor = true;
            // 
            // DesertZoundsCheckBox
            // 
            resources.ApplyResources(this.DesertZoundsCheckBox, "DesertZoundsCheckBox");
            this.DesertZoundsCheckBox.Name = "DesertZoundsCheckBox";
            this.DesertZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // GreenhousesCheckBox
            // 
            resources.ApplyResources(this.GreenhousesCheckBox, "GreenhousesCheckBox");
            this.GreenhousesCheckBox.Name = "GreenhousesCheckBox";
            this.GreenhousesCheckBox.UseVisualStyleBackColor = true;
            // 
            // GreenhouseZoundsCheckBox
            // 
            resources.ApplyResources(this.GreenhouseZoundsCheckBox, "GreenhouseZoundsCheckBox");
            this.GreenhouseZoundsCheckBox.Name = "GreenhouseZoundsCheckBox";
            this.GreenhouseZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // EarthlikesCheckBox
            // 
            resources.ApplyResources(this.EarthlikesCheckBox, "EarthlikesCheckBox");
            this.EarthlikesCheckBox.Name = "EarthlikesCheckBox";
            this.EarthlikesCheckBox.UseVisualStyleBackColor = true;
            // 
            // EarthlikeZoundsCheckBox
            // 
            resources.ApplyResources(this.EarthlikeZoundsCheckBox, "EarthlikeZoundsCheckBox");
            this.EarthlikeZoundsCheckBox.Name = "EarthlikeZoundsCheckBox";
            this.EarthlikeZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // VolcanicsCheckBox
            // 
            resources.ApplyResources(this.VolcanicsCheckBox, "VolcanicsCheckBox");
            this.VolcanicsCheckBox.Name = "VolcanicsCheckBox";
            this.VolcanicsCheckBox.UseVisualStyleBackColor = true;
            // 
            // VolcanicZoundsCheckBox
            // 
            resources.ApplyResources(this.VolcanicZoundsCheckBox, "VolcanicZoundsCheckBox");
            this.VolcanicZoundsCheckBox.Name = "VolcanicZoundsCheckBox";
            this.VolcanicZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // RockiesCheckBox
            // 
            resources.ApplyResources(this.RockiesCheckBox, "RockiesCheckBox");
            this.RockiesCheckBox.Name = "RockiesCheckBox";
            this.RockiesCheckBox.UseVisualStyleBackColor = true;
            // 
            // RockyZoundsCheckBox
            // 
            resources.ApplyResources(this.RockyZoundsCheckBox, "RockyZoundsCheckBox");
            this.RockyZoundsCheckBox.Name = "RockyZoundsCheckBox";
            this.RockyZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // OceanicsCheckBox
            // 
            resources.ApplyResources(this.OceanicsCheckBox, "OceanicsCheckBox");
            this.OceanicsCheckBox.Name = "OceanicsCheckBox";
            this.OceanicsCheckBox.UseVisualStyleBackColor = true;
            // 
            // OceanicZoundsCheckBox
            // 
            resources.ApplyResources(this.OceanicZoundsCheckBox, "OceanicZoundsCheckBox");
            this.OceanicZoundsCheckBox.Name = "OceanicZoundsCheckBox";
            this.OceanicZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // MountainousCheckBox
            // 
            resources.ApplyResources(this.MountainousCheckBox, "MountainousCheckBox");
            this.MountainousCheckBox.Name = "MountainousCheckBox";
            this.MountainousCheckBox.UseVisualStyleBackColor = true;
            // 
            // MountainZoundsCheckBox
            // 
            resources.ApplyResources(this.MountainZoundsCheckBox, "MountainZoundsCheckBox");
            this.MountainZoundsCheckBox.Name = "MountainZoundsCheckBox";
            this.MountainZoundsCheckBox.UseVisualStyleBackColor = true;
            // 
            // ConstructionListButton
            // 
            resources.ApplyResources(this.ConstructionListButton, "ConstructionListButton");
            this.ConstructionListButton.Name = "ConstructionListButton";
            this.ConstructionListButton.UseVisualStyleBackColor = true;
            this.ConstructionListButton.Click += new System.EventHandler(this.ConstructionListButton_Click);
            // 
            // LowMetalButton
            // 
            resources.ApplyResources(this.LowMetalButton, "LowMetalButton");
            this.LowMetalButton.Name = "LowMetalButton";
            this.LowMetalButton.UseVisualStyleBackColor = true;
            this.LowMetalButton.Click += new System.EventHandler(this.LowMetalButton_Click);
            // 
            // planetLayoutPictureBox
            // 
            resources.ApplyResources(this.planetLayoutPictureBox, "planetLayoutPictureBox");
            this.planetLayoutPictureBox.Name = "planetLayoutPictureBox";
            this.planetLayoutPictureBox.TabStop = false;
            // 
            // PlanetTypeForm
            // 
            resources.ApplyResources(this, "$this");
            this.BackColor = System.Drawing.SystemColors.InactiveCaption;
            this.Controls.Add(this.planetLayoutPictureBox);
            this.Controls.Add(this.LowMetalButton);
            this.Controls.Add(this.ConstructionListButton);
            this.Controls.Add(this.VolcanicsCheckBox);
            this.Controls.Add(this.VolcanicZoundsCheckBox);
            this.Controls.Add(this.RockiesCheckBox);
            this.Controls.Add(this.RockyZoundsCheckBox);
            this.Controls.Add(this.OceanicsCheckBox);
            this.Controls.Add(this.OceanicZoundsCheckBox);
            this.Controls.Add(this.MountainousCheckBox);
            this.Controls.Add(this.MountainZoundsCheckBox);
            this.Controls.Add(this.GreenhousesCheckBox);
            this.Controls.Add(this.GreenhouseZoundsCheckBox);
            this.Controls.Add(this.EarthlikesCheckBox);
            this.Controls.Add(this.EarthlikeZoundsCheckBox);
            this.Controls.Add(this.DesertsCheckBox);
            this.Controls.Add(this.DesertZoundsCheckBox);
            this.Controls.Add(this.ArcticsCheckBox);
            this.Controls.Add(this.ArcticZoundsCheckBox);
            this.Controls.Add(this.DoubleDomeListButton);
            this.Controls.Add(this.RenameListsButton);
            this.Controls.Add(this.FindMoraleButton);
            this.Controls.Add(this.SameSystemListButton);
            this.Controls.Add(this.BuildListButton);
            this.Controls.Add(this.SolarsListButton);
            this.Controls.Add(this.LasersListButton);
            this.Controls.Add(this.CMinesListButton);
            this.Controls.Add(this.NukesListButton);
            this.Controls.Add(this.SocialismListButton);
            this.Controls.Add(this.DemocracyListButton);
            this.Controls.Add(this.PrisonListButton);
            this.Controls.Add(this.DirectorshipListButton);
            this.Controls.Add(this.toolStripPT);
            this.Controls.Add(this.LineBreakButton);
            this.Controls.Add(this.ClearOutputButton);
            this.Controls.Add(this.GrowingButton);
            this.Controls.Add(this.NeedsDefensesButton);
            this.Controls.Add(this.numberTextBox);
            this.Controls.Add(this.VolcanicsButton);
            this.Controls.Add(this.RockiesButton);
            this.Controls.Add(this.ParadisesButton);
            this.Controls.Add(this.OceanicsButton);
            this.Controls.Add(this.MountainousButton);
            this.Controls.Add(this.GreenhousesButton);
            this.Controls.Add(this.EarthlikesButton);
            this.Controls.Add(this.DesertsButton);
            this.Controls.Add(this.ArcticsButton);
            this.MaximizeBox = false;
            this.Name = "PlanetTypeForm";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PlanetTypeForm_FormClosing);
            this.toolStripPT.ResumeLayout(false);
            this.toolStripPT.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.planetLayoutPictureBox)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        } //init
Example #28
0
 private void InitializeComponent()
 {
     this.menuWindowResetWindowLocations = new PdnMenuItem();
     this.menuWindowSeperator1           = new ToolStripSeparator();
     this.menuWindowTranslucent          = new PdnMenuItem();
     this.menuWindowSeperator2           = new ToolStripSeparator();
     this.menuWindowTools       = new PdnMenuItem();
     this.menuWindowLayers      = new PdnMenuItem();
     this.menuWindowColors      = new PdnMenuItem();
     this.menuWindowSeparator3  = new ToolStripSeparator();
     this.menuWindowOpenMdiList = new PdnMenuItem();
     this.menuWindowNextTab     = new PdnMenuItem();
     this.menuWindowPreviousTab = new PdnMenuItem();
     //
     // WindowMenu
     //
     this.DropDownItems.AddRange(
         new ToolStripItem[]
     {
         this.menuWindowResetWindowLocations,
         this.menuWindowSeperator1,
         this.menuWindowTranslucent,
         this.menuWindowSeperator2,
         this.menuWindowTools,
         this.menuWindowLayers,
         this.menuWindowColors,
         this.menuWindowSeparator3,
         this.menuWindowOpenMdiList,
         this.menuWindowNextTab,
         this.menuWindowPreviousTab
     });
     this.Name = "Menu.Window";
     this.Text = PdnResources.GetString("Menu.Window.Text");
     //
     // menuWindowResetWindowLocations
     //
     this.menuWindowResetWindowLocations.Name   = "ResetWindowLocations";
     this.menuWindowResetWindowLocations.Click += new System.EventHandler(this.MenuWindowResetWindowLocations_Click);
     //
     // menuWindowTranslucent
     //
     this.menuWindowTranslucent.Name   = "Translucent";
     this.menuWindowTranslucent.Click += new System.EventHandler(this.MenuWindowTranslucent_Click);
     //
     // menuWindowTools
     //
     this.menuWindowTools.Name         = "Tools";
     this.menuWindowTools.ShortcutKeys = Keys.F5;
     this.menuWindowTools.Click       += new System.EventHandler(this.MenuWindowTools_Click);
     //
     // menuWindowLayers
     //
     this.menuWindowLayers.Name         = "Layers";
     this.menuWindowLayers.ShortcutKeys = Keys.F7;
     this.menuWindowLayers.Click       += new System.EventHandler(this.MenuWindowLayers_Click);
     //
     // menuWindowColors
     //
     this.menuWindowColors.Name         = "Colors";
     this.menuWindowColors.ShortcutKeys = Keys.F8;
     this.menuWindowColors.Click       += new System.EventHandler(this.MenuWindowColors_Click);
     //
     // menuWindowOpenMdiList
     //
     this.menuWindowOpenMdiList.Name         = "OpenMdiList";
     this.menuWindowOpenMdiList.ShortcutKeys = Keys.Control | Keys.Q;
     this.menuWindowOpenMdiList.Click       += new EventHandler(MenuWindowOpenMdiList_Click);
     //
     // menuWindowNextTab
     //
     this.menuWindowNextTab.Name         = "NextTab";
     this.menuWindowNextTab.ShortcutKeys = Keys.Control | Keys.Tab;
     this.menuWindowNextTab.Click       += new EventHandler(MenuWindowNextTab_Click);
     //
     // menuWindowPreviousTab
     //
     this.menuWindowPreviousTab.Name         = "PreviousTab";
     this.menuWindowPreviousTab.ShortcutKeys = Keys.Control | Keys.Shift | Keys.Tab;
     this.menuWindowPreviousTab.Click       += new EventHandler(MenuWindowPreviousTab_Click);
 }
Example #29
0
        private void HandleContextMenu()
        {
            _contextMenuStrip.Items.Clear();

            int iconSize = (int)(24 * ScalingTools.GetScaleFactor());

            var item = new ToolStripMenuItem("Show Status");

            item.ToolTipText = @"Enable/Disable the preview status bar.";

            if (_showStatus)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _showStatus = !_showStatus;
                ConfigureStatusBar();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            _contextMenuStrip.Items.Add(item);

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Always On Top");
            item.ToolTipText = @"Enable/Disable the window always on top.";

            if (_alwaysOnTop)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _alwaysOnTop = !_alwaysOnTop;
                if (_alwaysOnTop)
                {
                    IsOnTopWhenPlaying = false;
                }
                ConfigureAlwaysOnTop();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Auto On Top");
            item.ToolTipText = @"Enable/Disable bringing this preview on top and back automatically.";

            if (IsOnTopWhenPlaying)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                IsOnTopWhenPlaying = !IsOnTopWhenPlaying;
                if (IsOnTopWhenPlaying)
                {
                    _alwaysOnTop = false;
                    ConfigureAlwaysOnTop();
                }
                else if (TopMost)
                {
                    TopMost = false;
                }

                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Reset Size");
            item.ToolTipText = @"Resets the viewable size to match the background size.";
            item.Enabled     = _background.HasBackground;
            item.Click      += (sender, args) =>
            {
                _width           = _background.Width;
                _height          = _background.Height;
                ClientSize       = new Size(_width, _height);
                _focalDepth      = (float)(1 / Math.Tan(ConvertToRadians(Fov / 2)) * (ClientSize.Height / 2.0));
                _camera.Position = new Vector3(_width / 2f, _height / 2f, _focalDepth);
                _camera.SetDirection(new Vector3(0, 0, -1));
                CalculatePointScaleFactor();
                glControl.Invalidate();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Enable Light Scaling");
            item.ToolTipText = @"Scales the light size as the camera is zoomed in or out.";
            item.Checked     = _enableLightScaling;
            item.Click      += (sender, args) =>
            {
                _enableLightScaling = !_enableLightScaling;
                CalculatePointScaleFactor();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            var seperator = new ToolStripSeparator();

            _contextMenuStrip.Items.Add(seperator);

            var locationLabel = new ToolStripLabel(string.Format("Location: {0},{1}", DesktopLocation.X, DesktopLocation.Y));

            _contextMenuStrip.Items.Add(locationLabel);

            var sizeLabel = new ToolStripLabel(string.Format("Size: {0} X {1}", ClientSize.Width, ClientSize.Height));

            _contextMenuStrip.Items.Add(sizeLabel);

            _contextMenuStrip.Show(MousePosition);
        }
Example #30
0
 private void InitializeComponent()
 {
     this.menuImageCrop            = new PdnMenuItem();
     this.menuImageResize          = new PdnMenuItem();
     this.menuImageCanvasSize      = new PdnMenuItem();
     this.menuImageSeparator1      = new ToolStripSeparator();
     this.menuImageFlip            = new PdnMenuItem();
     this.menuImageFlipHorizontal  = new PdnMenuItem();
     this.menuImageFlipVertical    = new PdnMenuItem();
     this.menuImageRotate          = new PdnMenuItem();
     this.menuImageRotate90CW      = new PdnMenuItem();
     this.menuImageRotate180CW     = new PdnMenuItem();
     this.menuImageRotate270CW     = new PdnMenuItem();
     this.menuImageRotateSeparator = new ToolStripSeparator();
     this.menuImageRotate90CCW     = new PdnMenuItem();
     this.menuImageRotate180CCW    = new PdnMenuItem();
     this.menuImageRotate270CCW    = new PdnMenuItem();
     this.menuImageSeparator2      = new ToolStripSeparator();
     this.menuImageFlatten         = new PdnMenuItem();
     //
     // ImageMenu
     //
     this.DropDownItems.AddRange(
         new System.Windows.Forms.ToolStripItem[]
     {
         this.menuImageCrop,
         this.menuImageResize,
         this.menuImageCanvasSize,
         this.menuImageSeparator1,
         this.menuImageFlip,
         this.menuImageRotate,
         this.menuImageSeparator2,
         this.menuImageFlatten
     });
     this.Name = "Menu.Image";
     this.Text = PdnResources.GetString("Menu.Image.Text");
     //
     // menuImageCrop
     //
     this.menuImageCrop.Name         = "Crop";
     this.menuImageCrop.Click       += new System.EventHandler(this.MenuImageCrop_Click);
     this.menuImageCrop.ShortcutKeys = Keys.Control | Keys.Shift | Keys.X;
     //
     // menuImageResize
     //
     this.menuImageResize.Name         = "Resize";
     this.menuImageResize.ShortcutKeys = Keys.Control | Keys.R;
     this.menuImageResize.Click       += new System.EventHandler(this.MenuImageResize_Click);
     //
     // menuImageCanvasSize
     //
     this.menuImageCanvasSize.Name         = "CanvasSize";
     this.menuImageCanvasSize.ShortcutKeys = Keys.Control | Keys.Shift | Keys.R;
     this.menuImageCanvasSize.Click       += new System.EventHandler(this.MenuImageCanvasSize_Click);
     //
     // menuImageFlip
     //
     this.menuImageFlip.Name = "Flip";
     this.menuImageFlip.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.menuImageFlipHorizontal,
         this.menuImageFlipVertical
     });
     //
     // menuImageFlipHorizontal
     //
     this.menuImageFlipHorizontal.Name   = "Horizontal";
     this.menuImageFlipHorizontal.Click += new System.EventHandler(this.MenuImageFlipHorizontal_Click);
     //
     // menuImageFlipVertical
     //
     this.menuImageFlipVertical.Name   = "Vertical";
     this.menuImageFlipVertical.Click += new System.EventHandler(this.MenuImageFlipVertical_Click);
     //
     // menuImageRotate
     //
     this.menuImageRotate.Name = "Rotate";
     this.menuImageRotate.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.menuImageRotate90CW,
         this.menuImageRotate180CW,
         this.menuImageRotate270CW,
         this.menuImageRotateSeparator,
         this.menuImageRotate90CCW,
         this.menuImageRotate180CCW,
         this.menuImageRotate270CCW
     });
     //
     // menuImageRotate90CW
     //
     this.menuImageRotate90CW.Name         = "90CW";
     this.menuImageRotate90CW.ShortcutKeys = Keys.Control | Keys.H;
     this.menuImageRotate90CW.Click       += new System.EventHandler(this.MenuImageRotate90CW_Click);
     //
     // menuImageRotate180CW
     //
     this.menuImageRotate180CW.Name   = "180CW";
     this.menuImageRotate180CW.Click += new System.EventHandler(this.MenuImageRotate180CW_Click);
     //
     // menuImageRotate270CW
     //
     this.menuImageRotate270CW.Name   = "270CW";
     this.menuImageRotate270CW.Click += new System.EventHandler(this.MenuImageRotate270CW_Click);
     //
     // menuImageRotate90CCW
     //
     this.menuImageRotate90CCW.Name         = "90CCW";
     this.menuImageRotate90CCW.ShortcutKeys = Keys.Control | Keys.G;
     this.menuImageRotate90CCW.Click       += new System.EventHandler(this.MenuImageRotate90CCW_Click);
     //
     // menuImageRotate180CCW
     //
     this.menuImageRotate180CCW.Name   = "180CCW";
     this.menuImageRotate180CCW.Click += new System.EventHandler(this.MenuImageRotate180CCW_Click);
     //
     // menuImageRotate270CCW
     //
     this.menuImageRotate270CCW.Name   = "270CCW";
     this.menuImageRotate270CCW.Click += new System.EventHandler(this.MenuImageRotate270CCW_Click);
     //
     // menuImageFlatten
     //
     this.menuImageFlatten.Name         = "Flatten";
     this.menuImageFlatten.ShortcutKeys = Keys.Control | Keys.Shift | Keys.F;
     this.menuImageFlatten.Click       += new System.EventHandler(this.MenuImageFlatten_Click);
 }
Example #31
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(CoursePictureGenerator));

            this.toolStrip1          = new ToolStrip();
            this.toolStripButton1    = new ToolStripButton();
            this.toolStripButton2    = new ToolStripButton();
            this.toolStripButton3    = new ToolStripButton();
            this.toolStripButton4    = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.toolStripButton5    = new ToolStripButton();
            this.pictureBox1         = new PictureBox();
            this.openFileDialog1     = new OpenFileDialog();
            this.saveFileDialog1     = new SaveFileDialog();
            this.saveFileDialog2     = new SaveFileDialog();
            this.saveFileDialog3     = new SaveFileDialog();
            this.panel1                = new Panel();
            this.button1               = new Button();
            this.pictureBox2           = new PictureBox();
            this.toolStripStatusLabel1 = new ToolStripStatusLabel();
            this.toolStripProgressBar1 = new ToolStripProgressBar();
            this.statusStrip1          = new StatusStrip();
            this.toolStripButton6      = new ToolStripButton();
            this.toolStripSeparator2   = new ToolStripSeparator();
            this.toolStrip1.SuspendLayout();
            ((ISupportInitialize)this.pictureBox1).BeginInit();
            this.panel1.SuspendLayout();
            ((ISupportInitialize)this.pictureBox2).BeginInit();
            this.statusStrip1.SuspendLayout();
            this.SuspendLayout();
            this.toolStrip1.Items.AddRange(new ToolStripItem[8]
            {
                (ToolStripItem)this.toolStripButton1,
                (ToolStripItem)this.toolStripButton2,
                (ToolStripItem)this.toolStripButton3,
                (ToolStripItem)this.toolStripButton4,
                (ToolStripItem)this.toolStripSeparator1,
                (ToolStripItem)this.toolStripButton5,
                (ToolStripItem)this.toolStripSeparator2,
                (ToolStripItem)this.toolStripButton6
            });
            this.toolStrip1.Location                    = new Point(0, 0);
            this.toolStrip1.Name                        = "toolStrip1";
            this.toolStrip1.Size                        = new Size(759, 25);
            this.toolStrip1.TabIndex                    = 0;
            this.toolStrip1.Text                        = "toolStrip1";
            this.toolStripButton1.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image                 = (Image)componentResourceManager.GetObject("toolStripButton1.Image");
            this.toolStripButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripButton1.Name                  = "toolStripButton1";
            this.toolStripButton1.Size                  = new Size(23, 22);
            this.toolStripButton1.Text                  = "toolStripButton1";
            this.toolStripButton1.Click                += new EventHandler(this.toolStripButton1_Click);
            this.toolStripButton2.Alignment             = ToolStripItemAlignment.Right;
            this.toolStripButton2.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Enabled               = false;
            this.toolStripButton2.Image                 = (Image)componentResourceManager.GetObject("toolStripButton2.Image");
            this.toolStripButton2.ImageTransparentColor = Color.Magenta;
            this.toolStripButton2.Name                  = "toolStripButton2";
            this.toolStripButton2.Size                  = new Size(23, 22);
            this.toolStripButton2.Text                  = "toolStripButton2";
            this.toolStripButton2.Click                += new EventHandler(this.toolStripButton2_Click);
            this.toolStripButton3.Alignment             = ToolStripItemAlignment.Right;
            this.toolStripButton3.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Enabled               = false;
            this.toolStripButton3.Image                 = (Image)componentResourceManager.GetObject("toolStripButton3.Image");
            this.toolStripButton3.ImageTransparentColor = Color.Magenta;
            this.toolStripButton3.Name                  = "toolStripButton3";
            this.toolStripButton3.Size                  = new Size(23, 22);
            this.toolStripButton3.Text                  = "toolStripButton3";
            this.toolStripButton3.Click                += new EventHandler(this.toolStripButton3_Click);
            this.toolStripButton4.Alignment             = ToolStripItemAlignment.Right;
            this.toolStripButton4.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton4.Enabled               = false;
            this.toolStripButton4.Image                 = (Image)componentResourceManager.GetObject("toolStripButton4.Image");
            this.toolStripButton4.ImageTransparentColor = Color.Magenta;
            this.toolStripButton4.Name                  = "toolStripButton4";
            this.toolStripButton4.Size                  = new Size(23, 22);
            this.toolStripButton4.Text                  = "toolStripButton4";
            this.toolStripButton4.Click                += new EventHandler(this.toolStripButton4_Click);
            this.toolStripSeparator1.Name               = "toolStripSeparator1";
            this.toolStripSeparator1.Size               = new Size(6, 25);
            this.toolStripButton5.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton5.Enabled               = false;
            this.toolStripButton5.Image                 = (Image)componentResourceManager.GetObject("toolStripButton5.Image");
            this.toolStripButton5.ImageTransparentColor = Color.Magenta;
            this.toolStripButton5.Name                  = "toolStripButton5";
            this.toolStripButton5.Size                  = new Size(23, 22);
            this.toolStripButton5.Text                  = "Generate";
            this.toolStripButton5.Click                += new EventHandler(this.toolStripButton5_Click);
            this.pictureBox1.Dock                       = DockStyle.Fill;
            this.pictureBox1.Location                   = new Point(0, 25);
            this.pictureBox1.Name                       = "pictureBox1";
            this.pictureBox1.Size                       = new Size(759, 307);
            this.pictureBox1.TabIndex                   = 1;
            this.pictureBox1.TabStop                    = false;
            this.openFileDialog1.FileName               = "openFileDialog1";
            this.saveFileDialog1.DefaultExt             = "nclr";
            this.saveFileDialog1.Filter                 = "Nitro Color Palette for Runtime(*.nclr)|*.nclr";
            this.saveFileDialog2.DefaultExt             = "ncgr";
            this.saveFileDialog2.Filter                 = "Nitro Character Graphics for Runtime(*.ncgr)|*.ncgr";
            this.saveFileDialog3.DefaultExt             = "nscr";
            this.saveFileDialog3.Filter                 = "Nitro Screen for Runtime(*.nscr)|*.nscr";
            this.panel1.Controls.Add((Control)this.button1);
            this.panel1.Controls.Add((Control)this.pictureBox2);
            this.panel1.Dock      = DockStyle.Right;
            this.panel1.Location  = new Point(550, 25);
            this.panel1.Name      = "panel1";
            this.panel1.Size      = new Size(209, 285);
            this.panel1.TabIndex  = 3;
            this.button1.Enabled  = false;
            this.button1.Image    = (Image)componentResourceManager.GetObject("button1.Image");
            this.button1.Location = new Point(182, 182);
            this.button1.Name     = "button1";
            this.button1.Size     = new Size(24, 24);
            this.button1.TabIndex = 1;
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click              += new EventHandler(this.button1_Click);
            this.pictureBox2.Dock            = DockStyle.Top;
            this.pictureBox2.Location        = new Point(0, 0);
            this.pictureBox2.Name            = "pictureBox2";
            this.pictureBox2.Size            = new Size(209, 176);
            this.pictureBox2.TabIndex        = 0;
            this.pictureBox2.TabStop         = false;
            this.pictureBox2.Paint          += new PaintEventHandler(this.pictureBox2_Paint);
            this.pictureBox2.MouseUp        += new MouseEventHandler(this.pictureBox2_MouseUp);
            this.pictureBox2.PreviewKeyDown += new PreviewKeyDownEventHandler(this.pictureBox2_PreviewKeyDown);
            this.toolStripStatusLabel1.Name  = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size  = new Size(118, 17);
            this.toolStripStatusLabel1.Text  = "toolStripStatusLabel1";
            this.toolStripProgressBar1.Name  = "toolStripProgressBar1";
            this.toolStripProgressBar1.Size  = new Size(100, 16);
            this.statusStrip1.Items.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.toolStripStatusLabel1,
                (ToolStripItem)this.toolStripProgressBar1
            });
            this.statusStrip1.Location                  = new Point(0, 310);
            this.statusStrip1.Name                      = "statusStrip1";
            this.statusStrip1.Size                      = new Size(759, 22);
            this.statusStrip1.TabIndex                  = 2;
            this.statusStrip1.Text                      = "statusStrip1";
            this.toolStripButton6.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.toolStripButton6.Enabled               = false;
            this.toolStripButton6.Image                 = (Image)componentResourceManager.GetObject("toolStripButton6.Image");
            this.toolStripButton6.ImageTransparentColor = Color.Magenta;
            this.toolStripButton6.Name                  = "toolStripButton6";
            this.toolStripButton6.Size                  = new Size(23, 22);
            this.toolStripButton6.Text                  = "Calculate Palettes";
            this.toolStripButton6.Click                += new EventHandler(this.toolStripButton6_Click);
            this.toolStripSeparator2.Name               = "toolStripSeparator2";
            this.toolStripSeparator2.Size               = new Size(6, 25);
            this.AutoScaleDimensions                    = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(759, 332);
            this.Controls.Add((Control)this.panel1);
            this.Controls.Add((Control)this.statusStrip1);
            this.Controls.Add((Control)this.pictureBox1);
            this.Controls.Add((Control)this.toolStrip1);
            this.Name      = nameof(CoursePictureGenerator);
            this.Text      = nameof(CoursePictureGenerator);
            this.KeyDown  += new KeyEventHandler(this.CoursePictureGenerator_KeyDown);
            this.KeyPress += new KeyPressEventHandler(this.CoursePictureGenerator_KeyPress);
            this.KeyUp    += new KeyEventHandler(this.CoursePictureGenerator_KeyUp);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            ((ISupportInitialize)this.pictureBox1).EndInit();
            this.panel1.ResumeLayout(false);
            ((ISupportInitialize)this.pictureBox2).EndInit();
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #32
0
        private void PopulateToolbar()
        {
            _toolbar.SuspendLayout();

            _toolbarSeparator = MenuTools.CreateSeparator(
                Constants.UI_TOOLBAR_OBJECT_BROWSER_SEP);

            _viewModulesButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_VIEW_MODULES,
                Resources.OBViewByContainer,
                Resources.ViewByContainer,
                UI_TOOLBAR_VIEW_MODULES_Click);

            _viewNamespacesButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_VIEW_NAMESPACES,
                Resources.OBViewByNamespace,
                Resources.ViewByNamespace,
                UI_TOOLBAR_VIEW_NAMESPACES_Click);

            if (_includeWorkspace)
            {
                _showWorkspaceOnlyButton = MenuTools.CreateToolbarButton(
                    Constants.UI_TOOLBAR_SHOW_WORKSPACE_ONLY,
                    Resources.OBShowWorkspaceOnly,
                    Resources.ShowWorkspaceOnly,
                    UI_TOOLBAR_SHOW_WORKSPACE_ONLY_Click);
            }

            _showNonPublicButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_SHOW_NONPUBLIC,
                Resources.OBShowNonPublic,
                Resources.ShowNonPublic,
                UI_TOOLBAR_SHOW_NONPUBLIC_Click);

            _showHiddenButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_SHOW_HIDDEN,
                Resources.OBShowHidden,
                Resources.ShowHidden,
                UI_TOOLBAR_SHOW_HIDDEN_Click);

            _showInheritedButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_SHOW_INHERITED,
                Resources.OBShowInherited,
                Resources.ShowInherited,
                UI_TOOLBAR_SHOW_INHERITED_Click);

            _refreshViewButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_REFRESH_VIEW,
                Resources.OBRefresh,
                Resources.RefreshView,
                UI_TOOLBAR_REFRESH_VIEW_Click);

            _showPropertiesButton = MenuTools.CreateToolbarButton(
                Constants.UI_TOOLBAR_SHOW_PROPERTIES,
                Resources.OBShowProperties,
                Resources.PROPERTIES,
                UI_TOOLBAR_SHOW_PROPERTIES_Click);

            if (!_useMainToolbar)
            {
                _toolbar.Items.Clear();
            }

            if (_useMainToolbar)
            {
                _toolbar.Items.Add(_toolbarSeparator);
            }

            _toolbar.Items.Add(_viewModulesButton);
            _toolbar.Items.Add(_viewNamespacesButton);

            if (_includeWorkspace)
            {
                _toolbar.Items.Add(_showWorkspaceOnlyButton);
            }

            _toolbar.Items.Add(_showNonPublicButton);
            _toolbar.Items.Add(_showHiddenButton);
            _toolbar.Items.Add(_showInheritedButton);
            _toolbar.Items.Add(_refreshViewButton);
            _toolbar.Items.Add(_showPropertiesButton);

            _toolbar.ResumeLayout(true);
        }
Example #33
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FormSSRSExplorer));

            this.tvReportServer                         = new TreeView();
            this.imageList                              = new ImageList(this.components);
            this.contextMenuStrip                       = new ContextMenuStrip(this.components);
            this.deleteToolStripMenuItem                = new ToolStripMenuItem();
            this.moveToolStripMenuItem                  = new ToolStripMenuItem();
            this.renameToolStripMenuItem                = new ToolStripMenuItem();
            this.setDatasourceToolStripMenuItem         = new ToolStripMenuItem();
            this.editToolStripMenuItem                  = new ToolStripMenuItem();
            this.createDatasourceToolStripMenuItem      = new ToolStripMenuItem();
            this.setItemSecurityToolStripMenuItem       = new ToolStripMenuItem();
            this.addPermissionsForUserToolStripMenuItem = new ToolStripMenuItem();
            this.newFolderToolStripMenuItem             = new ToolStripMenuItem();
            this.toolStripMenuItemSep1                  = new ToolStripSeparator();
            this.uploadToolStripMenuItem                = new ToolStripMenuItem();
            this.filesToolStripMenuItem                 = new ToolStripMenuItem();
            this.folderToolStripMenuItem                = new ToolStripMenuItem();
            this.downloadToolStripMenuItem              = new ToolStripMenuItem();
            this.replaceModelToolStripMenuItem          = new ToolStripMenuItem();
            this.toolStripMenuItemSep2                  = new ToolStripSeparator();
            this.propertiesToolStripMenuItem            = new ToolStripMenuItem();
            this.btnOK                     = new Button();
            this.lvItems                   = new ListView();
            this.splitContainer            = new SplitContainer();
            this.statusStrip               = new StatusStrip();
            this.toolStripStatusLabel      = new ToolStripStatusLabel();
            this.openFileDialog            = new OpenFileDialog();
            this.menuStripMain             = new MenuStrip();
            this.toolStripMenuItem5        = new ToolStripMenuItem();
            this.connectToolStripMenuItem  = new ToolStripMenuItem();
            this.settingsToolStripMenuItem = new ToolStripMenuItem();
            this.toolStripMenuItem6        = new ToolStripSeparator();
            this.exitToolStripMenuItem     = new ToolStripMenuItem();
            this.helpToolStripMenuItem     = new ToolStripMenuItem();
            this.toolStripContainer        = new ToolStripContainer();
            this.contextMenuStrip.SuspendLayout();
            this.splitContainer.Panel1.SuspendLayout();
            this.splitContainer.Panel2.SuspendLayout();
            this.splitContainer.SuspendLayout();
            this.statusStrip.SuspendLayout();
            this.menuStripMain.SuspendLayout();
            this.toolStripContainer.BottomToolStripPanel.SuspendLayout();
            this.toolStripContainer.ContentPanel.SuspendLayout();
            this.toolStripContainer.TopToolStripPanel.SuspendLayout();
            this.toolStripContainer.SuspendLayout();
            this.SuspendLayout();
            this.tvReportServer.Anchor             = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.tvReportServer.ImageIndex         = 2;
            this.tvReportServer.ImageList          = this.imageList;
            this.tvReportServer.Location           = new Point(3, 3);
            this.tvReportServer.Name               = "tvReportServer";
            this.tvReportServer.SelectedImageIndex = 3;
            this.tvReportServer.Size               = new Size(252, 405);
            this.tvReportServer.TabIndex           = 0;
            this.tvReportServer.AfterSelect       += new TreeViewEventHandler(this.tvReportServer_AfterSelect);
            this.imageList.ImageStream             = (ImageListStreamer)componentResourceManager.GetObject("imageList.ImageStream");
            this.imageList.TransparentColor        = Color.Transparent;
            this.imageList.Images.SetKeyName(0, "");
            this.imageList.Images.SetKeyName(1, "");
            this.imageList.Images.SetKeyName(2, "");
            this.imageList.Images.SetKeyName(3, "");
            this.imageList.Images.SetKeyName(4, "");
            this.imageList.Images.SetKeyName(5, "");
            this.imageList.Images.SetKeyName(6, "model.gif");
            this.contextMenuStrip.Items.AddRange(new ToolStripItem[14]
            {
                (ToolStripItem)this.deleteToolStripMenuItem,
                (ToolStripItem)this.moveToolStripMenuItem,
                (ToolStripItem)this.renameToolStripMenuItem,
                (ToolStripItem)this.setDatasourceToolStripMenuItem,
                (ToolStripItem)this.editToolStripMenuItem,
                (ToolStripItem)this.createDatasourceToolStripMenuItem,
                (ToolStripItem)this.setItemSecurityToolStripMenuItem,
                (ToolStripItem)this.newFolderToolStripMenuItem,
                (ToolStripItem)this.toolStripMenuItemSep1,
                (ToolStripItem)this.uploadToolStripMenuItem,
                (ToolStripItem)this.downloadToolStripMenuItem,
                (ToolStripItem)this.replaceModelToolStripMenuItem,
                (ToolStripItem)this.toolStripMenuItemSep2,
                (ToolStripItem)this.propertiesToolStripMenuItem
            });
            this.contextMenuStrip.Name                    = "contextMenuStrip";
            this.contextMenuStrip.ShowImageMargin         = false;
            this.contextMenuStrip.Size                    = new Size(167, 304);
            this.contextMenuStrip.Text                    = "With selected items:";
            this.contextMenuStrip.Opening                += new CancelEventHandler(this.contextMenuStrip_Opening);
            this.deleteToolStripMenuItem.Name             = "deleteToolStripMenuItem";
            this.deleteToolStripMenuItem.Size             = new Size(166, 24);
            this.deleteToolStripMenuItem.Text             = "&Delete";
            this.deleteToolStripMenuItem.Click           += new EventHandler(this.deleteToolStripMenuItem_Click);
            this.moveToolStripMenuItem.Name               = "moveToolStripMenuItem";
            this.moveToolStripMenuItem.Size               = new Size(166, 24);
            this.moveToolStripMenuItem.Text               = "&Move";
            this.moveToolStripMenuItem.Click             += new EventHandler(this.moveToolStripMenuItem_Click);
            this.renameToolStripMenuItem.Name             = "renameToolStripMenuItem";
            this.renameToolStripMenuItem.Size             = new Size(166, 24);
            this.renameToolStripMenuItem.Text             = "&Rename";
            this.renameToolStripMenuItem.Click           += new EventHandler(this.renameToolStripMenuItem_Click);
            this.setDatasourceToolStripMenuItem.Name      = "setDatasourceToolStripMenuItem";
            this.setDatasourceToolStripMenuItem.Size      = new Size(166, 24);
            this.setDatasourceToolStripMenuItem.Text      = "S&et Datasource";
            this.setDatasourceToolStripMenuItem.Click    += new EventHandler(this.setDatasourceToolStripMenuItem_Click);
            this.editToolStripMenuItem.Name               = "editToolStripMenuItem";
            this.editToolStripMenuItem.Size               = new Size(166, 24);
            this.editToolStripMenuItem.Text               = "&Edit Datasource";
            this.editToolStripMenuItem.Click             += new EventHandler(this.editToolStripMenuItem_Click);
            this.createDatasourceToolStripMenuItem.Name   = "createDatasourceToolStripMenuItem";
            this.createDatasourceToolStripMenuItem.Size   = new Size(166, 24);
            this.createDatasourceToolStripMenuItem.Text   = "&Create Datasource";
            this.createDatasourceToolStripMenuItem.Click += new EventHandler(this.createDatasourceToolStripMenuItem_Click);
            this.setItemSecurityToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[1]
            {
                (ToolStripItem)this.addPermissionsForUserToolStripMenuItem
            });
            this.setItemSecurityToolStripMenuItem.Name         = "setItemSecurityToolStripMenuItem";
            this.setItemSecurityToolStripMenuItem.Size         = new Size(166, 24);
            this.setItemSecurityToolStripMenuItem.Text         = "Security";
            this.addPermissionsForUserToolStripMenuItem.Name   = "addPermissionsForUserToolStripMenuItem";
            this.addPermissionsForUserToolStripMenuItem.Size   = new Size(332, 24);
            this.addPermissionsForUserToolStripMenuItem.Text   = "Add permissions for \"My Reports\"-folders";
            this.addPermissionsForUserToolStripMenuItem.Click += new EventHandler(this.addPermissionsForUserToolStripMenuItem_Click);
            this.newFolderToolStripMenuItem.Name   = "newFolderToolStripMenuItem";
            this.newFolderToolStripMenuItem.Size   = new Size(166, 24);
            this.newFolderToolStripMenuItem.Text   = "&New Folder";
            this.newFolderToolStripMenuItem.Click += new EventHandler(this.newFolderToolStripMenuItem_Click);
            this.toolStripMenuItemSep1.Name        = "toolStripMenuItemSep1";
            this.toolStripMenuItemSep1.Size        = new Size(163, 6);
            this.uploadToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.filesToolStripMenuItem,
                (ToolStripItem)this.folderToolStripMenuItem
            });
            this.uploadToolStripMenuItem.Name         = "uploadToolStripMenuItem";
            this.uploadToolStripMenuItem.Size         = new Size(166, 24);
            this.uploadToolStripMenuItem.Text         = "&Upload";
            this.filesToolStripMenuItem.Name          = "filesToolStripMenuItem";
            this.filesToolStripMenuItem.Size          = new Size(116, 24);
            this.filesToolStripMenuItem.Text          = "File(s)";
            this.filesToolStripMenuItem.Click        += new EventHandler(this.filesToolStripMenuItem_Click);
            this.folderToolStripMenuItem.Name         = "folderToolStripMenuItem";
            this.folderToolStripMenuItem.Size         = new Size(116, 24);
            this.folderToolStripMenuItem.Text         = "Folder";
            this.folderToolStripMenuItem.Click       += new EventHandler(this.folderToolStripMenuItem_Click);
            this.downloadToolStripMenuItem.Name       = "downloadToolStripMenuItem";
            this.downloadToolStripMenuItem.Size       = new Size(166, 24);
            this.downloadToolStripMenuItem.Text       = "Do&wnload";
            this.downloadToolStripMenuItem.Click     += new EventHandler(this.downloadToolStripMenuItem_Click);
            this.replaceModelToolStripMenuItem.Name   = "replaceModelToolStripMenuItem";
            this.replaceModelToolStripMenuItem.Size   = new Size(166, 24);
            this.replaceModelToolStripMenuItem.Text   = "Replace model";
            this.replaceModelToolStripMenuItem.Click += new EventHandler(this.replaceModelToolStripMenuItem_Click);
            this.toolStripMenuItemSep2.Name           = "toolStripMenuItemSep2";
            this.toolStripMenuItemSep2.Size           = new Size(163, 6);
            this.propertiesToolStripMenuItem.Name     = "propertiesToolStripMenuItem";
            this.propertiesToolStripMenuItem.Size     = new Size(166, 24);
            this.propertiesToolStripMenuItem.Text     = "&Properties";
            this.propertiesToolStripMenuItem.Click   += new EventHandler(this.propertiesToolStripMenuItem_Click);
            this.btnOK.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
            this.btnOK.Location = new Point(694, 428);
            this.btnOK.Name     = "btnOK";
            this.btnOK.Size     = new Size(75, 23);
            this.btnOK.TabIndex = 1;
            this.btnOK.Text     = "OK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click             += new EventHandler(this.btnOK_Click);
            this.lvItems.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.lvItems.ContextMenuStrip = this.contextMenuStrip;
            this.lvItems.Location         = new Point(3, 3);
            this.lvItems.Name             = "lvItems";
            this.lvItems.ShowItemToolTips = true;
            this.lvItems.Size             = new Size(514, 405);
            this.lvItems.SmallImageList   = this.imageList;
            this.lvItems.TabIndex         = 2;
            this.lvItems.UseCompatibleStateImageBehavior = false;
            this.lvItems.View              = View.List;
            this.lvItems.MouseDoubleClick += new MouseEventHandler(this.lvItems_MouseDoubleClick);
            this.splitContainer.Dock       = DockStyle.Fill;
            this.splitContainer.Location   = new Point(0, 0);
            this.splitContainer.Name       = "splitContainer";
            this.splitContainer.Panel1.Controls.Add((Control)this.tvReportServer);
            this.splitContainer.Panel2.Controls.Add((Control)this.lvItems);
            this.splitContainer.Size             = new Size(781, 410);
            this.splitContainer.SplitterDistance = 257;
            this.splitContainer.TabIndex         = 3;
            this.statusStrip.Dock = DockStyle.None;
            this.statusStrip.Items.AddRange(new ToolStripItem[1]
            {
                (ToolStripItem)this.toolStripStatusLabel
            });
            this.statusStrip.Location             = new Point(0, 0);
            this.statusStrip.Name                 = "statusStrip";
            this.statusStrip.Size                 = new Size(781, 24);
            this.statusStrip.TabIndex             = 3;
            this.statusStrip.Text                 = "statusStrip1";
            this.toolStripStatusLabel.AutoToolTip = true;
            this.toolStripStatusLabel.Name        = "toolStripStatusLabel";
            this.toolStripStatusLabel.Size        = new Size(99, 19);
            this.toolStripStatusLabel.Text        = "Not connected";
            this.openFileDialog.DefaultExt        = "rdl";
            this.openFileDialog.Filter            = "Reports|*.rdl";
            this.openFileDialog.InitialDirectory  = "C:\\";
            this.openFileDialog.Multiselect       = true;
            this.openFileDialog.ShowReadOnly      = true;
            this.menuStripMain.Dock               = DockStyle.None;
            this.menuStripMain.Items.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.toolStripMenuItem5,
                (ToolStripItem)this.helpToolStripMenuItem
            });
            this.menuStripMain.Location          = new Point(0, 0);
            this.menuStripMain.Name              = "menuStripMain";
            this.menuStripMain.Size              = new Size(781, 27);
            this.menuStripMain.TabIndex          = 4;
            this.menuStripMain.Text              = "menuStrip1";
            this.toolStripMenuItem5.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.toolStripMenuItem5.DropDownItems.AddRange(new ToolStripItem[4]
            {
                (ToolStripItem)this.connectToolStripMenuItem,
                (ToolStripItem)this.settingsToolStripMenuItem,
                (ToolStripItem)this.toolStripMenuItem6,
                (ToolStripItem)this.exitToolStripMenuItem
            });
            this.toolStripMenuItem5.Name          = "toolStripMenuItem5";
            this.toolStripMenuItem5.Size          = new Size(89, 23);
            this.toolStripMenuItem5.Text          = "&Application";
            this.connectToolStripMenuItem.Name    = "connectToolStripMenuItem";
            this.connectToolStripMenuItem.Size    = new Size(152, 24);
            this.connectToolStripMenuItem.Text    = "&Connect";
            this.settingsToolStripMenuItem.Name   = "settingsToolStripMenuItem";
            this.settingsToolStripMenuItem.Size   = new Size(152, 24);
            this.settingsToolStripMenuItem.Text   = "&Servers...";
            this.settingsToolStripMenuItem.Click += new EventHandler(this.settingsToolStripMenuItem_Click);
            this.toolStripMenuItem6.Name          = "toolStripMenuItem6";
            this.toolStripMenuItem6.Size          = new Size(149, 6);
            this.exitToolStripMenuItem.Name       = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size       = new Size(152, 24);
            this.exitToolStripMenuItem.Text       = "&Exit";
            this.exitToolStripMenuItem.Click     += new EventHandler(this.exitToolStripMenuItem_Click);
            this.toolStripContainer.BottomToolStripPanel.Controls.Add((Control)this.statusStrip);
            this.toolStripContainer.ContentPanel.Controls.Add((Control)this.splitContainer);
            this.toolStripContainer.ContentPanel.Size = new Size(781, 410);
            this.toolStripContainer.Dock     = DockStyle.Fill;
            this.toolStripContainer.Location = new Point(0, 0);
            this.toolStripContainer.Name     = "toolStripContainer";
            this.toolStripContainer.Size     = new Size(781, 461);
            this.toolStripContainer.TabIndex = 4;
            this.toolStripContainer.Text     = "toolStripContainer1";
            this.toolStripContainer.TopToolStripPanel.Controls.Add((Control)this.menuStripMain);
            this.AutoScaleDimensions = new SizeF(6f, 13f);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.ClientSize          = new Size(781, 461);
            this.Controls.Add((Control)this.toolStripContainer);
            this.Controls.Add((Control)this.btnOK);
            this.MainMenuStrip = this.menuStripMain;
            this.Name          = nameof(FormSSRSExplorer);
            this.Text          = "SSRS Explorer ";
            this.Shown        += new EventHandler(this.frmReportSelector_Shown);
            this.contextMenuStrip.ResumeLayout(false);
            this.splitContainer.Panel1.ResumeLayout(false);
            this.splitContainer.Panel2.ResumeLayout(false);
            this.splitContainer.ResumeLayout(false);
            this.statusStrip.ResumeLayout(false);
            this.statusStrip.PerformLayout();
            this.menuStripMain.ResumeLayout(false);
            this.menuStripMain.PerformLayout();
            this.toolStripContainer.BottomToolStripPanel.ResumeLayout(false);
            this.toolStripContainer.BottomToolStripPanel.PerformLayout();
            this.toolStripContainer.ContentPanel.ResumeLayout(false);
            this.toolStripContainer.TopToolStripPanel.ResumeLayout(false);
            this.toolStripContainer.TopToolStripPanel.PerformLayout();
            this.toolStripContainer.ResumeLayout(false);
            this.toolStripContainer.PerformLayout();
            this.ResumeLayout(false);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Bookmarks");
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BookmarksWindow));
     this._splitContainer                         = new System.Windows.Forms.SplitContainer();
     this._bookmarksFoldersTreeView               = new System.Windows.Forms.TreeView();
     this._treeViewImageList                      = new System.Windows.Forms.ImageList(this.components);
     this._bookmarksListView                      = new System.Windows.Forms.ListView();
     this._bookmarkNameColumnHeader               = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this._bookmarkUriColumnHeader                = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this._listViewImageList                      = new System.Windows.Forms.ImageList(this.components);
     this._folderContextMenu                      = new System.Windows.Forms.ContextMenuStrip(this.components);
     this._folderOpenAllMenuItem                  = new System.Windows.Forms.ToolStripMenuItem();
     this._folderOpenAllNewWindowMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator9                     = new System.Windows.Forms.ToolStripSeparator();
     this._setUsernamePasswordMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this._clearUsernamePasswordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1                     = new System.Windows.Forms.ToolStripSeparator();
     this._renameFolderMenuItem                   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator2                     = new System.Windows.Forms.ToolStripSeparator();
     this._cutFolderMenuItem                      = new System.Windows.Forms.ToolStripMenuItem();
     this._copyFolderMenuItem                     = new System.Windows.Forms.ToolStripMenuItem();
     this._pasteFolderMenuItem                    = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator3                     = new System.Windows.Forms.ToolStripSeparator();
     this._deleteFolderMenuItem                   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator4                     = new System.Windows.Forms.ToolStripSeparator();
     this._addBookmarkMenuItem                    = new System.Windows.Forms.ToolStripMenuItem();
     this._addFolderMenuItem                      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator8                     = new System.Windows.Forms.ToolStripSeparator();
     this._exportBookMarkMenuitem                 = new System.Windows.Forms.ToolStripMenuItem();
     this._importBookmarkMenuItem                 = new System.Windows.Forms.ToolStripMenuItem();
     this._bookmarkContextMenu                    = new System.Windows.Forms.ContextMenuStrip(this.components);
     this._openBookmarkNewTabMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
     this._openBookmarkNewWindowMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator5                     = new System.Windows.Forms.ToolStripSeparator();
     this._editBookmarkMenuItem                   = new System.Windows.Forms.ToolStripMenuItem();
     this.renameToolStripMenuItem                 = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator6                     = new System.Windows.Forms.ToolStripSeparator();
     this._cutBookmarkMenuItem                    = new System.Windows.Forms.ToolStripMenuItem();
     this.copyToolStripMenuItem                   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator7                     = new System.Windows.Forms.ToolStripSeparator();
     this.deleteToolStripMenuItem1                = new System.Windows.Forms.ToolStripMenuItem();
     this._bookmarkExportDialog                   = new System.Windows.Forms.SaveFileDialog();
     this._bookmarkImportDialog                   = new System.Windows.Forms.OpenFileDialog();
     this._dragImageList = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this._splitContainer)).BeginInit();
     this._splitContainer.Panel1.SuspendLayout();
     this._splitContainer.Panel2.SuspendLayout();
     this._splitContainer.SuspendLayout();
     this._folderContextMenu.SuspendLayout();
     this._bookmarkContextMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // _splitContainer
     //
     this._splitContainer.BackColor = System.Drawing.Color.Transparent;
     this._splitContainer.Dock      = System.Windows.Forms.DockStyle.Fill;
     this._splitContainer.Location  = new System.Drawing.Point(0, 0);
     this._splitContainer.Name      = "_splitContainer";
     //
     // _splitContainer.Panel1
     //
     this._splitContainer.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
     this._splitContainer.Panel1.Controls.Add(this._bookmarksFoldersTreeView);
     //
     // _splitContainer.Panel2
     //
     this._splitContainer.Panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
     this._splitContainer.Panel2.Controls.Add(this._bookmarksListView);
     this._splitContainer.Size             = new System.Drawing.Size(514, 424);
     this._splitContainer.SplitterDistance = 171;
     this._splitContainer.TabIndex         = 0;
     //
     // _bookmarksFoldersTreeView
     //
     this._bookmarksFoldersTreeView.AllowDrop = true;
     this._bookmarksFoldersTreeView.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._bookmarksFoldersTreeView.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
     this._bookmarksFoldersTreeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this._bookmarksFoldersTreeView.ImageIndex  = 0;
     this._bookmarksFoldersTreeView.ImageList   = this._treeViewImageList;
     this._bookmarksFoldersTreeView.LabelEdit   = true;
     this._bookmarksFoldersTreeView.Location    = new System.Drawing.Point(12, 12);
     this._bookmarksFoldersTreeView.Name        = "_bookmarksFoldersTreeView";
     treeNode1.Name = "root";
     treeNode1.Text = "Bookmarks";
     this._bookmarksFoldersTreeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
         treeNode1
     });
     this._bookmarksFoldersTreeView.SelectedImageIndex = 1;
     this._bookmarksFoldersTreeView.ShowRootLines      = false;
     this._bookmarksFoldersTreeView.Size            = new System.Drawing.Size(147, 400);
     this._bookmarksFoldersTreeView.TabIndex        = 0;
     this._bookmarksFoldersTreeView.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this._bookmarksTreeView_AfterLabelEdit);
     this._bookmarksFoldersTreeView.ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this._bookmarksFoldersTreeView_ItemDrag);
     this._bookmarksFoldersTreeView.AfterSelect    += new System.Windows.Forms.TreeViewEventHandler(this._bookmarksTreeView_AfterSelect);
     this._bookmarksFoldersTreeView.DragDrop       += new System.Windows.Forms.DragEventHandler(this._bookmarks_DragDrop);
     this._bookmarksFoldersTreeView.DragEnter      += new System.Windows.Forms.DragEventHandler(this._bookmarks_DragEnter);
     this._bookmarksFoldersTreeView.DragOver       += new System.Windows.Forms.DragEventHandler(this._bookmarksFoldersTreeView_DragOver);
     this._bookmarksFoldersTreeView.MouseClick     += new System.Windows.Forms.MouseEventHandler(this._bookmarksTreeView_MouseClick);
     //
     // _treeViewImageList
     //
     this._treeViewImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_treeViewImageList.ImageStream")));
     this._treeViewImageList.TransparentColor = System.Drawing.Color.Transparent;
     this._treeViewImageList.Images.SetKeyName(0, "Folder.png");
     this._treeViewImageList.Images.SetKeyName(1, "FolderOpen.png");
     //
     // _bookmarksListView
     //
     this._bookmarksListView.AllowDrop = true;
     this._bookmarksListView.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._bookmarksListView.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
     this._bookmarksListView.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this._bookmarksListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this._bookmarkNameColumnHeader,
         this._bookmarkUriColumnHeader
     });
     this._bookmarksListView.ContextMenuStrip = this._folderContextMenu;
     this._bookmarksListView.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this._bookmarksListView.LabelEdit        = true;
     this._bookmarksListView.Location         = new System.Drawing.Point(0, 2);
     this._bookmarksListView.Name             = "_bookmarksListView";
     this._bookmarksListView.Size             = new System.Drawing.Size(339, 420);
     this._bookmarksListView.SmallImageList   = this._listViewImageList;
     this._bookmarksListView.TabIndex         = 0;
     this._bookmarksListView.UseCompatibleStateImageBehavior = false;
     this._bookmarksListView.View              = System.Windows.Forms.View.Details;
     this._bookmarksListView.AfterLabelEdit   += new System.Windows.Forms.LabelEditEventHandler(this._bookmarksListView_AfterLabelEdit);
     this._bookmarksListView.ItemDrag         += new System.Windows.Forms.ItemDragEventHandler(this._bookmarksListView_ItemDrag);
     this._bookmarksListView.DragDrop         += new System.Windows.Forms.DragEventHandler(this._bookmarks_DragDrop);
     this._bookmarksListView.DragEnter        += new System.Windows.Forms.DragEventHandler(this._bookmarks_DragEnter);
     this._bookmarksListView.DragOver         += new System.Windows.Forms.DragEventHandler(this._bookmarksListView_DragOver);
     this._bookmarksListView.MouseClick       += new System.Windows.Forms.MouseEventHandler(this._bookmarksListView_MouseClick);
     this._bookmarksListView.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this._bookmarksListView_MouseDoubleClick);
     //
     // _bookmarkNameColumnHeader
     //
     this._bookmarkNameColumnHeader.Text  = "Name";
     this._bookmarkNameColumnHeader.Width = 139;
     //
     // _bookmarkUriColumnHeader
     //
     this._bookmarkUriColumnHeader.Text  = "URI";
     this._bookmarkUriColumnHeader.Width = 155;
     //
     // _listViewImageList
     //
     this._listViewImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_listViewImageList.ImageStream")));
     this._listViewImageList.TransparentColor = System.Drawing.Color.Transparent;
     this._listViewImageList.Images.SetKeyName(0, "Folder.png");
     //
     // _folderContextMenu
     //
     this._folderContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._folderOpenAllMenuItem,
         this._folderOpenAllNewWindowMenuItem,
         this.toolStripSeparator9,
         this._setUsernamePasswordMenuItem,
         this._clearUsernamePasswordToolStripMenuItem,
         this.toolStripSeparator1,
         this._renameFolderMenuItem,
         this.toolStripSeparator2,
         this._cutFolderMenuItem,
         this._copyFolderMenuItem,
         this._pasteFolderMenuItem,
         this.toolStripSeparator3,
         this._deleteFolderMenuItem,
         this.toolStripSeparator4,
         this._addBookmarkMenuItem,
         this._addFolderMenuItem,
         this.toolStripSeparator8,
         this._exportBookMarkMenuitem,
         this._importBookmarkMenuItem
     });
     this._folderContextMenu.Name            = "_folderContextMenu";
     this._folderContextMenu.ShowImageMargin = false;
     this._folderContextMenu.Size            = new System.Drawing.Size(248, 348);
     this._folderContextMenu.Closed         += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this._folderContextMenu_Closed);
     this._folderContextMenu.Opening        += new System.ComponentModel.CancelEventHandler(this._folderContextMenu_Opening);
     //
     // _folderOpenAllMenuItem
     //
     this._folderOpenAllMenuItem.Name   = "_folderOpenAllMenuItem";
     this._folderOpenAllMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._folderOpenAllMenuItem.Text   = "Open all bookmarks";
     this._folderOpenAllMenuItem.Click += new System.EventHandler(this._folderOpenAllMenuItem_Click);
     //
     // _folderOpenAllNewWindowMenuItem
     //
     this._folderOpenAllNewWindowMenuItem.Name   = "_folderOpenAllNewWindowMenuItem";
     this._folderOpenAllNewWindowMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._folderOpenAllNewWindowMenuItem.Text   = "Open all bookmarks in a new window";
     this._folderOpenAllNewWindowMenuItem.Click += new System.EventHandler(this._folderOpenAllNewWindowMenuItem_Click);
     //
     // toolStripSeparator9
     //
     this.toolStripSeparator9.Name = "toolStripSeparator9";
     this.toolStripSeparator9.Size = new System.Drawing.Size(244, 6);
     //
     // _setUsernamePasswordMenuItem
     //
     this._setUsernamePasswordMenuItem.Name   = "_setUsernamePasswordMenuItem";
     this._setUsernamePasswordMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._setUsernamePasswordMenuItem.Text   = "Set username and password...";
     this._setUsernamePasswordMenuItem.Click += new System.EventHandler(this._setUsernamePasswordMenuItem_Click);
     //
     // _clearUsernamePasswordToolStripMenuItem
     //
     this._clearUsernamePasswordToolStripMenuItem.Name   = "_clearUsernamePasswordToolStripMenuItem";
     this._clearUsernamePasswordToolStripMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._clearUsernamePasswordToolStripMenuItem.Text   = "Clear username and password";
     this._clearUsernamePasswordToolStripMenuItem.Click += new System.EventHandler(this._clearUsernamePasswordToolStripMenuItem_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(244, 6);
     //
     // _renameFolderMenuItem
     //
     this._renameFolderMenuItem.Name   = "_renameFolderMenuItem";
     this._renameFolderMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._renameFolderMenuItem.Text   = "Rename...";
     this._renameFolderMenuItem.Click += new System.EventHandler(this._renameFolderMenuItem_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(244, 6);
     //
     // _cutFolderMenuItem
     //
     this._cutFolderMenuItem.Name   = "_cutFolderMenuItem";
     this._cutFolderMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._cutFolderMenuItem.Text   = "Cut";
     this._cutFolderMenuItem.Click += new System.EventHandler(this._cutFolderMenuItem_Click);
     //
     // _copyFolderMenuItem
     //
     this._copyFolderMenuItem.Name   = "_copyFolderMenuItem";
     this._copyFolderMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._copyFolderMenuItem.Text   = "Copy";
     this._copyFolderMenuItem.Click += new System.EventHandler(this._copyFolderMenuItem_Click);
     //
     // _pasteFolderMenuItem
     //
     this._pasteFolderMenuItem.Enabled = false;
     this._pasteFolderMenuItem.Name    = "_pasteFolderMenuItem";
     this._pasteFolderMenuItem.Size    = new System.Drawing.Size(247, 22);
     this._pasteFolderMenuItem.Text    = "Paste";
     this._pasteFolderMenuItem.Click  += new System.EventHandler(this._pasteFolderMenuItem_Click);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(244, 6);
     //
     // _deleteFolderMenuItem
     //
     this._deleteFolderMenuItem.Name   = "_deleteFolderMenuItem";
     this._deleteFolderMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._deleteFolderMenuItem.Text   = "Delete";
     this._deleteFolderMenuItem.Click += new System.EventHandler(this._deleteFolderMenuItem_Click);
     //
     // toolStripSeparator4
     //
     this.toolStripSeparator4.Name = "toolStripSeparator4";
     this.toolStripSeparator4.Size = new System.Drawing.Size(244, 6);
     //
     // _addBookmarkMenuItem
     //
     this._addBookmarkMenuItem.Name = "_addBookmarkMenuItem";
     this._addBookmarkMenuItem.Size = new System.Drawing.Size(247, 22);
     this._addBookmarkMenuItem.Text = "Add bookmark...";
     //
     // _addFolderMenuItem
     //
     this._addFolderMenuItem.Name   = "_addFolderMenuItem";
     this._addFolderMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._addFolderMenuItem.Text   = "Add folder...";
     this._addFolderMenuItem.Click += new System.EventHandler(this._addFolderMenuItem_Click);
     //
     // toolStripSeparator8
     //
     this.toolStripSeparator8.Name = "toolStripSeparator8";
     this.toolStripSeparator8.Size = new System.Drawing.Size(244, 6);
     //
     // _exportBookMarkMenuitem
     //
     this._exportBookMarkMenuitem.Name   = "_exportBookMarkMenuitem";
     this._exportBookMarkMenuitem.Size   = new System.Drawing.Size(247, 22);
     this._exportBookMarkMenuitem.Text   = "Export";
     this._exportBookMarkMenuitem.Click += new System.EventHandler(this._exportBookMarkMenuitem_Click);
     //
     // _importBookmarkMenuItem
     //
     this._importBookmarkMenuItem.Name   = "_importBookmarkMenuItem";
     this._importBookmarkMenuItem.Size   = new System.Drawing.Size(247, 22);
     this._importBookmarkMenuItem.Text   = "Import";
     this._importBookmarkMenuItem.Click += new System.EventHandler(this._importBookmarkMenuItem_Click);
     //
     // _bookmarkContextMenu
     //
     this._bookmarkContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._openBookmarkNewTabMenuItem,
         this._openBookmarkNewWindowMenuItem,
         this.toolStripSeparator5,
         this._editBookmarkMenuItem,
         this.renameToolStripMenuItem,
         this.toolStripSeparator6,
         this._cutBookmarkMenuItem,
         this.copyToolStripMenuItem,
         this.toolStripSeparator7,
         this.deleteToolStripMenuItem1
     });
     this._bookmarkContextMenu.Name            = "_bookmarkContextMenu";
     this._bookmarkContextMenu.ShowImageMargin = false;
     this._bookmarkContextMenu.Size            = new System.Drawing.Size(171, 176);
     this._bookmarkContextMenu.Closed         += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this._bookmarkContextMenu_Closed);
     //
     // _openBookmarkNewTabMenuItem
     //
     this._openBookmarkNewTabMenuItem.Name   = "_openBookmarkNewTabMenuItem";
     this._openBookmarkNewTabMenuItem.Size   = new System.Drawing.Size(170, 22);
     this._openBookmarkNewTabMenuItem.Text   = "Open in a new tab";
     this._openBookmarkNewTabMenuItem.Click += new System.EventHandler(this._openBookmarkNewTabMenuItem_Click);
     //
     // _openBookmarkNewWindowMenuItem
     //
     this._openBookmarkNewWindowMenuItem.Name   = "_openBookmarkNewWindowMenuItem";
     this._openBookmarkNewWindowMenuItem.Size   = new System.Drawing.Size(170, 22);
     this._openBookmarkNewWindowMenuItem.Text   = "Open in a new window";
     this._openBookmarkNewWindowMenuItem.Click += new System.EventHandler(this._openBookmarkNewWindowMenuItem_Click);
     //
     // toolStripSeparator5
     //
     this.toolStripSeparator5.Name = "toolStripSeparator5";
     this.toolStripSeparator5.Size = new System.Drawing.Size(167, 6);
     //
     // _editBookmarkMenuItem
     //
     this._editBookmarkMenuItem.Name   = "_editBookmarkMenuItem";
     this._editBookmarkMenuItem.Size   = new System.Drawing.Size(170, 22);
     this._editBookmarkMenuItem.Text   = "Edit...";
     this._editBookmarkMenuItem.Click += new System.EventHandler(this._editBookmarkMenuItem_Click);
     //
     // renameToolStripMenuItem
     //
     this.renameToolStripMenuItem.Name   = "renameToolStripMenuItem";
     this.renameToolStripMenuItem.Size   = new System.Drawing.Size(170, 22);
     this.renameToolStripMenuItem.Text   = "Rename...";
     this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
     //
     // toolStripSeparator6
     //
     this.toolStripSeparator6.Name = "toolStripSeparator6";
     this.toolStripSeparator6.Size = new System.Drawing.Size(167, 6);
     //
     // _cutBookmarkMenuItem
     //
     this._cutBookmarkMenuItem.Name   = "_cutBookmarkMenuItem";
     this._cutBookmarkMenuItem.Size   = new System.Drawing.Size(170, 22);
     this._cutBookmarkMenuItem.Text   = "Cut";
     this._cutBookmarkMenuItem.Click += new System.EventHandler(this._cutBookmarkMenuItem_Click);
     //
     // copyToolStripMenuItem
     //
     this.copyToolStripMenuItem.Name   = "copyToolStripMenuItem";
     this.copyToolStripMenuItem.Size   = new System.Drawing.Size(170, 22);
     this.copyToolStripMenuItem.Text   = "Copy";
     this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
     //
     // toolStripSeparator7
     //
     this.toolStripSeparator7.Name = "toolStripSeparator7";
     this.toolStripSeparator7.Size = new System.Drawing.Size(167, 6);
     //
     // deleteToolStripMenuItem1
     //
     this.deleteToolStripMenuItem1.Name   = "deleteToolStripMenuItem1";
     this.deleteToolStripMenuItem1.Size   = new System.Drawing.Size(170, 22);
     this.deleteToolStripMenuItem1.Text   = "Delete";
     this.deleteToolStripMenuItem1.Click += new System.EventHandler(this.deleteToolStripMenuItem1_Click);
     //
     // _bookmarkExportDialog
     //
     this._bookmarkExportDialog.DefaultExt = "ecx";
     this._bookmarkExportDialog.FileName   = "EasyConnectBookmarks";
     this._bookmarkExportDialog.Filter     = "EasyConnect Bookmark files|*.ecx|All files|*.*";
     //
     // _bookmarkImportDialog
     //
     this._bookmarkImportDialog.DefaultExt = "ecx";
     this._bookmarkImportDialog.FileName   = "EasyConnectBookmarks";
     this._bookmarkImportDialog.Filter     = "EasyConnect Bookmark files|*.ecx|All files|*.*";
     //
     // _dragImageList
     //
     this._dragImageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this._dragImageList.ImageSize        = new System.Drawing.Size(16, 16);
     this._dragImageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // BookmarksWindow
     //
     this.BackColor  = System.Drawing.Color.Silver;
     this.ClientSize = new System.Drawing.Size(514, 424);
     this.Controls.Add(this._splitContainer);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "BookmarksWindow";
     this.Text = "Bookmarks";
     this._splitContainer.Panel1.ResumeLayout(false);
     this._splitContainer.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._splitContainer)).EndInit();
     this._splitContainer.ResumeLayout(false);
     this._folderContextMenu.ResumeLayout(false);
     this._bookmarkContextMenu.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        private static void ChartContext_Opening(object sender, CancelEventArgs e)
        {
            ContextMenuStrip menuStrip = (ContextMenuStrip)sender;
            Chart senderChart = (Chart)menuStrip.SourceControl;
            ChartData ptrChartData = ChartTool[senderChart];
            ChartArea activeChartArea = ptrChartData.ActiveChartArea;

            //Update series
            for (int x = 0; x < menuStrip.Items.Count; x++)
            {
                if (menuStrip.Items[x].Tag != null)
                {
                    if (menuStrip.Items[x].Tag.ToString() == "Series")
                    {
                        menuStrip.Items.RemoveAt(x);
                        x--;
                    }
                }
            }

            if (ptrChartData.Option.ContextMenuAllowToHideSeries) //Option to show / hide series controls
            {
                SeriesCollection chartSeries = ((Chart)menuStrip.SourceControl).Series;
                if (ptrChartData.ActiveChartArea != null)
                {
                    ToolStripSeparator separator = new ToolStripSeparator();
                    menuStrip.Items.Add(separator);
                    separator.Tag = "Series";

                    foreach (Series ptrSeries in chartSeries)
                    {
                        if (ptrSeries.ChartArea != ptrChartData.ActiveChartArea.Name) continue;
                        ToolStripItem ptrItem = menuStrip.Items.Add(ptrSeries.Name);
                        ToolStripMenuItem ptrMenuItem = (ToolStripMenuItem)ptrItem;
                        ptrMenuItem.Checked = ptrSeries.Enabled;
                        ptrItem.Tag = "Series";
                    }
                }
            }

            if (!ptrChartData.Enabled)
            {
                //Disable Zoom and Pan Controls
                foreach (ToolStripItem item in ptrChartData.MenuItems)
                    item.Enabled = false;
                return;
            }
            else
            {
                foreach (ToolStripItem item in ptrChartData.MenuItems)
                    item.Enabled = true;
            }

            //Check Zoomed state
            if (activeChartArea.AxisX.ScaleView.IsZoomed ||
                activeChartArea.AxisY.ScaleView.IsZoomed ||
                activeChartArea.AxisY2.ScaleView.IsZoomed)
            {
                ptrChartData.ChartToolZoomOut.Visible = true;
            }
            else
            {
                ptrChartData.ChartToolZoomOut.Visible = false;
            }

            //Get Chart Control State
            if (!ChartTool.ContainsKey(senderChart))
            {
                //Initialize Chart Tool
                SetChartControlState(senderChart, MSChartExtensionToolState.Select);
            }

            //Update menu (uncheck all, check current) based on current state.
            ptrChartData.UpdateState();
        }
Example #36
0
        void InitializeMyComponent()
        {
            label3    = new ToolStripLabel();
            splitchar = new ToolStripTextBox();
            btnSplit  = new ToolStripButton();
            sepS      = new ToolStripSeparator();
            //editor = new TextBox();
            toolstrip.SuspendLayout();
            list.SuspendLayout();
            table.SuspendLayout();
            SuspendLayout();

            //
            // toolstrip
            //
            int from = 0;

            toolstrip.Items.Insert(from++, label3);
            toolstrip.Items.Insert(from++, splitchar);
            toolstrip.Items.Insert(from++, btnSplit);
            toolstrip.Items.Insert(from++, sepS);
            //
            // label3
            //
            label3.Name = "label3";
            label3.Size = new System.Drawing.Size(47, 22);
            label3.Text = "Splitter:";
            //
            // splitchar
            //
            splitchar.AutoCompleteMode   = System.Windows.Forms.AutoCompleteMode.Suggest;
            splitchar.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.RecentlyUsedList;
            splitchar.BorderStyle        = System.Windows.Forms.BorderStyle.FixedSingle;
            splitchar.Font             = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            splitchar.Name             = "splitchar";
            splitchar.Size             = new System.Drawing.Size(25, 25);
            splitchar.Text             = ";";
            splitchar.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            splitchar.TextChanged     += splitchar_TextChanged;
            //
            // btnSplit
            //
            btnSplit.Image = global::SysEdit.Properties.Resources.scissors;
            btnSplit.ImageTransparentColor = System.Drawing.Color.Magenta;
            btnSplit.Name   = "btnSplit";
            btnSplit.Size   = new System.Drawing.Size(50, 22);
            btnSplit.Text   = "Split";
            btnSplit.Click += btnSplit_Click;
            //
            // sepS
            //
            sepS.Name = "sepS";
            sepS.Size = new System.Drawing.Size(6, 25);

            /*
             * // editor
             * //
             * editor.Visible = false;
             * editor.BorderStyle = BorderStyle.FixedSingle;
             * editor.Margin = new Padding(0);
             * editor.AcceptsReturn = false;*/
            //
            // list
            //
            list.Items.AddedItem   += list_Changed;
            list.Items.RemovedItem += list_Changed;
            list.Items.MovedItems  += list_Changed;
            list.Font               = splitchar.Font;
            list.SmallImageList     = images;
            list.integralScroll     = true;
            list.SubItemEditing    += list_SubItemEditing;
            list.SubItemEndEditing += list_SubItemEndEditing;
            listChanged            += lengthSignal;

            //Controls.Add(editor);

            VisibleEdit    = VisibleMove =
                EnableEdit = EnableMove = true;
            UpdateGUI();
            UpdateAutomatically = true;


            toolstrip.ResumeLayout(false);
            list.ResumeLayout(false);
            table.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();
        }
 // Constructors
 public ToolStripSeparatorRenderEventArgs(System.Drawing.Graphics g, ToolStripSeparator separator, bool vertical)
 {
 }
Example #38
0
        public SystrayForm(KinskyDesktop aParent)
        {
            InitializeComponent();
            iParent = aParent;

            ShowToolStripMenuItem        = new ToolStripMenuItem();
            ShowToolStripMenuItem.Size   = new System.Drawing.Size(177, 22);
            ShowToolStripMenuItem.Text   = "Hide Kinsky";
            ShowToolStripMenuItem.Click += (d, e) =>
            {
                if (aParent.WindowState == System.Windows.WindowState.Minimized)
                {
                    aParent.WindowState = System.Windows.WindowState.Normal;
                }
                else
                {
                    aParent.WindowState = System.Windows.WindowState.Minimized;
                }
            };

            aParent.StateChanged += (d, e) =>
            {
                if (aParent.WindowState == System.Windows.WindowState.Minimized)
                {
                    ShowToolStripMenuItem.Text = "Show Kinsky";
                }
                else
                {
                    ShowToolStripMenuItem.Text = "Hide Kinsky";
                }
            };


            iSeparator1      = new ToolStripSeparator();
            iSeparator1.Size = new System.Drawing.Size(174, 6);


            RepeatToolStripMenuItem         = new ToolStripMenuItem();
            RepeatToolStripMenuItem.Enabled = false;
            RepeatToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            RepeatToolStripMenuItem.Text    = "Repeat";


            ShuffleToolStripMenuItem         = new ToolStripMenuItem();
            ShuffleToolStripMenuItem.Enabled = false;
            ShuffleToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            ShuffleToolStripMenuItem.Text    = "Shuffle";


            iSeparator2      = new ToolStripSeparator();
            iSeparator2.Size = new System.Drawing.Size(174, 6);


            PreviousToolStripMenuItem         = new ToolStripMenuItem();
            PreviousToolStripMenuItem.Enabled = false;
            PreviousToolStripMenuItem.Image   = StaticImages.SysTrayPrevious;
            PreviousToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            PreviousToolStripMenuItem.Text    = "Previous";


            PlayToolStripMenuItem         = new ToolStripMenuItem();
            PlayToolStripMenuItem.Enabled = false;
            PlayToolStripMenuItem.Image   = StaticImages.SysTrayPlay;
            PlayToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            PlayToolStripMenuItem.Text    = "Play";


            NextToolStripMenuItem         = new ToolStripMenuItem();
            NextToolStripMenuItem.Enabled = false;
            NextToolStripMenuItem.Image   = StaticImages.SysTrayNext;
            NextToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            NextToolStripMenuItem.Text    = "Next";


            iSeparator3      = new ToolStripSeparator();
            iSeparator3.Size = new System.Drawing.Size(174, 6);


            MuteToolStripMenuItem         = new ToolStripMenuItem();
            MuteToolStripMenuItem.Enabled = false;
            MuteToolStripMenuItem.Size    = new System.Drawing.Size(177, 22);
            MuteToolStripMenuItem.Text    = "Mute";


            iSeparator4      = new ToolStripSeparator();
            iSeparator4.Size = new System.Drawing.Size(174, 6);


            ExitToolStripMenuItem        = new ToolStripMenuItem();
            ExitToolStripMenuItem.Size   = new System.Drawing.Size(177, 22);
            ExitToolStripMenuItem.Text   = "Exit";
            ExitToolStripMenuItem.Click += (d, e) =>
            {
                if (EventClosed != null)
                {
                    EventClosed(this, EventArgs.Empty);
                }
            };

            NotifyIcon = new NotifyIcon();
            NotifyIcon.ContextMenuStrip = new ContextMenuStrip();
            NotifyIcon.ContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                ShowToolStripMenuItem,
                iSeparator1,
                RepeatToolStripMenuItem,
                ShuffleToolStripMenuItem,
                iSeparator2,
                PreviousToolStripMenuItem,
                PlayToolStripMenuItem,
                NextToolStripMenuItem,
                iSeparator3,
                MuteToolStripMenuItem,
                iSeparator4,
                ExitToolStripMenuItem
            });
            NotifyIcon.MouseDoubleClick += new MouseEventHandler(NotifyIcon_MouseDoubleClick);
            try
            {
                Uri iconUri = new Uri("pack://application:,,,/icon.ico", UriKind.RelativeOrAbsolute); //make sure your path is correct, and the icon set as Resource
                using (var iconStream = System.Windows.Application.GetResourceStream(iconUri).Stream)
                {
                    NotifyIcon.Icon = new System.Drawing.Icon(iconStream);
                }
            }
            catch (System.Runtime.InteropServices.ExternalException ex)
            {
                UserLog.WriteLine("COM error caught creating icon for SystrayForm: " + ex);
            }
            NotifyIcon.Visible = true;
            NotifyIcon.Text    = aParent.Title;
            // hide the form on startup
            this.Visible     = false;
            this.WindowState = FormWindowState.Minimized;
            Show();
            Hide();
        }
Example #39
0
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
         this.xmlTextBox = new System.Windows.Forms.RichTextBox();
         this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
         this.cmsCut = new System.Windows.Forms.ToolStripMenuItem();
         this.cmsCopy = new System.Windows.Forms.ToolStripMenuItem();
         this.cmsPaste = new System.Windows.Forms.ToolStripMenuItem();
         this.cmsDelete = new System.Windows.Forms.ToolStripMenuItem();
         this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
         this.cmsSelectAll = new System.Windows.Forms.ToolStripMenuItem();
         this.contextMenuStrip1.SuspendLayout();
         this.SuspendLayout();
         //
         // xmlTextBox
         //
         this.xmlTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
         this.xmlTextBox.Location = new System.Drawing.Point(0, 0);
         this.xmlTextBox.Name = "xmlTextBox";
         this.xmlTextBox.Size = new System.Drawing.Size(150, 150);
         this.xmlTextBox.TabIndex = 0;
         this.xmlTextBox.Text = "";
         this.xmlTextBox.TextChanged += new System.EventHandler(this.xmlTextBox_TextChanged);
         this.xmlTextBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.xmlTextBox_MouseDown);
         //
         // contextMenuStrip1
         //
         this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.cmsCut,
         this.cmsCopy,
         this.cmsPaste,
         this.cmsDelete,
         this.toolStripSeparator2,
         this.cmsSelectAll});
         this.contextMenuStrip1.Name = "contextMenuStrip1";
         this.contextMenuStrip1.Size = new System.Drawing.Size(153, 142);
         this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
         //
         // cmsCut
         //
         this.cmsCut.Name = "cmsCut";
         this.cmsCut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
         this.cmsCut.ShowShortcutKeys = false;
         this.cmsCut.Size = new System.Drawing.Size(152, 22);
         this.cmsCut.Text = "Cu&t";
         this.cmsCut.Click += new System.EventHandler(this.cmsCut_Click);
         //
         // cmsCopy
         //
         this.cmsCopy.Name = "cmsCopy";
         this.cmsCopy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
         this.cmsCopy.ShowShortcutKeys = false;
         this.cmsCopy.Size = new System.Drawing.Size(152, 22);
         this.cmsCopy.Text = "&Copy";
         this.cmsCopy.Click += new System.EventHandler(this.cmsCopy_Click);
         //
         // cmsPaste
         //
         this.cmsPaste.Name = "cmsPaste";
         this.cmsPaste.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
         this.cmsPaste.ShowShortcutKeys = false;
         this.cmsPaste.Size = new System.Drawing.Size(152, 22);
         this.cmsPaste.Text = "&Paste";
         this.cmsPaste.Click += new System.EventHandler(this.cmsPaste_Click);
         //
         // cmsDelete
         //
         this.cmsDelete.Name = "cmsDelete";
         this.cmsDelete.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
         this.cmsDelete.ShowShortcutKeys = false;
         this.cmsDelete.Size = new System.Drawing.Size(152, 22);
         this.cmsDelete.Text = "&Delete";
         this.cmsDelete.Click += new System.EventHandler(this.cmsDelete_Click);
         //
         // toolStripSeparator2
         //
         this.toolStripSeparator2.Name = "toolStripSeparator2";
         this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6);
         //
         // cmsSelectAll
         //
         this.cmsSelectAll.Name = "cmsSelectAll";
         this.cmsSelectAll.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
         this.cmsSelectAll.ShowShortcutKeys = false;
         this.cmsSelectAll.Size = new System.Drawing.Size(152, 22);
         this.cmsSelectAll.Text = "Select &All";
         this.cmsSelectAll.Click += new System.EventHandler(this.cmsSelectAll_Click);
         //
         // XmlEditor
         //
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.Controls.Add(this.xmlTextBox);
         this.Name = "XmlEditor";
         this.contextMenuStrip1.ResumeLayout(false);
         this.ResumeLayout(false);
 }
Example #40
0
        private void load_ojetos_toostrip()
        {
            object O = global::Sinconizacion_EXactus.Properties.Resources.ResourceManager.GetObject("refreshpeq1");
            object e = global::Sinconizacion_EXactus.Properties.Resources.ResourceManager.GetObject("excelpeq");

            DateTime DT = DateTime.Now;



            Label lblfechaini = new Label();

            lblfechaini.Text = "Fecha Inicio";

            toolStrip1.Items.Add(new ToolStripControlHost(lblfechaini));

            datePickerini.Format = DateTimePickerFormat.Short;
            // datePickerini.Value = new DateTime(DT.Year, DT.Month, 1);
            datePickerini.Size = new Size(120, 20);

            toolStrip1.Items.Add(new ToolStripControlHost(datePickerini));

            Label lblfechafin = new Label();

            lblfechafin.Text = "Fecha fin";

            toolStrip1.Items.Add(new ToolStripControlHost(lblfechafin));

            datePickerfin.Format = DateTimePickerFormat.Short;
            datePickerfin.Size   = new Size(120, 20);


            toolStrip1.Items.Add(new ToolStripControlHost(datePickerfin));

            ToolStripSeparator sep1 = new ToolStripSeparator();

            toolStrip1.Items.Add(sep1);



            ToolStripSeparator sep3 = new ToolStripSeparator();

            toolStrip1.Items.Add(sep3);

            btupdate.Text  = "Refrescar";
            btupdate.Image = (Image)O;
            toolStrip1.Items.Add(btupdate);
            ToolStripSeparator sep2 = new ToolStripSeparator();

            toolStrip1.Items.Add(sep2);


            ToolStripSeparator sep4 = new ToolStripSeparator();

            toolStrip1.Items.Add(sep4);



            if (id_rep == 2)
            {
                Label comencmb = new Label();
                comencmb.Text = "RUTA ENTREGA:";
                toolStrip1.Items.Add(new ToolStripControlHost(comencmb));
                toolStrip1.Items.Add(cbxrt);

                ToolStripSeparator sep5 = new ToolStripSeparator();
                toolStrip1.Items.Add(sep5);

                cargar_entegas();
            }

            Label comentlb = new Label();

            comentlb.Text = "Enviar a Excel:";


            btexcel.Text  = "Excel";
            btexcel.Image = (Image)e;
            toolStrip1.Items.Add(btexcel);
        }
Example #41
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(main));
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.exitButton = new System.Windows.Forms.Button();
     this.cameraButton = new SkimptControls.GlassButton();
     this.hightlightButton = new SkimptControls.GlassButton();
     this.updateMessageLink = new System.Windows.Forms.LinkLabel();
     this.updateMessageLabel = new System.Windows.Forms.Label();
     this.unhookButton = new System.Windows.Forms.Button();
     this.mainProgramMessage = new System.Windows.Forms.TextBox();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.browseButton = new System.Windows.Forms.Button();
     this.fileLocationTextBox = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.radioButton2 = new System.Windows.Forms.RadioButton();
     this.radioButton1 = new System.Windows.Forms.RadioButton();
     this.saveFileSettingButton = new SkimptControls.GlassButton();
     this.tabPage3 = new System.Windows.Forms.TabPage();
     this.saveFtpSettingButton = new SkimptControls.GlassButton();
     this.ftpTestConnButton = new SkimptControls.GlassButton();
     this.ftpDirTxtBox = new System.Windows.Forms.TextBox();
     this.ftpPortTxtBox = new System.Windows.Forms.TextBox();
     this.ftpPassTxtBox = new System.Windows.Forms.TextBox();
     this.ftpUserTxtBox = new System.Windows.Forms.TextBox();
     this.ftpHostTxtBox = new System.Windows.Forms.TextBox();
     this.label6 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.tabPage4 = new System.Windows.Forms.TabPage();
     this.savePSDasFileCheckbox = new System.Windows.Forms.CheckBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.removeContextMenuButton = new SkimptControls.GlassButton();
     this.attachContextMenuButton = new SkimptControls.GlassButton();
     this.ShowMessagesCheckbox = new System.Windows.Forms.CheckBox();
     this.HideUponLaunchCheckbox = new System.Windows.Forms.CheckBox();
     this.startOnWindowsLoadCheckBox = new System.Windows.Forms.CheckBox();
     this.saveGlobalSettingButton = new SkimptControls.GlassButton();
     this.tabPage5 = new System.Windows.Forms.TabPage();
     this.fontDialog1 = new System.Windows.Forms.FontDialog();
     this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.notificationIconContext = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.contextStartCamera = new System.Windows.Forms.ToolStripMenuItem();
     this.contextHighlightMode = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.contextShowMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.contextExitMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.tabPage3.SuspendLayout();
     this.tabPage4.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.notificationIconContext.SuspendLayout();
     this.SuspendLayout();
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Controls.Add(this.tabPage3);
     this.tabControl1.Controls.Add(this.tabPage4);
     this.tabControl1.Controls.Add(this.tabPage5);
     this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tabControl1.HotTrack = true;
     this.tabControl1.ItemSize = new System.Drawing.Size(96, 26);
     this.tabControl1.Location = new System.Drawing.Point(0, 0);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.ShowToolTips = true;
     this.tabControl1.Size = new System.Drawing.Size(483, 250);
     this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
     this.tabControl1.TabIndex = 0;
     //
     // tabPage1
     //
     this.tabPage1.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
     this.tabPage1.Controls.Add(this.exitButton);
     this.tabPage1.Controls.Add(this.cameraButton);
     this.tabPage1.Controls.Add(this.hightlightButton);
     this.tabPage1.Controls.Add(this.updateMessageLink);
     this.tabPage1.Controls.Add(this.updateMessageLabel);
     this.tabPage1.Controls.Add(this.unhookButton);
     this.tabPage1.Controls.Add(this.mainProgramMessage);
     this.tabPage1.Location = new System.Drawing.Point(4, 30);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(475, 216);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Main";
     this.tabPage1.ToolTipText = "Main screen";
     //
     // exitButton
     //
     this.exitButton.Location = new System.Drawing.Point(13, 178);
     this.exitButton.Name = "exitButton";
     this.exitButton.Size = new System.Drawing.Size(88, 31);
     this.exitButton.TabIndex = 5;
     this.exitButton.Text = "Exit Skimpt";
     this.exitButton.UseVisualStyleBackColor = true;
     this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
     //
     // cameraButton
     //
     this.cameraButton.BackColor = System.Drawing.Color.DarkViolet;
     this.cameraButton.ForeColor = System.Drawing.Color.Black;
     this.cameraButton.Location = new System.Drawing.Point(12, 73);
     this.cameraButton.Name = "cameraButton";
     this.cameraButton.ShineColor = System.Drawing.Color.Thistle;
     this.cameraButton.Size = new System.Drawing.Size(214, 36);
     this.cameraButton.TabIndex = 6;
     this.cameraButton.Text = "Start Camera Mode";
     this.cameraButton.Click += new System.EventHandler(this.cameraButton_Click);
     //
     // hightlightButton
     //
     this.hightlightButton.BackColor = System.Drawing.Color.SteelBlue;
     this.hightlightButton.Location = new System.Drawing.Point(244, 73);
     this.hightlightButton.Name = "hightlightButton";
     this.hightlightButton.ShineColor = System.Drawing.Color.SkyBlue;
     this.hightlightButton.Size = new System.Drawing.Size(214, 36);
     this.hightlightButton.TabIndex = 5;
     this.hightlightButton.Text = "Start Highlight mode";
     this.hightlightButton.Click += new System.EventHandler(this.hightlightButton_Click);
     //
     // updateMessageLink
     //
     this.updateMessageLink.AutoSize = true;
     this.updateMessageLink.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
     this.updateMessageLink.Location = new System.Drawing.Point(184, 151);
     this.updateMessageLink.Name = "updateMessageLink";
     this.updateMessageLink.Size = new System.Drawing.Size(126, 19);
     this.updateMessageLink.TabIndex = 4;
     this.updateMessageLink.TabStop = true;
     this.updateMessageLink.Text = "Skimpt Homepage";
     this.updateMessageLink.Visible = false;
     this.updateMessageLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.updateMessageLink_LinkClicked);
     //
     // updateMessageLabel
     //
     this.updateMessageLabel.AutoSize = true;
     this.updateMessageLabel.ForeColor = System.Drawing.Color.Red;
     this.updateMessageLabel.Location = new System.Drawing.Point(15, 151);
     this.updateMessageLabel.Name = "updateMessageLabel";
     this.updateMessageLabel.Size = new System.Drawing.Size(173, 19);
     this.updateMessageLabel.TabIndex = 3;
     this.updateMessageLabel.Text = "New Update Available on";
     this.updateMessageLabel.Visible = false;
     //
     // unhookButton
     //
     this.unhookButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.unhookButton.Location = new System.Drawing.Point(320, 177);
     this.unhookButton.Name = "unhookButton";
     this.unhookButton.Size = new System.Drawing.Size(149, 33);
     this.unhookButton.TabIndex = 1;
     this.unhookButton.Text = "Unhook Print Screen";
     this.unhookButton.UseVisualStyleBackColor = true;
     this.unhookButton.Click += new System.EventHandler(this.unhookButton_Click);
     //
     // mainProgramMessage
     //
     this.mainProgramMessage.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mainProgramMessage.ForeColor = System.Drawing.Color.Green;
     this.mainProgramMessage.Location = new System.Drawing.Point(8, 19);
     this.mainProgramMessage.Multiline = true;
     this.mainProgramMessage.Name = "mainProgramMessage";
     this.mainProgramMessage.Size = new System.Drawing.Size(463, 48);
     this.mainProgramMessage.TabIndex = 0;
     this.mainProgramMessage.Text = "Program messages will be displayed here";
     //
     // tabPage2
     //
     this.tabPage2.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
     this.tabPage2.Controls.Add(this.groupBox1);
     this.tabPage2.Controls.Add(this.radioButton2);
     this.tabPage2.Controls.Add(this.radioButton1);
     this.tabPage2.Controls.Add(this.saveFileSettingButton);
     this.tabPage2.Location = new System.Drawing.Point(4, 30);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size = new System.Drawing.Size(475, 216);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text = "File";
     this.tabPage2.ToolTipText = "change file settings including save path";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.browseButton);
     this.groupBox1.Controls.Add(this.fileLocationTextBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Location = new System.Drawing.Point(6, 74);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(463, 92);
     this.groupBox1.TabIndex = 3;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "File Location";
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(416, 49);
     this.browseButton.Name = "browseButton";
     this.browseButton.Size = new System.Drawing.Size(32, 27);
     this.browseButton.TabIndex = 2;
     this.browseButton.Text = "...";
     this.browseButton.UseVisualStyleBackColor = true;
     this.browseButton.Click += new System.EventHandler(this.browseButton_Click);
     //
     // fileLocationTextBox
     //
     this.fileLocationTextBox.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.fileLocationTextBox.Location = new System.Drawing.Point(17, 50);
     this.fileLocationTextBox.Name = "fileLocationTextBox";
     this.fileLocationTextBox.ReadOnly = true;
     this.fileLocationTextBox.Size = new System.Drawing.Size(393, 27);
     this.fileLocationTextBox.TabIndex = 1;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(13, 27);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(191, 19);
     this.label1.TabIndex = 0;
     this.label1.Text = "Save my file to this location:";
     //
     // radioButton2
     //
     this.radioButton2.AutoSize = true;
     this.radioButton2.Location = new System.Drawing.Point(26, 45);
     this.radioButton2.Name = "radioButton2";
     this.radioButton2.Size = new System.Drawing.Size(213, 23);
     this.radioButton2.TabIndex = 1;
     this.radioButton2.Text = "Allow me to specify each file";
     this.radioButton2.UseVisualStyleBackColor = true;
     //
     // radioButton1
     //
     this.radioButton1.AutoSize = true;
     this.radioButton1.Checked = true;
     this.radioButton1.Location = new System.Drawing.Point(26, 16);
     this.radioButton1.Name = "radioButton1";
     this.radioButton1.Size = new System.Drawing.Size(185, 23);
     this.radioButton1.TabIndex = 0;
     this.radioButton1.TabStop = true;
     this.radioButton1.Text = "Randomly name my files";
     this.radioButton1.UseVisualStyleBackColor = true;
     //
     // saveFileSettingButton
     //
     this.saveFileSettingButton.Location = new System.Drawing.Point(155, 172);
     this.saveFileSettingButton.Name = "saveFileSettingButton";
     this.saveFileSettingButton.Size = new System.Drawing.Size(141, 36);
     this.saveFileSettingButton.TabIndex = 5;
     this.saveFileSettingButton.Text = "Save File Settings";
     this.saveFileSettingButton.Click += new System.EventHandler(this.saveFileSettingButton_Click);
     //
     // tabPage3
     //
     this.tabPage3.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
     this.tabPage3.Controls.Add(this.saveFtpSettingButton);
     this.tabPage3.Controls.Add(this.ftpTestConnButton);
     this.tabPage3.Controls.Add(this.ftpDirTxtBox);
     this.tabPage3.Controls.Add(this.ftpPortTxtBox);
     this.tabPage3.Controls.Add(this.ftpPassTxtBox);
     this.tabPage3.Controls.Add(this.ftpUserTxtBox);
     this.tabPage3.Controls.Add(this.ftpHostTxtBox);
     this.tabPage3.Controls.Add(this.label6);
     this.tabPage3.Controls.Add(this.label5);
     this.tabPage3.Controls.Add(this.label4);
     this.tabPage3.Controls.Add(this.label3);
     this.tabPage3.Controls.Add(this.label2);
     this.tabPage3.Location = new System.Drawing.Point(4, 30);
     this.tabPage3.Name = "tabPage3";
     this.tabPage3.Size = new System.Drawing.Size(475, 216);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text = "Upload";
     this.tabPage3.ToolTipText = "Set upload settings to remote server";
     //
     // saveFtpSettingButton
     //
     this.saveFtpSettingButton.BackColor = System.Drawing.Color.DarkSlateBlue;
     this.saveFtpSettingButton.Location = new System.Drawing.Point(332, 173);
     this.saveFtpSettingButton.Name = "saveFtpSettingButton";
     this.saveFtpSettingButton.ShineColor = System.Drawing.Color.SlateBlue;
     this.saveFtpSettingButton.Size = new System.Drawing.Size(135, 35);
     this.saveFtpSettingButton.TabIndex = 13;
     this.saveFtpSettingButton.Text = "Save FTP Settings";
     this.saveFtpSettingButton.Click += new System.EventHandler(this.saveFtpSettingButton_Click);
     //
     // ftpTestConnButton
     //
     this.ftpTestConnButton.BackColor = System.Drawing.Color.Crimson;
     this.ftpTestConnButton.Location = new System.Drawing.Point(191, 173);
     this.ftpTestConnButton.Name = "ftpTestConnButton";
     this.ftpTestConnButton.ShineColor = System.Drawing.Color.Pink;
     this.ftpTestConnButton.Size = new System.Drawing.Size(135, 35);
     this.ftpTestConnButton.TabIndex = 12;
     this.ftpTestConnButton.Text = "Test Connection";
     this.ftpTestConnButton.Click += new System.EventHandler(this.ftpTestConnButton_Click);
     //
     // ftpDirTxtBox
     //
     this.ftpDirTxtBox.Location = new System.Drawing.Point(163, 140);
     this.ftpDirTxtBox.Name = "ftpDirTxtBox";
     this.ftpDirTxtBox.Size = new System.Drawing.Size(307, 27);
     this.ftpDirTxtBox.TabIndex = 11;
     //
     // ftpPortTxtBox
     //
     this.ftpPortTxtBox.Location = new System.Drawing.Point(163, 107);
     this.ftpPortTxtBox.Name = "ftpPortTxtBox";
     this.ftpPortTxtBox.Size = new System.Drawing.Size(307, 27);
     this.ftpPortTxtBox.TabIndex = 10;
     this.ftpPortTxtBox.Text = "21";
     //
     // ftpPassTxtBox
     //
     this.ftpPassTxtBox.Location = new System.Drawing.Point(163, 74);
     this.ftpPassTxtBox.Name = "ftpPassTxtBox";
     this.ftpPassTxtBox.Size = new System.Drawing.Size(307, 27);
     this.ftpPassTxtBox.TabIndex = 9;
     this.ftpPassTxtBox.UseSystemPasswordChar = true;
     //
     // ftpUserTxtBox
     //
     this.ftpUserTxtBox.Location = new System.Drawing.Point(163, 41);
     this.ftpUserTxtBox.Name = "ftpUserTxtBox";
     this.ftpUserTxtBox.Size = new System.Drawing.Size(307, 27);
     this.ftpUserTxtBox.TabIndex = 8;
     //
     // ftpHostTxtBox
     //
     this.ftpHostTxtBox.Location = new System.Drawing.Point(163, 11);
     this.ftpHostTxtBox.Name = "ftpHostTxtBox";
     this.ftpHostTxtBox.Size = new System.Drawing.Size(307, 27);
     this.ftpHostTxtBox.TabIndex = 5;
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(24, 143);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(133, 19);
     this.label6.TabIndex = 4;
     this.label6.Text = "Initial Directory (./)";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(64, 110);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(93, 19);
     this.label5.TabIndex = 3;
     this.label5.Text = "Remote Port:";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(28, 77);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(129, 19);
     this.label4.TabIndex = 2;
     this.label4.Text = "Remote Password:"******"label3";
     this.label3.Size = new System.Drawing.Size(133, 19);
     this.label3.TabIndex = 1;
     this.label3.Text = "Remote Username:"******"label2";
     this.label2.Size = new System.Drawing.Size(139, 19);
     this.label2.TabIndex = 0;
     this.label2.Text = "Remote Host Name:";
     //
     // tabPage4
     //
     this.tabPage4.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
     this.tabPage4.Controls.Add(this.savePSDasFileCheckbox);
     this.tabPage4.Controls.Add(this.groupBox2);
     this.tabPage4.Controls.Add(this.ShowMessagesCheckbox);
     this.tabPage4.Controls.Add(this.HideUponLaunchCheckbox);
     this.tabPage4.Controls.Add(this.startOnWindowsLoadCheckBox);
     this.tabPage4.Controls.Add(this.saveGlobalSettingButton);
     this.tabPage4.Location = new System.Drawing.Point(4, 30);
     this.tabPage4.Name = "tabPage4";
     this.tabPage4.Size = new System.Drawing.Size(475, 216);
     this.tabPage4.TabIndex = 3;
     this.tabPage4.Text = "Settings";
     this.tabPage4.ToolTipText = "Set global application settings";
     //
     // savePSDasFileCheckbox
     //
     this.savePSDasFileCheckbox.AutoSize = true;
     this.savePSDasFileCheckbox.Location = new System.Drawing.Point(25, 90);
     this.savePSDasFileCheckbox.Name = "savePSDasFileCheckbox";
     this.savePSDasFileCheckbox.Size = new System.Drawing.Size(191, 23);
     this.savePSDasFileCheckbox.TabIndex = 15;
     this.savePSDasFileCheckbox.Text = "Save a JPEG of a PSD file.";
     this.savePSDasFileCheckbox.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.removeContextMenuButton);
     this.groupBox2.Controls.Add(this.attachContextMenuButton);
     this.groupBox2.Location = new System.Drawing.Point(25, 119);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(428, 62);
     this.groupBox2.TabIndex = 14;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Windows Context Menu";
     //
     // removeContextMenuButton
     //
     this.removeContextMenuButton.BackColor = System.Drawing.Color.Crimson;
     this.removeContextMenuButton.Location = new System.Drawing.Point(220, 21);
     this.removeContextMenuButton.Name = "removeContextMenuButton";
     this.removeContextMenuButton.ShineColor = System.Drawing.Color.Pink;
     this.removeContextMenuButton.Size = new System.Drawing.Size(198, 35);
     this.removeContextMenuButton.TabIndex = 14;
     this.removeContextMenuButton.Text = " Remove";
     this.removeContextMenuButton.Click += new System.EventHandler(this.removeContextMenuButton_Click);
     //
     // attachContextMenuButton
     //
     this.attachContextMenuButton.BackColor = System.Drawing.Color.Crimson;
     this.attachContextMenuButton.Location = new System.Drawing.Point(16, 21);
     this.attachContextMenuButton.Name = "attachContextMenuButton";
     this.attachContextMenuButton.ShineColor = System.Drawing.Color.Pink;
     this.attachContextMenuButton.Size = new System.Drawing.Size(198, 35);
     this.attachContextMenuButton.TabIndex = 13;
     this.attachContextMenuButton.Text = "Attach ";
     this.attachContextMenuButton.Click += new System.EventHandler(this.attachToWindowsButton_Click);
     //
     // ShowMessagesCheckbox
     //
     this.ShowMessagesCheckbox.AutoSize = true;
     this.ShowMessagesCheckbox.Location = new System.Drawing.Point(25, 61);
     this.ShowMessagesCheckbox.Name = "ShowMessagesCheckbox";
     this.ShowMessagesCheckbox.Size = new System.Drawing.Size(306, 23);
     this.ShowMessagesCheckbox.TabIndex = 3;
     this.ShowMessagesCheckbox.Text = "Show program messages in a message box";
     this.ShowMessagesCheckbox.UseVisualStyleBackColor = true;
     //
     // HideUponLaunchCheckbox
     //
     this.HideUponLaunchCheckbox.AutoSize = true;
     this.HideUponLaunchCheckbox.Location = new System.Drawing.Point(25, 32);
     this.HideUponLaunchCheckbox.Name = "HideUponLaunchCheckbox";
     this.HideUponLaunchCheckbox.Size = new System.Drawing.Size(284, 23);
     this.HideUponLaunchCheckbox.TabIndex = 1;
     this.HideUponLaunchCheckbox.Text = "Hide instantly upon launch of program. ";
     this.HideUponLaunchCheckbox.UseVisualStyleBackColor = true;
     //
     // startOnWindowsLoadCheckBox
     //
     this.startOnWindowsLoadCheckBox.AutoSize = true;
     this.startOnWindowsLoadCheckBox.Location = new System.Drawing.Point(25, 3);
     this.startOnWindowsLoadCheckBox.Name = "startOnWindowsLoadCheckBox";
     this.startOnWindowsLoadCheckBox.Size = new System.Drawing.Size(307, 23);
     this.startOnWindowsLoadCheckBox.TabIndex = 0;
     this.startOnWindowsLoadCheckBox.Text = "Start this program when Windows boots up";
     this.startOnWindowsLoadCheckBox.UseVisualStyleBackColor = true;
     //
     // saveGlobalSettingButton
     //
     this.saveGlobalSettingButton.BackColor = System.Drawing.Color.Chocolate;
     this.saveGlobalSettingButton.Location = new System.Drawing.Point(158, 186);
     this.saveGlobalSettingButton.Name = "saveGlobalSettingButton";
     this.saveGlobalSettingButton.OuterBorderColor = System.Drawing.Color.LightSalmon;
     this.saveGlobalSettingButton.Size = new System.Drawing.Size(161, 27);
     this.saveGlobalSettingButton.TabIndex = 6;
     this.saveGlobalSettingButton.Text = "Save Program Settings";
     this.saveGlobalSettingButton.Click += new System.EventHandler(this.saveGlobalSettingButton_Click);
     //
     // tabPage5
     //
     this.tabPage5.Location = new System.Drawing.Point(4, 30);
     this.tabPage5.Name = "tabPage5";
     this.tabPage5.Size = new System.Drawing.Size(475, 216);
     this.tabPage5.TabIndex = 4;
     this.tabPage5.Text = "Log";
     this.tabPage5.ToolTipText = "Check log files";
     this.tabPage5.UseVisualStyleBackColor = true;
     //
     // notifyIcon
     //
     this.notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
     this.notifyIcon.BalloonTipText = "Program Status: Running";
     this.notifyIcon.BalloonTipTitle = "Skimpt v1.01";
     this.notifyIcon.ContextMenuStrip = this.notificationIconContext;
     this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
     this.notifyIcon.Text = "Skimpt v1.01\r\nProgram Status: Running";
     this.notifyIcon.Visible = true;
     this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseDoubleClick);
     //
     // notificationIconContext
     //
     this.notificationIconContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.contextStartCamera,
         this.contextHighlightMode,
         this.toolStripSeparator1,
         this.contextShowMenu,
         this.contextExitMenu});
     this.notificationIconContext.Name = "notificationIconContext";
     this.notificationIconContext.Size = new System.Drawing.Size(172, 98);
     //
     // contextStartCamera
     //
     this.contextStartCamera.Name = "contextStartCamera";
     this.contextStartCamera.Size = new System.Drawing.Size(171, 22);
     this.contextStartCamera.Text = "Start Camera Mode";
     this.contextStartCamera.Click += new System.EventHandler(this.contextStartCamera_Click);
     //
     // contextHighlightMode
     //
     this.contextHighlightMode.Name = "contextHighlightMode";
     this.contextHighlightMode.Size = new System.Drawing.Size(171, 22);
     this.contextHighlightMode.Text = "Start Highlight Mode";
     this.contextHighlightMode.Click += new System.EventHandler(this.contextHighlightMode_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(168, 6);
     //
     // contextShowMenu
     //
     this.contextShowMenu.Name = "contextShowMenu";
     this.contextShowMenu.Size = new System.Drawing.Size(171, 22);
     this.contextShowMenu.Text = "Show Main Window";
     this.contextShowMenu.Click += new System.EventHandler(this.contextShowMenu_Click);
     //
     // contextExitMenu
     //
     this.contextExitMenu.Name = "contextExitMenu";
     this.contextExitMenu.Size = new System.Drawing.Size(171, 22);
     this.contextExitMenu.Text = "Exit Skimpt";
     this.contextExitMenu.Click += new System.EventHandler(this.contextExitMenu_Click);
     //
     // main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSize = true;
     this.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
     this.ClientSize = new System.Drawing.Size(483, 250);
     this.Controls.Add(this.tabControl1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "main";
     this.Opacity = 0.9;
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.Text = "Skimpt v 1.01";
     this.TopMost = true;
     this.Load += new System.EventHandler(this.main_Load);
     this.Shown += new System.EventHandler(this.main_Shown);
     this.Closing += new System.ComponentModel.CancelEventHandler(this.main_Closing);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage1.PerformLayout();
     this.tabPage2.ResumeLayout(false);
     this.tabPage2.PerformLayout();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.tabPage3.ResumeLayout(false);
     this.tabPage3.PerformLayout();
     this.tabPage4.ResumeLayout(false);
     this.tabPage4.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.notificationIconContext.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #42
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(frmMain));
     this._lblTrip           = new System.Windows.Forms.Label();
     this._lblCartons        = new System.Windows.Forms.Label();
     this._lblCarrier        = new System.Windows.Forms.Label();
     this._lblTrailer        = new System.Windows.Forms.Label();
     this.lblTripNumber      = new System.Windows.Forms.Label();
     this.lblCartons         = new System.Windows.Forms.Label();
     this.lblCarrier         = new System.Windows.Forms.Label();
     this.lblTrailer         = new System.Windows.Forms.Label();
     this.txtLabelScan       = new System.Windows.Forms.TextBox();
     this.lstScannedCartons  = new System.Windows.Forms.ListBox();
     this._lblTotalScanned   = new System.Windows.Forms.Label();
     this.lblTotalScanned    = new System.Windows.Forms.Label();
     this._lblBarcode        = new System.Windows.Forms.Label();
     this.stbMain            = new Argix.Windows.ArgixStatusBar();
     this.pnlMain            = new System.Windows.Forms.Panel();
     this.tsMain             = new System.Windows.Forms.ToolStrip();
     this.btnRefresh         = new System.Windows.Forms.ToolStripButton();
     this.btnDelete          = new System.Windows.Forms.ToolStripButton();
     this.msMain             = new System.Windows.Forms.MenuStrip();
     this.mnuFile            = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuFileExit        = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuEdit            = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuEditDelete      = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuView            = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuViewRefresh     = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuViewToolbar     = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuViewStatusBar   = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuTools           = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuToolsConfig     = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuHelp            = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuHelpAbout       = new System.Windows.Forms.ToolStripMenuItem();
     this.pnlMain.SuspendLayout();
     this.tsMain.SuspendLayout();
     this.msMain.SuspendLayout();
     this.SuspendLayout();
     //
     // _lblTrip
     //
     this._lblTrip.Location = new System.Drawing.Point(9, 6);
     this._lblTrip.Name     = "_lblTrip";
     this._lblTrip.Size     = new System.Drawing.Size(96, 24);
     this._lblTrip.TabIndex = 0;
     this._lblTrip.Text     = "Trip #";
     //
     // _lblCartons
     //
     this._lblCartons.Location = new System.Drawing.Point(111, 6);
     this._lblCartons.Name     = "_lblCartons";
     this._lblCartons.Size     = new System.Drawing.Size(96, 24);
     this._lblCartons.TabIndex = 1;
     this._lblCartons.Text     = "Cartons";
     //
     // _lblCarrier
     //
     this._lblCarrier.Location = new System.Drawing.Point(225, 6);
     this._lblCarrier.Name     = "_lblCarrier";
     this._lblCarrier.Size     = new System.Drawing.Size(96, 24);
     this._lblCarrier.TabIndex = 2;
     this._lblCarrier.Text     = "Carrier";
     //
     // _lblTrailer
     //
     this._lblTrailer.Location = new System.Drawing.Point(327, 6);
     this._lblTrailer.Name     = "_lblTrailer";
     this._lblTrailer.Size     = new System.Drawing.Size(96, 24);
     this._lblTrailer.TabIndex = 3;
     this._lblTrailer.Text     = "Trailer #";
     //
     // lblTripNumber
     //
     this.lblTripNumber.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblTripNumber.Location    = new System.Drawing.Point(9, 36);
     this.lblTripNumber.Name        = "lblTripNumber";
     this.lblTripNumber.Size        = new System.Drawing.Size(96, 24);
     this.lblTripNumber.TabIndex    = 4;
     //
     // lblCartons
     //
     this.lblCartons.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblCartons.Location    = new System.Drawing.Point(111, 36);
     this.lblCartons.Name        = "lblCartons";
     this.lblCartons.Size        = new System.Drawing.Size(96, 24);
     this.lblCartons.TabIndex    = 5;
     //
     // lblCarrier
     //
     this.lblCarrier.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblCarrier.Location    = new System.Drawing.Point(225, 36);
     this.lblCarrier.Name        = "lblCarrier";
     this.lblCarrier.Size        = new System.Drawing.Size(96, 24);
     this.lblCarrier.TabIndex    = 6;
     //
     // lblTrailer
     //
     this.lblTrailer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblTrailer.Location    = new System.Drawing.Point(327, 36);
     this.lblTrailer.Name        = "lblTrailer";
     this.lblTrailer.Size        = new System.Drawing.Size(96, 24);
     this.lblTrailer.TabIndex    = 7;
     //
     // txtLabelScan
     //
     this.txtLabelScan.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtLabelScan.Font         = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtLabelScan.Location     = new System.Drawing.Point(9, 379);
     this.txtLabelScan.Name         = "txtLabelScan";
     this.txtLabelScan.Size         = new System.Drawing.Size(415, 38);
     this.txtLabelScan.TabIndex     = 8;
     this.txtLabelScan.TextChanged += new System.EventHandler(this.OnScanChanged);
     //
     // lstScannedCartons
     //
     this.lstScannedCartons.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)));
     this.lstScannedCartons.ItemHeight = 16;
     this.lstScannedCartons.Location   = new System.Drawing.Point(9, 72);
     this.lstScannedCartons.Name       = "lstScannedCartons";
     this.lstScannedCartons.Size       = new System.Drawing.Size(415, 244);
     this.lstScannedCartons.TabIndex   = 9;
     //
     // _lblTotalScanned
     //
     this._lblTotalScanned.Location  = new System.Drawing.Point(438, 72);
     this._lblTotalScanned.Name      = "_lblTotalScanned";
     this._lblTotalScanned.Size      = new System.Drawing.Size(96, 48);
     this._lblTotalScanned.TabIndex  = 10;
     this._lblTotalScanned.Text      = "Total Scanned";
     this._lblTotalScanned.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTotalScanned
     //
     this.lblTotalScanned.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblTotalScanned.Location    = new System.Drawing.Point(438, 126);
     this.lblTotalScanned.Name        = "lblTotalScanned";
     this.lblTotalScanned.Size        = new System.Drawing.Size(96, 24);
     this.lblTotalScanned.TabIndex    = 11;
     this.lblTotalScanned.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // _lblBarcode
     //
     this._lblBarcode.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this._lblBarcode.Location = new System.Drawing.Point(6, 352);
     this._lblBarcode.Name     = "_lblBarcode";
     this._lblBarcode.Size     = new System.Drawing.Size(96, 24);
     this._lblBarcode.TabIndex = 12;
     this._lblBarcode.Text     = "Barcode";
     //
     // stbMain
     //
     this.stbMain.Dock         = System.Windows.Forms.DockStyle.Bottom;
     this.stbMain.Font         = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.stbMain.Location     = new System.Drawing.Point(0, 475);
     this.stbMain.Name         = "stbMain";
     this.stbMain.Size         = new System.Drawing.Size(648, 36);
     this.stbMain.StatusText   = "";
     this.stbMain.TabIndex     = 17;
     this.stbMain.TerminalText = "Station #";
     //
     // pnlMain
     //
     this.pnlMain.Controls.Add(this.lblCarrier);
     this.pnlMain.Controls.Add(this.lblTrailer);
     this.pnlMain.Controls.Add(this._lblTrip);
     this.pnlMain.Controls.Add(this._lblCartons);
     this.pnlMain.Controls.Add(this._lblCarrier);
     this.pnlMain.Controls.Add(this._lblTrailer);
     this.pnlMain.Controls.Add(this.lblTripNumber);
     this.pnlMain.Controls.Add(this.lblCartons);
     this.pnlMain.Controls.Add(this.lstScannedCartons);
     this.pnlMain.Controls.Add(this.txtLabelScan);
     this.pnlMain.Controls.Add(this._lblTotalScanned);
     this.pnlMain.Controls.Add(this.lblTotalScanned);
     this.pnlMain.Controls.Add(this._lblBarcode);
     this.pnlMain.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlMain.Font     = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pnlMain.Location = new System.Drawing.Point(0, 49);
     this.pnlMain.Name     = "pnlMain";
     this.pnlMain.Padding  = new System.Windows.Forms.Padding(3);
     this.pnlMain.Size     = new System.Drawing.Size(648, 426);
     this.pnlMain.TabIndex = 15;
     //
     // tsMain
     //
     this.tsMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.btnRefresh,
         this.btnDelete
     });
     this.tsMain.Location = new System.Drawing.Point(0, 24);
     this.tsMain.Name     = "tsMain";
     this.tsMain.Size     = new System.Drawing.Size(648, 25);
     this.tsMain.TabIndex = 13;
     this.tsMain.Text     = "toolStrip1";
     //
     // btnRefresh
     //
     this.btnRefresh.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnRefresh.Image                 = global::Argix.Properties.Resources.Refresh;
     this.btnRefresh.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnRefresh.Name   = "btnRefresh";
     this.btnRefresh.Size   = new System.Drawing.Size(23, 22);
     this.btnRefresh.Click += new System.EventHandler(this.OnItemClick);
     //
     // btnDelete
     //
     this.btnDelete.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnDelete.Image                 = global::Argix.Properties.Resources.Delete;
     this.btnDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnDelete.Name   = "btnDelete";
     this.btnDelete.Size   = new System.Drawing.Size(23, 22);
     this.btnDelete.Click += new System.EventHandler(this.OnItemClick);
     //
     // msMain
     //
     this.msMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuFile,
         this.mnuEdit,
         this.mnuView,
         this.mnuTools,
         this.mnuHelp
     });
     this.msMain.Location = new System.Drawing.Point(0, 0);
     this.msMain.Name     = "msMain";
     this.msMain.Size     = new System.Drawing.Size(648, 24);
     this.msMain.TabIndex = 18;
     this.msMain.Text     = "menuStrip1";
     //
     // mnuFile
     //
     this.mnuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuFileExit
     });
     this.mnuFile.Name = "mnuFile";
     this.mnuFile.Size = new System.Drawing.Size(37, 20);
     this.mnuFile.Text = "&File";
     //
     // mnuFileExit
     //
     this.mnuFileExit.Name   = "mnuFileExit";
     this.mnuFileExit.Size   = new System.Drawing.Size(152, 22);
     this.mnuFileExit.Text   = "E&xit";
     this.mnuFileExit.Click += new System.EventHandler(this.OnItemClick);
     //
     // mnuEdit
     //
     this.mnuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuEditDelete
     });
     this.mnuEdit.Name = "mnuEdit";
     this.mnuEdit.Size = new System.Drawing.Size(39, 20);
     this.mnuEdit.Text = "&Edit";
     //
     // mnuEditDelete
     //
     this.mnuEditDelete.Image = global::Argix.Properties.Resources.Delete;
     this.mnuEditDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.mnuEditDelete.Name   = "mnuEditDelete";
     this.mnuEditDelete.Size   = new System.Drawing.Size(152, 22);
     this.mnuEditDelete.Text   = "&Delete...";
     this.mnuEditDelete.Click += new System.EventHandler(this.OnItemClick);
     //
     // mnuView
     //
     this.mnuView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuViewRefresh,
         this.toolStripMenuItem1,
         this.mnuViewToolbar,
         this.mnuViewStatusBar
     });
     this.mnuView.Name = "mnuView";
     this.mnuView.Size = new System.Drawing.Size(44, 20);
     this.mnuView.Text = "&View";
     //
     // mnuViewRefresh
     //
     this.mnuViewRefresh.Image = global::Argix.Properties.Resources.Refresh;
     this.mnuViewRefresh.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.mnuViewRefresh.Name   = "mnuViewRefresh";
     this.mnuViewRefresh.Size   = new System.Drawing.Size(179, 22);
     this.mnuViewRefresh.Text   = "&Refresh Assignment";
     this.mnuViewRefresh.Click += new System.EventHandler(this.OnItemClick);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(176, 6);
     //
     // mnuViewToolbar
     //
     this.mnuViewToolbar.Name   = "mnuViewToolbar";
     this.mnuViewToolbar.Size   = new System.Drawing.Size(179, 22);
     this.mnuViewToolbar.Text   = "&Toolbar";
     this.mnuViewToolbar.Click += new System.EventHandler(this.OnItemClick);
     //
     // mnuViewStatusBar
     //
     this.mnuViewStatusBar.Name   = "mnuViewStatusBar";
     this.mnuViewStatusBar.Size   = new System.Drawing.Size(179, 22);
     this.mnuViewStatusBar.Text   = "&StatusBar";
     this.mnuViewStatusBar.Click += new System.EventHandler(this.OnItemClick);
     //
     // mnuTools
     //
     this.mnuTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuToolsConfig
     });
     this.mnuTools.Name = "mnuTools";
     this.mnuTools.Size = new System.Drawing.Size(48, 20);
     this.mnuTools.Text = "&Tools";
     //
     // mnuToolsConfig
     //
     this.mnuToolsConfig.Name   = "mnuToolsConfig";
     this.mnuToolsConfig.Size   = new System.Drawing.Size(157, 22);
     this.mnuToolsConfig.Text   = "&Configuration...";
     this.mnuToolsConfig.Click += new System.EventHandler(this.OnItemClick);
     //
     // mnuHelp
     //
     this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuHelpAbout
     });
     this.mnuHelp.Name = "mnuHelp";
     this.mnuHelp.Size = new System.Drawing.Size(44, 20);
     this.mnuHelp.Text = "&Help";
     //
     // mnuHelpAbout
     //
     this.mnuHelpAbout.Name   = "mnuHelpAbout";
     this.mnuHelpAbout.Size   = new System.Drawing.Size(183, 22);
     this.mnuHelpAbout.Text   = "&About Indirect Sort...";
     this.mnuHelpAbout.Click += new System.EventHandler(this.OnItemClick);
     //
     // frmMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(9, 20);
     this.ClientSize        = new System.Drawing.Size(648, 511);
     this.Controls.Add(this.pnlMain);
     this.Controls.Add(this.tsMain);
     this.Controls.Add(this.msMain);
     this.Controls.Add(this.stbMain);
     this.Font          = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.msMain;
     this.Name          = "frmMain";
     this.Text          = "Argix Direct Indirect Sort";
     this.Load         += new System.EventHandler(this.OnFormLoad);
     this.Resize       += new System.EventHandler(this.OnFormResize);
     this.pnlMain.ResumeLayout(false);
     this.pnlMain.PerformLayout();
     this.tsMain.ResumeLayout(false);
     this.tsMain.PerformLayout();
     this.msMain.ResumeLayout(false);
     this.msMain.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("");
     System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("", 0);
     this.listView1 = new System.Windows.Forms.ListView();
     this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.contextMenuStrip1 = new System.Windows.Forms.ClassicContextMenuStrip();
     this.ts_OpenFile = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.OpenWithNotePad = new System.Windows.Forms.ToolStripMenuItem();
     this.cms_ExplorerFile = new System.Windows.Forms.ToolStripMenuItem();
     this.saveAs1 = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
     this.复制ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.cms_DeleteFile = new System.Windows.Forms.ToolStripMenuItem();
     this.cms_ReNameFile = new System.Windows.Forms.ToolStripMenuItem();
     this.imageList1 = new System.Windows.Forms.ImageList();
     this.toolTip1 = new System.Windows.Forms.ToolTip();
     this.contextMenuStrip2 = new System.Windows.Forms.ClassicContextMenuStrip();
     this.查看VToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.largeIcon1 = new System.Windows.Forms.RadioMenuItem();
     this.smallIcon1 = new System.Windows.Forms.RadioMenuItem();
     this.list1 = new System.Windows.Forms.RadioMenuItem();
     this.tile1 = new System.Windows.Forms.RadioMenuItem();
     this.details1 = new System.Windows.Forms.RadioMenuItem();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.添加附件AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openCurrentDir = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
     this.cms_Refresh = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
     this.cms_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
     this.fileSystemWatcher1 = new System.IO.FileSystemWatcher();
     this.contextMenuStrip1.SuspendLayout();
     this.contextMenuStrip2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.fileSystemWatcher1)).BeginInit();
     this.SuspendLayout();
     //
     // listView1
     //
     this.listView1.AllowDrop = true;
     this.listView1.BackColor = System.Drawing.Color.White;
     this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1,
     this.columnHeader2,
     this.columnHeader3,
     this.columnHeader4,
     this.columnHeader5});
     this.listView1.ContextMenuStrip = this.contextMenuStrip1;
     this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.listView1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.listView1.FullRowSelect = true;
     this.listView1.HideSelection = false;
     this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
     listViewItem1,
     listViewItem2,
     listViewItem3,
     listViewItem4,
     listViewItem5,
     listViewItem6,
     listViewItem7});
     this.listView1.Location = new System.Drawing.Point(0, 0);
     this.listView1.Name = "listView1";
     this.listView1.ShowGroups = false;
     this.listView1.ShowItemToolTips = true;
     this.listView1.Size = new System.Drawing.Size(655, 356);
     this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
     this.listView1.TabIndex = 4;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Details;
     this.listView1.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView1_ColumnClick);
     this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
     this.listView1.DoubleClick += new System.EventHandler(this.打开_Click);
     this.listView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.listView1_MouseUp);
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "文件名";
     this.columnHeader1.Width = 189;
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "修改时间";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "大小";
     this.columnHeader3.Width = 99;
     //
     // columnHeader4
     //
     this.columnHeader4.Text = "路径";
     this.columnHeader4.Width = 170;
     //
     // columnHeader5
     //
     this.columnHeader5.Text = "类型";
     this.columnHeader5.Width = 93;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ts_OpenFile,
     this.toolStripMenuItem1,
     this.OpenWithNotePad,
     this.cms_ExplorerFile,
     this.saveAs1,
     this.toolStripMenuItem2,
     this.复制ToolStripMenuItem,
     this.cms_DeleteFile,
     this.cms_ReNameFile});
     this.contextMenuStrip1.Name = "contextMenuStrip_ListView";
     this.contextMenuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     this.contextMenuStrip1.Size = new System.Drawing.Size(189, 170);
     this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
     //
     // ts_OpenFile
     //
     this.ts_OpenFile.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold);
     this.ts_OpenFile.Name = "ts_OpenFile";
     this.ts_OpenFile.Size = new System.Drawing.Size(188, 22);
     this.ts_OpenFile.Text = "打开(&O)";
     this.ts_OpenFile.Click += new System.EventHandler(this.打开_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(185, 6);
     //
     // OpenWithNotePad
     //
     this.OpenWithNotePad.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
     this.OpenWithNotePad.Name = "OpenWithNotePad";
     this.OpenWithNotePad.Size = new System.Drawing.Size(188, 22);
     this.OpenWithNotePad.Text = "用记事本打开(&N)";
     this.OpenWithNotePad.Click += new System.EventHandler(this.用记事本打开_Click);
     //
     // cms_ExplorerFile
     //
     this.cms_ExplorerFile.Name = "cms_ExplorerFile";
     this.cms_ExplorerFile.Size = new System.Drawing.Size(188, 22);
     this.cms_ExplorerFile.Text = "用资源管理器打开(&X)";
     this.cms_ExplorerFile.Click += new System.EventHandler(this.用资源管理器打开_Click);
     //
     // saveAs1
     //
     this.saveAs1.Name = "saveAs1";
     this.saveAs1.Size = new System.Drawing.Size(188, 22);
     this.saveAs1.Text = "另存为(&S)...";
     this.saveAs1.Click += new System.EventHandler(this.另存为_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(185, 6);
     //
     // 复制ToolStripMenuItem
     //
     this.复制ToolStripMenuItem.Name = "复制ToolStripMenuItem";
     this.复制ToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
     this.复制ToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
     this.复制ToolStripMenuItem.Text = "复制(&C)";
     this.复制ToolStripMenuItem.Click += new System.EventHandler(this.复制文件到剪切板_Click);
     //
     // cms_DeleteFile
     //
     this.cms_DeleteFile.Name = "cms_DeleteFile";
     this.cms_DeleteFile.ShortcutKeyDisplayString = "";
     this.cms_DeleteFile.ShortcutKeys = System.Windows.Forms.Keys.Delete;
     this.cms_DeleteFile.Size = new System.Drawing.Size(188, 22);
     this.cms_DeleteFile.Text = "删除(&D)";
     this.cms_DeleteFile.Click += new System.EventHandler(this.删除_Click);
     //
     // cms_ReNameFile
     //
     this.cms_ReNameFile.Name = "cms_ReNameFile";
     this.cms_ReNameFile.ShortcutKeys = System.Windows.Forms.Keys.F2;
     this.cms_ReNameFile.Size = new System.Drawing.Size(188, 22);
     this.cms_ReNameFile.Text = "重命名(&R)";
     this.cms_ReNameFile.Click += new System.EventHandler(this.重命名_Click);
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolTip1
     //
     this.toolTip1.IsBalloon = true;
     this.toolTip1.ShowAlways = true;
     //
     // contextMenuStrip2
     //
     this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.查看VToolStripMenuItem,
     this.toolStripSeparator2,
     this.添加附件AToolStripMenuItem,
     this.openCurrentDir,
     this.toolStripSeparator4,
     this.cms_Refresh,
     this.toolStripSeparator5,
     this.cms_SelectAll});
     this.contextMenuStrip2.Name = "contextMenuStrip_ListView";
     this.contextMenuStrip2.Size = new System.Drawing.Size(177, 132);
     //
     // 查看VToolStripMenuItem
     //
     this.查看VToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.largeIcon1,
     this.smallIcon1,
     this.list1,
     this.tile1,
     this.details1});
     this.查看VToolStripMenuItem.Name = "查看VToolStripMenuItem";
     this.查看VToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
     this.查看VToolStripMenuItem.Text = "查看(&V)";
     //
     // largeIcon1
     //
     this.largeIcon1.CheckOnClick = true;
     this.largeIcon1.GroupIndex = 0;
     this.largeIcon1.Name = "largeIcon1";
     this.largeIcon1.Size = new System.Drawing.Size(141, 22);
     this.largeIcon1.Text = "大图标(&R)";
     this.largeIcon1.Click += new System.EventHandler(this.details1_Click);
     //
     // smallIcon1
     //
     this.smallIcon1.CheckOnClick = true;
     this.smallIcon1.GroupIndex = 0;
     this.smallIcon1.Name = "smallIcon1";
     this.smallIcon1.Size = new System.Drawing.Size(141, 22);
     this.smallIcon1.Text = "小图标(&N)";
     this.smallIcon1.Click += new System.EventHandler(this.details1_Click);
     //
     // list1
     //
     this.list1.CheckOnClick = true;
     this.list1.GroupIndex = 0;
     this.list1.Name = "list1";
     this.list1.Size = new System.Drawing.Size(141, 22);
     this.list1.Text = "列表(&T)";
     this.list1.Click += new System.EventHandler(this.details1_Click);
     //
     // tile1
     //
     this.tile1.CheckOnClick = true;
     this.tile1.GroupIndex = 0;
     this.tile1.Name = "tile1";
     this.tile1.Size = new System.Drawing.Size(141, 22);
     this.tile1.Text = "平铺(&S)";
     this.tile1.Click += new System.EventHandler(this.details1_Click);
     //
     // details1
     //
     this.details1.Checked = true;
     this.details1.CheckOnClick = true;
     this.details1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.details1.GroupIndex = 0;
     this.details1.Name = "details1";
     this.details1.Size = new System.Drawing.Size(141, 22);
     this.details1.Text = "详细信息(&D)";
     this.details1.Click += new System.EventHandler(this.details1_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(173, 6);
     //
     // 添加附件AToolStripMenuItem
     //
     this.添加附件AToolStripMenuItem.Name = "添加附件AToolStripMenuItem";
     this.添加附件AToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
     this.添加附件AToolStripMenuItem.Text = "添加文件(&A)";
     this.添加附件AToolStripMenuItem.Click += new System.EventHandler(this.添加_Click);
     //
     // openCurrentDir
     //
     this.openCurrentDir.Name = "openCurrentDir";
     this.openCurrentDir.Size = new System.Drawing.Size(176, 22);
     this.openCurrentDir.Text = "打开当前文件夹(&C)";
     this.openCurrentDir.Click += new System.EventHandler(this.打开当前文件夹_Click);
     //
     // toolStripSeparator4
     //
     this.toolStripSeparator4.Name = "toolStripSeparator4";
     this.toolStripSeparator4.Size = new System.Drawing.Size(173, 6);
     //
     // cms_Refresh
     //
     this.cms_Refresh.Name = "cms_Refresh";
     this.cms_Refresh.ShortcutKeys = System.Windows.Forms.Keys.F5;
     this.cms_Refresh.Size = new System.Drawing.Size(176, 22);
     this.cms_Refresh.Text = "刷新(&R)";
     this.cms_Refresh.Click += new System.EventHandler(this.刷新_Click);
     //
     // toolStripSeparator5
     //
     this.toolStripSeparator5.Name = "toolStripSeparator5";
     this.toolStripSeparator5.Size = new System.Drawing.Size(173, 6);
     //
     // cms_SelectAll
     //
     this.cms_SelectAll.Name = "cms_SelectAll";
     this.cms_SelectAll.ShortcutKeyDisplayString = "Ctrl+A";
     this.cms_SelectAll.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
     this.cms_SelectAll.Size = new System.Drawing.Size(176, 22);
     this.cms_SelectAll.Text = "全选(&L)";
     this.cms_SelectAll.TextDirection = System.Windows.Forms.ToolStripTextDirection.Horizontal;
     this.cms_SelectAll.Click += new System.EventHandler(this.全选_Click);
     //
     // fileSystemWatcher1
     //
     this.fileSystemWatcher1.EnableRaisingEvents = true;
     this.fileSystemWatcher1.SynchronizingObject = this;
     this.fileSystemWatcher1.Created += new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Created);
     this.fileSystemWatcher1.Deleted += new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Created);
     //
     // FormAttachment
     //
     this.AllowDrop = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(655, 356);
     this.ControlBox = false;
     this.Controls.Add(this.listView1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "FormAttachment";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.Text = "Form2";
     this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormAttachment_FormClosed);
     this.Load += new System.EventHandler(this.Form1_Load);
     this.Shown += new System.EventHandler(this.FormAttachment_Shown);
     this.contextMenuStrip1.ResumeLayout(false);
     this.contextMenuStrip2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.fileSystemWatcher1)).EndInit();
     this.ResumeLayout(false);
 }
Example #44
0
        private void UpdateMenu(object sender, EventArgs e)
        {
            if (m_lv == null)
            {
                Debug.Assert(false); return;
            }

            DeleteMenuItems();

            IComparer  icSorter = m_lv.ListViewItemSorter;
            ListSorter ls       = ((icSorter != null) ? (icSorter as ListSorter) : null);

            if (ls != null)
            {
                m_iCurSortColumn = ls.Column;
                m_bCurSortAsc    = (ls.Order != SortOrder.Descending);
                if ((ls.Order == SortOrder.None) || (m_iCurSortColumn >= m_lv.Columns.Count))
                {
                    m_iCurSortColumn = -1;
                }
            }
            else
            {
                m_iCurSortColumn = -1;
            }

            m_tsmiNoSort = new ToolStripMenuItem(KPRes.NoSort);
            if (m_iCurSortColumn < 0)
            {
                UIUtil.SetRadioChecked(m_tsmiNoSort, true);
            }
            m_tsmiNoSort.Click += this.OnNoSort;
            m_tsmiMenu.DropDownItems.Add(m_tsmiNoSort);

            m_tssSep0 = new ToolStripSeparator();
            m_tsmiMenu.DropDownItems.Add(m_tssSep0);

            m_vColumns = new List <ToolStripMenuItem>();
            foreach (ColumnHeader ch in m_lv.Columns)
            {
                string strText = (ch.Text ?? string.Empty);
                strText = StrUtil.EncodeMenuText(strText);

                ToolStripMenuItem tsmi = new ToolStripMenuItem(strText);
                if (ch.Index == m_iCurSortColumn)
                {
                    UIUtil.SetRadioChecked(tsmi, true);
                }
                tsmi.Click += this.OnSortColumn;

                m_vColumns.Add(tsmi);
                m_tsmiMenu.DropDownItems.Add(tsmi);
            }

            m_tssSep1 = new ToolStripSeparator();
            m_tsmiMenu.DropDownItems.Add(m_tssSep1);

            m_tsmiAsc = new ToolStripMenuItem(KPRes.Ascending);
            if ((m_iCurSortColumn >= 0) && m_bCurSortAsc)
            {
                UIUtil.SetRadioChecked(m_tsmiAsc, true);
            }
            m_tsmiAsc.Click += this.OnSortAscDesc;
            if (m_iCurSortColumn < 0)
            {
                m_tsmiAsc.Enabled = false;
            }
            m_tsmiMenu.DropDownItems.Add(m_tsmiAsc);

            m_tsmiDesc = new ToolStripMenuItem(KPRes.Descending);
            if ((m_iCurSortColumn >= 0) && !m_bCurSortAsc)
            {
                UIUtil.SetRadioChecked(m_tsmiDesc, true);
            }
            m_tsmiDesc.Click += this.OnSortAscDesc;
            if (m_iCurSortColumn < 0)
            {
                m_tsmiDesc.Enabled = false;
            }
            m_tsmiMenu.DropDownItems.Add(m_tsmiDesc);
        }
Example #45
0
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     ComponentResourceManager manager = new ComponentResourceManager(typeof(MainForm));
     this.toolStrip1 = new ToolStrip();
     this.btnOpenDirectory = new ToolStripButton();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.btnAddFile = new ToolStripButton();
     this.btnDeleteFile = new ToolStripButton();
     this.toolStripSeparator2 = new ToolStripSeparator();
     this.btnAddCommand = new ToolStripButton();
     this.btnEditCommand = new ToolStripButton();
     this.btnDeleteCommnad = new ToolStripButton();
     this.toolStripSeparator3 = new ToolStripSeparator();
     this.btnSaveAll = new ToolStripButton();
     this.toolStripSeparator4 = new ToolStripSeparator();
     this.btnFindCommand = new ToolStripButton();
     this.toolStripSeparator5 = new ToolStripSeparator();
     this.btnHelp = new ToolStripButton();
     this.statusStrip1 = new StatusStrip();
     this.labCurrentPath = new ToolStripStatusLabel();
     this.labMessage = new ToolStripStatusLabel();
     this.treeView1 = new TreeView();
     this.imageList_0 = new ImageList(this.icontainer_0);
     this.splitter1 = new Splitter();
     this.panel1 = new Panel();
     this.txtSQL = new SyntaxHighlighterControlFix();
     this.splitter2 = new Splitter();
     this.txtXML = new SyntaxHighlighterControlFix();
     this.contextMenuStrip1 = new ContextMenuStrip(this.icontainer_0);
     this.menuAdd = new ToolStripMenuItem();
     this.menuEdit = new ToolStripMenuItem();
     this.menuDelete = new ToolStripMenuItem();
     this.menuPaste = new ToolStripMenuItem();
     this.toolStripMenuItem1 = new ToolStripSeparator();
     this.menuCopyName = new ToolStripMenuItem();
     this.menuCopyXml = new ToolStripMenuItem();
     this.toolStripMenuItem2 = new ToolStripSeparator();
     this.menuGenerateCallCode = new ToolStripMenuItem();
     this.fileSystemWatcher_0 = new FileSystemWatcher();
     this.timer_0 = new Timer(this.icontainer_0);
     this.toolStrip1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.fileSystemWatcher_0.BeginInit();
     base.SuspendLayout();
     this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.btnOpenDirectory, this.toolStripSeparator1, this.btnAddFile, this.btnDeleteFile, this.toolStripSeparator2, this.btnAddCommand, this.btnEditCommand, this.btnDeleteCommnad, this.toolStripSeparator3, this.btnSaveAll, this.toolStripSeparator4, this.btnFindCommand, this.toolStripSeparator5, this.btnHelp });
     this.toolStrip1.Location = new Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new Size(0x39b, 0x19);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text = "toolStrip1";
        // this.btnOpenDirectory.Image = Resources.openfolderHS;
     this.btnOpenDirectory.ImageTransparentColor = Color.Magenta;
     this.btnOpenDirectory.Name = "btnOpenDirectory";
     this.btnOpenDirectory.Size = new Size(0x5c, 0x16);
     this.btnOpenDirectory.Text = "打开目录(&D)";
     this.btnOpenDirectory.Click += new EventHandler(this.btnOpenDirectory_Click);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new Size(6, 0x19);
     //this.btnAddFile.Image = Resources.NewFolderHS;
     this.btnAddFile.ImageTransparentColor = Color.Magenta;
     this.btnAddFile.Name = "btnAddFile";
     this.btnAddFile.Size = new Size(0x5d, 0x16);
     this.btnAddFile.Text = "新增文件(&N)";
     this.btnAddFile.Click += new EventHandler(this.btnAddFile_Click);
     //this.btnDeleteFile.Image = Resources.DeleteFolderHS;
     this.btnDeleteFile.ImageTransparentColor = Color.Magenta;
     this.btnDeleteFile.Name = "btnDeleteFile";
     this.btnDeleteFile.Size = new Size(0x4b, 0x16);
     this.btnDeleteFile.Text = "删除文件";
     this.btnDeleteFile.Click += new EventHandler(this.btnDeleteFile_Click);
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new Size(6, 0x19);
        // this.btnAddCommand.Image = Resources.NewDocumentHS;
     this.btnAddCommand.ImageTransparentColor = Color.Magenta;
     this.btnAddCommand.Name = "btnAddCommand";
     this.btnAddCommand.Size = new Size(0x5b, 0x16);
     this.btnAddCommand.Text = "新增命令(&C)";
     this.btnAddCommand.Click += new EventHandler(this.menuAdd_Click);
     //this.btnEditCommand.Image = (Image) manager.GetObject("btnEditCommand.Image");
     this.btnEditCommand.ImageTransparentColor = Color.Magenta;
     this.btnEditCommand.Name = "btnEditCommand";
     this.btnEditCommand.Size = new Size(90, 0x16);
     this.btnEditCommand.Text = "修改命令(&E)";
     this.btnEditCommand.Click += new EventHandler(this.menuEdit_Click);
       //  this.btnDeleteCommnad.Image = Resources.DeleteHS;
     this.btnDeleteCommnad.ImageTransparentColor = Color.Magenta;
     this.btnDeleteCommnad.Name = "btnDeleteCommnad";
     this.btnDeleteCommnad.Size = new Size(0x4b, 0x16);
     this.btnDeleteCommnad.Text = "删除命令";
     this.btnDeleteCommnad.Click += new EventHandler(this.menuDelete_Click);
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new Size(6, 0x19);
       //  this.btnSaveAll.Image = Resources.SaveAllHS;
     this.btnSaveAll.ImageTransparentColor = Color.Magenta;
     this.btnSaveAll.Name = "btnSaveAll";
     this.btnSaveAll.Size = new Size(0x72, 0x16);
     this.btnSaveAll.Text = "保存所有修改(&S)";
     this.btnSaveAll.Click += new EventHandler(this.btnSaveAll_Click);
     this.toolStripSeparator4.Name = "toolStripSeparator4";
     this.toolStripSeparator4.Size = new Size(6, 0x19);
       //  this.btnFindCommand.Image = Resources.FindHS;
     this.btnFindCommand.ImageTransparentColor = Color.Magenta;
     this.btnFindCommand.Name = "btnFindCommand";
     this.btnFindCommand.Size = new Size(0x59, 0x16);
     this.btnFindCommand.Text = "查找命令(&F)";
     this.btnFindCommand.Click += new EventHandler(this.btnFindCommand_Click);
     this.toolStripSeparator5.Name = "toolStripSeparator5";
     this.toolStripSeparator5.Size = new Size(6, 0x19);
     this.btnHelp.DisplayStyle = ToolStripItemDisplayStyle.Image;
      //   this.btnHelp.Image = Resources.Help;
     this.btnHelp.ImageTransparentColor = Color.Magenta;
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.Size = new Size(0x17, 0x16);
     this.btnHelp.Text = "帮助页面";
     this.btnHelp.ToolTipText = "查看帮助页面";
     this.btnHelp.Click += new EventHandler(this.btnHelp_Click);
     this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.labCurrentPath, this.labMessage });
     this.statusStrip1.Location = new Point(0, 0x1dd);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new Size(0x39b, 0x18);
     this.statusStrip1.TabIndex = 1;
     this.statusStrip1.Text = "statusStrip1";
     this.labCurrentPath.BorderSides = ToolStripStatusLabelBorderSides.All;
     this.labCurrentPath.BorderStyle = Border3DStyle.SunkenOuter;
     this.labCurrentPath.ForeColor = Color.Tomato;
     this.labCurrentPath.IsLink = true;
     this.labCurrentPath.LinkBehavior = LinkBehavior.NeverUnderline;
     this.labCurrentPath.LinkColor = Color.Tomato;
     this.labCurrentPath.Name = "labCurrentPath";
     this.labCurrentPath.Size = new Size(0x61, 0x13);
     this.labCurrentPath.Text = "labCurrentPath";
     this.labCurrentPath.TextAlign = ContentAlignment.MiddleLeft;
     this.labCurrentPath.Click += new EventHandler(this.labCurrentPath_Click);
     this.labMessage.Name = "labMessage";
     this.labMessage.Size = new Size(0x32b, 0x13);
     this.labMessage.Spring = true;
     this.labMessage.Text = "Ready.";
     this.labMessage.TextAlign = ContentAlignment.MiddleLeft;
     this.treeView1.Dock = DockStyle.Left;
     this.treeView1.ImageIndex = 0;
     this.treeView1.ImageList = this.imageList_0;
     this.treeView1.Location = new Point(0, 0x19);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = 0;
     this.treeView1.Size = new Size(0xe3, 0x1c4);
     this.treeView1.TabIndex = 2;
     this.treeView1.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseDoubleClick);
     this.treeView1.AfterSelect += new TreeViewEventHandler(this.treeView1_AfterSelect);
     this.treeView1.NodeMouseClick += new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
     this.treeView1.KeyDown += new KeyEventHandler(this.treeView1_KeyDown);
     this.imageList_0.ColorDepth = ColorDepth.Depth8Bit;
     this.imageList_0.ImageSize = new Size(0x10, 0x10);
     this.imageList_0.TransparentColor = Color.Transparent;
     this.splitter1.Location = new Point(0xe3, 0x19);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new Size(7, 0x1c4);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop = false;
     this.panel1.Controls.Add(this.txtSQL);
     this.panel1.Controls.Add(this.splitter2);
     this.panel1.Controls.Add(this.txtXML);
     this.panel1.Dock = DockStyle.Fill;
     this.panel1.Location = new Point(0xea, 0x19);
     this.panel1.Name = "panel1";
     this.panel1.Size = new Size(0x2b1, 0x1c4);
     this.panel1.TabIndex = 4;
     this.txtSQL.Dock = DockStyle.Fill;
     this.txtSQL.Location = new Point(0, 0);
     this.txtSQL.Name = "txtSQL";
     this.txtSQL.Size = new Size(0x2b1, 0xc0);
     this.txtSQL.TabIndex = 2;
     this.splitter2.Dock = DockStyle.Bottom;
     this.splitter2.Location = new Point(0, 0xc0);
     this.splitter2.Name = "splitter2";
     this.splitter2.Size = new Size(0x2b1, 7);
     this.splitter2.TabIndex = 1;
     this.splitter2.TabStop = false;
     this.txtXML.Dock = DockStyle.Bottom;
     this.txtXML.SetLanguage("xml");
     this.txtXML.Location = new Point(0, 0xc7);
     this.txtXML.Name = "txtXML";
     this.txtXML.Size = new Size(0x2b1, 0xfd);
     this.txtXML.TabIndex = 0;
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.menuAdd, this.menuEdit, this.menuDelete, this.menuPaste, this.toolStripMenuItem1, this.menuCopyName, this.menuCopyXml, this.toolStripMenuItem2, this.menuGenerateCallCode });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new Size(0xb3, 170);
     this.contextMenuStrip1.Opening += new CancelEventHandler(this.contextMenuStrip1_Opening);
        // this.menuAdd.Image = Resources.NewDocumentHS;
     this.menuAdd.Name = "menuAdd";
     this.menuAdd.Size = new Size(0xb2, 0x16);
     this.menuAdd.Text = "新增命令";
     this.menuAdd.Click += new EventHandler(this.menuAdd_Click);
     //this.menuEdit.Image = Resources.EditTableHS;
     this.menuEdit.Name = "menuEdit";
     this.menuEdit.Size = new Size(0xb2, 0x16);
     this.menuEdit.Text = "修改命令";
     this.menuEdit.Click += new EventHandler(this.menuEdit_Click);
        // this.menuDelete.Image = Resources.DeleteHS;
     this.menuDelete.Name = "menuDelete";
     this.menuDelete.Size = new Size(0xb2, 0x16);
     this.menuDelete.Text = "删除命令";
     this.menuDelete.Click += new EventHandler(this.menuDelete_Click);
        // this.menuPaste.Image = Resources.PasteHS;
     this.menuPaste.Name = "menuPaste";
     this.menuPaste.Size = new Size(0xb2, 0x16);
     this.menuPaste.Text = "粘贴命令";
     this.menuPaste.Click += new EventHandler(this.menuPaste_Click);
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new Size(0xaf, 6);
        // this.menuCopyName.Image = Resources.CopyHS;
     this.menuCopyName.Name = "menuCopyName";
     this.menuCopyName.Size = new Size(0xb2, 0x16);
     this.menuCopyName.Text = "复制名称   Ctrl-C";
     this.menuCopyName.Click += new EventHandler(this.menuCopyName_Click);
     this.menuCopyXml.Name = "menuCopyXml";
     this.menuCopyXml.Size = new Size(0xb2, 0x16);
     this.menuCopyXml.Text = "复制节点XML";
     this.menuCopyXml.Click += new EventHandler(this.menuCopyXml_Click);
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new Size(0xaf, 6);
        // this.menuGenerateCallCode.Image = Resources.Bitmap_0;
     this.menuGenerateCallCode.Name = "menuGenerateCallCode";
     this.menuGenerateCallCode.Size = new Size(0xb2, 0x16);
     this.menuGenerateCallCode.Text = "生成调用代码   F12";
     this.menuGenerateCallCode.Click += new EventHandler(this.menuGenerateCallCode_Click);
     this.fileSystemWatcher_0.EnableRaisingEvents = true;
     this.fileSystemWatcher_0.SynchronizingObject = this;
     this.fileSystemWatcher_0.Deleted += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed);
     this.fileSystemWatcher_0.Created += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed);
     this.fileSystemWatcher_0.Changed += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed);
     this.timer_0.Enabled = true;
     this.timer_0.Interval = 500;
     this.timer_0.Tick += new EventHandler(this.timer_0_Tick);
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x39b, 0x1f5);
     base.Controls.Add(this.panel1);
     base.Controls.Add(this.splitter1);
     base.Controls.Add(this.treeView1);
     base.Controls.Add(this.statusStrip1);
     base.Controls.Add(this.toolStrip1);
     this.MinimumSize = new Size(700, 400);
     base.Name = "MainForm";
     this.Text = "FastDBEngine XmlCommandTool";
     base.WindowState = FormWindowState.Maximized;
     base.Load += new EventHandler(this.MainForm_Load);
     base.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.fileSystemWatcher_0.EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Example #46
0
        private void Initialize(Form form)
        {
            // Prevent initialize being called multiple times when we fail to
            // initialize.

            _initialized = true;

            // Take a reference to the main form. We use this for ownership.

            _mainForm = form;

            // Find the controls we're going to extend.

            var menuStrip = FindControl <MenuStrip>(form, p => true);
            var toolStrip = FindControl <ToolStrip>(form, p => p.Name == "ToolStrip");

            if (menuStrip == null)
            {
                throw new Exception("Cannot find main menu");
            }

            if (toolStrip == null)
            {
                throw new Exception("Cannot find main tool strip");
            }

            // Create the Edit .gitreview button.

            var repositoryMenu = (ToolStripMenuItem)menuStrip.Items.Cast <ToolStripItem>().SingleOrDefault(p => p.Name == "repositoryToolStripMenuItem");

            if (repositoryMenu == null)
            {
                throw new Exception("Cannot find Repository menu");
            }

            var mailMapMenuItem = repositoryMenu.DropDownItems.Cast <ToolStripItem>().SingleOrDefault(p => p.Name == "editmailmapToolStripMenuItem");

            if (mailMapMenuItem == null)
            {
                throw new Exception("Cannot find mailmap menu item");
            }

            _gitReviewMenuItem = new ToolStripMenuItem
            {
                Text = _editGitReview.Text
            };

            _gitReviewMenuItem.Click += gitReviewMenuItem_Click;

            repositoryMenu.DropDownItems.Insert(
                repositoryMenu.DropDownItems.IndexOf(mailMapMenuItem) + 1,
                _gitReviewMenuItem);

            // Create the toolstrip items.

            var pushMenuItem = toolStrip.Items.Cast <ToolStripItem>().SingleOrDefault(p => p.Name == "toolStripButtonPush");

            if (pushMenuItem == null)
            {
                throw new Exception("Cannot find push menu item");
            }

            int nextIndex = toolStrip.Items.IndexOf(pushMenuItem) + 1;

            var separator = new ToolStripSeparator();

            toolStrip.Items.Insert(nextIndex++, separator);

            var downloadMenuItem = new ToolStripButton
            {
                Text         = _downloadGerritChange.Text,
                Image        = Properties.Resources.GerritDownload,
                DisplayStyle = ToolStripItemDisplayStyle.Image,
                Visible      = false
            };

            downloadMenuItem.Click += downloadMenuItem_Click;

            toolStrip.Items.Insert(nextIndex++, downloadMenuItem);

            var publishMenuItem = new ToolStripButton
            {
                Text         = _publishGerritChange.Text,
                Image        = Properties.Resources.GerritPublish,
                DisplayStyle = ToolStripItemDisplayStyle.Image,
                Visible      = false
            };

            publishMenuItem.Click += publishMenuItem_Click;

            toolStrip.Items.Insert(nextIndex++, publishMenuItem);

            _installCommitMsgMenuItem = new ToolStripButton
            {
                Text         = _installCommitMsgHook.Text,
                ToolTipText  = _installCommitMsgHookShortText.Text,
                Image        = Properties.Resources.GerritInstallHook,
                DisplayStyle = ToolStripItemDisplayStyle.ImageAndText,
                Visible      = false
            };

            _installCommitMsgMenuItem.Click += installCommitMsgMenuItem_Click;

            toolStrip.Items.Insert(nextIndex++, _installCommitMsgMenuItem);

            // Keep a list of all items so we can show/hide them based in the
            // presence of the .gitreview file.

            _gerritMenuItems = new ToolStripItem[]
            {
                separator,
                downloadMenuItem,
                publishMenuItem
            };
        }
 private void InitializeComponent()
 {
     this.icontainer_0 = new Container();
     this.textEditorControl1 = new TextEditorControl();
     this.contextMenuStrip1 = new ContextMenuStrip(this.icontainer_0);
     this.menuUndo = new ToolStripMenuItem();
     this.menuRedo = new ToolStripMenuItem();
     this.toolStripMenuItem1 = new ToolStripSeparator();
     this.menuCut = new ToolStripMenuItem();
     this.menuCopy = new ToolStripMenuItem();
     this.menuPaste = new ToolStripMenuItem();
     this.menuDelete = new ToolStripMenuItem();
     this.toolStripMenuItem2 = new ToolStripSeparator();
     this.menuSelectAll = new ToolStripMenuItem();
     this.toolStripMenuItem3 = new ToolStripSeparator();
     this.menuFind = new ToolStripMenuItem();
     this.menuCopyAll = new ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     base.SuspendLayout();
     this.textEditorControl1.BorderStyle = BorderStyle.Fixed3D;
     this.textEditorControl1.ContextMenuStrip = this.contextMenuStrip1;
     this.textEditorControl1.Dock = DockStyle.Fill;
     this.textEditorControl1.IsReadOnly = false;
     this.textEditorControl1.Location = new Point(0, 0);
     this.textEditorControl1.Name = "textEditorControl1";
     this.textEditorControl1.ShowLineNumbers = false;
     this.textEditorControl1.ShowVRuler = false;
     this.textEditorControl1.Size = new Size(0x199, 0xd9);
     this.textEditorControl1.TabIndex = 0;
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.menuUndo, this.menuRedo, this.toolStripMenuItem1, this.menuCut, this.menuCopy, this.menuPaste, this.menuDelete, this.toolStripMenuItem2, this.menuSelectAll, this.menuCopyAll, this.toolStripMenuItem3, this.menuFind });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new Size(0xc3, 0xf2);
     this.contextMenuStrip1.Opening += new CancelEventHandler(this.contextMenuStrip1_Opening);
     this.menuUndo.Name = "menuUndo";
     this.menuUndo.Size = new Size(0xc2, 0x16);
     this.menuUndo.Text = "撤消";
     this.menuUndo.Click += new EventHandler(this.menuUndo_Click);
     this.menuRedo.Name = "menuRedo";
     this.menuRedo.Size = new Size(0xc2, 0x16);
     this.menuRedo.Text = "重做";
     this.menuRedo.Click += new EventHandler(this.menuRedo_Click);
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new Size(0xbf, 6);
     this.menuCut.Name = "menuCut";
     this.menuCut.Size = new Size(0xc2, 0x16);
     this.menuCut.Text = "剪切";
     this.menuCut.Click += new EventHandler(this.menuCut_Click);
     this.menuCopy.Name = "menuCopy";
     this.menuCopy.Size = new Size(0xc2, 0x16);
     this.menuCopy.Text = "复制";
     this.menuCopy.Click += new EventHandler(this.menuCopy_Click);
     this.menuPaste.Name = "menuPaste";
     this.menuPaste.Size = new Size(0xc2, 0x16);
     this.menuPaste.Text = "粘贴";
     this.menuPaste.Click += new EventHandler(this.menuPaste_Click);
     this.menuDelete.Name = "menuDelete";
     this.menuDelete.Size = new Size(0xc2, 0x16);
     this.menuDelete.Text = "删除";
     this.menuDelete.Click += new EventHandler(this.menuDelete_Click);
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new Size(0xbf, 6);
     this.menuSelectAll.Name = "menuSelectAll";
     this.menuSelectAll.Size = new Size(0xc2, 0x16);
     this.menuSelectAll.Text = "全选";
     this.menuSelectAll.Click += new EventHandler(this.menuSelectAll_Click);
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new Size(0xbf, 6);
     this.menuFind.Name = "menuFind";
     this.menuFind.Size = new Size(0xc2, 0x16);
     this.menuFind.Text = "查找 ...";
     this.menuFind.Click += new EventHandler(this.menuFind_Click);
     this.menuCopyAll.Name = "menuCopyAll";
     this.menuCopyAll.Size = new Size(0xc2, 0x16);
     this.menuCopyAll.Text = "复制全部文本到剪切板";
     this.menuCopyAll.Click += new EventHandler(this.menuCopyAll_Click);
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.textEditorControl1);
     base.Name = "SyntaxHighlighterControl";
     base.Size = new Size(0x199, 0xd9);
     this.contextMenuStrip1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Example #48
0
            public MainForm()
            {
                mainMenuStrip1        = new MenuStrip();
                File                  = new ToolStripMenuItem();
                openToolStripMenuItem = new ToolStripMenuItem();
                toolStripSeparator2   = new ToolStripSeparator();
                Dokument              = new ToolStripMenuItem();
                arveToolStripMenuItem = new ToolStripMenuItem();

                WareHouse     = new ToolStripMenuItem();
                Personnel     = new ToolStripMenuItem();
                Payroll       = new ToolStripMenuItem();
                FixedAssets   = new ToolStripMenuItem();
                Supplies      = new ToolStripMenuItem();
                GeneralLedger = new ToolStripMenuItem();
                Manufacturing = new ToolStripMenuItem();
                PointOfSale   = new ToolStripMenuItem();
                CardTerminal  = new ToolStripMenuItem();
                Rent          = new ToolStripMenuItem();
                WayBill       = new ToolStripMenuItem();
                CustomerRelationManagement = new ToolStripMenuItem();
                toolStripSeparator8        = new ToolStripSeparator();
                NewUserToolStripMenuItem   = new ToolStripMenuItem();
                exitToolStripMenuItem      = new ToolStripMenuItem();

                mainMenuStrip1.Items.AddRange(new ToolStripItem[] {
                    File
                });
                mainMenuStrip1.Location = new Point(0, 0);
                mainMenuStrip1.Name     = "mainMenuStrip1";
                mainMenuStrip1.Size     = new Size(644, 24);
                mainMenuStrip1.TabIndex = 3;
                mainMenuStrip1.Text     = "menuStrip1";
                File.DropDownItems.AddRange(new ToolStripItem[] {
                    openToolStripMenuItem,
                    toolStripSeparator2,
                    Dokument,
                    WareHouse,
                    Personnel,
                    Payroll,
                    FixedAssets,
                    Supplies,
                    GeneralLedger,
                    Manufacturing,
                    PointOfSale,
                    CardTerminal,
                    Rent,
                    WayBill,
                    CustomerRelationManagement,
                    toolStripSeparator8,
                    NewUserToolStripMenuItem,
                    exitToolStripMenuItem
                });
                File.MergeAction = MergeAction.Insert;
                File.MergeIndex  = 1;
                File.Name        = "File";
                File.Size        = new Size(35, 20);
                File.Text        = "&File";
                openToolStripMenuItem.MergeIndex = 1;
                openToolStripMenuItem.Name       = "openToolStripMenuItem";
                openToolStripMenuItem.Size       = new Size(196, 22);
                openToolStripMenuItem.Text       = "Open";
                toolStripSeparator2.MergeIndex   = 2;
                toolStripSeparator2.Name         = "toolStripSeparator2";
                toolStripSeparator2.Size         = new Size(193, 6);
                Dokument.DropDownItems.AddRange(new ToolStripItem[] {
                    arveToolStripMenuItem
                });
                Dokument.MergeIndex        = 3;
                Dokument.Name              = "Dokument";
                Dokument.Size              = new Size(196, 22);
                Dokument.Text              = "&Dokument";
                arveToolStripMenuItem.Name = "arveToolStripMenuItem";
                arveToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+E";
                arveToolStripMenuItem.ShortcutKeys             = ((Keys)((Keys.Control | Keys.E)));
                arveToolStripMenuItem.Size = new Size(146, 22);
                arveToolStripMenuItem.Text = "Arve";
                WareHouse.MergeIndex       = 4;
                WareHouse.Name             = "WareHouse";
                WareHouse.Size             = new Size(196, 22);
                WareHouse.Text             = "&Ladu";
                Personnel.MergeIndex       = 5;
                Personnel.Name             = "Personnel";
                Personnel.Size             = new Size(196, 22);
                Personnel.Text             = "&Kaader";
                Payroll.MergeIndex         = 6;
                Payroll.Name             = "Payroll";
                Payroll.Size             = new Size(196, 22);
                Payroll.Text             = "&Palk";
                FixedAssets.MergeIndex   = 7;
                FixedAssets.Name         = "FixedAssets";
                FixedAssets.Size         = new Size(196, 22);
                FixedAssets.Text         = "Test";
                Supplies.MergeIndex      = 8;
                Supplies.Name            = "Supplies";
                Supplies.Size            = new Size(196, 22);
                Supplies.Text            = "Sample";
                GeneralLedger.MergeIndex = 9;
                GeneralLedger.Name       = "GeneralLedger";
                GeneralLedger.Size       = new Size(196, 22);
                GeneralLedger.Text       = "Blah";
                Manufacturing.MergeIndex = 10;
                Manufacturing.Name       = "Manufacturing";
                Manufacturing.Size       = new Size(196, 22);
                Manufacturing.Text       = "&Tootmine";
                PointOfSale.MergeIndex   = 11;
                PointOfSale.Name         = "PointOfSale";
                PointOfSale.Size         = new Size(196, 22);
                PointOfSale.Text         = "IceCream";
                CardTerminal.MergeIndex  = 12;
                CardTerminal.Name        = "CardTerminal";
                CardTerminal.Size        = new Size(196, 22);
                CardTerminal.Text        = "Terminal";
                Rent.MergeIndex          = 13;
                Rent.Name          = "Rent";
                Rent.Size          = new Size(196, 22);
                Rent.Text          = "Rent";
                WayBill.MergeIndex = 14;
                WayBill.Name       = "WayBill";
                WayBill.Size       = new Size(196, 22);
                WayBill.Text       = "WayBill";
                CustomerRelationManagement.MergeIndex = 15;
                CustomerRelationManagement.Name       = "CustomerRelationManagement";
                CustomerRelationManagement.Size       = new Size(196, 22);
                CustomerRelationManagement.Text       = "CustomerRelationManagement";
                toolStripSeparator8.MergeAction       = MergeAction.Insert;
                toolStripSeparator8.MergeIndex        = 20;
                toolStripSeparator8.Name              = "toolStripSeparator8";
                toolStripSeparator8.Size              = new Size(193, 6);
                NewUserToolStripMenuItem.MergeIndex   = 21;
                NewUserToolStripMenuItem.Name         = "NewUserToolStripMenuItem";
                NewUserToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Shift |
                                                                 Keys.F2)));
                NewUserToolStripMenuItem.Size    = new Size(196, 22);
                NewUserToolStripMenuItem.Text    = "Uus kasutaja";
                exitToolStripMenuItem.MergeIndex = 22;
                exitToolStripMenuItem.Name       = "exitToolStripMenuItem";
                exitToolStripMenuItem.Size       = new Size(196, 22);
                exitToolStripMenuItem.Text       = "Exit";

                AutoScaleDimensions   = new SizeF(6F, 13F);
                AutoScaleMode         = AutoScaleMode.Font;
                BackgroundImageLayout = ImageLayout.Center;
                ClientSize            = new Size(644, 396);
                Controls.Add(mainMenuStrip1);
                IsMdiContainer = true;
                KeyPreview     = false;
                MainMenuStrip  = mainMenuStrip1;
                Name           = "MainForm";
            }
Example #49
0
            public Childform()
            {
                menuStrip1                 = new MenuStrip();
                fileToolStripMenuItem      = new ToolStripMenuItem();
                toolStripSeparator         = new ToolStripSeparator();
                printToolStripMenuItem     = new ToolStripMenuItem();
                editToolStripMenuItem      = new ToolStripMenuItem();
                toolStripSeparator3        = new ToolStripSeparator();
                copyToolStripMenuItem      = new ToolStripMenuItem();
                toolStripSeparator4        = new ToolStripSeparator();
                selectAllToolStripMenuItem = new ToolStripMenuItem();
                toolsToolStripMenuItem     = new ToolStripMenuItem();
                addToolStripMenuItem       = new ToolStripMenuItem();
                deleteToolStripMenuItem    = new ToolStripMenuItem();
                filterToolStripMenuItem    = new ToolStripMenuItem();
                helpToolStripMenuItem      = new ToolStripMenuItem();
                searchToolStripMenuItem    = new ToolStripMenuItem();
                menuStrip1.SuspendLayout();
                SuspendLayout();

                menuStrip1.Items.AddRange(new ToolStripItem[] {
                    fileToolStripMenuItem,
                    editToolStripMenuItem,
                    toolsToolStripMenuItem,
                    helpToolStripMenuItem
                });
                menuStrip1.Location   = new Point(0, 0);
                menuStrip1.Name       = "menuStrip1";
                menuStrip1.RenderMode = ToolStripRenderMode.System;
                menuStrip1.Size       = new Size(337, 24);
                menuStrip1.TabIndex   = 2;
                menuStrip1.Text       = "menuStrip1";
                menuStrip1.Visible    = false;

                fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
                    toolStripSeparator,
                    printToolStripMenuItem
                });
                fileToolStripMenuItem.MergeAction   = MergeAction.MatchOnly;
                fileToolStripMenuItem.Name          = "fileToolStripMenuItem";
                fileToolStripMenuItem.Size          = new Size(35, 20);
                fileToolStripMenuItem.Text          = "&File";
                toolStripSeparator.MergeAction      = MergeAction.Insert;
                toolStripSeparator.MergeIndex       = 3;
                toolStripSeparator.Name             = "toolStripSeparator";
                toolStripSeparator.Size             = new Size(149, 6);
                printToolStripMenuItem.MergeAction  = MergeAction.Insert;
                printToolStripMenuItem.MergeIndex   = 2;
                printToolStripMenuItem.Name         = "printToolStripMenuItem";
                printToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control |
                                                               Keys.P)));
                printToolStripMenuItem.Size = new Size(152, 22);
                printToolStripMenuItem.Text = "&Print";
                editToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
                    toolStripSeparator3,
                    copyToolStripMenuItem,
                    toolStripSeparator4,
                    selectAllToolStripMenuItem
                });
                editToolStripMenuItem.MergeAction  = MergeAction.Insert;
                editToolStripMenuItem.MergeIndex   = 1;
                editToolStripMenuItem.Name         = "editToolStripMenuItem";
                editToolStripMenuItem.Size         = new Size(59, 20);
                editToolStripMenuItem.Text         = "&Paranda";
                toolStripSeparator3.Name           = "toolStripSeparator3";
                toolStripSeparator3.Size           = new Size(157, 6);
                copyToolStripMenuItem.Name         = "copyToolStripMenuItem";
                copyToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control | Keys.C)));
                copyToolStripMenuItem.Size         = new Size(160, 22);
                copyToolStripMenuItem.Text         = "Kopeeri";
                toolStripSeparator4.Name           = "toolStripSeparator4";
                toolStripSeparator4.Size           = new Size(157, 6);
                selectAllToolStripMenuItem.Name    = "selectAllToolStripMenuItem";
                selectAllToolStripMenuItem.Size    = new Size(160, 22);
                selectAllToolStripMenuItem.Text    = "selectAllToolStripMenuItem";
                toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
                    addToolStripMenuItem,
                    deleteToolStripMenuItem,
                    filterToolStripMenuItem
                });
                toolsToolStripMenuItem.MergeAction   = MergeAction.Insert;
                toolsToolStripMenuItem.MergeIndex    = 2;
                toolsToolStripMenuItem.Name          = "toolsToolStripMenuItem";
                toolsToolStripMenuItem.Size          = new Size(60, 20);
                toolsToolStripMenuItem.Text          = "&Tegevus";
                addToolStripMenuItem.Name            = "addToolStripMenuItem";
                addToolStripMenuItem.ShortcutKeys    = ((Keys)((Keys.Control | Keys.N)));
                addToolStripMenuItem.Size            = new Size(160, 22);
                addToolStripMenuItem.Text            = "Lisa";
                deleteToolStripMenuItem.Name         = "deleteToolStripMenuItem";
                deleteToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control |
                                                                Keys.T)));
                deleteToolStripMenuItem.Size = new Size(160, 22);
                deleteToolStripMenuItem.Text = "Kustuta";
                filterToolStripMenuItem.ImageTransparentColor =
                    Color.Silver;
                filterToolStripMenuItem.Name         = "filterToolStripMenuItem";
                filterToolStripMenuItem.ShortcutKeys = Keys.F11;
                filterToolStripMenuItem.Size         = new Size(160, 22);
                filterToolStripMenuItem.Text         = "Tingimus";
                helpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
                    searchToolStripMenuItem
                });
                helpToolStripMenuItem.MergeAction    = MergeAction.MatchOnly;
                helpToolStripMenuItem.Name           = "helpToolStripMenuItem";
                helpToolStripMenuItem.Size           = new Size(34, 20);
                helpToolStripMenuItem.Text           = "&Abi";
                searchToolStripMenuItem.MergeAction  = MergeAction.Insert;
                searchToolStripMenuItem.MergeIndex   = 1;
                searchToolStripMenuItem.Name         = "searchToolStripMenuItem";
                searchToolStripMenuItem.ShortcutKeys = Keys.F1;
                searchToolStripMenuItem.Size         = new Size(160, 22);
                searchToolStripMenuItem.Text         = "&Otsi teemat";

                AutoScaleDimensions = new SizeF(6F, 13F);
                ClientSize          = new Size(337, 272);
                Controls.Add(menuStrip1);
            }
Example #50
0
        private void HandleContextMenu()
        {
            _contextMenuStrip.Items.Clear();

            int iconSize = (int)(24 * ScalingTools.GetScaleFactor());

            var item = new ToolStripMenuItem("Show Status");

            item.ToolTipText = @"Enable/Disable the preview status bar.";

            if (_showStatus)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _showStatus = !_showStatus;
                ConfigureStatusBar();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Show Borders");
            item.ToolTipText = @"Enable/Disable the preview borders.";

            if (_showBorders)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _showBorders = !_showBorders;
                ConfigureBorders();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Lock Position");
            item.ToolTipText = @"Enable/Disable the window position lock.";

            if (_lockPosition)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _lockPosition = !_lockPosition;
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Always On Top");
            item.ToolTipText = @"Enable/Disable the window always on top.";

            if (_alwaysOnTop)
            {
                item.Image = Tools.GetIcon(Resources.check_mark, iconSize);;
            }

            item.Click += (sender, args) =>
            {
                _alwaysOnTop = !_alwaysOnTop;
                ConfigureAlwaysOnTop();
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Reset Size");
            item.ToolTipText = @"Resets the viewable size to match the background size.";

            item.Click += (sender, args) =>
            {
                Size s = gdiControl.BackgroundSize;
                ClientSize = new Size(s.Width, s.Height + (statusStrip.Visible?statusStrip.Height:0));
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            item             = new ToolStripMenuItem("Reset Zoom");
            item.ToolTipText = @"Resets the Zoom to 100%.";

            item.Click += (sender, args) =>
            {
                ZoomLevel = 1;
                SaveWindowState();
            };

            _contextMenuStrip.Items.Add(item);

            var seperator = new ToolStripSeparator();

            _contextMenuStrip.Items.Add(seperator);

            var locationLabel = new ToolStripLabel(string.Format("Location: {0},{1}", DesktopLocation.X, DesktopLocation.Y));

            _contextMenuStrip.Items.Add(locationLabel);

            var sizeLabel = new ToolStripLabel(string.Format("Size: {0} X {1}", ClientSize.Width, ClientSize.Height));

            _contextMenuStrip.Items.Add(sizeLabel);

            _contextMenuStrip.Show(MousePosition);
        }
            private void CreateChartContextMenu()
            {
                ChartToolZoomOut = new ToolStripMenuItem("Zoom Out");
                ChartToolZoomOutSeparator = new ToolStripSeparator();
                ChartToolSelect = new ToolStripMenuItem("Select");
                ChartToolZoom = new ToolStripMenuItem("Zoom");
                ChartToolZoomX = new ToolStripMenuItem("Zoom XAxis");
                ChartToolPan = new ToolStripMenuItem("Pan");
                ChartContextSeparator = new ToolStripSeparator();

                MenuItems = new List<ToolStripItem>();
                MenuItems.Add(ChartToolZoomOut);
                MenuItems.Add(ChartToolZoomOutSeparator);
                MenuItems.Add(ChartToolSelect);
                MenuItems.Add(ChartToolZoom);
                MenuItems.Add(ChartToolZoomX);
                MenuItems.Add(ChartToolPan);
                MenuItems.Add(ChartContextSeparator);

                StateMenu = new Dictionary<MSChartExtensionToolState, ToolStripMenuItem>
                {
                    {MSChartExtensionToolState.Select, ChartToolSelect},
                    {MSChartExtensionToolState.Pan, ChartToolPan},
                    {MSChartExtensionToolState.Zoom, ChartToolZoom},
                    {MSChartExtensionToolState.ZoomX, ChartToolZoomX}
                };
            }
Example #52
0
        /// <summary>
        /// 初始化报表菜单
        /// </summary>
        private void CreateMenu()
        {
            //初始化报表类型
            conn.Open();
            dtReport = new DataTable();
            dtReport.Load(new SqlCommand("SELECT * FROM sysReport WHERE ReportGUID='" + rpGUID + "' ORDER BY ReportName", conn).ExecuteReader());
            tsmChooseDetail = new ToolStripMenuItem[dtReport.Rows.Count];
            for (int i = 0; i < dtReport.Rows.Count; i++)
            {
                if (Convert.ToBoolean(dtReport.Rows[i]["IsDefault"]))
                {
                    tsmChooseDetail.SetValue(new ToolStripMenuItem(dtReport.Rows[i]["ReportName"].ToString() + "(默认)"),i);
                    tsmChooseDetail[i].Name = dtReport.Rows[i]["ID"].ToString();
                    tsmChooseDetail[i].Checked = true;
                    iDefaultChecked = i;
                    iOldID = i;
                    bt = (byte[])dtReport.Rows[i]["Report"];
                }
                else
                {
                    tsmChooseDetail.SetValue(new ToolStripMenuItem(dtReport.Rows[i]["ReportName"].ToString()), i);
                    tsmChooseDetail[i].Name = dtReport.Rows[i]["ID"].ToString();

                }
            }
            conn.Close();
            menubtnPrint = new ContextMenuStrip();
            tsmPrintReport = new ToolStripMenuItem("打印");
            tsmChooseReport = new ToolStripMenuItem("选择报表");
            tsmDesginReport = new ToolStripMenuItem("设计报表");
            tsmAddReport = new ToolStripMenuItem("新增报表");
            tsmPreviewReport = new ToolStripMenuItem("打印预览");
            ToolStripSeparator tss1 = new ToolStripSeparator();
            ToolStripSeparator tss2 = new ToolStripSeparator();
            tsmChooseReport.DropDownItems.AddRange(tsmChooseDetail);
            menubtnPrint.Items.Add(tsmPrintReport);
            menubtnPrint.Items.Add(tss1);
            menubtnPrint.Items.Add(tsmChooseReport);
            //权限控制,只有管理员才拥有设计报表和新增报表权限
            if (sAuth == "admin")
            {
                menubtnPrint.Items.Add(tsmDesginReport);
                menubtnPrint.Items.Add(tsmAddReport);
            }
            menubtnPrint.Items.Add(tss2);
            menubtnPrint.Items.Add(tsmPreviewReport);
            //代理打印预览事件
            tsmPreviewReport.Click += new EventHandler(tsmPreviewReport_Click);
            //代理报表设计事件
            tsmDesginReport.Click += new EventHandler(tsmDesginReport_Click);
            //代理选择报表事件
            tsmChooseReport.DropDown.ItemClicked += new ToolStripItemClickedEventHandler(DropDown_ItemClicked);
            //代理打印事件
            tsmPrintReport.Click += new EventHandler(tsmPrintReport_Click);
            //代理新增事件
            tsmAddReport.Click += new EventHandler(tsmAddReport_Click);
        }