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);
    }
Esempio n. 3
0
	public MainForm ()
	{
#if NET_2_0
		// 
		// _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);
		// 
		// _toolStripComboBox
		// 
		_toolStripComboBox = new ToolStripComboBox ();
		_toolStripComboBox.Text = "ComboBox";
		_toolStrip.Items.Add (_toolStripComboBox);
#endif
		// 
		// _comboBox
		// 
		_comboBox = new ComboBox ();
		_comboBox.Location = new Point (8, 40);
		_comboBox.Size = new Size (100, 20);
		_comboBox.Text = "ComboBox";
		Controls.Add (_comboBox);
		// 
		// _enabledCheckBox
		// 
		_enabledCheckBox = new CheckBox ();
		_enabledCheckBox.Checked = true;
		_enabledCheckBox.Location = new Point (8, 75);
		_enabledCheckBox.Size = new Size (70, 20);
		_enabledCheckBox.Text = "Enabled";
		_enabledCheckBox.CheckedChanged += new EventHandler (EnabledCheckBox_CheckedChanged);
		Controls.Add (_enabledCheckBox);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 100);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82654";
		Load += new EventHandler (MainForm_Load);
	}
        private void UpdateControlStates(object control, WriterCommand command)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }
            WriterCommandEventArgs args = new WriterCommandEventArgs(
                this.EditControl,
                this.Document,
                WriterCommandEventMode.QueryState);

            args.UIElement = control;
            command.Invoke(args);
            if (control is System.Windows.Forms.Control)
            {
                System.Windows.Forms.Control ctl = (System.Windows.Forms.Control)control;
                if (command == null)
                {
                    ctl.Enabled = false;
                    ctl.Visible = false;
                }
                else
                {
                    ctl.Enabled = args.Enabled;
                    ctl.Visible = args.Visible;
                    if (ctl is CheckBox)
                    {
                        ((CheckBox)ctl).Checked = args.Checked;
                    }
                    else if (ctl is RadioButton)
                    {
                        ((RadioButton)ctl).Checked = args.Checked;
                    }
                }
            }
            else if (control is System.Windows.Forms.ToolStripItem)
            {
                System.Windows.Forms.ToolStripItem item =
                    (System.Windows.Forms.ToolStripItem)control;
                if (command == null)
                {
                    item.Enabled = false;
                    item.Visible = false;
                }
                else
                {
                    item.Enabled = args.Enabled;
                    item.Visible = args.Visible;
                    if (item is System.Windows.Forms.ToolStripButton)
                    {
                        ((ToolStripButton)item).Checked = args.Checked;
                    }
                    else if (item is ToolStripMenuItem)
                    {
                        ((ToolStripMenuItem)item).Checked = args.Checked;
                    }
                    else if (item is ToolStripComboBox)
                    {
                        ToolStripComboBox cbo = (ToolStripComboBox)item;
                        cbo.Text = Convert.ToString(args.Parameter);
                    }
                    else if (item is ToolStripTextBox)
                    {
                        ToolStripTextBox txt = (ToolStripTextBox)item;
                        txt.Text = Convert.ToString(args.Parameter);
                    }
                }
            }
            else if (control is MenuItem)
            {
                MenuItem item = (MenuItem)control;
                if (command == null)
                {
                    item.Enabled = false;
                    item.Visible = false;
                }
                else
                {
                    item.Enabled = args.Enabled;
                    item.Visible = args.Visible;
                    item.Checked = args.Checked;
                }
            }
            args.Mode      = WriterCommandEventMode.UpdateUIElement;
            args.UIElement = control;
            command.Invoke(args);
        }
Esempio n. 5
0
        public ToolStripDemo()
        {
            this.Text          = "ToolStrip Notepad Sample";
            this.Size          = new Size(750, 450);
            this.StartPosition = FormStartPosition.CenterScreen;

            image_path = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "images");

            rtb             = new TextBox();
            rtb.Multiline   = true;
            rtb.Dock        = DockStyle.Fill;
            rtb.BorderStyle = BorderStyle.FixedSingle;
            rtb.MouseUp    += new MouseEventHandler(rtb_MouseUp);
            this.Controls.Add(rtb);

            ts = new ToolStrip();
            this.Controls.Add(ts);

            Image           image1 = Image.FromFile(Path.Combine(image_path, "document-new.png"));
            ToolStripButton tb1    = new ToolStripButton("&New Document", image1, new EventHandler(New_Document_Clicked));

            tb1.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ts.Items.Add(tb1);

            Image           image2 = Image.FromFile(Path.Combine(image_path, "document-open.png"));
            ToolStripButton tb2    = new ToolStripButton("&Open Document", image2, new EventHandler(Open_Document_Clicked));

            tb2.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ts.Items.Add(tb2);

            Image           image3 = Image.FromFile(Path.Combine(image_path, "document-save.png"));
            ToolStripButton tb3    = new ToolStripButton("&Save Document", image3, new EventHandler(Save_Document_Clicked));

            tb3.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ts.Items.Add(tb3);

            ts.Items.Add(new ToolStripSeparator());

            Image           image5 = Image.FromFile(Path.Combine(image_path, "edit-cut.png"));
            ToolStripButton tb5    = new ToolStripButton("Cut", image5, new EventHandler(Cut_Clicked), "Cut");

            tb5.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tb5.Enabled      = false;
            ts.Items.Add(tb5);

            Image           image6 = Image.FromFile(Path.Combine(image_path, "edit-copy.png"));
            ToolStripButton tb6    = new ToolStripButton("Copy", image6, new EventHandler(Copy_Clicked), "Copy");

            tb6.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ts.Items.Add(tb6);

            Image           image7 = Image.FromFile(Path.Combine(image_path, "edit-paste.png"));
            ToolStripButton tb7    = new ToolStripButton("Paste", image7, new EventHandler(Paste_Clicked));

            tb7.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ts.Items.Add(tb7);

            ts.Items.Add(new ToolStripSeparator());

            ToolStripLabel tsl = new ToolStripLabel("Font:");

            ts.Items.Add(tsl);

            font_combo = new ToolStripComboBox();
            font_combo.DropDownStyle = ComboBoxStyle.DropDownList;
            font_combo.AutoSize      = false;
            font_combo.Width         = 150;
            InstalledFontCollection ifc = new InstalledFontCollection();

            foreach (FontFamily f in ifc.Families)
            {
                if (f.IsStyleAvailable(FontStyle.Regular))
                {
                    font_combo.Items.Add(f.Name);
                }
            }

            font_combo.SelectedIndexChanged += new EventHandler(font_combo_SelectedIndexChanged);
            ts.Items.Add(font_combo);

            tscb = new ToolStripComboBox();
            tscb.DropDownStyle = ComboBoxStyle.DropDownList;
            tscb.Items.Add("6");
            tscb.Items.Add("8");
            tscb.Items.Add("10");
            tscb.Items.Add("12");
            tscb.Items.Add("14");
            tscb.Items.Add("16");
            tscb.Items.Add("18");
            tscb.SelectedIndexChanged += new EventHandler(tscb_SelectedIndexChanged);
            tscb.AutoSize              = false;
            tscb.Width = 45;

            ts.Items.Add(tscb);

            Image image10 = Image.FromFile(Path.Combine(image_path, "image-x-generic.png"));

            font_combo.SelectedIndex = font_combo.FindStringExact(rtb.Font.Name);
            tscb.SelectedIndex       = tscb.FindStringExact(rtb.Font.Size.ToString());

            ms      = new MenuStrip();
            ms.Dock = DockStyle.Top;
            this.Controls.Add(ms);

            // Top level menu
            ToolStripMenuItem mi  = new ToolStripMenuItem("File");
            ToolStripMenuItem mi2 = new ToolStripMenuItem("Edit");
            ToolStripMenuItem mi3 = new ToolStripMenuItem("View");
            ToolStripMenuItem mi4 = new ToolStripMenuItem("Tools");
            ToolStripMenuItem mi5 = new ToolStripMenuItem("Help");

            ms.Items.Add(mi);
            ms.Items.Add(mi2);
            ms.Items.Add(mi3);
            ms.Items.Add(mi4);
            ms.Items.Add(mi5);

            // File menu items
            mi.DropDownItems.Add("New", image1, new EventHandler(New_Document_Clicked));
            mi.DropDownItems.Add("Open", image2, new EventHandler(Open_Document_Clicked));
            mi.DropDownItems.Add("Save", image3, new EventHandler(Save_Document_Clicked));
            mi.DropDownItems.Add("-");
            mi.DropDownItems.Add("Exit", null, new EventHandler(Exit_Clicked));

            // Edit menu items
            mi2.DropDownItems.Add("Undo", null, new EventHandler(Undo_Clicked));
            mi2.DropDownItems.Add("-");
            mi2.DropDownItems.Add("Cut", image5, new EventHandler(Cut_Clicked)).Name   = "Cut";
            mi2.DropDownItems.Add("Copy", image6, new EventHandler(Copy_Clicked)).Name = "Copy";
            mi2.DropDownItems.Add("Paste", image7, new EventHandler(Paste_Clicked));

            // View menu items
            ToolStripMenuItem WordWrapMenuItem = (ToolStripMenuItem)mi3.DropDownItems.Add("Word Wrap");

            WordWrapMenuItem.CheckOnClick    = true;
            WordWrapMenuItem.CheckedChanged += new EventHandler(WordWrap_CheckStateChanged);
            WordWrapMenuItem.Checked         = true;

            ToolStripMenuItem ToolStripStyleMenuItem = (ToolStripMenuItem)mi3.DropDownItems.Add("ToolStrip Style", image10);

            // ToolStripStyle sub menu items
            ToolStripStyleMenuItem.DropDownItems.Add("Image", null, new EventHandler(Change_Style_Clicked));
            ToolStripStyleMenuItem.DropDownItems.Add("Image and Text", null, new EventHandler(Change_Style_Clicked));
            ToolStripStyleMenuItem.DropDownItems.Add("Text", null, new EventHandler(Change_Style_Clicked));
            ToolStripStyleMenuItem.DropDownItems.Add("None", null, new EventHandler(Change_Style_Clicked));

            (ToolStripStyleMenuItem.DropDownItems[0] as ToolStripMenuItem).Checked = true;

            // Help menu items
            mi5.DropDownItems.Add("Contents", null, new EventHandler(NotImplemented));
            mi5.DropDownItems.Add("Search", null, new EventHandler(NotImplemented));
            mi5.DropDownItems.Add("-");
            mi5.DropDownItems.Add("About", null, new EventHandler(NotImplemented));

            rtb_MouseUp(null, null);
        }
Esempio n. 6
0
 public ComboBoxItem(ToolStripComboBox comboBox)
 {
     m_Box = comboBox;
 }
Esempio n. 7
0
 public static void InitializeSubtitleFormatComboBox(ToolStripComboBox comboBox, SubtitleFormat format)
 {
     InitializeSubtitleFormatComboBox(comboBox.ComboBox, format);
     comboBox.DropDownWidth += 5; // .Net quirk?
 }
Esempio n. 8
0
        private ToolStrip CreateNewNoteTypeToolStrip(NoteView noteView)
        {
            var tapButton = new ToolStripButton("TAP", Resources.TapIcon, (s, e) => noteView.NewNoteType = NoteType.Tap)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var exTapButton = new ToolStripButton("ExTAP", Resources.ExTapIcon, (s, e) => noteView.NewNoteType = NoteType.ExTap)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var holdButton = new ToolStripButton("HOLD", Resources.HoldIcon, (s, e) => noteView.NewNoteType = NoteType.Hold)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var slideButton = new ToolStripButton("SLIDE", Resources.SlideIcon, (s, e) =>
            {
                noteView.NewNoteType           = NoteType.Slide;
                noteView.IsNewSlideStepVisible = false;
            })
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var slideStepButton = new ToolStripButton(MainFormStrings.SlideStep, Resources.SlideStepIcon, (s, e) =>
            {
                noteView.NewNoteType           = NoteType.Slide;
                noteView.IsNewSlideStepVisible = true;
            })
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var airActionButton = new ToolStripButton("AIR-ACTION", Resources.AirActionIcon, (s, e) => noteView.NewNoteType = NoteType.AirAction)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var flickButton = new ToolStripButton("FLICK", Resources.FlickIcon, (s, e) => noteView.NewNoteType = NoteType.Flick)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };
            var damageButton = new ToolStripButton("DAMAGE", Resources.DamgeIcon, (s, e) => noteView.NewNoteType = NoteType.Damage)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };

            var airKind = new CheckableToolStripSplitButton()
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image
            };

            airKind.Text   = "AIR";
            airKind.Click += (s, e) => noteView.NewNoteType = NoteType.Air;
            airKind.DropDown.Items.AddRange(new ToolStripItem[]
            {
                new ToolStripMenuItem(MainFormStrings.AirUp, Resources.AirUpIcon, (s, e) => noteView.AirDirection               = new AirDirection(VerticalAirDirection.Up, HorizontalAirDirection.Center)),
                new ToolStripMenuItem(MainFormStrings.AirLeftUp, Resources.AirLeftUpIcon, (s, e) => noteView.AirDirection       = new AirDirection(VerticalAirDirection.Up, HorizontalAirDirection.Left)),
                new ToolStripMenuItem(MainFormStrings.AirRightUp, Resources.AirRightUpIcon, (s, e) => noteView.AirDirection     = new AirDirection(VerticalAirDirection.Up, HorizontalAirDirection.Right)),
                new ToolStripMenuItem(MainFormStrings.AirDown, Resources.AirDownIcon, (s, e) => noteView.AirDirection           = new AirDirection(VerticalAirDirection.Down, HorizontalAirDirection.Center)),
                new ToolStripMenuItem(MainFormStrings.AirLeftDown, Resources.AirLeftDownIcon, (s, e) => noteView.AirDirection   = new AirDirection(VerticalAirDirection.Down, HorizontalAirDirection.Left)),
                new ToolStripMenuItem(MainFormStrings.AirRightDown, Resources.AirRightDownIcon, (s, e) => noteView.AirDirection = new AirDirection(VerticalAirDirection.Down, HorizontalAirDirection.Right))
            });
            airKind.Image = Resources.AirUpIcon;

            var quantizeTicks = new int[]
            {
                4, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192
            };
            var quantizeComboBox = new ToolStripComboBox("クォンタイズ")
            {
                DropDownStyle = ComboBoxStyle.DropDownList,
                AutoSize      = false,
                Width         = 80
            };

            quantizeComboBox.Items.AddRange(quantizeTicks.Select(p => p + MainFormStrings.Division).ToArray());
            quantizeComboBox.Items.Add(MainFormStrings.Custom);
            quantizeComboBox.SelectedIndexChanged += (s, e) =>
            {
                if (quantizeComboBox.SelectedIndex == quantizeComboBox.Items.Count - 1)
                {
                    // ユーザー定義
                    var form = new CustomQuantizeSelectionForm(ScoreBook.Score.TicksPerBeat * 4);
                    if (form.ShowDialog(this) == DialogResult.OK)
                    {
                        noteView.QuantizeTick = form.QuantizeTick;
                    }
                }
                else
                {
                    noteView.QuantizeTick = noteView.UnitBeatTick * 4 / quantizeTicks[quantizeComboBox.SelectedIndex];
                }
                noteView.Focus();
            };
            quantizeComboBox.SelectedIndex = 1;

            noteView.NewNoteTypeChanged += (s, e) =>
            {
                tapButton.Checked       = noteView.NewNoteType.HasFlag(NoteType.Tap);
                exTapButton.Checked     = noteView.NewNoteType.HasFlag(NoteType.ExTap);
                holdButton.Checked      = noteView.NewNoteType.HasFlag(NoteType.Hold);
                slideButton.Checked     = noteView.NewNoteType.HasFlag(NoteType.Slide) && !noteView.IsNewSlideStepVisible;
                slideStepButton.Checked = noteView.NewNoteType.HasFlag(NoteType.Slide) && noteView.IsNewSlideStepVisible;
                airKind.Checked         = noteView.NewNoteType.HasFlag(NoteType.Air);
                airActionButton.Checked = noteView.NewNoteType.HasFlag(NoteType.AirAction);
                flickButton.Checked     = noteView.NewNoteType.HasFlag(NoteType.Flick);
                damageButton.Checked    = noteView.NewNoteType.HasFlag(NoteType.Damage);
            };

            noteView.AirDirectionChanged += (s, e) =>
            {
                switch (noteView.AirDirection.HorizontalDirection)
                {
                case HorizontalAirDirection.Center:
                    airKind.Image = noteView.AirDirection.VerticalDirection == VerticalAirDirection.Up ? Resources.AirUpIcon : Resources.AirDownIcon;
                    break;

                case HorizontalAirDirection.Left:
                    airKind.Image = noteView.AirDirection.VerticalDirection == VerticalAirDirection.Up ? Resources.AirLeftUpIcon : Resources.AirLeftDownIcon;
                    break;

                case HorizontalAirDirection.Right:
                    airKind.Image = noteView.AirDirection.VerticalDirection == VerticalAirDirection.Up ? Resources.AirRightUpIcon : Resources.AirRightDownIcon;
                    break;
                }
            };

            return(new ToolStrip(new ToolStripItem[]
            {
                tapButton, exTapButton, holdButton, slideButton, slideStepButton, airKind, airActionButton, flickButton, damageButton,
                quantizeComboBox
            }));
        }
Esempio n. 9
0
        public void InitializeComponent()
        {
            this._clear            = new System.Windows.Forms.ToolStripButton();
            this._sep1             = new System.Windows.Forms.ToolStripSeparator();
            this._queryWindow      = new System.Windows.Forms.ToolStripButton();
            this._queryGeometry    = new System.Windows.Forms.ToolStripButton();
            this._sep2             = new System.Windows.Forms.ToolStripSeparator();
            this._queryLayerPicker = new System.Windows.Forms.ToolStripComboBox();
            this.SuspendLayout();
            //
            // _clear
            //
            this._clear.Image = global::SharpMap.Properties.Resources.layer_delete;
            this._clear.Name  = "_clear";
            this._clear.Size  = new System.Drawing.Size(23, 22);
            //
            // _sep1
            //
            this._sep1.Name = "_sep1";
            this._sep1.Size = new System.Drawing.Size(6, 25);
            //
            // _queryWindow
            //
            this._queryWindow.CheckOnClick    = true;
            this._queryWindow.Image           = global::SharpMap.Properties.Resources.rectangle_edit;
            this._queryWindow.Name            = "_queryWindow";
            this._queryWindow.CheckedChanged += OnCheckedChanged;
            this._queryWindow.Size            = new System.Drawing.Size(23, 22);
            //
            // _queryGeometry
            //
            this._queryGeometry.CheckOnClick    = true;
            this._queryGeometry.Image           = global::SharpMap.Properties.Resources.query_spatial_vector;
            this._queryGeometry.Name            = "_queryGeometry";
            this._queryGeometry.Size            = new System.Drawing.Size(23, 20);
            this._queryGeometry.CheckedChanged += OnCheckedChanged;
            //
            // _sep2
            //
            this._sep2.Name = "_sep2";
            this._sep2.Size = new System.Drawing.Size(6, 6);
            //
            // _queryLayerPicker
            //
            this._queryLayerPicker.Name                  = "_queryLayerPicker";
            this._queryLayerPicker.Size                  = new System.Drawing.Size(121, 21);
            this._queryLayerPicker.DropDownStyle         = ComboBoxStyle.DropDownList;
            this._queryLayerPicker.SelectedIndexChanged += OnSelectedIndexChanged;

            //
            // MapQueryToolStrip
            //
            this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this._clear,
                this._sep1,
                this._queryWindow,
                this._queryGeometry,
                this._sep2,
                this._queryLayerPicker
            });
            this.ResumeLayout(false);
        }
Esempio n. 10
0
        /// <summary>
        /// Creates and initializes window UI.
        /// </summary>
        private void InitUI()
        {
            this.Size = new Size(100, 100);

            m_pToolbar           = new ToolStrip();
            m_pToolbar.GripStyle = ToolStripGripStyle.Hidden;
            m_pToolbar.BackColor = SystemColors.Control;
            m_pToolbar.Renderer  = new ToolBarRendererEx();
            // Toolbar item font
            ToolStripComboBox font = new ToolStripComboBox();

            font.Size                  = new Size(150, 20);
            font.DropDownStyle         = ComboBoxStyle.DropDownList;
            font.SelectedIndexChanged += new EventHandler(font_SelectedIndexChanged);
//            foreach(FontFamily fontFamily in FontFamily.Families){
//                font.Items.Add(fontFamily.Name);
//            }
            font.Items.Add("Arial");
            font.Items.Add("Courier New");
            font.Items.Add("Times New Roman");
            font.Items.Add("Verdana");
            if (font.Items.Count > 0)
            {
                font.SelectedIndex = 0;
            }
            m_pToolbar.Items.Add(font);
            // Toolbar item font size
            ToolStripComboBox fontSize = new ToolStripComboBox();

            fontSize.AutoSize      = false;
            fontSize.Size          = new Size(50, 20);
            fontSize.DropDownStyle = ComboBoxStyle.DropDownList;
            fontSize.Items.Add("8");
            fontSize.Items.Add("10");
            fontSize.Items.Add("12");
            fontSize.Items.Add("14");
            fontSize.Items.Add("18");
            fontSize.Items.Add("24");
            fontSize.Items.Add("32");
            fontSize.SelectedIndex         = 1;
            fontSize.SelectedIndexChanged += new EventHandler(fontSize_SelectedIndexChanged);
            m_pToolbar.Items.Add(fontSize);
            m_pToolbar.Items.Add(new ToolStripSeparator());
            // Toolbar item bold
            ToolStripButton bold = new ToolStripButton();

            bold.Image  = ResManager.GetIcon("bold.ico").ToBitmap();
            bold.Click += new EventHandler(bold_Click);
            m_pToolbar.Items.Add(bold);
            // Toolbar item italic
            ToolStripButton italic = new ToolStripButton();

            italic.Image  = ResManager.GetIcon("italic.ico").ToBitmap();
            italic.Click += new EventHandler(italic_Click);
            m_pToolbar.Items.Add(italic);
            // Toolbar item underline
            ToolStripButton underline = new ToolStripButton();

            underline.Image  = ResManager.GetIcon("underline.ico").ToBitmap();
            underline.Click += new EventHandler(underline_Click);
            m_pToolbar.Items.Add(underline);
            // Separator
            m_pToolbar.Items.Add(new ToolStripSeparator());
            // Toolbar item font color
            ToolStripButton fontColor = new ToolStripButton();

            fontColor.Image  = CreateFontColorIcon(Color.Black);
            fontColor.Click += new EventHandler(fontColor_Click);
            m_pToolbar.Items.Add(fontColor);
            // Toolbar item font background color
            ToolStripButton fontBackColor = new ToolStripButton();

            fontBackColor.Image  = CreateFontBackColorIcon(Color.White);
            fontBackColor.Click += new EventHandler(fontBackColor_Click);
            m_pToolbar.Items.Add(fontBackColor);

            m_pTextbox                   = new RickTextBoxEx();
            m_pTextbox.Size              = new Size(97, 73);
            m_pTextbox.Location          = new Point(1, 25);
            m_pTextbox.Anchor            = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            m_pTextbox.BorderStyle       = BorderStyle.None;
            m_pTextbox.HideSelection     = false;
            m_pTextbox.SelectionChanged += new EventHandler(m_pTextbox_SelectionChanged);

            this.Controls.Add(m_pToolbar);
            this.Controls.Add(m_pTextbox);
        }
Esempio n. 11
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(Form1));
     this.richTextBox1        = new System.Windows.Forms.RichTextBox();
     this.contextMenuStripEx1 = new Syncfusion.Windows.Forms.Tools.ContextMenuStripEx();
     this.toolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripTextBox1   = new System.Windows.Forms.ToolStripTextBox();
     this.toolStripComboBox1  = new System.Windows.Forms.ToolStripComboBox();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripMenuItem4  = new System.Windows.Forms.ToolStripMenuItem();
     this.label1       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.panel1       = new System.Windows.Forms.Panel();
     this.panel2       = new System.Windows.Forms.Panel();
     this.panel3       = new System.Windows.Forms.Panel();
     this.comboBoxAdv1 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();
     this.contextMenuStripEx1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).BeginInit();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.ContextMenuStrip = this.contextMenuStripEx1;
     this.richTextBox1.Location         = new System.Drawing.Point(30, 71);
     this.richTextBox1.Name             = "richTextBox1";
     this.richTextBox1.Size             = new System.Drawing.Size(931, 507);
     this.richTextBox1.TabIndex         = 1;
     this.richTextBox1.Text             = resources.GetString("richTextBox1.Text");
     //
     // contextMenuStripEx1
     //
     this.contextMenuStripEx1.DropShadowEnabled = false;
     this.contextMenuStripEx1.ImageScalingSize  = new System.Drawing.Size(20, 20);
     this.contextMenuStripEx1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem1,
         this.toolStripMenuItem2,
         this.toolStripMenuItem3,
         this.toolStripSeparator1,
         this.toolStripTextBox1,
         this.toolStripComboBox1,
         this.toolStripSeparator2,
         this.toolStripMenuItem4
     });
     this.contextMenuStripEx1.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(236)))), ((int)(((byte)(249)))));
     this.contextMenuStripEx1.Name       = "contextMenuStripEx1";
     this.contextMenuStripEx1.Size       = new System.Drawing.Size(182, 183);
     this.contextMenuStripEx1.Style      = Syncfusion.Windows.Forms.Tools.ContextMenuStripEx.ContextMenuStyle.Metro;
     this.contextMenuStripEx1.Text       = "Edit";
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name        = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size        = new System.Drawing.Size(181, 22);
     this.toolStripMenuItem1.Text        = "Cut";
     this.toolStripMenuItem1.ToolTipText = "Remove the selection and put it on the Clipboard so you can paste it somewhere el" +
                                           "se.";
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name        = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size        = new System.Drawing.Size(181, 22);
     this.toolStripMenuItem2.Text        = "Copy";
     this.toolStripMenuItem2.ToolTipText = "Put a copy of the selection on the Clipboard so you can paste it somewhere else.";
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name        = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size        = new System.Drawing.Size(181, 22);
     this.toolStripMenuItem3.Text        = "Paste";
     this.toolStripMenuItem3.ToolTipText = "Pick a paste option such as keeping formatting or pasting only content.";
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(178, 6);
     //
     // toolStripTextBox1
     //
     this.toolStripTextBox1.Margin = new System.Windows.Forms.Padding(2, 1, 1, 1);
     this.toolStripTextBox1.Name   = "toolStripTextBox1";
     this.toolStripTextBox1.Size   = new System.Drawing.Size(100, 23);
     this.toolStripTextBox1.Text   = "Font Family: ";
     //
     // toolStripComboBox1
     //
     this.toolStripComboBox1.Name        = "toolStripComboBox1";
     this.toolStripComboBox1.Size        = new System.Drawing.Size(121, 23);
     this.toolStripComboBox1.ToolTipText = "Pick a new font for your text";
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(178, 6);
     //
     // toolStripMenuItem4
     //
     this.toolStripMenuItem4.Name        = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size        = new System.Drawing.Size(181, 22);
     this.toolStripMenuItem4.Text        = "Exit";
     this.toolStripMenuItem4.ToolTipText = "Close the current context menu and back into the application.";
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 2);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(912, 89);
     this.label1.TabIndex = 0;
     this.label1.Text     = "This sample showcases ContextMenuStripEx control with bar items, separator and built -in context menu styles.";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(550, 25);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(99, 17);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Choose Theme";
     //
     // panel1
     //
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(2, 2);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(980, 34);
     this.panel1.TabIndex = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.panel3);
     this.panel2.Controls.Add(this.comboBoxAdv1);
     this.panel2.Controls.Add(this.richTextBox1);
     this.panel2.Controls.Add(this.label2);
     this.panel2.Location = new System.Drawing.Point(2, 65);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(970, 604);
     this.panel2.TabIndex = 1;
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))));
     this.panel3.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location  = new System.Drawing.Point(0, 0);
     this.panel3.Name      = "panel3";
     this.panel3.Size      = new System.Drawing.Size(970, 2);
     this.panel3.TabIndex  = 2;
     //
     // comboBoxAdv1
     //
     this.comboBoxAdv1.BeforeTouchSize = new System.Drawing.Size(182, 25);
     this.comboBoxAdv1.Items.AddRange(new object[] {
         "Default",
         "Metro",
         "Office2016Colorful",
         "Office2016White",
         "Office2016DarkGray",
         "Office2016Black"
     });
     this.comboBoxAdv1.Location = new System.Drawing.Point(668, 21);
     this.comboBoxAdv1.Name     = "comboBoxAdv1";
     this.comboBoxAdv1.Size     = new System.Drawing.Size(182, 25);
     this.comboBoxAdv1.TabIndex = 2;
     this.comboBoxAdv1.Text     = "Metro";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(984, 686);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.Font          = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin        = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.MaximizeBox   = false;
     this.MaximumSize   = new System.Drawing.Size(1000, 725);
     this.MinimumSize   = new System.Drawing.Size(1000, 725);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Getting Started";
     this.contextMenuStripEx1.ResumeLayout(false);
     this.contextMenuStripEx1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 12
0
        private void FindFrameworks()
        {
            if (frameworks == null || frameworks.Count < 0)
            {
                L = new ArrayList();

                var ac = new AssemblyCacheEnumerator();

                int i = 0;
                while (i < 2000)
                {
                    GACManagerApi.Fusion.IAssemblyName name = ac.GetNextAssembly();

                    if (name == null)
                    {
                        break;
                    }

                    //  Get the first assembly in the global assembly cache.
                    var someAssembly = new AssemblyDescription(name);

                    if (someAssembly == null)
                    {
                        break;
                    }

                    if (someAssembly.Name == null)
                    {
                        break;
                    }

                    //  Show the Runtime Version.
                    System.Diagnostics.Trace.WriteLine(someAssembly.ReflectionProperties.RuntimeVersion);
                    //richTextBox1.AppendText("\n\n\n" + someAssembly.ReflectionProperties.RuntimeVersion);
                    //richTextBox1.AppendText("\n\n\n" + someAssembly.ReflectionProperties.ToString());

                    int p = L.IndexOf(someAssembly.ReflectionProperties.RuntimeVersion);

                    if (p < 0)
                    {
                        L.Add(someAssembly.ReflectionProperties.RuntimeVersion);
                    }

                    i++;
                }
            }
            else
            {
                L = new ArrayList();

                foreach (DirectoryInfo d in frameworks)
                {
                    L.Add(d.Name);
                }
            }
            ToolStripComboBox c = toolStripComboBox1;

            c.DropDownStyle = ComboBoxStyle.DropDownList;

            c.Items.Clear();

            foreach (string s in L)
            {
                c.Items.Add(s);
            }

            if (c.Items.Count > 0)
            {
                c.SelectedIndex = c.Items.Count - 1;
            }
        }
        public void PropertySelectedIndexAOORE()
        {
            ToolStripComboBox tsi = new ToolStripComboBox();

            tsi.SelectedIndex = 42;
        }
 private void InitializeComponent()
 {
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
     System.Windows.Forms.DataVisualization.Charting.Series    series1    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series2    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series3    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series4    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Series    series5    = new System.Windows.Forms.DataVisualization.Charting.Series();
     System.Windows.Forms.DataVisualization.Charting.Title     title1     = new System.Windows.Forms.DataVisualization.Charting.Title();
     System.Windows.Forms.DataVisualization.Charting.Title     title2     = new System.Windows.Forms.DataVisualization.Charting.Title();
     System.Windows.Forms.DataVisualization.Charting.Title     title3     = new System.Windows.Forms.DataVisualization.Charting.Title();
     this.toolStrip1          = new System.Windows.Forms.ToolStrip();
     this.tbbResetCounters    = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripLabel1     = new System.Windows.Forms.ToolStripLabel();
     this.cbxMonitorInterval  = new System.Windows.Forms.ToolStripComboBox();
     this.tabControl1         = new System.Windows.Forms.TabControl();
     this.tabPage1            = new System.Windows.Forms.TabPage();
     this.ltvEvents           = 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.tabPage2            = new System.Windows.Forms.TabPage();
     this.chart = new System.Windows.Forms.DataVisualization.Charting.Chart();
     this.toolStrip1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
     this.SuspendLayout();
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbbResetCounters,
         this.toolStripSeparator1,
         this.toolStripLabel1,
         this.cbxMonitorInterval
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(578, 25);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // tbbResetCounters
     //
     this.tbbResetCounters.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tbbResetCounters.Image                 = global::OpenQuant.Shared.Properties.Resources.perfmon_reset;
     this.tbbResetCounters.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbbResetCounters.Name        = "tbbResetCounters";
     this.tbbResetCounters.Size        = new System.Drawing.Size(23, 22);
     this.tbbResetCounters.Text        = "toolStripButton1";
     this.tbbResetCounters.ToolTipText = "Reset counters";
     this.tbbResetCounters.Click      += new System.EventHandler(this.tbbResetCounters_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(92, 22);
     this.toolStripLabel1.Text = "Monitor Interval";
     //
     // cbxMonitorInterval
     //
     this.cbxMonitorInterval.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbxMonitorInterval.DropDownWidth         = 60;
     this.cbxMonitorInterval.Name                  = "cbxMonitorInterval";
     this.cbxMonitorInterval.RightToLeft           = System.Windows.Forms.RightToLeft.No;
     this.cbxMonitorInterval.Size                  = new System.Drawing.Size(75, 25);
     this.cbxMonitorInterval.SelectedIndexChanged += new System.EventHandler(this.cbxMonitorInterval_SelectedIndexChanged);
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 25);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(578, 438);
     this.tabControl1.TabIndex      = 4;
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.ltvEvents);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size     = new System.Drawing.Size(570, 412);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Events";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // ltvEvents
     //
     this.ltvEvents.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4
     });
     this.ltvEvents.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.ltvEvents.FullRowSelect    = true;
     this.ltvEvents.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.ltvEvents.HideSelection    = false;
     this.ltvEvents.LabelWrap        = false;
     this.ltvEvents.Location         = new System.Drawing.Point(3, 3);
     this.ltvEvents.MultiSelect      = false;
     this.ltvEvents.Name             = "ltvEvents";
     this.ltvEvents.ShowItemToolTips = true;
     this.ltvEvents.Size             = new System.Drawing.Size(564, 406);
     this.ltvEvents.TabIndex         = 3;
     this.ltvEvents.UseCompatibleStateImageBehavior = false;
     this.ltvEvents.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Event";
     this.columnHeader1.Width = 159;
     //
     // columnHeader2
     //
     this.columnHeader2.Text      = "Count";
     this.columnHeader2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.columnHeader2.Width     = 105;
     //
     // columnHeader3
     //
     this.columnHeader3.Text      = "Average (per sec)";
     this.columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.columnHeader3.Width     = 122;
     //
     // columnHeader4
     //
     this.columnHeader4.Text      = "Peak (per sec)";
     this.columnHeader4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.columnHeader4.Width     = 100;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.chart);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size     = new System.Drawing.Size(570, 412);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Performance";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // chart
     //
     this.chart.BackColor               = System.Drawing.SystemColors.Control;
     chartArea1.AlignWithChartArea      = "ChartArea2";
     chartArea1.AxisX.IsStartedFromZero = false;
     chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)
                                                                                                                  | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)));
     chartArea1.AxisX.LabelStyle.Enabled      = false;
     chartArea1.AxisX.LineColor               = System.Drawing.Color.DarkGreen;
     chartArea1.AxisX.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea1.AxisX2.LineColor              = System.Drawing.Color.Empty;
     chartArea1.AxisY.LabelAutoFitMaxFontSize = 8;
     chartArea1.AxisY.LabelAutoFitMinFontSize = 7;
     chartArea1.AxisY.LabelAutoFitStyle       = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)));
     chartArea1.AxisY.LineColor               = System.Drawing.Color.Green;
     chartArea1.AxisY.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea1.BackColor               = System.Drawing.Color.Black;
     chartArea1.Name                    = "ChartArea1";
     chartArea2.AlignWithChartArea      = "ChartArea2";
     chartArea2.AxisX.IsStartedFromZero = false;
     chartArea2.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)
                                                                                                                  | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels)
                                                                                                                 | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30)));
     chartArea2.AxisX.LabelStyle.Enabled      = false;
     chartArea2.AxisX.LineColor               = System.Drawing.Color.DarkGreen;
     chartArea2.AxisX.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea2.AxisY.LabelAutoFitMaxFontSize = 8;
     chartArea2.AxisY.LabelAutoFitMinFontSize = 7;
     chartArea2.AxisY.LabelAutoFitStyle       = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)));
     chartArea2.AxisY.LineColor               = System.Drawing.Color.Green;
     chartArea2.AxisY.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea2.AxisY.Maximum                 = 100D;
     chartArea2.AxisY.Minimum                 = 0D;
     chartArea2.BackColor                     = System.Drawing.Color.Black;
     chartArea2.Name                          = "ChartArea3";
     chartArea3.AlignWithChartArea            = "ChartArea1";
     chartArea3.AxisX.LabelAutoFitMaxFontSize = 8;
     chartArea3.AxisX.LabelAutoFitMinFontSize = 7;
     chartArea3.AxisX.LabelAutoFitStyle       = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)));
     chartArea3.AxisX.LabelStyle.Format       = "HH:mm:ss";
     chartArea3.AxisX.LineColor               = System.Drawing.Color.DarkGreen;
     chartArea3.AxisX.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea3.AxisY.LabelAutoFitMaxFontSize = 8;
     chartArea3.AxisY.LabelAutoFitMinFontSize = 7;
     chartArea3.AxisY.LabelAutoFitStyle       = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)));
     chartArea3.AxisY.MajorGrid.LineColor     = System.Drawing.Color.DarkGreen;
     chartArea3.BackColor                     = System.Drawing.Color.Black;
     chartArea3.Name                          = "ChartArea2";
     this.chart.ChartAreas.Add(chartArea1);
     this.chart.ChartAreas.Add(chartArea2);
     this.chart.ChartAreas.Add(chartArea3);
     this.chart.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.chart.Location       = new System.Drawing.Point(3, 3);
     this.chart.Name           = "chart";
     series1.ChartArea         = "ChartArea1";
     series1.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series1.Color             = System.Drawing.Color.Gold;
     series1.Font              = new System.Drawing.Font("Microsoft Sans Serif", 8F);
     series1.IsVisibleInLegend = false;
     series1.IsXValueIndexed   = true;
     series1.Legend            = "Legend1";
     series1.Name              = "Events (Market Data)";
     series1.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series1.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
     series2.ChartArea         = "ChartArea1";
     series2.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series2.Color             = System.Drawing.Color.DeepSkyBlue;
     series2.IsVisibleInLegend = false;
     series2.IsXValueIndexed   = true;
     series2.Name              = "Events (Execution)";
     series2.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series2.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
     series3.ChartArea         = "ChartArea3";
     series3.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series3.Color             = System.Drawing.Color.Lime;
     series3.IsVisibleInLegend = false;
     series3.IsXValueIndexed   = true;
     series3.Legend            = "Legend1";
     series3.Name              = "CPU Usage (Total)";
     series3.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series3.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
     series4.ChartArea         = "ChartArea3";
     series4.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series4.Color             = System.Drawing.Color.Red;
     series4.IsVisibleInLegend = false;
     series4.IsXValueIndexed   = true;
     series4.Legend            = "Legend1";
     series4.Name              = "CPU Usage (Core)";
     series4.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series4.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
     series5.ChartArea         = "ChartArea2";
     series5.ChartType         = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
     series5.Color             = System.Drawing.Color.Yellow;
     series5.IsXValueIndexed   = true;
     series5.Legend            = "Legend1";
     series5.Name              = "Memory allocation";
     series5.XValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.DateTime;
     series5.YValueType        = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int32;
     this.chart.Series.Add(series1);
     this.chart.Series.Add(series2);
     this.chart.Series.Add(series3);
     this.chart.Series.Add(series4);
     this.chart.Series.Add(series5);
     this.chart.Size                = new System.Drawing.Size(564, 406);
     this.chart.TabIndex            = 4;
     this.chart.Text                = "chart1";
     title1.Alignment               = System.Drawing.ContentAlignment.TopLeft;
     title1.DockedToChartArea       = "ChartArea1";
     title1.IsDockedInsideChartArea = false;
     title1.Name                    = "Title1";
     title1.Text                    = "Events, per sec";
     title2.Alignment               = System.Drawing.ContentAlignment.TopLeft;
     title2.DockedToChartArea       = "ChartArea3";
     title2.IsDockedInsideChartArea = false;
     title2.Name                    = "Title3";
     title2.Text                    = "CPU Usage, %";
     title3.Alignment               = System.Drawing.ContentAlignment.TopLeft;
     title3.DockedToChartArea       = "ChartArea2";
     title3.IsDockedInsideChartArea = false;
     title3.Name                    = "Title2";
     title3.Text                    = "Memory allocation, MB";
     this.chart.Titles.Add(title1);
     this.chart.Titles.Add(title2);
     this.chart.Titles.Add(title3);
     //
     // PerformanceMonitorWindow
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.toolStrip1);
     this.DefaultDockLocation = TD.SandDock.ContainerDockLocation.Center;
     this.Name     = "PerformanceMonitorWindow";
     this.Size     = new System.Drawing.Size(578, 463);
     this.TabImage = global::OpenQuant.Shared.Properties.Resources.perfmon;
     this.Text     = "Performance Monitor";
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 15
0
        public LibraryBrowserToolStrip(LibraryBrowserFilter libraryBrowserFilter, LibraryModel libraryModel, Configuration.ConfigLibraryBrowserView libraryBrowserSettings, SearchHandler searchHandler)
        {
            InitializeComponent();

            LibraryBrowserFilter   = libraryBrowserFilter;
            LibraryModel           = libraryModel;
            LibraryBrowserSettings = libraryBrowserSettings;
            SearchHandler          = searchHandler;

            toolStrip               = new ToolStrip();
            filterComboBox          = new ToolStripSpringComboBox();
            sortTypeComboBox        = new ToolStripComboBox();
            sortOrderComboBox       = new ToolStripComboBox();
            globalSortTypeComboBox  = new ToolStripComboBox();
            globalSortOrderComboBox = new ToolStripComboBox();

            SuspendLayout();

            filterComboBox.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            filterComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
            filterComboBox.DropDownStyle      = ComboBoxStyle.DropDown;
            filterComboBox.Dock     = DockStyle.Fill;
            filterComboBox.Margin   = new Padding(0, 0, 6, 0);
            filterComboBox.KeyDown += FilterComboBox_KeyDown;
            filterComboBox.ComboBox.SelectedIndexChanged     += ComboBox_SelectedIndexChanged;
            filterComboBox.ComboBox.SelectionChangeCommitted += FilterComboBox_SelectionChangeCommitted;
            // WORKAROUND: bug since win7 - selectedindex is wrong when a datasource is bound
            //searchComboBox.ComboBox.DataSource = galleryModel.Searches;
            //galleryModel.Searches.ListChanged += Searches_ListChanged;
            filterComboBox.ComboBox.OverrideMouseWheelBehaviour();
            filterComboBox.EnableMiddleClickToClear();
            filterComboBox.OverrideUpDownKeys();

            sortTypeComboBox.Text          = "&Sort";
            sortTypeComboBox.FlatStyle     = FlatStyle.Flat;
            sortTypeComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            List <ComboBoxItem> sortTypeItems = new List <ComboBoxItem>
            {
                new ComboBoxItem("orderByNone", "None", SortTypeComboBox_None, GallerySortType.None),
                new ComboBoxItem("orderByTitle", "Title", SortTypeComboBox_Title, GallerySortType.Title),
                new ComboBoxItem("orderByLanguage", "Language", SortTypeComboBox_Language, GallerySortType.Language),
                new ComboBoxItem("orderByArtist", "Artist", SortTypeComboBox_Artist, GallerySortType.Artist),
                new ComboBoxItem("orderByGroup", "Group", SortTypeComboBox_Group, GallerySortType.Group),
                new ComboBoxItem("orderByTag", "Tag", SortTypeComboBox_Tag, GallerySortType.Tag),
                new ComboBoxItem("orderByParody", "Parody", SortTypeComboBox_Parody, Tag = GallerySortType.Parody),
                new ComboBoxItem("orderByCharacter", "Character", SortTypeComboBox_Character, GallerySortType.Character),
                new ComboBoxItem("orderByCategory", "Category", SortTypeComboBox_Category, GallerySortType.Category),
                new ComboBoxItem("orderByScanlator", "Scanlator", SortTypeComboBox_Scanlator, GallerySortType.Scanlator),
                new ComboBoxItem("orderByUploadDate", "Upload Date", SortTypeComboBox_UploadDate, GallerySortType.UploadDate),
                new ComboBoxItem("orderByNumPages", "Num Pages", SortTypeComboBox_NumPages, GallerySortType.NumPages),
                new ComboBoxItem("orderByNumFavorites", "Num Favorites", SortTypeComboBox_NumFavorites, GallerySortType.NumFavorites),
                new ComboBoxItem("orderById", "Id", SortTypeComboBox_Id, GallerySortType.Id),
                //new SortItem("orderByComiket", "Comiket", SortTypeComboBox_Comiket, GallerySortType.Comiket),
                //new SortItem("orderByVersion", "Version", SortTypeComboBox_Version, GallerySortType.Version),
                //new SortItem("orderByCensorship", "Censorship", SortTypeComboBox_Censorship, GallerySortType.Censorship),
            };

            sortTypeComboBox.Items.AddRange(sortTypeItems.Cast <object>().ToArray());
            sortTypeComboBox.ComboBox.SelectionChangeCommitted += SortTypeComboBox_SelectionChangeCommitted;
            sortTypeComboBox.SelectedItem = sortTypeItems.First(x => (GallerySortType)x.Tag == LibraryBrowserFilter.SortType);
            sortTypeComboBox.ComboBox.OverrideMouseWheelBehaviour();
            sortTypeComboBox.OverrideUpDownKeys();

            sortOrderComboBox.Text          = "&Sort";
            sortOrderComboBox.FlatStyle     = FlatStyle.Flat;
            sortOrderComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            List <ComboBoxItem> sortOrderItems = new List <ComboBoxItem>
            {
                new ComboBoxItem("orderByAscending", "Ascending", SortOrderComboBox_Ascending, SortOrder.Ascending),
                new ComboBoxItem("orderByDescending", "Descending", SortOrderComboBox_Descending, SortOrder.Descending)
            };

            sortOrderComboBox.Items.AddRange(sortOrderItems.Cast <object>().ToArray());
            sortOrderComboBox.ComboBox.SelectionChangeCommitted += SortOrderComboBox_SelectionChangeCommitted;
            sortOrderComboBox.SelectedItem = sortOrderItems.First(x => (SortOrder)x.Tag == LibraryBrowserFilter.SortOrder);
            sortOrderComboBox.ComboBox.OverrideMouseWheelBehaviour();
            sortOrderComboBox.Enabled = LibraryBrowserFilter.SortType != GallerySortType.None;
            sortOrderComboBox.OverrideUpDownKeys();


            globalSortTypeComboBox.Text          = "&Sort";
            globalSortTypeComboBox.FlatStyle     = FlatStyle.Flat;
            globalSortTypeComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            List <ComboBoxItem> globalSortTypeItems = new List <ComboBoxItem>
            {
                new ComboBoxItem("orderByNone", "None", GlobalSortTypeComboBox_None, LibrarySortType.None),
                new ComboBoxItem("orderByCreationTime", "Creation time", GlobalSortTypeComboBox_CreationTime, LibrarySortType.CreationTime),
                new ComboBoxItem("orderByLastAccessTime", "Last access time", GlobalSortTypeComboBox_LastAccessTime, LibrarySortType.LastAccessTime),
                new ComboBoxItem("orderByLastWriteTime", "Last write time", GlobalSortTypeComboBox_LastWriteTime, LibrarySortType.LastWriteTime),
            };

            globalSortTypeComboBox.Items.AddRange(globalSortTypeItems.Cast <object>().ToArray());
            globalSortTypeComboBox.ComboBox.SelectionChangeCommitted += GlobalSortTypeComboBox_SelectionChangeCommitted;
            globalSortTypeComboBox.SelectedItem = globalSortTypeItems.First(x => (LibrarySortType)x.Tag == LibraryBrowserFilter.GlobalSortType);
            globalSortTypeComboBox.ComboBox.OverrideMouseWheelBehaviour();
            globalSortTypeComboBox.OverrideUpDownKeys();

            globalSortOrderComboBox.Text          = "&Sort";
            globalSortOrderComboBox.FlatStyle     = FlatStyle.Flat;
            globalSortOrderComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            List <ComboBoxItem> globalSortOrderItems = new List <ComboBoxItem>
            {
                new ComboBoxItem("orderByAscending", "Ascending", GlobalSortOrderComboBox_Ascending, SortOrder.Ascending),
                new ComboBoxItem("orderByDescending", "Descending", GlobalSortOrderComboBox_Descending, SortOrder.Descending)
            };

            globalSortOrderComboBox.Items.AddRange(globalSortOrderItems.Cast <object>().ToArray());
            globalSortOrderComboBox.ComboBox.SelectionChangeCommitted += SortOrderComboBox_SelectionChangeCommitted;
            globalSortOrderComboBox.SelectedItem = globalSortOrderItems.First(x => (SortOrder)x.Tag == LibraryBrowserFilter.GlobalSortOrder);
            globalSortOrderComboBox.ComboBox.OverrideMouseWheelBehaviour();
            globalSortOrderComboBox.Enabled = LibraryBrowserFilter.GlobalSortType != LibrarySortType.None;
            globalSortOrderComboBox.OverrideUpDownKeys();

            toolStrip.Dock        = DockStyle.Fill;
            toolStrip.CanOverflow = false;
            toolStrip.Items.Add(filterComboBox);
            toolStrip.Items.Add(sortTypeComboBox);
            toolStrip.Items.Add(sortOrderComboBox);
            toolStrip.Items.Add(globalSortTypeComboBox);
            toolStrip.Items.Add(globalSortOrderComboBox);

            //
            // this
            //
            Controls.Add(toolStrip);

            //LibraryModel.SearchesChanged += LibraryModel_SearchesChanged;
            LibraryModel.FiltersChanged += LibraryModel_FiltersChanged;

            libraryBrowserFilter.SortTypeChanged        += LibraryBrowserFilter_SortTypeChanged;
            libraryBrowserFilter.SortOrderChanged       += LibraryBrowserFilter_SortOrderChanged;
            libraryBrowserFilter.GlobalSortTypeChanged  += LibraryBrowserFilter_GlobalSortTypeChanged;
            libraryBrowserFilter.GlobalSortOrderChanged += LibraryBrowserFilter_GlobalSortOrderChanged;

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

            this.ControlsPanel                 = new Panel();
            this.ButtonsPanel                  = new Panel();
            this.folderBrowserDialog1          = new FolderBrowserDialog();
            this.statusStrip1                  = new StatusStrip();
            this.StatusLabel                   = new ToolStripStatusLabel();
            this.SpacerStatusLabel             = new ToolStripStatusLabel();
            this.PathStatusLabel               = new ToolStripStatusLabel();
            this.toolTip1                      = new ToolTip(this.components);
            this.menuStrip1                    = new MenuStrip();
            this.fileToolStripMenuItem         = new ToolStripMenuItem();
            this.newToolStripMenuItem          = new ToolStripMenuItem();
            this.openToolStripMenuItem         = new ToolStripMenuItem();
            this.toolStripSeparator            = new ToolStripSeparator();
            this.saveToolStripMenuItem         = new ToolStripMenuItem();
            this.toolStripSeparator1           = new ToolStripSeparator();
            this.exitToolStripMenuItem         = new ToolStripMenuItem();
            this.toolsToolStripMenuItem        = new ToolStripMenuItem();
            this.BuildToolStripMenuItem        = new ToolStripMenuItem();
            this.launcherToolStripMenuItem     = new ToolStripMenuItem();
            this.installerToolStripMenuItem    = new ToolStripMenuItem();
            this.OptionsToolStripMenuItem      = new ToolStripMenuItem();
            this.helpToolStripMenuItem         = new ToolStripMenuItem();
            this.WebsiteToolStripMenuItem      = new ToolStripMenuItem();
            this.FacebookToolStripMenuItem     = new ToolStripMenuItem();
            this.DonateToolStripMenuItem       = new ToolStripMenuItem();
            this.FeedbackToolStripMenuItem     = new ToolStripMenuItem();
            this.toolStripSeparator5           = new ToolStripSeparator();
            this.UpdateToolStripMenuItem       = new ToolStripMenuItem();
            this.AboutToolStripMenuItem        = new ToolStripMenuItem();
            this.toolStrip1                    = new ToolStrip();
            this.NewToolStripButton            = new ToolStripButton();
            this.OpenToolStripButton           = new ToolStripButton();
            this.ReloadToolStripButton         = new ToolStripButton();
            this.SaveToolStripButton           = new ToolStripButton();
            this.ResetToolStripButton          = new ToolStripButton();
            this.toolStripSeparator8           = new ToolStripSeparator();
            this.AppIdToolStripLabel           = new ToolStripLabel();
            this.AppIdToolStripTextBox         = new ToolStripTextBox();
            this.toolStripSeparator6           = new ToolStripSeparator();
            this.EnvironmentsToolStripComboBox = new ToolStripComboBox();
            this.CopyToolStripButton           = new ToolStripButton();
            this.toolStripSeparator2           = new ToolStripSeparator();
            this.BuildLauncherToolStripButton  = new ToolStripButton();
            this.BuildInstallerToolStripButton = new ToolStripButton();
            this.toolStripSeparator7           = new ToolStripSeparator();
            this.ExploreToolStripButton        = new ToolStripButton();
            this.BackupToolStripButton         = new ToolStripButton();
            this.toolStripSeparator9           = new ToolStripSeparator();
            this.FacebookToolStripButton       = new ToolStripButton();
            this.PaypalToolStripButton         = new ToolStripButton();
            this.statusStrip1.SuspendLayout();
            this.menuStrip1.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.ControlsPanel.Anchor                     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.ControlsPanel.Location                   = new Point(171, 52);
            this.ControlsPanel.Name                       = "ControlsPanel";
            this.ControlsPanel.Size                       = new Size(621, 492);
            this.ControlsPanel.TabIndex                   = 10;
            this.ControlsPanel.Visible                    = false;
            this.ButtonsPanel.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
            this.ButtonsPanel.Location                    = new Point(0, 52);
            this.ButtonsPanel.Name                        = "ButtonsPanel";
            this.ButtonsPanel.Size                        = new Size(165, 492);
            this.ButtonsPanel.TabIndex                    = 9;
            this.folderBrowserDialog1.RootFolder          = System.Environment.SpecialFolder.MyComputer;
            this.folderBrowserDialog1.ShowNewFolderButton = false;
            this.statusStrip1.Items.AddRange(new ToolStripItem[3]
            {
                (ToolStripItem)this.StatusLabel,
                (ToolStripItem)this.SpacerStatusLabel,
                (ToolStripItem)this.PathStatusLabel
            });
            this.statusStrip1.Location         = new Point(0, 547);
            this.statusStrip1.Name             = "statusStrip1";
            this.statusStrip1.ShowItemToolTips = true;
            this.statusStrip1.Size             = new Size(792, 22);
            this.statusStrip1.SizingGrip       = false;
            this.statusStrip1.TabIndex         = 11;
            this.statusStrip1.Text             = "statusStrip1";
            this.StatusLabel.Name = "StatusLabel";
            this.StatusLabel.Size = new Size(168, 17);
            this.StatusLabel.Text = "Smile because Jesus loves you.";
            this.SpacerStatusLabel.DisplayStyle = ToolStripItemDisplayStyle.None;
            this.SpacerStatusLabel.Name         = "SpacerStatusLabel";
            this.SpacerStatusLabel.Size         = new Size(609, 17);
            this.SpacerStatusLabel.Spring       = true;
            this.SpacerStatusLabel.Text         = "toolStripStatusLabel2";
            this.PathStatusLabel.DisplayStyle   = ToolStripItemDisplayStyle.Text;
            this.PathStatusLabel.Name           = "PathStatusLabel";
            this.PathStatusLabel.Size           = new Size(34, 17);
            this.PathStatusLabel.Text           = "Path:";
            this.PathStatusLabel.Visible        = false;
            this.toolTip1.AutoPopDelay          = 8000;
            this.toolTip1.InitialDelay          = 500;
            this.toolTip1.ReshowDelay           = 100;
            this.toolTip1.ToolTipIcon           = ToolTipIcon.Info;
            this.toolTip1.ToolTipTitle          = "PAF Launcher Editor";
            this.toolTip1.UseAnimation          = false;
            this.toolTip1.UseFading             = false;
            this.menuStrip1.Items.AddRange(new ToolStripItem[3]
            {
                (ToolStripItem)this.fileToolStripMenuItem,
                (ToolStripItem)this.toolsToolStripMenuItem,
                (ToolStripItem)this.helpToolStripMenuItem
            });
            this.menuStrip1.Location   = new Point(0, 0);
            this.menuStrip1.Name       = "menuStrip1";
            this.menuStrip1.RenderMode = ToolStripRenderMode.Professional;
            this.menuStrip1.Size       = new Size(792, 24);
            this.menuStrip1.TabIndex   = 0;
            this.menuStrip1.Text       = "menuStrip1";
            this.fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[6]
            {
                (ToolStripItem)this.newToolStripMenuItem,
                (ToolStripItem)this.openToolStripMenuItem,
                (ToolStripItem)this.toolStripSeparator,
                (ToolStripItem)this.saveToolStripMenuItem,
                (ToolStripItem)this.toolStripSeparator1,
                (ToolStripItem)this.exitToolStripMenuItem
            });
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size = new Size(37, 20);
            this.fileToolStripMenuItem.Text = "&File";
            this.newToolStripMenuItem.Image = (Image)componentResourceManager.GetObject("newToolStripMenuItem.Image");
            this.newToolStripMenuItem.ImageTransparentColor = Color.Magenta;
            this.newToolStripMenuItem.Name                   = "newToolStripMenuItem";
            this.newToolStripMenuItem.ShortcutKeys           = Keys.N | Keys.Control;
            this.newToolStripMenuItem.Size                   = new Size(146, 22);
            this.newToolStripMenuItem.Text                   = "&New";
            this.newToolStripMenuItem.Click                 += new EventHandler(this.NewToolStripButton_Click);
            this.openToolStripMenuItem.Image                 = (Image)componentResourceManager.GetObject("openToolStripMenuItem.Image");
            this.openToolStripMenuItem.ImageTransparentColor = Color.Magenta;
            this.openToolStripMenuItem.Name                  = "openToolStripMenuItem";
            this.openToolStripMenuItem.ShortcutKeys          = Keys.O | Keys.Control;
            this.openToolStripMenuItem.Size                  = new Size(146, 22);
            this.openToolStripMenuItem.Text                  = "&Open";
            this.openToolStripMenuItem.Click                += new EventHandler(this.OpenToolStripButton_Click);
            this.toolStripSeparator.Name     = "toolStripSeparator";
            this.toolStripSeparator.Size     = new Size(143, 6);
            this.saveToolStripMenuItem.Image = (Image)componentResourceManager.GetObject("saveToolStripMenuItem.Image");
            this.saveToolStripMenuItem.ImageTransparentColor = Color.Magenta;
            this.saveToolStripMenuItem.Name         = "saveToolStripMenuItem";
            this.saveToolStripMenuItem.ShortcutKeys = Keys.S | Keys.Control;
            this.saveToolStripMenuItem.Size         = new Size(146, 22);
            this.saveToolStripMenuItem.Text         = "&Save";
            this.saveToolStripMenuItem.Click       += new EventHandler(this.SaveToolStripButton_Click);
            this.toolStripSeparator1.Name           = "toolStripSeparator1";
            this.toolStripSeparator1.Size           = new Size(143, 6);
            this.exitToolStripMenuItem.Name         = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size         = new Size(146, 22);
            this.exitToolStripMenuItem.Text         = "E&xit";
            this.exitToolStripMenuItem.Click       += new EventHandler(this.exitToolStripMenuItem_Click);
            this.toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.BuildToolStripMenuItem,
                (ToolStripItem)this.OptionsToolStripMenuItem
            });
            this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
            this.toolsToolStripMenuItem.Size = new Size(48, 20);
            this.toolsToolStripMenuItem.Text = "&Tools";
            this.BuildToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.launcherToolStripMenuItem,
                (ToolStripItem)this.installerToolStripMenuItem
            });
            this.BuildToolStripMenuItem.Image      = (Image)Resources.build;
            this.BuildToolStripMenuItem.Name       = "BuildToolStripMenuItem";
            this.BuildToolStripMenuItem.Size       = new Size(116, 22);
            this.BuildToolStripMenuItem.Text       = "&Build";
            this.launcherToolStripMenuItem.Image   = (Image)Resources.launcher;
            this.launcherToolStripMenuItem.Name    = "launcherToolStripMenuItem";
            this.launcherToolStripMenuItem.Size    = new Size(123, 22);
            this.launcherToolStripMenuItem.Text    = "&Launcher";
            this.launcherToolStripMenuItem.Click  += new EventHandler(this.BuildLauncherToolStripButton_Click);
            this.installerToolStripMenuItem.Image  = (Image)Resources.installer;
            this.installerToolStripMenuItem.Name   = "installerToolStripMenuItem";
            this.installerToolStripMenuItem.Size   = new Size(123, 22);
            this.installerToolStripMenuItem.Text   = "&Installer";
            this.installerToolStripMenuItem.Click += new EventHandler(this.BuildInstallerToolStripButton_Click);
            this.OptionsToolStripMenuItem.Image    = (Image)Resources.options;
            this.OptionsToolStripMenuItem.Name     = "OptionsToolStripMenuItem";
            this.OptionsToolStripMenuItem.Size     = new Size(116, 22);
            this.OptionsToolStripMenuItem.Text     = "&Options";
            this.OptionsToolStripMenuItem.Click   += new EventHandler(this.optionsToolStripMenuItem_Click);
            this.helpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[7]
            {
                (ToolStripItem)this.WebsiteToolStripMenuItem,
                (ToolStripItem)this.FacebookToolStripMenuItem,
                (ToolStripItem)this.DonateToolStripMenuItem,
                (ToolStripItem)this.FeedbackToolStripMenuItem,
                (ToolStripItem)this.toolStripSeparator5,
                (ToolStripItem)this.UpdateToolStripMenuItem,
                (ToolStripItem)this.AboutToolStripMenuItem
            });
            this.helpToolStripMenuItem.Name       = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size       = new Size(44, 20);
            this.helpToolStripMenuItem.Text       = "&Help";
            this.WebsiteToolStripMenuItem.Image   = (Image)Resources.web;
            this.WebsiteToolStripMenuItem.Name    = "WebsiteToolStripMenuItem";
            this.WebsiteToolStripMenuItem.Size    = new Size(171, 22);
            this.WebsiteToolStripMenuItem.Text    = "&Website";
            this.WebsiteToolStripMenuItem.Click  += new EventHandler(this.contentsToolStripMenuItem_Click);
            this.FacebookToolStripMenuItem.Image  = (Image)Resources.facebook;
            this.FacebookToolStripMenuItem.Name   = "FacebookToolStripMenuItem";
            this.FacebookToolStripMenuItem.Size   = new Size(171, 22);
            this.FacebookToolStripMenuItem.Text   = "&Facebook";
            this.FacebookToolStripMenuItem.Click += new EventHandler(this.FacebookToolStripButton_Click);
            this.DonateToolStripMenuItem.Image    = (Image)Resources.paypal;
            this.DonateToolStripMenuItem.Name     = "DonateToolStripMenuItem";
            this.DonateToolStripMenuItem.Size     = new Size(171, 22);
            this.DonateToolStripMenuItem.Text     = "&Donate";
            this.DonateToolStripMenuItem.Click   += new EventHandler(this.donateToolStripMenuItem_Click);
            this.FeedbackToolStripMenuItem.Image  = (Image)Resources.feedback;
            this.FeedbackToolStripMenuItem.Name   = "FeedbackToolStripMenuItem";
            this.FeedbackToolStripMenuItem.Size   = new Size(171, 22);
            this.FeedbackToolStripMenuItem.Text   = "Feed&back";
            this.FeedbackToolStripMenuItem.Click += new EventHandler(this.feedbackToolStripMenuItem_Click);
            this.toolStripSeparator5.Name         = "toolStripSeparator5";
            this.toolStripSeparator5.Size         = new Size(168, 6);
            this.UpdateToolStripMenuItem.Image    = (Image)Resources.update;
            this.UpdateToolStripMenuItem.Name     = "UpdateToolStripMenuItem";
            this.UpdateToolStripMenuItem.Size     = new Size(171, 22);
            this.UpdateToolStripMenuItem.Text     = "&Check for Updates";
            this.UpdateToolStripMenuItem.Click   += new EventHandler(this.UpdateToolStripMenuItem_Click);
            this.AboutToolStripMenuItem.Name      = "AboutToolStripMenuItem";
            this.AboutToolStripMenuItem.Size      = new Size(171, 22);
            this.AboutToolStripMenuItem.Text      = "&About...";
            this.AboutToolStripMenuItem.Click    += new EventHandler(this.aboutToolStripMenuItem_Click);
            this.toolStrip1.GripStyle             = ToolStripGripStyle.Hidden;
            this.toolStrip1.Items.AddRange(new ToolStripItem[20]
            {
                (ToolStripItem)this.NewToolStripButton,
                (ToolStripItem)this.OpenToolStripButton,
                (ToolStripItem)this.ReloadToolStripButton,
                (ToolStripItem)this.SaveToolStripButton,
                (ToolStripItem)this.ResetToolStripButton,
                (ToolStripItem)this.toolStripSeparator8,
                (ToolStripItem)this.AppIdToolStripLabel,
                (ToolStripItem)this.AppIdToolStripTextBox,
                (ToolStripItem)this.toolStripSeparator6,
                (ToolStripItem)this.EnvironmentsToolStripComboBox,
                (ToolStripItem)this.CopyToolStripButton,
                (ToolStripItem)this.toolStripSeparator2,
                (ToolStripItem)this.BuildLauncherToolStripButton,
                (ToolStripItem)this.BuildInstallerToolStripButton,
                (ToolStripItem)this.toolStripSeparator7,
                (ToolStripItem)this.ExploreToolStripButton,
                (ToolStripItem)this.BackupToolStripButton,
                (ToolStripItem)this.toolStripSeparator9,
                (ToolStripItem)this.FacebookToolStripButton,
                (ToolStripItem)this.PaypalToolStripButton
            });
            this.toolStrip1.Location                                 = new Point(0, 24);
            this.toolStrip1.Name                                     = "toolStrip1";
            this.toolStrip1.RenderMode                               = ToolStripRenderMode.Professional;
            this.toolStrip1.Size                                     = new Size(792, 25);
            this.toolStrip1.TabIndex                                 = 12;
            this.toolStrip1.Text                                     = "toolStrip1";
            this.NewToolStripButton.DisplayStyle                     = ToolStripItemDisplayStyle.Image;
            this.NewToolStripButton.Image                            = (Image)Resources.create;
            this.NewToolStripButton.ImageTransparentColor            = Color.Magenta;
            this.NewToolStripButton.Name                             = "NewToolStripButton";
            this.NewToolStripButton.Size                             = new Size(23, 22);
            this.NewToolStripButton.Text                             = "New";
            this.NewToolStripButton.ToolTipText                      = "Create a new project.";
            this.NewToolStripButton.Click                           += new EventHandler(this.NewToolStripButton_Click);
            this.OpenToolStripButton.DisplayStyle                    = ToolStripItemDisplayStyle.Image;
            this.OpenToolStripButton.Image                           = (Image)Resources.open;
            this.OpenToolStripButton.ImageTransparentColor           = Color.Magenta;
            this.OpenToolStripButton.Name                            = "OpenToolStripButton";
            this.OpenToolStripButton.Size                            = new Size(23, 22);
            this.OpenToolStripButton.Text                            = "Open";
            this.OpenToolStripButton.ToolTipText                     = "Open a project to work with.";
            this.OpenToolStripButton.Click                          += new EventHandler(this.OpenToolStripButton_Click);
            this.ReloadToolStripButton.DisplayStyle                  = ToolStripItemDisplayStyle.Image;
            this.ReloadToolStripButton.Image                         = (Image)Resources.reload;
            this.ReloadToolStripButton.ImageTransparentColor         = Color.Magenta;
            this.ReloadToolStripButton.Name                          = "ReloadToolStripButton";
            this.ReloadToolStripButton.Size                          = new Size(23, 22);
            this.ReloadToolStripButton.Text                          = "Reload";
            this.ReloadToolStripButton.ToolTipText                   = "Reload the project.";
            this.ReloadToolStripButton.Click                        += new EventHandler(this.ReloadToolStripButton_Click);
            this.SaveToolStripButton.DisplayStyle                    = ToolStripItemDisplayStyle.Image;
            this.SaveToolStripButton.Enabled                         = false;
            this.SaveToolStripButton.Image                           = (Image)Resources.save;
            this.SaveToolStripButton.ImageTransparentColor           = Color.Magenta;
            this.SaveToolStripButton.Name                            = "SaveToolStripButton";
            this.SaveToolStripButton.Size                            = new Size(23, 22);
            this.SaveToolStripButton.Text                            = "Save";
            this.SaveToolStripButton.ToolTipText                     = "Save the project.";
            this.SaveToolStripButton.Click                          += new EventHandler(this.SaveToolStripButton_Click);
            this.ResetToolStripButton.DisplayStyle                   = ToolStripItemDisplayStyle.Image;
            this.ResetToolStripButton.Enabled                        = false;
            this.ResetToolStripButton.Image                          = (Image)Resources.reset;
            this.ResetToolStripButton.ImageTransparentColor          = Color.Magenta;
            this.ResetToolStripButton.Name                           = "ResetToolStripButton";
            this.ResetToolStripButton.Size                           = new Size(23, 22);
            this.ResetToolStripButton.Text                           = "Reset";
            this.ResetToolStripButton.ToolTipText                    = "Reset the current tab to defaults.";
            this.ResetToolStripButton.Click                         += new EventHandler(this.ResetToolStripButton_Click);
            this.toolStripSeparator8.Name                            = "toolStripSeparator8";
            this.toolStripSeparator8.Size                            = new Size(6, 25);
            this.AppIdToolStripLabel.Name                            = "AppIdToolStripLabel";
            this.AppIdToolStripLabel.Size                            = new Size(43, 22);
            this.AppIdToolStripLabel.Text                            = "AppID:";
            this.AppIdToolStripTextBox.BorderStyle                   = BorderStyle.FixedSingle;
            this.AppIdToolStripTextBox.Name                          = "AppIdToolStripTextBox";
            this.AppIdToolStripTextBox.ReadOnly                      = true;
            this.AppIdToolStripTextBox.Size                          = new Size(150, 25);
            this.AppIdToolStripTextBox.TextChanged                  += new EventHandler(this.AppIdToolStripTextBox_TextChanged);
            this.toolStripSeparator6.Name                            = "toolStripSeparator6";
            this.toolStripSeparator6.Size                            = new Size(6, 25);
            this.EnvironmentsToolStripComboBox.Enabled               = false;
            this.EnvironmentsToolStripComboBox.FlatStyle             = FlatStyle.System;
            this.EnvironmentsToolStripComboBox.Name                  = "EnvironmentsToolStripComboBox";
            this.EnvironmentsToolStripComboBox.Size                  = new Size(245, 25);
            this.EnvironmentsToolStripComboBox.SelectedIndexChanged += new EventHandler(this.EnvironmentsToolStripComboBox_SelectedIndexChanged);
            this.CopyToolStripButton.DisplayStyle                    = ToolStripItemDisplayStyle.Image;
            this.CopyToolStripButton.Enabled                         = false;
            this.CopyToolStripButton.Image                           = (Image)Resources.copy;
            this.CopyToolStripButton.ImageTransparentColor           = Color.Magenta;
            this.CopyToolStripButton.Name                            = "CopyToolStripButton";
            this.CopyToolStripButton.Size                            = new Size(23, 22);
            this.CopyToolStripButton.Text                            = "&Copy";
            this.CopyToolStripButton.ToolTipText                     = "Copy the environment to the clipboard.";
            this.CopyToolStripButton.Click                          += new EventHandler(this.CopyToolStripButton_Click);
            this.toolStripSeparator2.Name                            = "toolStripSeparator2";
            this.toolStripSeparator2.Size                            = new Size(6, 25);
            this.BuildLauncherToolStripButton.DisplayStyle           = ToolStripItemDisplayStyle.Image;
            this.BuildLauncherToolStripButton.Image                  = (Image)Resources.launcher;
            this.BuildLauncherToolStripButton.ImageTransparentColor  = Color.Magenta;
            this.BuildLauncherToolStripButton.Name                   = "BuildLauncherToolStripButton";
            this.BuildLauncherToolStripButton.Size                   = new Size(23, 22);
            this.BuildLauncherToolStripButton.Text                   = "Build the Launcher.";
            this.BuildLauncherToolStripButton.Click                 += new EventHandler(this.BuildLauncherToolStripButton_Click);
            this.BuildInstallerToolStripButton.DisplayStyle          = ToolStripItemDisplayStyle.Image;
            this.BuildInstallerToolStripButton.Image                 = (Image)Resources.installer;
            this.BuildInstallerToolStripButton.ImageTransparentColor = Color.Magenta;
            this.BuildInstallerToolStripButton.Name                  = "BuildInstallerToolStripButton";
            this.BuildInstallerToolStripButton.Size                  = new Size(23, 22);
            this.BuildInstallerToolStripButton.Text                  = "Build the Installer.";
            this.BuildInstallerToolStripButton.Click                += new EventHandler(this.BuildInstallerToolStripButton_Click);
            this.toolStripSeparator7.Name                            = "toolStripSeparator7";
            this.toolStripSeparator7.Size                            = new Size(6, 25);
            this.ExploreToolStripButton.DisplayStyle                 = ToolStripItemDisplayStyle.Image;
            this.ExploreToolStripButton.Image                        = (Image)Resources.explore;
            this.ExploreToolStripButton.ImageTransparentColor        = Color.Magenta;
            this.ExploreToolStripButton.Name                         = "ExploreToolStripButton";
            this.ExploreToolStripButton.Size                         = new Size(23, 22);
            this.ExploreToolStripButton.Text                         = "Explore";
            this.ExploreToolStripButton.ToolTipText                  = "Explore the project folder.";
            this.ExploreToolStripButton.Click                       += new EventHandler(this.ExploreToolStripButton_Click);
            this.BackupToolStripButton.DisplayStyle                  = ToolStripItemDisplayStyle.Image;
            this.BackupToolStripButton.Image                         = (Image)Resources.backup;
            this.BackupToolStripButton.ImageTransparentColor         = Color.Magenta;
            this.BackupToolStripButton.Name                          = "BackupToolStripButton";
            this.BackupToolStripButton.Size                          = new Size(23, 22);
            this.BackupToolStripButton.Text                          = "Backup";
            this.BackupToolStripButton.ToolTipText                   = "Backup project settings. (Recomended before edit)";
            this.BackupToolStripButton.MouseDown                    += new MouseEventHandler(this.BackupToolStripButton_MouseDown);
            this.toolStripSeparator9.Name                            = "toolStripSeparator9";
            this.toolStripSeparator9.Size                            = new Size(6, 25);
            this.FacebookToolStripButton.DisplayStyle                = ToolStripItemDisplayStyle.Image;
            this.FacebookToolStripButton.Image                       = (Image)Resources.facebook;
            this.FacebookToolStripButton.ImageTransparentColor       = Color.Magenta;
            this.FacebookToolStripButton.Name                        = "FacebookToolStripButton";
            this.FacebookToolStripButton.Size                        = new Size(23, 22);
            this.FacebookToolStripButton.Text                        = "Facebook";
            this.FacebookToolStripButton.ToolTipText                 = "Like on Facebook.";
            this.FacebookToolStripButton.Click                      += new EventHandler(this.FacebookToolStripButton_Click);
            this.PaypalToolStripButton.DisplayStyle                  = ToolStripItemDisplayStyle.Image;
            this.PaypalToolStripButton.Image                         = (Image)Resources.paypal;
            this.PaypalToolStripButton.ImageTransparentColor         = Color.Magenta;
            this.PaypalToolStripButton.Name                          = "PaypalToolStripButton";
            this.PaypalToolStripButton.Size                          = new Size(23, 22);
            this.PaypalToolStripButton.Text                          = "Paypal";
            this.PaypalToolStripButton.ToolTipText                   = "Thanks for your generous donation.";
            this.PaypalToolStripButton.Click                        += new EventHandler(this.donateToolStripMenuItem_Click);
            this.AutoScaleDimensions                                 = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(792, 569);
            this.Controls.Add((Control)this.toolStrip1);
            this.Controls.Add((Control)this.ButtonsPanel);
            this.Controls.Add((Control)this.ControlsPanel);
            this.Controls.Add((Control)this.statusStrip1);
            this.Controls.Add((Control)this.menuStrip1);
            this.Icon          = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.MainMenuStrip = this.menuStrip1;
            this.MinimumSize   = new Size(800, 600);
            this.Name          = nameof(MainForm);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag           = (object)"PAF Launcher Editor";
            this.Text          = "PAF Launcher Editor";
            this.Load         += new EventHandler(this.MainForm_Load);
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 17
0
 /// <summary>
 /// Initializes this component
 /// </summary>
 public void InitializeComponent()
 {
     _zoomToExtents    = new ToolStripButton();
     _fixedZoomIn      = new ToolStripButton();
     _fixedZoomOut     = new ToolStripButton();
     _sep1             = new ToolStripSeparator();
     _zoomToWindow     = new ToolStripButton();
     _pan              = new ToolStripButton();
     _sep2             = new ToolStripSeparator();
     _zoomPrev         = new ToolStripButton();
     _zoomNext         = new ToolStripButton();
     _sep3             = new ToolStripSeparator();
     _predefinedScales = new ToolStripComboBox();
     _sep4             = new ToolStripSeparator();
     _minZoom          = new ToolStripButton();
     _maxZoom          = new ToolStripButton();
     _maxZoom2         = new ToolStripButton();
     _lock             = new ToolStripButton();
     SuspendLayout();
     //
     // _zoomToExtents
     //
     _zoomToExtents.Enabled     = false;
     _zoomToExtents.Image       = Resources.zoom_extent;
     _zoomToExtents.Name        = "_zoomToExtents";
     _zoomToExtents.Size        = new System.Drawing.Size(23, 22);
     _zoomToExtents.ToolTipText = @"Zoom to the map\'s extent";
     _zoomToExtents.Click      += OnFixedZoom;
     //
     // _fixedZoomIn
     //
     _fixedZoomIn.Enabled     = false;
     _fixedZoomIn.Image       = Resources.zoom_in;
     _fixedZoomIn.Name        = "_fixedZoomIn";
     _fixedZoomIn.Size        = new System.Drawing.Size(23, 22);
     _fixedZoomIn.ToolTipText = @"Zoom into map";
     _fixedZoomIn.Click      += OnFixedZoom;
     //
     // _fixedZoomOut
     //
     _fixedZoomOut.Enabled     = false;
     _fixedZoomOut.Image       = Resources.zoom_out;
     _fixedZoomOut.Name        = "_fixedZoomOut";
     _fixedZoomOut.Size        = new System.Drawing.Size(23, 22);
     _fixedZoomOut.ToolTipText = @"Zoom out of map";
     _fixedZoomOut.Click      += OnFixedZoom;
     //
     // _sep1
     //
     _sep1.Name = "_sep1";
     _sep1.Size = new System.Drawing.Size(6, 6);
     //
     // _zoomToWindow
     //
     _zoomToWindow.CheckOnClick    = true;
     _zoomToWindow.Enabled         = false;
     _zoomToWindow.Image           = Resources.zoom_region;
     _zoomToWindow.Name            = "_zoomToWindow";
     _zoomToWindow.Size            = new System.Drawing.Size(23, 20);
     _zoomToWindow.ToolTipText     = @"Specify viewport by mouse selection";
     _zoomToWindow.CheckOnClick    = true;
     _zoomToWindow.CheckedChanged += OnCheckedChanged;
     //
     // _pan
     //
     _pan.CheckOnClick    = true;
     _pan.Enabled         = false;
     _pan.Image           = Resources.pan;
     _pan.Name            = "_pan";
     _pan.Size            = new System.Drawing.Size(23, 20);
     _pan.ToolTipText     = @"Drag the map\'s content around and scoll by mouse wheel";
     _pan.CheckOnClick    = true;
     _pan.CheckedChanged += OnCheckedChanged;
     //
     // _sep2
     //
     _sep2.Name = "_sep2";
     _sep2.Size = new System.Drawing.Size(6, 6);
     //
     // _zoomPrev
     //
     _zoomPrev.Enabled     = false;
     _zoomPrev.Image       = Resources.zoom_last;
     _zoomPrev.Name        = "_zoomPrev";
     _zoomPrev.Size        = new System.Drawing.Size(23, 20);
     _zoomPrev.ToolTipText = @"Zoom to previous viewport";
     _zoomPrev.Click      += (sender, args) => _zoomExtentStack.ZoomPrevious();
     //
     // _zoomNext
     //
     _zoomNext.Enabled     = false;
     _zoomNext.Image       = Resources.zoom_next;
     _zoomNext.Name        = "_zoomNext";
     _zoomNext.Size        = new System.Drawing.Size(23, 20);
     _zoomNext.ToolTipText = @"Restore last viewport";
     _zoomNext.Click      += (sender, args) => _zoomExtentStack.ZoomNext();
     //
     // _sep3
     //
     _sep3.Name = "_sep3";
     _sep3.Size = new System.Drawing.Size(6, 6);
     //
     // _predefinedScales
     //
     _predefinedScales.Name = "_predefinedScales";
     _predefinedScales.Size = new System.Drawing.Size(121, 23);
     _predefinedScales.SelectedIndexChanged += OnScaleSelected;
     //
     // _sep4
     //
     _sep4.Name = "_sep3";
     _sep4.Size = new System.Drawing.Size(6, 6);
     //
     // _minZoom
     //
     _minZoom.Enabled         = false;
     _minZoom.Text            = "min";
     _minZoom.Name            = "_minZoom";
     _minZoom.Size            = new System.Drawing.Size(23, 20);
     _minZoom.ToolTipText     = @"Set the minimum zoom level";
     _minZoom.CheckOnClick    = true;
     _minZoom.CheckedChanged += OnCheckedChanged;
     //
     // _maxZoom
     //
     _maxZoom.Enabled         = false;
     _maxZoom.Text            = "max";
     _maxZoom.Name            = "_maxZoom";
     _maxZoom.Size            = new System.Drawing.Size(23, 20);
     _maxZoom.ToolTipText     = @"Set the maximum zoom level";
     _maxZoom.CheckOnClick    = true;
     _maxZoom.CheckedChanged += OnCheckedChanged;
     //
     // _maxZoom2
     //
     _maxZoom2.Enabled         = false;
     _maxZoom2.Text            = "max box";
     _maxZoom2.Name            = "_maxZoom2";
     _maxZoom2.Size            = new System.Drawing.Size(23, 20);
     _maxZoom2.ToolTipText     = @"Set the maximum zoom window";
     _maxZoom2.CheckOnClick    = true;
     _maxZoom2.CheckedChanged += OnCheckedChanged;
     //
     // _lock
     //
     _lock.Enabled         = false;
     _lock.Name            = "_lock";
     _lock.Size            = new System.Drawing.Size(23, 20);
     _lock.ToolTipText     = @"Lock the viewport";
     _lock.CheckOnClick    = true;
     _lock.Image           = Resources.unlocked;
     _lock.CheckedChanged += OnCheckedChanged;
     //
     // MapZoomToolStrip
     //
     Items.AddRange(new ToolStripItem[] {
         _zoomToExtents,
         _fixedZoomIn,
         _fixedZoomOut,
         _sep1,
         _zoomToWindow,
         _pan,
         _sep2,
         _zoomPrev,
         _zoomNext,
         _sep3,
         _predefinedScales,
         _sep4,
         _minZoom,
         _maxZoom,
         _lock,
     });
     Text = @"MapZoomToolStrip";
     ResumeLayout(false);
 }
Esempio n. 18
0
        /// <summary>
        /// Initializes page Chart.
        /// </summary>
        public void Initialize_PageJournal()
        {
            // tabPageJournal
            tabPageJournal.Name       = "tabPageJournal";
            tabPageJournal.Text       = Language.T("Journal");
            tabPageJournal.ImageIndex = 4;

            journal        = new Journal();
            journal.Parent = tabPageJournal;
            journal.Dock   = DockStyle.Fill;

            tsJournal        = new ToolStrip();
            tsJournal.Parent = tabPageJournal;
            tsJournal.Dock   = DockStyle.Top;

            Font     fontMessage = new Font(Font.FontFamily, 9);
            Graphics g           = CreateGraphics();
            float    fTimeWidth  = g.MeasureString(DateTime.Now.ToString(Data.DF + " HH:mm:ss"), fontMessage).Width;

            g.Dispose();

            ToolStripLabel lblTime = new ToolStripLabel(Language.T("Time"));

            lblTime.AutoSize = false;
            lblTime.Width    = 16 + (int)fTimeWidth - 5;
            tsJournal.Items.Add(lblTime);

            tsJournal.Items.Add(new ToolStripSeparator());

            ToolStripLabel lblMessage = new ToolStripLabel(Language.T("Message"));

            lblMessage.AutoSize = false;
            lblMessage.Width    = 250;
            tsJournal.Items.Add(lblMessage);

            // Tool strip buttons
            ToolStripButton tsbClear = new ToolStripButton();

            tsbClear.Image        = Properties.Resources.clear;
            tsbClear.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbClear.Alignment    = ToolStripItemAlignment.Right;
            tsbClear.ToolTipText  = Language.T("Clear journal's messages.");
            tsbClear.Click       += new EventHandler(TsbClear_Click);
            tsJournal.Items.Add(tsbClear);

            ToolStripSeparator sep = new ToolStripSeparator();

            sep.Alignment = ToolStripItemAlignment.Right;
            tsJournal.Items.Add(sep);

            ToolStripComboBox tscbxJounalLength = new ToolStripComboBox();

            tscbxJounalLength.Alignment     = ToolStripItemAlignment.Right;
            tscbxJounalLength.DropDownStyle = ComboBoxStyle.DropDownList;
            tscbxJounalLength.AutoSize      = false;
            tscbxJounalLength.Size          = new System.Drawing.Size(60, 25);
            tscbxJounalLength.Items.AddRange(new object[] { "20", "200", "500", "1000", "5000", "10000" });
            tscbxJounalLength.SelectedItem          = Configs.JournalLength.ToString();
            tscbxJounalLength.ToolTipText           = Language.T("Maximum messages in the journal.");
            tscbxJounalLength.SelectedIndexChanged += new EventHandler(TscbxJounalLenght_SelectedIndexChanged);
            tsJournal.Items.Add(tscbxJounalLength);

            ToolStripButton tsbShowTicks = new ToolStripButton();

            tsbShowTicks.Image        = Properties.Resources.show_ticks;
            tsbShowTicks.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbShowTicks.Alignment    = ToolStripItemAlignment.Right;
            tsbShowTicks.Checked      = isShowTicks;
            tsbShowTicks.ToolTipText  = Language.T("Show incoming ticks.");
            tsbShowTicks.Click       += new EventHandler(TsbShowTicks_Click);
            tsJournal.Items.Add(tsbShowTicks);

            ToolStripButton tsbShowSystemMessages = new ToolStripButton();

            tsbShowSystemMessages.Image        = Properties.Resources.show_system_messages;
            tsbShowSystemMessages.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbShowSystemMessages.Alignment    = ToolStripItemAlignment.Right;
            tsbShowSystemMessages.Checked      = isShowSystemMessages;
            tsbShowSystemMessages.ToolTipText  = Language.T("Show system messages.");
            tsbShowSystemMessages.Click       += new EventHandler(TsbShowSystems_Click);
            tsJournal.Items.Add(tsbShowSystemMessages);

            ToolStripSeparator sep1 = new ToolStripSeparator();

            sep1.Alignment = ToolStripItemAlignment.Right;
            tsJournal.Items.Add(sep1);

            return;
        }
Esempio n. 19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.sbMessage                 = new EWSoftware.StatusBarText.StatusBarTextProvider(this.components);
     this.fileToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.loadToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.saveToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.exitToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.windowToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.newToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.listToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.minimizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.maximizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.aboutToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1        = new System.Windows.Forms.ToolStripSeparator();
     this.blankStatusTextOnThisOneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripButton1         = new System.Windows.Forms.ToolStripButton();
     this.toolStripLabel1          = new System.Windows.Forms.ToolStripLabel();
     this.toolStripSplitButton1    = new System.Windows.Forms.ToolStripSplitButton();
     this.test1ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.test2ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.test3ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
     this.test1ToolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.test2ToolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.test3ToolStripMenuItem1  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripComboBox1       = new System.Windows.Forms.ToolStripComboBox();
     this.toolStripTextBox1        = new System.Windows.Forms.ToolStripTextBox();
     this.tslProgressNote          = new System.Windows.Forms.ToolStripStatusLabel();
     this.tspbProgressBar          = new System.Windows.Forms.ToolStripProgressBar();
     this.menuStrip1            = new System.Windows.Forms.MenuStrip();
     this.statusStrip1          = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.tslStatusText         = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStrip1            = new System.Windows.Forms.ToolStrip();
     this.toolStripSeparator2   = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripSeparator1   = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripSeparator3   = new System.Windows.Forms.ToolStripSeparator();
     this.menuStrip1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.loadToolStripMenuItem,
         this.saveToolStripMenuItem,
         this.exitToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(42, 21);
     this.sbMessage.SetStatusBarText(this.fileToolStripMenuItem, "File related commands");
     this.fileToolStripMenuItem.Text = "&File";
     //
     // loadToolStripMenuItem
     //
     this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
     this.loadToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
     this.sbMessage.SetStatusBarText(this.loadToolStripMenuItem, "Load a file of some sort");
     this.loadToolStripMenuItem.Text   = "&Load";
     this.loadToolStripMenuItem.Click += new System.EventHandler(this.menuItem2_Click);
     //
     // saveToolStripMenuItem
     //
     this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
     this.sbMessage.SetStatusBarText(this.saveToolStripMenuItem, "Save a file of some sort");
     this.saveToolStripMenuItem.Text = "&Save";
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
     this.sbMessage.SetStatusBarText(this.exitToolStripMenuItem, "Exit the application");
     this.exitToolStripMenuItem.Text   = "E&xit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.menuItem4_Click);
     //
     // windowToolStripMenuItem
     //
     this.windowToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.newToolStripMenuItem,
         this.listToolStripMenuItem,
         this.minimizeToolStripMenuItem,
         this.maximizeToolStripMenuItem
     });
     this.windowToolStripMenuItem.Name = "windowToolStripMenuItem";
     this.windowToolStripMenuItem.Size = new System.Drawing.Size(69, 21);
     this.sbMessage.SetStatusBarText(this.windowToolStripMenuItem, "Window related commands");
     this.windowToolStripMenuItem.Text = "&Window";
     //
     // newToolStripMenuItem
     //
     this.newToolStripMenuItem.Name = "newToolStripMenuItem";
     this.newToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
     this.sbMessage.SetStatusBarText(this.newToolStripMenuItem, "Open a new window");
     this.newToolStripMenuItem.Text = "&New";
     //
     // listToolStripMenuItem
     //
     this.listToolStripMenuItem.Name = "listToolStripMenuItem";
     this.listToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
     this.sbMessage.SetStatusBarText(this.listToolStripMenuItem, "View the window list");
     this.listToolStripMenuItem.Text = "&List";
     //
     // minimizeToolStripMenuItem
     //
     this.minimizeToolStripMenuItem.Name = "minimizeToolStripMenuItem";
     this.minimizeToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
     this.sbMessage.SetStatusBarText(this.minimizeToolStripMenuItem, "Minimize the window");
     this.minimizeToolStripMenuItem.Text = "&Minimize";
     //
     // maximizeToolStripMenuItem
     //
     this.maximizeToolStripMenuItem.Name = "maximizeToolStripMenuItem";
     this.maximizeToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
     this.sbMessage.SetStatusBarText(this.maximizeToolStripMenuItem, "Maximize the window");
     this.maximizeToolStripMenuItem.Text = "M&aximize";
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.aboutToolStripMenuItem,
         this.toolStripMenuItem1,
         this.blankStatusTextOnThisOneToolStripMenuItem
     });
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.sbMessage.SetShowAsBlank(this.helpToolStripMenuItem, true);
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(49, 21);
     this.helpToolStripMenuItem.Text = "&Help";
     //
     // aboutToolStripMenuItem
     //
     this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
     this.aboutToolStripMenuItem.Size = new System.Drawing.Size(257, 22);
     this.sbMessage.SetStatusBarText(this.aboutToolStripMenuItem, "View copyright and contact information");
     this.aboutToolStripMenuItem.Text   = "&About...";
     this.aboutToolStripMenuItem.Click += new System.EventHandler(this.menuItem11_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(254, 6);
     //
     // blankStatusTextOnThisOneToolStripMenuItem
     //
     this.blankStatusTextOnThisOneToolStripMenuItem.Name = "blankStatusTextOnThisOneToolStripMenuItem";
     this.sbMessage.SetShowAsBlank(this.blankStatusTextOnThisOneToolStripMenuItem, true);
     this.blankStatusTextOnThisOneToolStripMenuItem.Size = new System.Drawing.Size(257, 22);
     this.blankStatusTextOnThisOneToolStripMenuItem.Text = "&Blank status text on this one";
     //
     // toolStripButton1
     //
     this.toolStripButton1.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton1.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
     this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButton1.Name = "toolStripButton1";
     this.toolStripButton1.Size = new System.Drawing.Size(23, 23);
     this.sbMessage.SetStatusBarText(this.toolStripButton1, "A toolstrip button");
     this.toolStripButton1.Text = "toolStripButton1";
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(73, 23);
     this.sbMessage.SetStatusBarText(this.toolStripLabel1, "A toolstrip label");
     this.toolStripLabel1.Text = "Enter Text";
     //
     // toolStripSplitButton1
     //
     this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripSplitButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.test1ToolStripMenuItem,
         this.test2ToolStripMenuItem,
         this.test3ToolStripMenuItem
     });
     this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
     this.toolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripSplitButton1.Name = "toolStripSplitButton1";
     this.toolStripSplitButton1.Size = new System.Drawing.Size(32, 23);
     this.sbMessage.SetStatusBarText(this.toolStripSplitButton1, "A toolstrip split button");
     this.toolStripSplitButton1.Text = "toolStripSplitButton1";
     //
     // test1ToolStripMenuItem
     //
     this.test1ToolStripMenuItem.Name = "test1ToolStripMenuItem";
     this.test1ToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test1ToolStripMenuItem, "Split dropdown button item #1");
     this.test1ToolStripMenuItem.Text = "Test 1";
     //
     // test2ToolStripMenuItem
     //
     this.test2ToolStripMenuItem.Name = "test2ToolStripMenuItem";
     this.test2ToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test2ToolStripMenuItem, "Split dropdown button item #2");
     this.test2ToolStripMenuItem.Text = "Test 2";
     //
     // test3ToolStripMenuItem
     //
     this.test3ToolStripMenuItem.Name = "test3ToolStripMenuItem";
     this.test3ToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test3ToolStripMenuItem, "Split dropdown button item #3");
     this.test3ToolStripMenuItem.Text = "Test 3";
     //
     // toolStripDropDownButton1
     //
     this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.test1ToolStripMenuItem1,
         this.test2ToolStripMenuItem1,
         this.test3ToolStripMenuItem1
     });
     this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
     this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
     this.toolStripDropDownButton1.Size = new System.Drawing.Size(29, 23);
     this.sbMessage.SetStatusBarText(this.toolStripDropDownButton1, "A toolstrip dropdown button");
     this.toolStripDropDownButton1.Text = "toolStripDropDownButton1";
     //
     // test1ToolStripMenuItem1
     //
     this.test1ToolStripMenuItem1.Name = "test1ToolStripMenuItem1";
     this.test1ToolStripMenuItem1.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test1ToolStripMenuItem1, "Dropdown button item #1");
     this.test1ToolStripMenuItem1.Text = "Test 1";
     //
     // test2ToolStripMenuItem1
     //
     this.test2ToolStripMenuItem1.Name = "test2ToolStripMenuItem1";
     this.test2ToolStripMenuItem1.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test2ToolStripMenuItem1, "Dropdown button item #2");
     this.test2ToolStripMenuItem1.Text = "Test 2";
     //
     // test3ToolStripMenuItem1
     //
     this.test3ToolStripMenuItem1.Name = "test3ToolStripMenuItem1";
     this.test3ToolStripMenuItem1.Size = new System.Drawing.Size(120, 22);
     this.sbMessage.SetStatusBarText(this.test3ToolStripMenuItem1, "Dropdown button item #3");
     this.test3ToolStripMenuItem1.Text = "Test 3";
     //
     // toolStripComboBox1
     //
     this.toolStripComboBox1.Items.AddRange(new object[] {
         "Item #1",
         "Item #2",
         "Item #3",
         "Item #4"
     });
     this.toolStripComboBox1.Name = "toolStripComboBox1";
     this.toolStripComboBox1.Size = new System.Drawing.Size(121, 26);
     this.sbMessage.SetStatusBarText(this.toolStripComboBox1, "A toolstrip combo box");
     //
     // toolStripTextBox1
     //
     this.toolStripTextBox1.Name = "toolStripTextBox1";
     this.toolStripTextBox1.Size = new System.Drawing.Size(150, 26);
     this.sbMessage.SetStatusBarText(this.toolStripTextBox1, "A toolstrip text box");
     this.toolStripTextBox1.Text = "Toolstrip text box";
     //
     // tslProgressNote
     //
     this.tslProgressNote.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
     this.tslProgressNote.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
     this.tslProgressNote.Margin      = new System.Windows.Forms.Padding(0);
     this.tslProgressNote.Name        = "tslProgressNote";
     this.tslProgressNote.Size        = new System.Drawing.Size(4, 27);
     this.sbMessage.SetStatusBarText(this.tslProgressNote, "Progress message");
     this.tslProgressNote.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // tspbProgressBar
     //
     this.tspbProgressBar.Name = "tspbProgressBar";
     this.tspbProgressBar.Size = new System.Drawing.Size(100, 21);
     this.sbMessage.SetStatusBarText(this.tspbProgressBar, "Progress bar");
     //
     // menuStrip1
     //
     this.menuStrip1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F);
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem,
         this.windowToolStripMenuItem,
         this.helpToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(816, 25);
     this.menuStrip1.TabIndex = 2;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // statusStrip1
     //
     this.statusStrip1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F);
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel1,
         this.tslStatusText,
         this.tslProgressNote,
         this.tspbProgressBar
     });
     this.statusStrip1.Location = new System.Drawing.Point(0, 539);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(816, 27);
     this.statusStrip1.TabIndex = 3;
     this.statusStrip1.Text     = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
     this.toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
     this.toolStripStatusLabel1.Margin      = new System.Windows.Forms.Padding(0);
     this.toolStripStatusLabel1.Name        = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size        = new System.Drawing.Size(40, 27);
     this.toolStripStatusLabel1.Text        = "Test";
     //
     // tslStatusText
     //
     this.tslStatusText.Name      = "tslStatusText";
     this.tslStatusText.Size      = new System.Drawing.Size(655, 22);
     this.tslStatusText.Spring    = true;
     this.tslStatusText.Text      = "Ready";
     this.tslStatusText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // toolStrip1
     //
     this.toolStrip1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F);
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripButton1,
         this.toolStripSeparator2,
         this.toolStripSplitButton1,
         this.toolStripDropDownButton1,
         this.toolStripSeparator1,
         this.toolStripComboBox1,
         this.toolStripSeparator3,
         this.toolStripLabel1,
         this.toolStripTextBox1
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 25);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(816, 26);
     this.toolStrip1.TabIndex = 4;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 26);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(6, 26);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(816, 566);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.menuStrip1);
     this.IsMdiContainer = true;
     this.MainMenuStrip  = this.menuStrip1;
     this.Name           = "Form1";
     this.Text           = "StatusBarTextProvider Demo";
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 20
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SymbolCollectionComposer));
     this.boxPreview            = new System.Windows.Forms.GroupBox();
     this.panelPreview          = new System.Windows.Forms.Panel();
     this.toolStrip2            = new System.Windows.Forms.ToolStrip();
     this.toolStripButton5      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton6      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton7      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton8      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton9      = new System.Windows.Forms.ToolStripButton();
     this.toolStripButton10     = new System.Windows.Forms.ToolStripButton();
     this.toolStripSplitButton1 = new System.Windows.Forms.ToolStripSplitButton();
     this.txtXOffset            = new System.Windows.Forms.ToolStripTextBox();
     this.txtYOffset            = new System.Windows.Forms.ToolStripTextBox();
     this.txtRotation           = new System.Windows.Forms.ToolStripTextBox();
     this.toolStripComboBox1    = new System.Windows.Forms.ToolStripComboBox();
     this.panel2           = new System.Windows.Forms.Panel();
     this.toolStrip1       = new System.Windows.Forms.ToolStrip();
     this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
     this.btnRemove        = new System.Windows.Forms.ToolStripButton();
     this.btnMoveDown      = new System.Windows.Forms.ToolStripButton();
     this.btnMoveUp        = new System.Windows.Forms.ToolStripButton();
     this.lbSymbols        = new System.Windows.Forms.ListBox();
     this.splitter1        = new System.Windows.Forms.Splitter();
     this.iList            = new System.Windows.Forms.ImageList(this.components);
     this.boxPreview.SuspendLayout();
     this.toolStrip2.SuspendLayout();
     this.panel2.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // boxPreview
     //
     resources.ApplyResources(this.boxPreview, "boxPreview");
     this.boxPreview.Controls.Add(this.panelPreview);
     this.boxPreview.Controls.Add(this.toolStrip2);
     this.boxPreview.Name    = "boxPreview";
     this.boxPreview.TabStop = false;
     //
     // panelPreview
     //
     resources.ApplyResources(this.panelPreview, "panelPreview");
     this.panelPreview.Name   = "panelPreview";
     this.panelPreview.Paint += new System.Windows.Forms.PaintEventHandler(this.panelPreview_Paint_1);
     //
     // toolStrip2
     //
     resources.ApplyResources(this.toolStrip2, "toolStrip2");
     this.toolStrip2.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip2.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripButton5,
         this.toolStripButton6,
         this.toolStripButton7,
         this.toolStripButton8,
         this.toolStripButton9,
         this.toolStripButton10,
         this.toolStripSplitButton1,
         this.toolStripComboBox1
     });
     this.toolStrip2.Name             = "toolStrip2";
     this.toolStrip2.ShowItemToolTips = false;
     //
     // toolStripButton5
     //
     resources.ApplyResources(this.toolStripButton5, "toolStripButton5");
     this.toolStripButton5.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton5.Name         = "toolStripButton5";
     this.toolStripButton5.Click       += new System.EventHandler(this.btnLeft_Click);
     //
     // toolStripButton6
     //
     resources.ApplyResources(this.toolStripButton6, "toolStripButton6");
     this.toolStripButton6.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton6.Name         = "toolStripButton6";
     this.toolStripButton6.Click       += new System.EventHandler(this.btn_Up_Click);
     //
     // toolStripButton7
     //
     resources.ApplyResources(this.toolStripButton7, "toolStripButton7");
     this.toolStripButton7.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton7.Name         = "toolStripButton7";
     this.toolStripButton7.Click       += new System.EventHandler(this.btn_Down_Click);
     //
     // toolStripButton8
     //
     resources.ApplyResources(this.toolStripButton8, "toolStripButton8");
     this.toolStripButton8.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton8.Name         = "toolStripButton8";
     this.toolStripButton8.Click       += new System.EventHandler(this.btnRight_Click);
     //
     // toolStripButton9
     //
     resources.ApplyResources(this.toolStripButton9, "toolStripButton9");
     this.toolStripButton9.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton9.Name         = "toolStripButton9";
     this.toolStripButton9.Click       += new System.EventHandler(this.btnRotate2_Click);
     //
     // toolStripButton10
     //
     resources.ApplyResources(this.toolStripButton10, "toolStripButton10");
     this.toolStripButton10.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton10.Name         = "toolStripButton10";
     this.toolStripButton10.Click       += new System.EventHandler(this.btnRotate1_Click);
     //
     // toolStripSplitButton1
     //
     resources.ApplyResources(this.toolStripSplitButton1, "toolStripSplitButton1");
     this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.None;
     this.toolStripSplitButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.txtXOffset,
         this.txtYOffset,
         this.txtRotation
     });
     this.toolStripSplitButton1.Name = "toolStripSplitButton1";
     //
     // txtXOffset
     //
     resources.ApplyResources(this.txtXOffset, "txtXOffset");
     this.txtXOffset.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtXOffset.HideSelection = false;
     this.txtXOffset.Name          = "txtXOffset";
     this.txtXOffset.TextChanged  += new System.EventHandler(this.txtXOffset_TextChanged);
     //
     // txtYOffset
     //
     resources.ApplyResources(this.txtYOffset, "txtYOffset");
     this.txtYOffset.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtYOffset.HideSelection = false;
     this.txtYOffset.Name          = "txtYOffset";
     this.txtYOffset.TextChanged  += new System.EventHandler(this.txtYOffset_TextChanged);
     //
     // txtRotation
     //
     resources.ApplyResources(this.txtRotation, "txtRotation");
     this.txtRotation.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtRotation.HideSelection = false;
     this.txtRotation.Name          = "txtRotation";
     this.txtRotation.TextChanged  += new System.EventHandler(this.txtRotation_TextChanged);
     //
     // toolStripComboBox1
     //
     resources.ApplyResources(this.toolStripComboBox1, "toolStripComboBox1");
     this.toolStripComboBox1.Name = "toolStripComboBox1";
     //
     // panel2
     //
     resources.ApplyResources(this.panel2, "panel2");
     this.panel2.Controls.Add(this.toolStrip1);
     this.panel2.Name = "panel2";
     //
     // toolStrip1
     //
     resources.ApplyResources(this.toolStrip1, "toolStrip1");
     this.toolStrip1.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripButton1,
         this.btnRemove,
         this.btnMoveDown,
         this.btnMoveUp
     });
     this.toolStrip1.Name = "toolStrip1";
     //
     // toolStripButton1
     //
     resources.ApplyResources(this.toolStripButton1, "toolStripButton1");
     this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButton1.Name         = "toolStripButton1";
     this.toolStripButton1.Click       += new System.EventHandler(this.btnAdd_Click);
     //
     // btnRemove
     //
     resources.ApplyResources(this.btnRemove, "btnRemove");
     this.btnRemove.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnRemove.Name         = "btnRemove";
     this.btnRemove.Click       += new System.EventHandler(this.btnRemove_Click);
     //
     // btnMoveDown
     //
     resources.ApplyResources(this.btnMoveDown, "btnMoveDown");
     this.btnMoveDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnMoveDown.Name         = "btnMoveDown";
     this.btnMoveDown.Click       += new System.EventHandler(this.btnMoveDown_Click);
     //
     // btnMoveUp
     //
     resources.ApplyResources(this.btnMoveUp, "btnMoveUp");
     this.btnMoveUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.btnMoveUp.Name         = "btnMoveUp";
     this.btnMoveUp.Click       += new System.EventHandler(this.btnMoveUp_Click);
     //
     // lbSymbols
     //
     resources.ApplyResources(this.lbSymbols, "lbSymbols");
     this.lbSymbols.BorderStyle           = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lbSymbols.DrawMode              = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.lbSymbols.Name                  = "lbSymbols";
     this.lbSymbols.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.lbSymbols_DrawItem);
     this.lbSymbols.SelectedIndexChanged += new System.EventHandler(this.lbSymbols_SelectedIndexChanged);
     this.lbSymbols.MouseDown            += new System.Windows.Forms.MouseEventHandler(this.lbSymbols_MouseDown);
     this.lbSymbols.MouseMove            += new System.Windows.Forms.MouseEventHandler(this.lbSymbols_MouseMove);
     this.lbSymbols.MouseUp              += new System.Windows.Forms.MouseEventHandler(this.lbSymbols_MouseUp);
     //
     // splitter1
     //
     resources.ApplyResources(this.splitter1, "splitter1");
     this.splitter1.Name    = "splitter1";
     this.splitter1.TabStop = false;
     //
     // iList
     //
     this.iList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("iList.ImageStream")));
     this.iList.TransparentColor = System.Drawing.Color.Transparent;
     this.iList.Images.SetKeyName(0, "");
     this.iList.Images.SetKeyName(1, "");
     //
     // SymbolCollectionComposer
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.lbSymbols);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.boxPreview);
     this.Name = "SymbolCollectionComposer";
     this.boxPreview.ResumeLayout(false);
     this.boxPreview.PerformLayout();
     this.toolStrip2.ResumeLayout(false);
     this.toolStrip2.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
 }
Esempio n. 21
0
        private void AddControls()
        {
            ToolStrip toolStrip = new ToolStrip();

            Controls.Add(toolStrip);

            ToolStripLabel folderLabel = new ToolStripLabel();

            folderLabel.Text = "Folder";
            toolStrip.Items.Add(folderLabel);

            folderComboBox          = new ToolStripComboBox();
            folderComboBox.AutoSize = false;
            SetComboBoxItems(folderComboBox, settings.folderPaths);
            folderComboBox.SelectedIndexChanged += FolderComboBox_SelectedIndexChanged;
            toolStrip.Items.Add(folderComboBox);

            ToolStripLabel songLabel = new ToolStripLabel();

            songLabel.Text = "Song";
            toolStrip.Items.Add(songLabel);

            songComboBox          = new ToolStripComboBox();
            songComboBox.AutoSize = false;
            songComboBox.Width    = 25;
            toolStrip.Items.Add(songComboBox);

            ToolStripButton showSongButton = new ToolStripButton();

            showSongButton.Text   = "Show song";
            showSongButton.Click += ShowSongButton_Click;
            toolStrip.Items.Add(showSongButton);

            toolStrip.Items.Add(new ToolStripSeparator());

            ToolStripLabel metronomeLabel = new ToolStripLabel();

            songLabel.Text = "Metronome";
            toolStrip.Items.Add(metronomeLabel);

            metronomeComboBox = new ToolStripComboBox();
            metronomeComboBox.Items.Add("30");
            metronomeComboBox.Items.Add("40");
            metronomeComboBox.Items.Add("50");
            metronomeComboBox.Items.Add("60");
            metronomeComboBox.Items.Add("70");
            metronomeComboBox.Items.Add("80");
            metronomeComboBox.Items.Add("90");
            metronomeComboBox.Items.Add("100");
            toolStrip.Items.Add(metronomeComboBox);

            metronomeButton        = new ToolStripButton();
            metronomeButton.Text   = "Start";
            metronomeButton.Click += MetronomeButton_Click;
            toolStrip.Items.Add(metronomeButton);

            toolStrip.Items.Add(new ToolStripSeparator());

            ToolStripButton launchPlayerButton = new ToolStripButton();

            launchPlayerButton.Text   = "Launch player";
            launchPlayerButton.Click += LaunchPlayerButton_Click;
            toolStrip.Items.Add(launchPlayerButton);

            ToolStripButton addFolderButton = new ToolStripButton();

            addFolderButton.Text   = "Add folder";
            addFolderButton.Click += AddFolderButton_Click;
            toolStrip.Items.Add(addFolderButton);

            ToolStripButton changePlayerButton = new ToolStripButton();

            changePlayerButton.Text   = "Change player";
            changePlayerButton.Click += ChangePlayerButton_Click;
            toolStrip.Items.Add(changePlayerButton);

            ToolStripButton changeInputButton = new ToolStripButton();

            changeInputButton.Text   = "Change input";
            changeInputButton.Click += ChangeInputButton_Click;
            toolStrip.Items.Add(changeInputButton);

            pictureBox           = new PictureBox();
            pictureBox.BackColor = Color.White;
            pictureBox.Size      = new Size(Size.Width, Size.Height - toolStrip.Height); //1920x1200 -> 1920x1145
            pictureBox.Location  = new Point(0, toolStrip.Height);
            Controls.Add(pictureBox);
            //MessageBox.Show(pictureBox.Width + " " + pictureBox.Height);

            folderSwitchingLabel           = new Label();
            folderSwitchingLabel.Text      = ("Press left or right to change a folder and select to confirm");
            folderSwitchingLabel.TextAlign = ContentAlignment.MiddleCenter;
            folderSwitchingLabel.Size      = Size;
            folderSwitchingLabel.Hide();
            Controls.Add(folderSwitchingLabel);

            exitPressedLabel           = new Label();
            exitPressedLabel.Text      = ("Press stop to exit or play to continue");
            exitPressedLabel.TextAlign = ContentAlignment.MiddleCenter;
            exitPressedLabel.Size      = Size;
            exitPressedLabel.Hide();
            Controls.Add(exitPressedLabel);

            if (settings.folderPaths.Count > 0)
            {
                SetFolderComboBoxItems(settings.folderPaths);
                UpdateSongComboBox();
            }

            LoadPages();
        }
Esempio n. 22
0
        /// <summary>
        /// populate a combo box on the toolbar
        /// </summary>
        /// <param name="choice">The group that is the basis for this combo box.</param>
        private void FillCombo(ChoiceGroup choice)
        {
            UIItemDisplayProperties groupDisplay = choice.GetDisplayProperties();

            ToolStripComboBox combo = choice.ReferenceWidget as ToolStripComboBox;

            if (combo.Focused)
            {
                return;                //don't mess while we're in the combo
            }
            // Disable if needed, but still show what's current, as for unicode fields where you can't change it, but you want to see what it is set to.
            combo.Enabled = groupDisplay.Enabled;

            ArrayList newItems     = new ArrayList();
            bool      fDifferent   = false;
            var       selectedItem = (ChoiceBase)null;

            foreach (ChoiceRelatedClass item in choice)
            {
                if (item is SeparatorChoice)
                {
                    //TODO
                }
                else if (item is ChoiceBase)
                {
                    UIItemDisplayProperties display = ((ChoiceBase)item).GetDisplayProperties();
                    newItems.Add(item);
                    if (groupDisplay.Checked)
                    {
                        selectedItem = (ChoiceBase)item;
                    }
                    if (combo.Items.Count < newItems.Count || combo.Items[newItems.Count - 1] != item)
                    {
                        fDifferent = true;
                    }
                }
            }

            combo.AccessibleName = choice.Label;
            if (fDifferent || selectedItem != (combo.SelectedItem))
            {
                //combo.SuspendLayout = true;
                //combo.Click -= new EventHandler(OnComboClick);	//don't generate clicks (which end up being onpropertychanged() calls)
                combo.Items.Clear();
                combo.Items.AddRange(newItems.ToArray());
                combo.SelectedItem = selectedItem;
                //combo.Click += new EventHandler(OnComboClick);
                //combo.SuspendLayout = false;
            }

            ////Set the ComboWidth of the combo box so that is is wide enough to show
            ////the text of all items in the list.
            //int maxStringLength = 0;
            //for (int i = 0; i < combo.Items.Count; i++)
            //{
            //    if (combo.Items[i].ToString().Length > maxStringLength)
            //    {
            //        maxStringLength = combo.Items[i].ToString().Length;
            //    }
            //}
            //int factor = 6;
            //if (maxStringLength > 0 && combo.ComboWidth < maxStringLength * factor)
            //    combo.ComboWidth = maxStringLength * factor;
            //combo.Tooltip = combo.ToString();
        }
Esempio n. 23
0
 private void InitializeComponent()
 {
     this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
     this.searchTxt       = new System.Windows.Forms.ToolStripTextBox();
     this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
     this.searchInCmb     = new System.Windows.Forms.ToolStripComboBox();
     this.searchBtn       = new System.Windows.Forms.ToolStripButton();
     this.refreshBtn      = new System.Windows.Forms.ToolStripButton();
     this.SuspendLayout();
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.AutoSize  = false;
     this.toolStripLabel1.ForeColor = System.Drawing.SystemColors.ButtonFace;
     this.toolStripLabel1.Name      = "toolStripLabel1";
     this.toolStripLabel1.Size      = new System.Drawing.Size(48, 29);
     this.toolStripLabel1.Text      = "Search :";
     //
     // searchTxt
     //
     this.searchTxt.Name = "searchTxt";
     this.searchTxt.Size = new System.Drawing.Size(100, 32);
     //
     // toolStripLabel2
     //
     this.toolStripLabel2.ForeColor = System.Drawing.SystemColors.ButtonFace;
     this.toolStripLabel2.Name      = "toolStripLabel2";
     this.toolStripLabel2.Size      = new System.Drawing.Size(58, 29);
     this.toolStripLabel2.Text      = "Search In:";
     //
     // searchInCmb
     //
     this.searchInCmb.Name      = "searchInCmb";
     this.searchInCmb.Size      = new System.Drawing.Size(100, 32);
     this.searchInCmb.GotFocus += new System.EventHandler(this.searchInToolStripCombobox_GotFocus);
     //
     // searchBtn
     //
     this.searchBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.searchBtn.ForeColor             = System.Drawing.Color.White;
     this.searchBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.searchBtn.Name   = "searchBtn";
     this.searchBtn.Size   = new System.Drawing.Size(52, 29);
     this.searchBtn.Text   = "Search !";
     this.searchBtn.Click += new System.EventHandler(this.searchBtnToolStripButton_Click);
     //
     // refreshBtn
     //
     this.refreshBtn.Alignment             = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.refreshBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.refreshBtn.ForeColor             = System.Drawing.Color.White;
     this.refreshBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.refreshBtn.Name   = "refreshBtn";
     this.refreshBtn.Size   = new System.Drawing.Size(50, 29);
     this.refreshBtn.Text   = "Refresh";
     this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click);
     //
     // FindStrip
     //
     this.BackColor = System.Drawing.Color.Maroon;
     this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripLabel1,
         this.searchTxt,
         this.toolStripLabel2,
         this.searchInCmb,
         this.searchBtn,
         this.refreshBtn
     });
     this.Name     = "findStrip2";
     this.Size     = new System.Drawing.Size(772, 32);
     this.TabIndex = 2;
     this.Text     = "toolStrip1";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 24
0
        private void InitializeComponent()
        {
            printToolStripMenuItem               = new ToolStripMenuItem();
            printPreviewToolStripMenuItem        = new ToolStripMenuItem();
            chartToolStripMenuItem               = new ToolStripMenuItem();
            exportToolStripMenuItem              = new ToolStripMenuItem();
            firstToolStripSeparator              = new ToolStripSeparator();
            typeOfChartToolStripMenuItem         = new ToolStripMenuItem();
            typeOfChartComboBox                  = new ToolStripComboBox();
            seriesOfChartToolStripMenuItem       = new ToolStripMenuItem();
            seriesOfChartComboBox                = new ToolStripComboBox();
            colorsOfChartToolStripMenuItem       = new ToolStripMenuItem();
            colorsOfChartComboBox                = new ToolStripComboBox();
            legendPositionsToolStripMenuItem     = new ToolStripMenuItem();
            toolStripMenuItem13                  = new ToolStripMenuItem();
            positionLegendComboBox               = new ToolStripComboBox();
            toolStripMenuItem14                  = new ToolStripMenuItem();
            aligmentLegendComboBox               = new ToolStripComboBox();
            secondToolStripSeparator             = new ToolStripSeparator();
            editChartToolStripMenuItem           = new ToolStripMenuItem();
            editChartPropertiesToolStripMenuItem = new ToolStripMenuItem();


            countourLinesToolStripMenuItem = new ToolStripMenuItem {
                Visible = false
            };
            countourLinesToolStripComboBox   = new ToolStripComboBox();
            colorAssignmentToolStripMenuItem = new ToolStripMenuItem {
                Visible = false
            };
            colorAssignmentToolStripComboBox = new ToolStripComboBox();


            rescaleToolStripMenuItem = new ToolStripMenuItem {
                Visible = false
            };
            chart3dEqualAxesToolStripMenuItem = new ToolStripMenuItem();
            chart3dFitAxesToolStripMenuItem   = new ToolStripMenuItem();


            //
            // printToolStripMenuItem
            //
            resources.ApplyResources(printToolStripMenuItem, "printToolStripMenuItem");
            printToolStripMenuItem.Name   = "printToolStripMenuItem";
            printToolStripMenuItem.Click += printToolStripMenuItem_Click;
            //
            // printPreviewToolStripMenuItem
            //
            resources.ApplyResources(printPreviewToolStripMenuItem, "printPreviewToolStripMenuItem");
            printPreviewToolStripMenuItem.Name   = "printPreviewToolStripMenuItem";
            printPreviewToolStripMenuItem.Click += printPreviewToolStripMenuItem_Click;


            // chartToolStripMenuItem
            //
            thirdToolStripSeparator = new ToolStripSeparator();


            chartToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                exportToolStripMenuItem, //all


                firstToolStripSeparator,          //all

                rescaleToolStripMenuItem,         //chart3d
                countourLinesToolStripMenuItem,   //complexChart
                colorAssignmentToolStripMenuItem, //complexChart

                typeOfChartToolStripMenuItem,     //chart2d
                seriesOfChartToolStripMenuItem,   //chart2d
                colorsOfChartToolStripMenuItem,   //all
                legendPositionsToolStripMenuItem, //chart2d


                secondToolStripSeparator,             //all

                editChartToolStripMenuItem,           //all
                editChartPropertiesToolStripMenuItem, //all


                thirdToolStripSeparator, //all


                printToolStripMenuItem,       //all
                printPreviewToolStripMenuItem //all
            });
            chartToolStripMenuItem.Name = "chartToolStripMenuItem";
            resources.ApplyResources(chartToolStripMenuItem, "chartToolStripMenuItem");
            //
            // toolStripMenuItem8
            //
            exportToolStripMenuItem.Name = "exportToolStripMenuItem";
            resources.ApplyResources(exportToolStripMenuItem, "toolStripMenuItem8");
            exportToolStripMenuItem.Click += ExportChartExportToolStripMenuItemClick;
            //
            // toolStripSeparator9
            //
            firstToolStripSeparator.Name = "firstToolStripSeparator";
            resources.ApplyResources(firstToolStripSeparator, "toolStripSeparator9");
            //
            // toolStripMenuItem9
            //
            typeOfChartToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                typeOfChartComboBox
            });
            typeOfChartToolStripMenuItem.Name = "typeOfChartToolStripMenuItem";
            resources.ApplyResources(typeOfChartToolStripMenuItem, "toolStripMenuItem9");
            //
            // typeOfChartComboBox
            //
            typeOfChartComboBox.Name = "typeOfChartComboBox";
            resources.ApplyResources(typeOfChartComboBox, "typeOfChartComboBox");
            typeOfChartComboBox.SelectedIndexChanged += typeOfChartComboBox_SelectedIndexChanged;
            //
            // toolStripMenuItem10
            //
            seriesOfChartToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                seriesOfChartComboBox
            });
            seriesOfChartToolStripMenuItem.Name = "seriesOfChartToolStripMenuItem";
            resources.ApplyResources(seriesOfChartToolStripMenuItem, "toolStripMenuItem10");
            //
            // seriesOfChartComboBox
            //
            seriesOfChartComboBox.Name = "seriesOfChartComboBox";
            resources.ApplyResources(seriesOfChartComboBox, "seriesOfChartComboBox");
            seriesOfChartComboBox.SelectedIndexChanged += seriesOfChartComboBox_SelectedIndexChanged;
            //
            // toolStripMenuItem11
            //
            colorsOfChartToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                colorsOfChartComboBox
            });
            colorsOfChartToolStripMenuItem.Name = "colorsOfChartToolStripMenuItem";
            resources.ApplyResources(colorsOfChartToolStripMenuItem, "toolStripMenuItem11");
            //
            // colorsOfChartComboBox
            //
            colorsOfChartComboBox.Name = "colorsOfChartComboBox";
            resources.ApplyResources(colorsOfChartComboBox, "colorsOfChartComboBox");
            colorsOfChartComboBox.SelectedIndexChanged += colorsOfChartComboBox_SelectedIndexChanged;
            //
            // toolStripMenuItem12
            //
            legendPositionsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                toolStripMenuItem13,
                toolStripMenuItem14
            });
            legendPositionsToolStripMenuItem.Name = "legendPositionsToolStripMenuItem";
            resources.ApplyResources(legendPositionsToolStripMenuItem, "toolStripMenuItem12");
            //
            // toolStripMenuItem13
            //
            toolStripMenuItem13.DropDownItems.AddRange(new ToolStripItem[]
            {
                positionLegendComboBox
            });
            toolStripMenuItem13.Name = "toolStripMenuItem13";
            resources.ApplyResources(toolStripMenuItem13, "toolStripMenuItem13");
            //
            // positionLegendComboBox
            //
            positionLegendComboBox.Name = "positionLegendComboBox";
            resources.ApplyResources(positionLegendComboBox, "positionLegendComboBox");
            positionLegendComboBox.SelectedIndexChanged += positionLegendComboBox_SelectedIndexChanged;
            //
            // toolStripMenuItem14
            //
            toolStripMenuItem14.DropDownItems.AddRange(new ToolStripItem[]
            {
                aligmentLegendComboBox
            });
            toolStripMenuItem14.Name = "toolStripMenuItem14";
            resources.ApplyResources(toolStripMenuItem14, "toolStripMenuItem14");
            //
            // aligmentLegendComboBox
            //
            aligmentLegendComboBox.Name = "aligmentLegendComboBox";
            resources.ApplyResources(aligmentLegendComboBox, "aligmentLegendComboBox");
            aligmentLegendComboBox.SelectedIndexChanged += aligmentLegendComboBox_SelectedIndexChanged;
            //

            //
            secondToolStripSeparator.Name = "secondToolStripSeparator";
            resources.ApplyResources(secondToolStripSeparator, "toolStripSeparator8");
            //

            //
            editChartToolStripMenuItem.Name = "editChartToolStripMenuItem";
            resources.ApplyResources(editChartToolStripMenuItem, "toolStripMenuItem15");
            editChartToolStripMenuItem.Click += editChartToolStripMenuItem_Click;
            //

            //
            editChartPropertiesToolStripMenuItem.Name = "editChartPropertiesToolStripMenuItem";
            resources.ApplyResources(editChartPropertiesToolStripMenuItem, "toolStripMenuItem16");
            editChartPropertiesToolStripMenuItem.Click += editChartPropertiesToolStripMenuItem_Click;


            countourLinesToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                countourLinesToolStripComboBox
            });
            countourLinesToolStripMenuItem.Name = "toolStripMenuItem19";
            resources.ApplyResources(countourLinesToolStripMenuItem, "toolStripMenuItem19");

            //
            // countourLinesToolStripComboBox
            //
            countourLinesToolStripComboBox.Name = "countourLinesToolStripComboBox";
            resources.ApplyResources(countourLinesToolStripComboBox, "countourLinesToolStripComboBox");
            countourLinesToolStripComboBox.SelectedIndexChanged += countourLinesToolStripComboBox_SelectedIndexChanged;
            //
            // colorAssignmentToolStripMenuItem
            //
            colorAssignmentToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                colorAssignmentToolStripComboBox
            });
            colorAssignmentToolStripMenuItem.Name = "colorAssignmentToolStripMenuItem";
            resources.ApplyResources(colorAssignmentToolStripMenuItem, "colorAssignmentToolStripMenuItem");
            //
            // colorAssignmentToolStripComboBox
            //
            colorAssignmentToolStripComboBox.Name = "colorAssignmentToolStripComboBox";
            resources.ApplyResources(colorAssignmentToolStripComboBox, "colorAssignmentToolStripComboBox");
            colorAssignmentToolStripComboBox.SelectedIndexChanged +=
                colorAssignmentToolStripComboBox_SelectedIndexChanged;
            //


            //
            // toolStripMenuItem25
            //
            rescaleToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
            {
                chart3dEqualAxesToolStripMenuItem,
                chart3dFitAxesToolStripMenuItem
            });
            rescaleToolStripMenuItem.Name = "rescaleToolStripMenuItem";
            resources.ApplyResources(rescaleToolStripMenuItem, "toolStripMenuItem25");
            //
            // toolStripMenuItem26
            //
            chart3dEqualAxesToolStripMenuItem.Name = "chart3dEqualAxesToolStripMenuItem";
            resources.ApplyResources(chart3dEqualAxesToolStripMenuItem, "toolStripMenuItem26");
            chart3dEqualAxesToolStripMenuItem.Click += chart3dEqualAxesToolStripMenuItem_Click;
            //
            // toolStripMenuItem27
            //
            chart3dFitAxesToolStripMenuItem.Name = "chart3dFitAxesToolStripMenuItem";
            resources.ApplyResources(chart3dFitAxesToolStripMenuItem, "toolStripMenuItem27");
            chart3dFitAxesToolStripMenuItem.Click += chart3dFitAxesToolStripMenuItem_Click;
        }
        private void PopulateThreadList(ToolStripComboBox cbItems, DebuggerThread FocusThread)
        {
            cbItems.Items.Clear();

            uint AutoThreadId = DebugThreads[0].OwningProcess.MainThread.ThreadID;

            if (FocusThread != null)
            {
                AutoThreadId = FocusThread.ThreadID;
            }

            int AutoIndex = 0;

            foreach (DebuggerThread Thread in DebugThreads)
            {
                bool   IsMainThread  = (Thread.Handle == Thread.OwningProcess.MainThread.Handle);
                bool   IsFocusThread = (FocusThread != null) && (Thread.Handle == FocusThread.Handle);
                string PrefixStr     = "";

                // Threads with focus are marked differently
                if (IsFocusThread)
                {
                    PrefixStr = "* ";
                }

                // Main threads always override any existing prefix
                if (IsMainThread)
                {
                    PrefixStr = "> ";
                }

                string DisplayStr = string.Format("{0}[{1}] ", PrefixStr, (uint)Thread.Handle);

                // Resolve thread name

                if (IsMainThread)
                {
                    DisplayStr += "Main Thread";
                }
                else if (Thread.DebugName != null)
                {
                    DisplayStr += Thread.DebugName;
                }
                else
                {
                    string fn = Path.GetFileName(Thread.OwningProcess.Path);
                    DisplayStr += string.Format("{0}!{1:X8}", fn, (uint)Thread.StartAddress);
                }

                // Check if the thread is already suspended

                if (Thread.WasSuspended)
                {
                    DisplayStr += " (suspended)";
                }

                if (AutoThreadId == Thread.ThreadID)
                {
                    AutoIndex = cbItems.Items.Count;
                }

                cbItems.Items.Add(DisplayStr);
            }

            // Auto-select this thread
            cbItems.SelectedIndex = AutoIndex;
        }
Esempio n. 26
0
 private void InitializeComponent()
 {
     tbcMain                               = new TabControl();
     tabPageSingleCode                     = new TabPage();
     tableLayoutPanelFieldList             = new TableLayoutPanel();
     panelMain                             = new Panel();
     dataGridViewField                     = new DataGridView();
     colIsSelect                           = new DataGridViewCheckBoxColumn();
     colFieldName                          = new DataGridViewTextBoxColumn();
     colFieldNameCn                        = new DataGridViewTextBoxColumn();
     colLanguageType                       = new DataGridViewTextBoxColumn();
     colSize                               = new DataGridViewTextBoxColumn();
     colIsAutoKey                          = new DataGridViewCheckBoxColumn();
     colInputType                          = new DataGridViewComboBoxColumn();
     colDefaultValue                       = new DataGridViewTextBoxColumn();
     colIsReqiured                         = new DataGridViewCheckBoxColumn();
     colSelectItem                         = new DataGridViewTextBoxColumn();
     colIndexName                          = new DataGridViewTextBoxColumn();
     panelTop                              = new Panel();
     toolStripSingleCodeCommandList        = new ToolStrip();
     lblToolStripSelectDataBase            = new ToolStripLabel();
     cbxtoolStripSelectDataBase            = new ToolStripComboBox();
     toolStripSeparator1                   = new ToolStripSeparator();
     SelectObjectType                      = new ToolStripLabel();
     toolStripSelectObjectType             = new ToolStripComboBox();
     toolStripSeparator2                   = new ToolStripSeparator();
     lbltoolStriplblSelectTable            = new ToolStripLabel();
     cbxtoolStripSelectObejct              = new ToolStripComboBox();
     toolStripSeparator3                   = new ToolStripSeparator();
     sbtntoolStripComandType               = new ToolStripSplitButton();
     toolStripButtonSelectAll              = new ToolStripButton();
     toolStripSeparator4                   = new ToolStripSeparator();
     toolStripButtonSaveConfig             = new ToolStripButton();
     toolStripButtonLoadConifg             = new ToolStripButton();
     tabPageSetting                        = new TabPage();
     tableLayoutPanel1                     = new TableLayoutPanel();
     propertyGridSetting                   = new PropertyGrid();
     toolStripTop                          = new ToolStrip();
     toolStripButtonSaveCodeGenerateConifg = new ToolStripButton();
     toolStripButtonSaveAs                 = new ToolStripButton();
     toolStripButtonLoadConfig             = new ToolStripButton();
     toolStripButtonConfigMygeneration     = new ToolStripButton();
     btnSaveSetting                        = new Button();
     saveFileDialogInputUIConfig           = new SaveFileDialog();
     openFileDialogInputUIConfig           = new OpenFileDialog();
     openFileDialogConfig                  = new OpenFileDialog();
     saveFileDialogConfig                  = new SaveFileDialog();
     tbcMain.SuspendLayout();
     tabPageSingleCode.SuspendLayout();
     tableLayoutPanelFieldList.SuspendLayout();
     panelMain.SuspendLayout();
     ((ISupportInitialize)(dataGridViewField)).BeginInit();
     panelTop.SuspendLayout();
     toolStripSingleCodeCommandList.SuspendLayout();
     tabPageSetting.SuspendLayout();
     tableLayoutPanel1.SuspendLayout();
     toolStripTop.SuspendLayout();
     SuspendLayout();
     //
     // tbcMain
     //
     tbcMain.Controls.Add(tabPageSingleCode);
     tbcMain.Controls.Add(tabPageSetting);
     tbcMain.Dock          = DockStyle.Fill;
     tbcMain.ImeMode       = ImeMode.NoControl;
     tbcMain.Location      = new Point(0, 0);
     tbcMain.Name          = "tbcMain";
     tbcMain.SelectedIndex = 0;
     tbcMain.Size          = new Size(1050, 558);
     tbcMain.TabIndex      = 3;
     tbcMain.TabStop       = false;
     //
     // tabPageSingleCode
     //
     tabPageSingleCode.Controls.Add(tableLayoutPanelFieldList);
     tabPageSingleCode.Location = new Point(4, 22);
     tabPageSingleCode.Name     = "tabPageSingleCode";
     tabPageSingleCode.Size     = new Size(1042, 532);
     tabPageSingleCode.TabIndex = 2;
     tabPageSingleCode.Text     = "片段代码生成";
     tabPageSingleCode.UseVisualStyleBackColor = true;
     //
     // tableLayoutPanelFieldList
     //
     tableLayoutPanelFieldList.ColumnCount = 1;
     tableLayoutPanelFieldList.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
     tableLayoutPanelFieldList.Controls.Add(panelMain, 0, 1);
     tableLayoutPanelFieldList.Controls.Add(panelTop, 0, 0);
     tableLayoutPanelFieldList.Dock     = DockStyle.Fill;
     tableLayoutPanelFieldList.Location = new Point(0, 0);
     tableLayoutPanelFieldList.Name     = "tableLayoutPanelFieldList";
     tableLayoutPanelFieldList.RowCount = 2;
     tableLayoutPanelFieldList.RowStyles.Add(new RowStyle(SizeType.Absolute, 32F));
     tableLayoutPanelFieldList.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
     tableLayoutPanelFieldList.Size     = new Size(1042, 532);
     tableLayoutPanelFieldList.TabIndex = 3;
     //
     // panelMain
     //
     panelMain.Controls.Add(dataGridViewField);
     panelMain.Dock     = DockStyle.Fill;
     panelMain.Location = new Point(3, 35);
     panelMain.Name     = "panelMain";
     panelMain.Size     = new Size(1036, 494);
     panelMain.TabIndex = 0;
     //
     // dataGridViewField
     //
     dataGridViewField.AllowUserToAddRows          = false;
     dataGridViewField.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridViewField.Columns.AddRange(new DataGridViewColumn[]
     {
         colIsSelect,
         colFieldName,
         colFieldNameCn,
         colLanguageType,
         colSize,
         colIsAutoKey,
         colInputType,
         colDefaultValue,
         colIsReqiured,
         colSelectItem,
         colIndexName
     });
     dataGridViewField.Dock               = DockStyle.Fill;
     dataGridViewField.Location           = new Point(0, 0);
     dataGridViewField.Name               = "dataGridViewField";
     dataGridViewField.RowTemplate.Height = 23;
     dataGridViewField.Size               = new Size(1036, 494);
     dataGridViewField.TabIndex           = 4;
     dataGridViewField.CellValueChanged  += new DataGridViewCellEventHandler(dataGridViewField_CellValueChanged);
     dataGridViewField.DataError         += new DataGridViewDataErrorEventHandler(dataGridViewField_DataError);
     //
     // colIsSelect
     //
     colIsSelect.DataPropertyName = "IsSelect";
     colIsSelect.FillWeight       = 50F;
     colIsSelect.HeaderText       = "选择";
     colIsSelect.Name             = "colIsSelect";
     colIsSelect.Width            = 50;
     //
     // colFieldName
     //
     colFieldName.DataPropertyName = "FieldName";
     colFieldName.HeaderText       = "列名";
     colFieldName.Name             = "colFieldName";
     colFieldName.ReadOnly         = true;
     //
     // colFieldNameCn
     //
     colFieldNameCn.DataPropertyName = "FieldNameCn";
     colFieldNameCn.HeaderText       = "显示名";
     colFieldNameCn.Name             = "colFieldNameCn";
     //
     // colLanguageType
     //
     colLanguageType.DataPropertyName = "LanguageType";
     colLanguageType.FillWeight       = 80F;
     colLanguageType.HeaderText       = "数据类型";
     colLanguageType.Name             = "colLanguageType";
     colLanguageType.ReadOnly         = true;
     colLanguageType.Width            = 80;
     //
     // colSize
     //
     colSize.DataPropertyName = "Size";
     colSize.FillWeight       = 60F;
     colSize.HeaderText       = "大小";
     colSize.Name             = "colSize";
     colSize.ReadOnly         = true;
     colSize.Width            = 60;
     //
     // colIsAutoKey
     //
     colIsAutoKey.DataPropertyName = "IsAutoKey";
     colIsAutoKey.FillWeight       = 60F;
     colIsAutoKey.HeaderText       = "主键";
     colIsAutoKey.Name             = "colIsAutoKey";
     colIsAutoKey.ReadOnly         = true;
     colIsAutoKey.Resizable        = DataGridViewTriState.True;
     colIsAutoKey.SortMode         = DataGridViewColumnSortMode.Automatic;
     colIsAutoKey.Width            = 60;
     //
     // colInputType
     //
     colInputType.DataPropertyName = "InputType";
     colInputType.FillWeight       = 120F;
     colInputType.HeaderText       = "输入控件类型";
     colInputType.Name             = "colInputType";
     colInputType.Width            = 120;
     //
     // colDefaultValue
     //
     colDefaultValue.DataPropertyName = "DefaultValue";
     colDefaultValue.HeaderText       = "默认值";
     colDefaultValue.Name             = "colDefaultValue";
     //
     // colIsReqiured
     //
     colIsReqiured.DataPropertyName = "IsReqiured";
     colIsReqiured.FillWeight       = 40F;
     colIsReqiured.HeaderText       = "必填";
     colIsReqiured.Name             = "colIsReqiured";
     colIsReqiured.Width            = 40;
     //
     // colSelectItem
     //
     colSelectItem.DataPropertyName = "Items";
     colSelectItem.FillWeight       = 290F;
     colSelectItem.HeaderText       = "选项";
     colSelectItem.Name             = "colSelectItem";
     colSelectItem.Width            = 290;
     //
     // colIndexName
     //
     colIndexName.DataPropertyName = "DbColumnName";
     colIndexName.HeaderText       = "数据列名";
     colIndexName.Name             = "colIndexName";
     colIndexName.ReadOnly         = true;
     colIndexName.Visible          = false;
     //
     // panelTop
     //
     panelTop.Controls.Add(toolStripSingleCodeCommandList);
     panelTop.Dock     = DockStyle.Fill;
     panelTop.Location = new Point(3, 3);
     panelTop.Name     = "panelTop";
     panelTop.Size     = new Size(1036, 26);
     panelTop.TabIndex = 1;
     //
     // toolStripSingleCodeCommandList
     //
     toolStripSingleCodeCommandList.Items.AddRange(new ToolStripItem[]
     {
         lblToolStripSelectDataBase,
         cbxtoolStripSelectDataBase,
         toolStripSeparator1,
         SelectObjectType,
         toolStripSelectObjectType,
         toolStripSeparator2,
         lbltoolStriplblSelectTable,
         cbxtoolStripSelectObejct,
         toolStripSeparator3,
         sbtntoolStripComandType,
         toolStripButtonSelectAll,
         toolStripSeparator4,
         toolStripButtonSaveConfig,
         toolStripButtonLoadConifg
     });
     toolStripSingleCodeCommandList.Location = new Point(0, 0);
     toolStripSingleCodeCommandList.Name     = "toolStripSingleCodeCommandList";
     toolStripSingleCodeCommandList.Size     = new Size(1036, 25);
     toolStripSingleCodeCommandList.TabIndex = 1;
     toolStripSingleCodeCommandList.Text     = "toolStrip1";
     //
     // lblToolStripSelectDataBase
     //
     lblToolStripSelectDataBase.Name = "lblToolStripSelectDataBase";
     lblToolStripSelectDataBase.Size = new Size(55, 22);
     lblToolStripSelectDataBase.Text = "数据库:";
     //
     // cbxtoolStripSelectDataBase
     //
     cbxtoolStripSelectDataBase.DropDownStyle = ComboBoxStyle.DropDownList;
     cbxtoolStripSelectDataBase.Name          = "cbxtoolStripSelectDataBase";
     cbxtoolStripSelectDataBase.Size          = new Size(200, 25);
     //
     // toolStripSeparator1
     //
     toolStripSeparator1.Name = "toolStripSeparator1";
     toolStripSeparator1.Size = new Size(6, 25);
     //
     // SelectObjectType
     //
     SelectObjectType.Name = "SelectObjectType";
     SelectObjectType.Size = new Size(70, 22);
     SelectObjectType.Text = " 对象类型:";
     //
     // toolStripSelectObjectType
     //
     toolStripSelectObjectType.DropDownStyle = ComboBoxStyle.DropDownList;
     toolStripSelectObjectType.Items.AddRange(new object[]
     {
         "表",
         "视图"
     });
     toolStripSelectObjectType.Name = "toolStripSelectObjectType";
     toolStripSelectObjectType.Size = new Size(60, 25);
     //
     // toolStripSeparator2
     //
     toolStripSeparator2.Name = "toolStripSeparator2";
     toolStripSeparator2.Size = new Size(6, 25);
     //
     // lbltoolStriplblSelectTable
     //
     lbltoolStriplblSelectTable.Name = "lbltoolStriplblSelectTable";
     lbltoolStriplblSelectTable.Size = new Size(43, 22);
     lbltoolStriplblSelectTable.Text = "对象:";
     //
     // cbxtoolStripSelectObejct
     //
     cbxtoolStripSelectObejct.DropDownStyle         = ComboBoxStyle.DropDownList;
     cbxtoolStripSelectObejct.DropDownWidth         = 150;
     cbxtoolStripSelectObejct.Name                  = "cbxtoolStripSelectObejct";
     cbxtoolStripSelectObejct.Size                  = new Size(200, 25);
     cbxtoolStripSelectObejct.SelectedIndexChanged +=
         new EventHandler(cbxtoolStripSelectObejct_SelectedIndexChanged);
     //
     // toolStripSeparator3
     //
     toolStripSeparator3.Name = "toolStripSeparator3";
     toolStripSeparator3.Size = new Size(6, 25);
     //
     // sbtntoolStripComandType
     //
     sbtntoolStripComandType.DisplayStyle          = ToolStripItemDisplayStyle.Text;
     sbtntoolStripComandType.ImageTransparentColor = Color.Magenta;
     sbtntoolStripComandType.Name = "sbtntoolStripComandType";
     sbtntoolStripComandType.Size = new Size(71, 22);
     sbtntoolStripComandType.Text = "选择操作";
     sbtntoolStripComandType.DropDownItemClicked +=
         new ToolStripItemClickedEventHandler(sbtntoolStripComandType_DropDownItemClicked);
     //
     // toolStripButtonSelectAll
     //
     toolStripButtonSelectAll.DisplayStyle          = ToolStripItemDisplayStyle.Text;
     toolStripButtonSelectAll.ImageTransparentColor = Color.Magenta;
     toolStripButtonSelectAll.Name   = "toolStripButtonSelectAll";
     toolStripButtonSelectAll.Size   = new Size(35, 22);
     toolStripButtonSelectAll.Text   = "全选";
     toolStripButtonSelectAll.Click += new EventHandler(toolStripButtonSelectAll_Click);
     //
     // toolStripSeparator4
     //
     toolStripSeparator4.Name = "toolStripSeparator4";
     toolStripSeparator4.Size = new Size(6, 25);
     //
     // toolStripButtonSaveConfig
     //
     toolStripButtonSaveConfig.DisplayStyle          = ToolStripItemDisplayStyle.Text;
     toolStripButtonSaveConfig.ImageTransparentColor = Color.Magenta;
     toolStripButtonSaveConfig.Name   = "toolStripButtonSaveConfig";
     toolStripButtonSaveConfig.Size   = new Size(59, 22);
     toolStripButtonSaveConfig.Text   = "保存配置";
     toolStripButtonSaveConfig.Click += new EventHandler(toolStripButtonSaveConfig_Click);
     //
     // toolStripButtonLoadConifg
     //
     toolStripButtonLoadConifg.DisplayStyle          = ToolStripItemDisplayStyle.Text;
     toolStripButtonLoadConifg.ImageTransparentColor = Color.Magenta;
     toolStripButtonLoadConifg.Name   = "toolStripButtonLoadConifg";
     toolStripButtonLoadConifg.Size   = new Size(59, 22);
     toolStripButtonLoadConifg.Text   = "载入配置";
     toolStripButtonLoadConifg.Click += new EventHandler(toolStripButtonLoadConifg_Click);
     //
     // tabPageSetting
     //
     tabPageSetting.Controls.Add(tableLayoutPanel1);
     tabPageSetting.Controls.Add(btnSaveSetting);
     tabPageSetting.Location = new Point(4, 22);
     tabPageSetting.Name     = "tabPageSetting";
     tabPageSetting.Padding  = new Padding(3);
     tabPageSetting.Size     = new Size(1042, 532);
     tabPageSetting.TabIndex = 1;
     tabPageSetting.Text     = "配置设置";
     tabPageSetting.UseVisualStyleBackColor = true;
     //
     // tableLayoutPanel1
     //
     tableLayoutPanel1.ColumnCount = 1;
     tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
     tableLayoutPanel1.Controls.Add(propertyGridSetting, 0, 1);
     tableLayoutPanel1.Controls.Add(toolStripTop, 0, 0);
     tableLayoutPanel1.Dock     = DockStyle.Fill;
     tableLayoutPanel1.Location = new Point(3, 3);
     tableLayoutPanel1.Name     = "tableLayoutPanel1";
     tableLayoutPanel1.RowCount = 2;
     tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 27F));
     tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
     tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
     tableLayoutPanel1.Size     = new Size(1036, 526);
     tableLayoutPanel1.TabIndex = 6;
     //
     // propertyGridSetting
     //
     propertyGridSetting.Dock     = DockStyle.Fill;
     propertyGridSetting.Location = new Point(3, 30);
     propertyGridSetting.Name     = "propertyGridSetting";
     propertyGridSetting.Size     = new Size(1030, 493);
     propertyGridSetting.TabIndex = 1;
     //
     // toolStripTop
     //
     toolStripTop.Items.AddRange(new ToolStripItem[]
     {
         toolStripButtonSaveCodeGenerateConifg,
         toolStripButtonSaveAs,
         toolStripButtonLoadConfig,
         toolStripButtonConfigMygeneration
     });
     toolStripTop.Location     = new Point(0, 0);
     toolStripTop.Name         = "toolStripTop";
     toolStripTop.Size         = new Size(1036, 25);
     toolStripTop.TabIndex     = 2;
     toolStripTop.Text         = "toolStrip1";
     toolStripTop.ItemClicked += new ToolStripItemClickedEventHandler(toolStripTop_ItemClicked);
     //
     // toolStripButtonSaveCodeGenerateConifg
     //
     toolStripButtonSaveCodeGenerateConifg.Image = WinResource.Save;
     toolStripButtonSaveCodeGenerateConifg.ImageTransparentColor = Color.Magenta;
     toolStripButtonSaveCodeGenerateConifg.Name = "toolStripButtonSaveCodeGenerateConifg";
     toolStripButtonSaveCodeGenerateConifg.Size = new Size(111, 22);
     toolStripButtonSaveCodeGenerateConifg.Text = "保存为默认配置";
     //
     // toolStripButtonSaveAs
     //
     toolStripButtonSaveAs.Image = WinResource.Save;
     toolStripButtonSaveAs.ImageTransparentColor = Color.Magenta;
     toolStripButtonSaveAs.Name = "toolStripButtonSaveAs";
     toolStripButtonSaveAs.Size = new Size(87, 22);
     toolStripButtonSaveAs.Text = "配置另存为";
     //
     // toolStripButtonLoadConfig
     //
     toolStripButtonLoadConfig.Image = WinResource.open;
     toolStripButtonLoadConfig.ImageTransparentColor = Color.Magenta;
     toolStripButtonLoadConfig.Name = "toolStripButtonLoadConfig";
     toolStripButtonLoadConfig.Size = new Size(75, 22);
     toolStripButtonLoadConfig.Text = "加载配置";
     //
     // toolStripButtonConfigMygeneration
     //
     toolStripButtonConfigMygeneration.Image = WinResource.setting;
     toolStripButtonConfigMygeneration.ImageTransparentColor = Color.Magenta;
     toolStripButtonConfigMygeneration.Name = "toolStripButtonConfigMygeneration";
     toolStripButtonConfigMygeneration.Size = new Size(118, 22);
     toolStripButtonConfigMygeneration.Text = "配置MyGeneration";
     //
     // btnSaveSetting
     //
     btnSaveSetting.Location = new Point(851, 483);
     btnSaveSetting.Name     = "btnSaveSetting";
     btnSaveSetting.Size     = new Size(75, 25);
     btnSaveSetting.TabIndex = 4;
     btnSaveSetting.Text     = "保存设置";
     btnSaveSetting.UseVisualStyleBackColor = true;
     //
     // openFileDialogInputUIConfig
     //
     openFileDialogInputUIConfig.FileName = "openFileDialog1";
     //
     // openFileDialogConfig
     //
     openFileDialogConfig.DefaultExt = "dat";
     openFileDialogConfig.Filter     = "代码生成配置文件 (*.dat)|*.dat";
     //
     // saveFileDialogConfig
     //
     saveFileDialogConfig.DefaultExt = "dat";
     saveFileDialogConfig.Filter     = "代码生成配置文件 (*.dat)|*.dat";
     //
     // BaseSingleObjectSelectorForm
     //
     ClientSize = new Size(1050, 558);
     Controls.Add(tbcMain);
     Name  = "BaseSingleObjectSelectorForm";
     Load += new EventHandler(BaseSingleObjectSelectorForm_Load);
     tbcMain.ResumeLayout(false);
     tabPageSingleCode.ResumeLayout(false);
     tableLayoutPanelFieldList.ResumeLayout(false);
     panelMain.ResumeLayout(false);
     ((ISupportInitialize)(dataGridViewField)).EndInit();
     panelTop.ResumeLayout(false);
     panelTop.PerformLayout();
     toolStripSingleCodeCommandList.ResumeLayout(false);
     toolStripSingleCodeCommandList.PerformLayout();
     tabPageSetting.ResumeLayout(false);
     tableLayoutPanel1.ResumeLayout(false);
     tableLayoutPanel1.PerformLayout();
     toolStripTop.ResumeLayout(false);
     toolStripTop.PerformLayout();
     ResumeLayout(false);
 }
Esempio n. 27
0
 public static void setCbIndexWithoutUpdateLevel(ToolStripComboBox cb, EventHandler ev, int index = 0)
 {
     cb.SelectedIndexChanged -= ev;
     cb.SelectedIndex         = index;
     cb.SelectedIndexChanged += ev;
 }
Esempio n. 28
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(frmCommSVTrackedVsTime));

            this.zg1                  = new ZedGraphControl();
            this.toolStrip1           = new ToolStrip();
            this.svTrackRefreshBtn    = new ToolStripButton();
            this.svTrackXAxisComboBox = new ToolStripComboBox();
            this.SVTrackHelpBtn       = new ToolStripButton();
            this.toolStrip1.SuspendLayout();
            base.SuspendLayout();
            this.zg1.Anchor      = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.zg1.AutoSize    = true;
            this.zg1.BorderStyle = BorderStyle.Fixed3D;
            this.zg1.Location    = new Point(0x16, 0x2c);
            this.zg1.Name        = "zg1";
            this.zg1.ScrollGrace = 0.0;
            this.zg1.ScrollMaxX  = 0.0;
            this.zg1.ScrollMaxY  = 0.0;
            this.zg1.ScrollMaxY2 = 0.0;
            this.zg1.ScrollMinX  = 0.0;
            this.zg1.ScrollMinY  = 0.0;
            this.zg1.ScrollMinY2 = 0.0;
            this.zg1.Size        = new Size(0x2b4, 0x143);
            this.zg1.TabIndex    = 15;
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.svTrackRefreshBtn, this.svTrackXAxisComboBox, this.SVTrackHelpBtn });
            this.toolStrip1.Location                        = new Point(0, 0);
            this.toolStrip1.Name                            = "toolStrip1";
            this.toolStrip1.Size                            = new Size(0x2e2, 0x19);
            this.toolStrip1.TabIndex                        = 0x17;
            this.toolStrip1.Text                            = "toolStrip1";
            this.svTrackRefreshBtn.DisplayStyle             = ToolStripItemDisplayStyle.Image;
            this.svTrackRefreshBtn.Image                    = Resources.refreshHS;
            this.svTrackRefreshBtn.ImageTransparentColor    = Color.Magenta;
            this.svTrackRefreshBtn.Name                     = "svTrackRefreshBtn";
            this.svTrackRefreshBtn.Size                     = new Size(0x17, 0x16);
            this.svTrackRefreshBtn.Text                     = "Refresh";
            this.svTrackRefreshBtn.Click                   += new EventHandler(this.svTrackRefreshBtn_Click);
            this.svTrackXAxisComboBox.Name                  = "svTrackXAxisComboBox";
            this.svTrackXAxisComboBox.Size                  = new Size(0x79, 0x19);
            this.svTrackXAxisComboBox.SelectedIndexChanged += new EventHandler(this.svTrackXAxisComboBox_SelectedIndexChanged);
            this.SVTrackHelpBtn.DisplayStyle                = ToolStripItemDisplayStyle.Image;
            this.SVTrackHelpBtn.Image                       = Resources.Help;
            this.SVTrackHelpBtn.ImageTransparentColor       = Color.Magenta;
            this.SVTrackHelpBtn.Name                        = "SVTrackHelpBtn";
            this.SVTrackHelpBtn.Size                        = new Size(0x17, 0x16);
            this.SVTrackHelpBtn.Text                        = "Help";
            this.SVTrackHelpBtn.Click                      += new EventHandler(this.SVTrackHelpBtn_Click);
            base.AutoScaleDimensions                        = new SizeF(6f, 13f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize    = new Size(0x2e2, 390);
            base.Controls.Add(this.toolStrip1);
            base.Controls.Add(this.zg1);
            base.Icon             = (Icon)manager.GetObject("$this.Icon");
            base.Name             = "frmCommSVTrackedVsTime";
            base.ShowInTaskbar    = false;
            base.SizeGripStyle    = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text             = "SV Tracked vs Time";
            base.Load            += new EventHandler(this.frmCommSVTrackedVsTime_Load);
            base.LocationChanged += new EventHandler(this.frmCommSVTrackedVsTime_LocationChanged);
            base.ResizeEnd       += new EventHandler(this.frmCommSVTrackedVsTime_ResizeEnd);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Esempio n. 29
0
 void UpdateMarkFilterItemList(ToolStripComboBox marker)
 {
     marker.Items.Clear();
     marker.Items.AddRange(
         servers.GetMarkList().ToArray());
 }
        protected Small_Balance_Chart smallBalanceChart;       // Small Balance Chart

        /// <summary>
        /// Initializes the controls in panel pnlOverview
        /// </summary>
        void InitializeAccount()
        {
            string[] asMethods = Enum.GetNames(typeof(InterpolationMethod));
            for (int i = 0; i < asMethods.Length; i++)
            {
                asMethods[i] = Language.T(asMethods[i]);
            }

            Graphics g = CreateGraphics();
            int      iLongestMethod = 0;

            foreach (string sMethod in asMethods)
            {
                if ((int)g.MeasureString(sMethod, Font).Width > iLongestMethod)
                {
                    iLongestMethod = (int)g.MeasureString(sMethod, Font).Width;
                }
            }
            g.Dispose();

            // ComboBox Interpolation Methods
            tscbInterpolationMethod               = new ToolStripComboBox();
            tscbInterpolationMethod.Name          = "tscbInterpolationMethod";
            tscbInterpolationMethod.AutoSize      = false;
            tscbInterpolationMethod.DropDownStyle = ComboBoxStyle.DropDownList;
            tscbInterpolationMethod.Items.AddRange(asMethods);
            tscbInterpolationMethod.SelectedIndex         = 0;
            tscbInterpolationMethod.Width                 = iLongestMethod + (int)(18 * Data.HorizontalDLU);
            tscbInterpolationMethod.ToolTipText           = Language.T("Bar interpolation method.");
            tscbInterpolationMethod.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
            tsAccount.Items.Add(tscbInterpolationMethod);

            // Button Comparator
            tsbtComparator             = new ToolStripButton();
            tsbtComparator.Text        = Language.T("Comparator");
            tsbtComparator.Name        = "Comparator";
            tsbtComparator.Click      += new EventHandler(BtnTools_OnClick);
            tsbtComparator.ToolTipText = Language.T("Compare the interpolating methods.");
            tsAccount.Items.Add(tsbtComparator);

            // Button Scanner
            tsbtScanner             = new ToolStripButton();
            tsbtScanner.Text        = Language.T("Scanner");
            tsbtScanner.Name        = "Scanner";
            tsbtScanner.Click      += new EventHandler(BtnTools_OnClick);
            tsbtScanner.ToolTipText = Language.T("Perform a deep intrabar scanning.") + Environment.NewLine + Language.T("Quick scan") + " - F6.";
            tsAccount.Items.Add(tsbtScanner);

            // Button Analyzer
            tsbtAnalyzer        = new ToolStripButton();
            tsbtAnalyzer.Text   = Language.T("Analyzer");
            tsbtAnalyzer.Name   = "Analyzer";
            tsbtAnalyzer.Click += new EventHandler(BtnTools_OnClick);
            tsAccount.Items.Add(tsbtAnalyzer);

            // Info Panel Account Statistics
            infpnlAccountStatistics        = new Info_Panel();
            infpnlAccountStatistics.Parent = pnlAccount;
            infpnlAccountStatistics.Dock   = DockStyle.Fill;

            Splitter spliter = new Splitter();

            spliter.Parent      = pnlAccount;
            spliter.Dock        = DockStyle.Bottom;
            spliter.BorderStyle = BorderStyle.None;
            spliter.Height      = space;

            // Small Balance Chart
            smallBalanceChart                 = new Small_Balance_Chart();
            smallBalanceChart.Parent          = pnlAccount;
            smallBalanceChart.Cursor          = Cursors.Hand;
            smallBalanceChart.Dock            = DockStyle.Bottom;
            smallBalanceChart.MinimumSize     = new Size(100, 50);
            smallBalanceChart.ShowDynamicInfo = true;
            smallBalanceChart.MouseMove      += new MouseEventHandler(SmallBalanceChart_MouseMove);
            smallBalanceChart.MouseLeave     += new EventHandler(SmallBalanceChart_MouseLeave);
            smallBalanceChart.MouseUp        += new MouseEventHandler(SmallBalanceChart_MouseUp);
            toolTip.SetToolTip(smallBalanceChart, Language.T("Click to view the full chart.") +
                               Environment.NewLine +
                               Language.T("Right click to detach chart."));

            pnlAccount.Resize += new EventHandler(pnlAccount_Resize);

            return;
        }
Esempio n. 31
0
 public static void InitializeSubtitleFormatComboBox(ToolStripComboBox comboBox, string selectedName)
 {
     InitializeSubtitleFormatComboBox(comboBox.ComboBox, selectedName);
     comboBox.DropDownWidth += 5; // .Net quirk?
 }
Esempio n. 32
0
 public SerialBle(ToolStripComboBox comboBox, DelegateBleSerialWrite eventBleSerialWrite) : this(comboBox)
 {
     this.EventBleSerialWrite = eventBleSerialWrite;
 }
Esempio n. 33
0
 public SerialBle(ToolStripComboBox comboBox, DelegateBleSerialWrite eventBleSerialWrite, DelegateBleLog eventBleLog) : this(comboBox, eventBleSerialWrite)
 {
     this.EventBleLog = eventBleLog;
 }
Esempio n. 34
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 ();
	}