Inheritance: ToolStrip
Esempio n. 1
1
        /// <summary>
        /// 
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        public MenuStrip buildMenu(String file)
        {
            MenuStrip mainMenu = new MenuStrip();
            // read file
            XmlDocument doc = new XmlDocument();
            doc.Load(file);

            // read
            XmlNodeList menuList = doc.SelectNodes("//MainMenu/Menu");
            if (menuList != null)
            {
                IEnumerator menuListEnum =
                    menuList.GetEnumerator();
                while (menuListEnum.MoveNext())
                {
                    XmlNode menu = (XmlNode)menuListEnum.Current;
                    // create menu
                    ToolStripMenuItem formMenuItem = new ToolStripMenuItem();
                    formMenuItem.Text = menu.Attributes["label"].Value;
                    XmlNodeList menuItemList = menu.ChildNodes;
                    IEnumerator menuItemListEnum = menuItemList.GetEnumerator();
                    while (menuItemListEnum.MoveNext())
                    {
                        XmlNode menuItem = (XmlNode)menuItemListEnum.Current;
                        ToolStripMenuItem childMenuItem = new ToolStripMenuItem();
                        childMenuItem.Text = menuItem.Attributes["label"].Value;
                        formMenuItem.DropDownItems.Add(childMenuItem);
                    }
                }
            }
            return null;
        }
Esempio n. 2
0
 public MenuCinta(VentanaPrincipal f)
 {
     this.ventanaPrinc = f;
     this.menu = new MenuStrip();
     f.Controls.Add(this.menu);
     this.agregaMenu();
 }
    /// <summary>
    /// Création et immersion des éléments de menu
    /// </summary>
    private void GenerateMenu() {
      if ( !Registry.Has( MainKeys.KeyMainMenu ) ) return;

      ToolStripMenuItem itemReport = new ToolStripMenuItem( "Etat du gestionnaire des plugins dynamiques", global::Psl.Properties.Resources.IconProperties, itemReport_OnClick );
      itemReport.MergeAction = MergeAction.Insert;
      itemReport.MergeIndex = 9000;
      itemReport.ImageTransparentColor = System.Drawing.Color.Magenta;

      ToolStripSeparator itemReportSep = new ToolStripSeparator();
      itemReportSep.MergeAction = MergeAction.Insert;
      itemReportSep.MergeIndex = 9000;

      ToolStripMenuItem itemAbout = new ToolStripMenuItem( "A propos du gestionnaire des plugins dynamiques", global::Psl.Properties.Resources.IconAbout, itemAbout_OnClick );
      itemAbout.MergeAction = MergeAction.Insert;
      itemAbout.MergeIndex = 9000;
      itemAbout.ImageTransparentColor = System.Drawing.Color.Magenta;

      ToolStripMenuItem itemHelpAbout = new ToolStripMenuItem( "A propos..." );
      itemHelpAbout.MergeAction = MergeAction.MatchOnly;
      itemHelpAbout.MergeIndex = 1;
      itemHelpAbout.DropDownItems.Add( itemAbout );

      ToolStripMenuItem menuHelp = new ToolStripMenuItem( "&?" );
      menuHelp.MergeAction = MergeAction.MatchOnly;
      menuHelp.MergeIndex = 9999;
      menuHelp.DropDownItems.Add( itemHelpAbout );
      menuHelp.DropDownItems.Add( itemReportSep );
      menuHelp.DropDownItems.Add( itemReport    );

      MenuStrip mainMenu = new MenuStrip();
      mainMenu.Items.Add( menuHelp );

      Registry.MergeInMainMenu( mainMenu );
    }
Esempio n. 4
0
        public Form1()
        {
            InitializeComponent();
            m = new MenuStrip();
            //добавляем меню верхнего уровня
            ToolStripMenuItem file= (ToolStripMenuItem)m.Items.Add("File");
            ToolStripMenuItem edit = (ToolStripMenuItem)m.Items.Add("Edit");
            this.MainMenuStrip = m;
            this.Controls.Add(m); //добавляем меню на форму

            //добавляем выпадающее меню для пункта Edit
            edit.DropDownItems.Add("Cut");
            //добавляем сепаратор
            edit.DropDownItems.Add(new ToolStripSeparator());
            edit.DropDownItems.Add("Copy");
            //добавляем сепаратор
            edit.DropDownItems.Add(new ToolStripSeparator());
            edit.DropDownItems.Add("Pastle");

            //Добвыляем выпадающее меню для пункта File
            ToolStripMenuItem close = (ToolStripMenuItem)file.DropDownItems.Add("Close");
            //связываем меню с акселератором Alt+C
            close.ShortcutKeys =  Keys.Alt | Keys.C;
            close.ShowShortcutKeys = true; //отображать акселераторы
            //добавляем обработчик для пункта меня Close
            close.Click += new EventHandler(close_Click); 
        }
Esempio n. 5
0
 public static void Bind(MenuStrip ms)
 {
     foreach (ToolStripMenuItem item in ms.Items)
     {
         Bind(item, item.Text);
     }
 }
Esempio n. 6
0
        void InitializeComponents()
        {
            var menuStrip = new MenuStrip();
            saveToolStripMenuItem = new ToolStripMenuItem { Visible = false };
            closeToolStripMenuItem = new ToolStripMenuItem { Visible = false };
            openToolStripMenuItem = new ToolStripMenuItem { Visible = false };
            newToolStripMenuItem = new ToolStripMenuItem { Visible = false };

            menuStrip.SuspendLayout();
            SuspendLayout();

            menuStrip.Items.Add(saveToolStripMenuItem);
            menuStrip.Items.Add(closeToolStripMenuItem);
            menuStrip.Items.Add(openToolStripMenuItem);
            menuStrip.Items.Add(newToolStripMenuItem);

            saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S;
            closeToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.W;
            openToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.O;
            newToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N;

            Controls.Add(menuStrip);

            Size = new Size(800, 600);
            Text = "DevPad";
            WindowState = FormWindowState.Maximized;

            menuStrip.ResumeLayout(false);
            menuStrip.PerformLayout();

            ResumeLayout(false);
            PerformLayout();

            MainMenuStrip = menuStrip;
        }
        public FormBrowseMenus(MenuStrip menuStrip)
        {
            _menuStrip = menuStrip;

            CreateAdditionalMainMenuItems();
            Translate();
        }
Esempio n. 8
0
        public void Activate()
        {
            if (_isActivated) return;

            var headerControls = App.CompositionContainer.GetExportedValues<IHeaderControl>().ToList();

            // Activate only if there are no other IHeaderControl implementations and
            // custom HeaderControl not yet set
            if (App.HeaderControl == null &&
                headerControls.Count == 1 && headerControls[0].GetType() == GetType())
            {
                _isActivated = true;

                var container = new ToolStripPanel {Dock = DockStyle.Top};
                Shell.Controls.Add(container);

                var menuStrip = new MenuStrip { Name = DEFAULT_GROUP_NAME, Dock = DockStyle.Top };
                Shell.Controls.Add(menuStrip);

                Initialize(container, menuStrip);

                // Add default buttons
                container.SuspendLayout();
                menuStrip.SuspendLayout();

                new DefaultMenuBars(App).Initialize(this);

                container.ResumeLayout();
                menuStrip.ResumeLayout();
            }
        }
Esempio n. 9
0
        /// <summary>
        /// Создание меню главного окна программы
        /// </summary>
        private void MenuInitialization()
        {
            this.menu = new MenuStrip();
            this.MainMenuStrip = menu;
            this.Controls.Add(this.menu);
            this.menu.BackColor = Color.DimGray;
            this.menu.ForeColor = Color.LightSkyBlue;
            this.menu.Dock = DockStyle.Top;

            this.menuItemFile = (ToolStripMenuItem)this.menu.Items.Add("&File");
            this.menuItemEdit = (ToolStripMenuItem)this.menu.Items.Add("&Edit");

            this.menuItemComboBox = new ToolStripComboBox();
            this.menuItemComboBox.Items.Add("connect");
            this.menuItemComboBox.Items.Add("disconnect");
            this.menuItemComboBox.SelectedItem = "connect";
            this.menu.Items.Add(this.menuItemComboBox);

            this.menuItemSearch = new ToolStripTextBox();
            this.menuItemSearch.Text = "Поиск";
            this.menuItemSearch.ForeColor = Color.DimGray;
            this.menu.Items.Add(this.menuItemSearch);

            this.fileItemOpen = this.menuItemFile.DropDownItems.Add("Open");
            this.fileItemSave = this.menuItemFile.DropDownItems.Add("Save");
            this.fileItemClose = this.menuItemFile.DropDownItems.Add("Close");

            this.editItemUndo = this.menuItemEdit.DropDownItems.Add("Undo");
            this.editItemRedo = this.menuItemEdit.DropDownItems.Add("Redo");
            this.menuItemEdit.DropDownItems.Add(new ToolStripSeparator());
            this.editItemCopy = this.menuItemEdit.DropDownItems.Add("Copy");
            this.editItemPast = this.menuItemEdit.DropDownItems.Add("Past");

            this.menu.Show();
        }
        public MainMenu(MainForm mainForm)
        {
            _mainForm = mainForm;
            _menuStrip = new MenuStrip();

            Initialize();
        }
Esempio n. 11
0
 public MenuStrip()
 {
     mMenuItems = new List<MenuItem>();
     mDockStyle = @"None";
     mMenuStrip = null;
     mContain = null;
 }
Esempio n. 12
0
        //private string _lang = "EN";

        #endregion

        #region class helper

        private void updateLangauge()
        {
            foreach (Control c in this.Controls)
            {
                if (c is System.Windows.Forms.MenuStrip)
                {
                    System.Windows.Forms.MenuStrip mnu = c as System.Windows.Forms.MenuStrip;
                    mnu.Text = mnu.GetLanguageValue();

                    if (mnu.Items.Count > 0)
                    {
                        foreach (var mu in mnu.Items)
                        {
                            if (mu is System.Windows.Forms.ToolStripMenuItem)
                            {
                                System.Windows.Forms.ToolStripMenuItem _item = mu as System.Windows.Forms.ToolStripMenuItem;
                                _item.Text = _item.GetLanguageValue();
                                if (_item.DropDownItems.Count > 0)
                                {
                                    foreach (System.Windows.Forms.ToolStripItem item in _item.DropDownItems)
                                    {
                                        item.Text = item.GetLanguageValue();
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 13
0
 public void deshabilitarMenu(MenuStrip m)
 {
     amistadesToolStripMenuItem.Enabled = false;
     publicacionesToolStripMenuItem.Enabled = false;
     modificarUsuarioMenuItem.Enabled = false;
     bajaUsuarioMenuItem.Enabled = false;
 }
Esempio n. 14
0
		/// <summary>
		/// Adds the one and only MenuStrip
		/// Throws ApplicationException if this is called multiple times.
		/// </summary>
		public void AddMenuStrip(MenuStrip menuStrip)
		{
			if (m_MenuStrip != null)
				throw new ApplicationException("Can only add a MenuStrip once");

			TopToolStripPanel.Controls.Add(menuStrip);
		}
        /// <summary>
        /// Sets the value for the property CheckDropDownBehavior for a Main Menu.
        /// </summary>
        /// <param name="mainMenu">The MainMenu to set the value.</param>
        /// <param name="value">The new value.</param>
        public void SetCheckDropDownBehavior(System.Windows.Forms.MenuStrip mainMenu, bool value)
        {
            ToolStripMenuItem menuItem;

            if (value && !_checkDropDownBehavior.Contains(mainMenu))
            {
                foreach (ToolStripItem item in mainMenu.Items)
                {
                    menuItem = item as ToolStripMenuItem;
                    if (menuItem != null)
                    {
                        AddCheckDropDownBehavior(menuItem);
                    }
                }

                mainMenu.ItemAdded   += new ToolStripItemEventHandler(ToolStripItem_ItemAdded);
                mainMenu.ItemRemoved += new ToolStripItemEventHandler(ToolStripItem_ItemRemoved);
                _checkDropDownBehavior.Add(mainMenu);
            }
            else if (!value && _checkDropDownBehavior.Contains(mainMenu))
            {
                foreach (ToolStripItem item in mainMenu.Items)
                {
                    menuItem = item as ToolStripMenuItem;
                    if (menuItem != null)
                    {
                        RemoveCheckDropDownBehavior(menuItem);
                    }
                }

                mainMenu.ItemAdded   -= new ToolStripItemEventHandler(ToolStripItem_ItemAdded);
                mainMenu.ItemRemoved -= new ToolStripItemEventHandler(ToolStripItem_ItemRemoved);
                _checkDropDownBehavior.Remove(mainMenu);
            }
        }
 /// <summary>
 /// Setup constructor
 /// </summary>
 /// <param name="menu">Target menu. Commands are added/removed from here</param>
 /// <param name="triggerDataFactory">Factory used to create trigger data</param>
 /// <exception cref="ArgumentNullException">Thrown if menu or triggerDataFactory are null</exception>
 public MenuCommandUiManager( MenuStrip menu, ICommandTriggerDataFactory triggerDataFactory )
 {
     Arguments.CheckNotNull( menu, "menu" );
     Arguments.CheckNotNull( triggerDataFactory, "triggerDataFactory" );
     m_Menu = menu;
     m_TriggerDataFactory = triggerDataFactory;
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.selSvc != null)
         {
             this.selSvc.SelectionChanged -= new EventHandler(this.OnSelectionChanged);
             this.selSvc.SelectionChanging -= new EventHandler(this.OnSelectionChanging);
         }
         this.DisposeMenu();
         if (this.designMenu != null)
         {
             this.designMenu.Dispose();
             this.designMenu = null;
         }
         if (this.dummyToolStripGlyph != null)
         {
             this.dummyToolStripGlyph = null;
         }
         if (this.undoEngine != null)
         {
             this.undoEngine.Undone -= new EventHandler(this.OnUndone);
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 18
0
 public void EnableMain(MenuStrip menu, bool enable)
 {
     if (this.mSysEnv.TerminalInfo.UserKind == 4)
     {
         this.Change(menu, Enum.GetNames(typeof(EnableKioskMain)), true, enable);
     }
 }
Esempio n. 19
0
 public void VisibleMain(MenuStrip menu)
 {
     if (this.mSysEnv.TerminalInfo.UserKind == 4)
     {
         this.Change(menu, Enum.GetNames(typeof(InvisibleKioskMain)), false, false);
     }
 }
        /// <summary>
        /// Adds current element group to specified menu strip.
        /// </summary>
        /// <param name="menu">Menu strip to add this group to.</param>
        public virtual void AddTo(MenuStrip menu)
        {
            var menuItem = NewMenuItem();
            menu.Items.Add(menuItem);

            CreateItemsForOptions(menuItem);
        }
Esempio n. 21
0
 public void Change(MenuStrip parent, string[] menuitems, bool visible, bool enable)
 {
     foreach (string str in menuitems)
     {
         ToolStripItem[] itemArray = parent.Items.Find(str, true);
         if (itemArray.Length > 0)
         {
             itemArray[0].Visible = visible;
             itemArray[0].Enabled = enable;
             if ((itemArray[0].GetType() == typeof(ToolStripMenuItem)) && !visible)
             {
                 ((ToolStripMenuItem) itemArray[0]).ShortcutKeys = Keys.None;
                 if (((ToolStripMenuItem) itemArray[0]).DropDownItems.Count > 0)
                 {
                     List<string> list = new List<string>();
                     foreach (ToolStripItem item in ((ToolStripMenuItem) itemArray[0]).DropDownItems)
                     {
                         list.Add(item.Name);
                     }
                     this.Change(parent, list.ToArray(), visible, enable);
                     list.Clear();
                 }
             }
         }
     }
 }
        /// <summary>
        /// Gets the main menu
        /// </summary>
        /// <param name="workbench"></param>
        /// <returns></returns>
        public MenuStrip GetMainMenu(WorkbenchBase workbench)
        {
            var menu = new System.Windows.Forms.MenuStrip();

            MenuService.AddItemsToMenu(menu.Items, workbench, "/Maestro/Shell/MainMenu"); //NOXLATE
            return(menu);
        }
Esempio n. 23
0
        public SchetsWin()
        {
            ISchetsTool[] deTools = { new PenTool(),
                                      new LijnTool(),
                                      new RechthoekTool(),
                                      new VolRechthoekTool(),
                                      new EllipseTool(),
                                      new FilledEllipseTool(),
                                      new TekstTool(),
                                      new GumTool(),
                                      new MoveTool() };
            String[] deKleuren = { "Black", "White", "Red", "Green", "Blue"
                                 , "Yellow", "Magenta", "Cyan", "Other"
                                 };

            this.ClientSize = new Size(780, 575);
            huidigeTool = deTools[0];

            schetscontrol = new SchetsControl();
            schetscontrol.Location = new Point(64, 10);
            schetscontrol.MouseDown += (object o, MouseEventArgs mea) =>
                                       {
                                           if(mea.Button != MouseButtons.Left) return;
                                           vast = true;
                                           huidigeTool.MuisVast(schetscontrol, mea.Location);
                                       };
            schetscontrol.MouseMove += (object o, MouseEventArgs mea) =>
                                       {
                                           if(vast)
                                               huidigeTool.MuisDrag(schetscontrol, mea.Location);
                                       };
            schetscontrol.MouseUp += (object o, MouseEventArgs mea) =>
                                       {
                                           if(mea.Button != MouseButtons.Left)
                                           {
                                               if(!vast)
                                                   showContextMenu(mea.Location);
                                               return;
                                           }
                                           vast = false;
                                           huidigeTool.MuisLos(schetscontrol, mea.Location);
                                       };
            schetscontrol.KeyPress += (object o, KeyPressEventArgs kpea) =>
                                       {
                                           huidigeTool.Letter(schetscontrol, kpea.KeyChar);
                                       };
            this.Controls.Add(schetscontrol);

            menuStrip = new MenuStrip();
            menuStrip.Visible = false;
            this.Controls.Add(menuStrip);
            this.maakFileMenu();
            this.maakToolMenu(deTools);
            this.maakAktieMenu(deKleuren);
            this.maakToolButtons(deTools);
            this.maakAktieButtons(deKleuren);
            this.Resize += this.veranderAfmeting;
            this.veranderAfmeting(null, null);
            this.FormClosing += SchetsWin_FormClosing;
        }
        public mainForm()
        {
            InitializeComponent();
            menu = new MenuStrip();
            ToolStripMenuItem file =
                menu.Items.Add("File") as ToolStripMenuItem;
            ToolStripMenuItem edit =
                menu.Items.Add("Edit") as ToolStripMenuItem;
            this.MainMenuStrip = menu;
            this.Controls.Add(menu);

            edit.DropDownItems.Add("Cut");
            edit.DropDownItems.Add(new ToolStripSeparator());
            edit.DropDownItems.Add("Copy");

            edit.DropDownItems.Add(new ToolStripSeparator());
            edit.DropDownItems.Add("Paste");

            ToolStripMenuItem close =
                file.DropDownItems.Add("Close") as ToolStripMenuItem;
            close.ShortcutKeys = Keys.Alt | Keys.C;
            close.ShowShortcutKeys = true;

            close.Click += new EventHandler(close_Click);
        }
Esempio n. 25
0
        /// <summary>
        /// The default constructor sets the base controls.
        /// </summary>
        protected Workspace()
        {
            // Graphical measures
            Graphics g = CreateGraphics();
            SizeF sizeString = g.MeasureString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890", Font);
            Data.HorizontalDLU = (sizeString.Width/62)/4;
            Data.VerticalDLU = sizeString.Height/8;
            g.Dispose();

            TsTradeControl = new ToolStrip();
            MainMenuStrip = new MenuStrip();
            PnlWorkspace = new Panel();
            StatusStrip = new StatusStrip();

            // Panel Workspace
            PnlWorkspace.Parent = this;
            PnlWorkspace.Dock = DockStyle.Fill;
            PnlWorkspace.Padding = new Padding(2);
            PnlWorkspace.AllowDrop = true;
            PnlWorkspace.DragEnter += Workspace_DragEnter;
            PnlWorkspace.DragDrop += WorkspaceDragDrop;

            // Tool Strip Trade control
            TsTradeControl.Parent = this;
            TsTradeControl.Dock = DockStyle.Top;

            // Main menu
            MainMenuStrip.Parent = this;
            MainMenuStrip.Dock = DockStyle.Top;

            // Status bar
            StatusStrip.Parent = this;
            StatusStrip.Dock = DockStyle.Bottom;
        }
Esempio n. 26
0
        public MainForm2( string title, Form versionDlg )
        {
            // �v���O���X�o�[�̃_�C�A���O�\��
              new ProgressDialog().SetUp( this, false );

              this.VersionDialog = versionDlg;
              this.MainMenu = CreateMainMenu( versionDlg );
              this.SplitContainer = CreateSplitContainer( this.ViewPanel, this.TreePanel );

              // �c�[���o�[�̍쐬
              foreach ( ToolStrip ts in Ctrl.ToolStripRegistry.ToolStrips ) {
            ToolStripContainer.TopToolStripPanel.Controls.Add( ts );
              }

              // _container
              ToolStripContainer.Dock = DockStyle.Fill;
              ToolStripContainer.TopToolStripPanelVisible = true;
              ToolStripContainer.TopToolStripPanel.Controls.Add( this.MainMenu );
              ToolStripContainer.BottomToolStripPanelVisible = true;
              ToolStripContainer.BottomToolStripPanel.Controls.Add( StatusBar );
              ToolStripContainer.ContentPanel.Controls.Add( SplitContainer );

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

              // ������
              SI.Tasks.Add( this.ViewPanel );
              SI.Tasks.Add( this.TreePanel );
              SI.PushIdlingSelection( SI.DocumentViews, true );  // �G���g���̑I��
              SI.SetupMainForm( this, title );

              // �ݒ�t�@�C���̓ǂݏ���
              SetupFormSettings( this );
        }
Esempio n. 27
0
        static MenuStrip GetMainMenuStrip() {
            var menu=new MenuStrip();
            menu.Items.Add(FileStripItem());

            return menu;

        }
Esempio n. 28
0
 /// <summary>
 /// Constructs a new instance of a MapWin interface where the Map, Legend, Form and MenuStrip
 /// are all specified.
 /// </summary>
 /// <param name="inMap">Any valid implementation of IBasicMap</param>
 /// <param name="inLegend">Any valid implementation of ILegend</param>
 /// <param name="inMainForm">Any valid windows Form</param>
 /// <param name="inMenuStrip">Any valid windows MenuStrip</param>
 public MapWin(IBasicMap inMap, ILegend inLegend, Form inMainForm, MenuStrip inMenuStrip)
 {
     _map = inMap;
     _legend = inLegend;
     _mainForm = inMainForm;
     _menuStrip = inMenuStrip;
     _userInteraction = new UserInteraction();
 }
Esempio n. 29
0
 public void add_to(MenuStrip strip)
 {
     strip.SuspendLayout();
     var menu_item = new ToolStripMenuItem(name);
     strip.Items.Add(menu_item);
     all_menu_items().each(x => menu_item.DropDownItems.Add(x.build()));
     strip.ResumeLayout();
 }
		public AutoHideMenuStripContainer(MenuStrip menuStrip):base(menuStrip)
		{
			menuStrip.AutoSize = false;
			menuStrip.ItemAdded += OnMenuItemAdded;
			foreach(ToolStripMenuItem menuItem in menuStrip.Items) {
				AddEventHandlersForItem(menuItem);
			}
		}
Esempio n. 31
0
        public ControlBase()
        {
            ToolStrip_Main        = new ToolStrip();
            MenuStrip_Main        = new MenuStrip();
            ContextMenuStrip_Main = new ContextMenuStrip();

            InitializeComponent();
        }
Esempio n. 32
0
 public MenuStrip BuildMainDialogMenu()
 {
     menu = new MenuStrip();
     CreateFileMenu();
     CreateSettingsMenu();
     CreateAboutMenu();
     return menu;
 }
Esempio n. 33
0
        public EditUserForm(MenuStrip menuStripMain, string type, string userId)
        {
            InitializeComponent();

            this.menuStripMain = menuStripMain;
            this.type = type;
            this.userId = userId;
        }
Esempio n. 34
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.menuStrip1            = new System.Windows.Forms.MenuStrip();
            this.menuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(800, 24);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // firstToolStripMenuItem
            //

            List <System.Windows.Forms.ToolStripMenuItem> opt       = new List <System.Windows.Forms.ToolStripMenuItem>();
            List <System.Windows.Forms.ToolStripItem>     ToolStrip = new List <System.Windows.Forms.ToolStripItem>();
            int i = 0;

            foreach (string action in this.Options)
            {
                System.Windows.Forms.ToolStripMenuItem element = new System.Windows.Forms.ToolStripMenuItem();
                element.Text   = action;
                element.Name   = action;
                element.Tag    = i;
                element.Size   = new System.Drawing.Size(180, 22);
                element.Click += new System.EventHandler(clicked);
                opt.Add(element);
                ToolStrip.Add(element);
            }
            //
            // menuToolStripMenuItem
            //
            this.menuToolStripMenuItem.DropDownItems.AddRange(ToolStrip.ToArray());
            this.menuToolStripMenuItem.Name = "menuToolStripMenuItem";
            this.menuToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
            this.menuToolStripMenuItem.Text = "Bitte wählen";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(800, 450);
            this.Controls.Add(this.menuStrip1);
            this.MainMenuStrip = this.menuStrip1;
            this.Name          = "Form1";
            this.Text          = "Form1";
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 35
0
 public FResponsableSecteur()
 {
     InitializeComponent();
     var item = new System.Windows.Forms.MenuStrip()
     {
         Name = "Test",
         Text = "Test"
     };
 }
Esempio n. 36
0
        public CommandService(Form mainForm)
        {
            m_mainForm = mainForm;
            m_mainForm.Load += mainForm_Load;

            m_mainMenuStrip = new MenuStrip();
            m_mainMenuStrip.Name = "Main Menu";
            m_mainMenuStrip.Dock = DockStyle.Top;
        }
Esempio n. 37
0
        private void InitGUI()
        {
            shapeStrip = new MenuStrip()
            {
                BackColor = System.Drawing.Color.White,
                Dock      = DockStyle.Left
            };

            AddStripItem(shapeStrip, Icon.circle).Click  += (b, d) => _construct.ChangeState(DrawState.CIRCLE);
            AddStripItem(shapeStrip, Icon.ellipse).Click += (b, d) => _construct.ChangeState(DrawState.ELLIPSE);
            AddStripItem(shapeStrip, Icon.segment).Click += (b, d) => _construct.ChangeState(DrawState.SEGMENT);
            AddStripItem(shapeStrip, Icon.line).Click    += (b, d) => _construct.ChangeState(DrawState.LINE);
            AddStripItem(shapeStrip, Icon.vector).Click  += (b, d) => _construct.ChangeState(DrawState.VECTOR);
            AddStripItem(shapeStrip, Icon.dot).Click     += (b, d) => _construct.ChangeState(DrawState.DOT);

            VScrollBar vscroll = new VScrollBar();

            vscroll.Dock = DockStyle.Right;
            HScrollBar hscroll = new HScrollBar();

            hscroll.Dock = DockStyle.Bottom;

            var construct = GameObject.Find("construct");

            var move = construct.AddComponent <MoveConstructComponent>();

            move.Comp    = construct.GetComponent <ConstructComponent>();
            move.Hscroll = hscroll;
            move.Vscroll = vscroll;

            menu = new MenuStrip()
            {
                BackColor = System.Drawing.Color.White
            };

            var con = new ToolStripMenuItem("작도(&C)");

            con.DropDownItems.Add("평행선(&E)");
            con.DropDownItems.Add("수선(&P)");
            con.DropDownItems.Add("접선(&T)");
            con.DropDownItems.Add("대칭이동(&R)");
            con.DropDownItems.Add("타원(&L)");
            con.DropDownItems[0].Click += (s, e) => _construct.SelectConstruct(ConstructType.ParallelLine);
            con.DropDownItems[1].Click += (s, e) => _construct.SelectConstruct(ConstructType.PerpendicularLine);
            con.DropDownItems[2].Click += (s, e) => _construct.SelectConstruct(ConstructType.Tangent);
            con.DropDownItems[3].Click += (s, e) => _construct.SelectConstruct(ConstructType.Reflection);
            con.DropDownItems[4].Click += (s, e) => _construct.SelectConstruct(ConstructType.Ellipse);
            menu.Items.Add(con);

            var control = Control.FromHandle(Window.Handle);

            control.Controls.Add(shapeStrip);
            control.Controls.Add(menu);
            control.Controls.Add(vscroll);
            control.Controls.Add(hscroll);
        }
Esempio n. 38
0
        public void InitializeMenu(System.Windows.Forms.MenuStrip menuStrip)
        {
            mMenuStrip = menuStrip;

            mMenuItem = new ToolStripMenuItem("Performance measurement...");
            ToolStripMenuItem itemToAddTo = GetItem("Plugins");

            itemToAddTo.DropDownItems.Add(mMenuItem);
            mMenuItem.Click += new EventHandler(mMenuItem_Click);
        }
Esempio n. 39
0
        protected virtual void InitializeKomponentMenu(SAPreference pref)
        {
            System.Windows.Forms.MenuStrip ms = this.MainMenu;
            if (ms != null && KomponentCollection.Instance.Count > 0)
            {
                System.Windows.Forms.ToolStripMenuItem sa = new ToolStripMenuItem();
                sa.Text = "Safe.Anywhere";
                sa.Name = "KomponentMenuItem";

                int n = 0;
                foreach (IKomponent k in KomponentCollection.Instance)
                {
                    System.Windows.Forms.ToolStripMenuItem mi = new ToolStripMenuItem();
                    mi.Name   = string.Format("KomponentMenuItem{0}", n);
                    mi.Text   = k.FullName;
                    mi.Tag    = k;
                    mi.Image  = k.Image16;
                    mi.Click += new System.EventHandler(this.KomponentMenuItem_Click);
                    n++;
                    sa.DropDownItems.Add(mi);
                }
                ms.Items.Add(sa);
            }
            System.Windows.Forms.ToolStrip ts = this.MainTool;
            if (ts != null && KomponentCollection.Instance.Count > 0)
            {
                System.Windows.Forms.ToolStripSeparator sp = new System.Windows.Forms.ToolStripSeparator();
                ts.Items.Add(sp);

                int n = 0;
                foreach (IKomponent k in KomponentCollection.Instance)
                {
                    System.Windows.Forms.ToolStripButton ti = new System.Windows.Forms.ToolStripButton();
                    ti.Name         = string.Format("KomponentToolItem{0}", n);
                    ti.Text         = k.FullName;
                    ti.ToolTipText  = k.FullName;
                    ti.Tag          = k;
                    ti.Image        = k.Image24;
                    ti.DisplayStyle = ToolStripItemDisplayStyle.Image;
                    ti.ImageScaling = ToolStripItemImageScaling.None;
                    ti.Click       += new System.EventHandler(this.KomponentMenuItem_Click);
                    n++;
                    ts.Items.Add(ti);
                }
            }
            if (ts != null)
            {
                ZForge.Controls.RSS.ToolStripRSSLabel rl = new ZForge.Controls.RSS.ToolStripRSSLabel(pref.Company, pref.URL);
                rl.Alignment = ToolStripItemAlignment.Right;
                rl.URLs.AddRange(pref.RSSFeeds);
                ts.Items.Add(rl);
                rl.Run();
            }
        }
Esempio n. 40
0
        private ToolStripMenuItem AddStripItem(MenuStrip strip, Image img)
        {
            var imageSize = new Size(60, 60);
            var item      = new ToolStripMenuItem(new Bitmap(img, imageSize));

            item.ImageAlign   = ContentAlignment.MiddleCenter;
            item.ImageScaling = ToolStripItemImageScaling.None;
            item.AutoSize     = true;
            strip.Items.Add(item);
            return(item);
        }
Esempio n. 41
0
        private void OcultarMiembrosMnu(System.Windows.Forms.MenuStrip Mnu)
        {
            int i = 0;

            for (i = 0; i <= Mnu.Items.Count - 1; i++)
            {
                Mnu.Items[i].Visible = false;
                Mnu.Items[i].Tag     = "A";
                OcultarMiembrosSubMnu((ToolStripMenuItem)Mnu.Items[i]);
            }
        }
Esempio n. 42
0
        protected void ShowDropDown(System.Windows.Forms.MenuStrip Menu, string TypeName, bool ShowRoot /*, string Name = null*/)
        {
            foreach (ToolStripMenuItem item in Menu.Items)
            {
                if (CheckMenuItem(item, TypeName, ShowRoot))
                {
                    item.ShowDropDown();

                    break;
                }
            }
        }
Esempio n. 43
0
 private void InitializeComponent()
 {
     this.menuStrip1            = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem
     });
     this.menuStrip1.Location   = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name       = "menuStrip1";
     this.menuStrip1.Size       = new System.Drawing.Size(1002, 24);
     this.menuStrip1.TabIndex   = 1;
     this.menuStrip1.Text       = "menuStrip1";
     this.menuStrip1.ItemAdded += new System.Windows.Forms.ToolStripItemEventHandler(this.menuStrip1_ItemAdded);
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.openToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "&File";
     //
     // openToolStripMenuItem
     //
     this.openToolStripMenuItem.Name         = "openToolStripMenuItem";
     this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this.openToolStripMenuItem.Size         = new System.Drawing.Size(146, 22);
     this.openToolStripMenuItem.Text         = "&Open";
     this.openToolStripMenuItem.Click       += new System.EventHandler(this.openToolStripMenuItem_Click);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1002, 674);
     this.Controls.Add(this.menuStrip1);
     this.IsMdiContainer = true;
     this.MainMenuStrip  = this.menuStrip1;
     this.Name           = "Form1";
     this.Text           = "Form1";
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 44
0
        public static string GetLanguageValue(this System.Windows.Forms.MenuStrip item)
        {
            string _result = item.Text;

            if (item.Tag != null)
            {
                if (vars.LANG_DICT[item.Tag.ToString()] != null)
                {
                    _result = vars.LANG_DICT[item.Tag.ToString()].ToString();
                }
            }
            return(_result);
        }
        public override void Setup()
        {
            System.Windows.Forms.MenuStrip menu    = new System.Windows.Forms.MenuStrip();
            System.Windows.Forms.ToolStrip toolbar = new System.Windows.Forms.ToolStrip();
            Env.Initialize(null, new Commands(menu, toolbar), FreeSCADA.Interfaces.EnvironmentMode.Designer);
            plugin = (Plugin)Env.Current.CommunicationPlugins["opc_connection_plug"];

            projectFile = System.IO.Path.GetTempFileName();

            if (System.IO.File.Exists(projectFile))
            {
                System.IO.File.Delete(projectFile);
            }
        }
        private void CargarMiembroMnu(System.Windows.Forms.MenuStrip Mnu)
        {
            int i = 0;

            for (i = 0; i < Mnu.Items.Count; i++)
            {
                System.Windows.Forms.TreeNode mNode = null;
                mNode     = new System.Windows.Forms.TreeNode(Mnu.Items[i].Text, 0, 0);
                mNode.Tag = Mnu.Items[i].Name;
                //mNode.Tag = Mnu.Items[i].Text;
                TvOpciones.Nodes.Add(mNode);

                CargarMiembroSubMnu((ToolStripMenuItem)Mnu.Items[i], mNode);
            }
        }
Esempio n. 47
0
        private void MostrarMiembroMnu(System.Windows.Forms.MenuStrip Mnu, string Menu)
        {
            int i = 0;

            for (i = 0; i <= Mnu.Items.Count - 1; i++)
            {
                if (Mnu.Items[i].Text.ToUpper().Equals(Menu))
                {
                    Mnu.Items[i].Visible = true;
                    Mnu.Items[i].Tag     = "A";
                    break;
                }
                MostrarMiembroSubMnu((ToolStripMenuItem)Mnu.Items[i], Menu);
            }
        }
        public void InitializeMenu(System.Windows.Forms.MenuStrip menuStrip)
        {
            mMenuStrip = menuStrip;
            ToolStripMenuItem itemToAddTo = GetItem("Update");

            mUpdateItem = new ToolStripMenuItem("Svn Update");
            mCommitItem = new ToolStripMenuItem("Svn Commit");
            mSplitter   = new ToolStripSeparator();

            itemToAddTo.DropDownItems.Add(mSplitter);
            itemToAddTo.DropDownItems.Add(mUpdateItem);
            itemToAddTo.DropDownItems.Add(mCommitItem);


            mUpdateItem.Click += new EventHandler(OnSvnUpdateClick);
            mCommitItem.Click += new EventHandler(OnSvnCommitClick);
        }
Esempio n. 49
0
 public override void InitializeBackend(object frontend, ApplicationContext context)
 {
     base.InitializeBackend(frontend, context);
     Menu                      = new SWF.MenuStrip();
     ItemsCollection           = Menu.Items;
     _items.CollectionChanged += (sender, args) => {
         var backend = args.NewItems.Cast <MenuItemBackend> ().FirstOrDefault();
         if (args.Action == NotifyCollectionChangedAction.Add)
         {
             ItemsCollection.Insert(args.NewStartingIndex, backend.MenuItem);
         }
         if (args.Action == NotifyCollectionChangedAction.Remove)
         {
             ItemsCollection.Remove(backend.MenuItem);
         }
     };
 }
Esempio n. 50
0
        protected ToolStripMenuItem CreateToolStripMenuItem(string text, object tag, EventHandler clickAction, bool enabled, string tooltipText)
        {
            var MenuMain = new System.Windows.Forms.MenuStrip();
            var tFont    = new Font(MenuMain.Font.Name, MenuMain.Font.Size);
            var tm       = new ToolStripMenuItem
            {
                Font        = tFont,
                RightToLeft = RightToLeft.No,
                Text        = text,
                Tag         = tag,
                ToolTipText = tooltipText,
                Enabled     = enabled,
            };

            tm.Click += clickAction;

            return(tm);
        }
Esempio n. 51
0
        [NUF.Test] public void Find_menu()
        {
            // == prepare ==
            var form      = new SWF.Form();
            var menuStrip = new SWF.MenuStrip();
            var fileTool  = new SWF.ToolStripMenuItem();

            fileTool.Name = "fileTool";
            fileTool.Text = "File";
            menuStrip.Items.Add(fileTool);
            form.Controls.Add(menuStrip);

            // == execute ==
            var ctrl = form.Controls.Find("fileTool", true);

            // == not found! ==
            NUF.Assert.That(ctrl.Length, NUF.Is.EqualTo(0));
        }
Esempio n. 52
0
 private void TranslateMe(System.Windows.Forms.MenuStrip menus)
 {
     try
     {
         if (!IsOmitted(menus.Tag))
         {
             menus.Text = TranslateMe(menus.Text);
         }
         if (!IsAllOmitted(menus.Tag))
         {
             foreach (System.Windows.Forms.ToolStripItem c in menus.Items)
             {
                 TranslateMe((object)c);
             }
         }
     }
     catch (Exception ex) { My.Box.Errore(ex.Message); }
 }
Esempio n. 53
0
 private void InitializeComponent()
 {
     this.msMain    = new System.Windows.Forms.MenuStrip();
     this.pToolBars = new System.Windows.Forms.ToolStripPanel();
     this.SuspendLayout();
     //
     // il
     //
     this.il.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     //
     // msMain
     //
     this.msMain.AllowMerge       = false;
     this.msMain.ImageList        = this.il;
     this.msMain.Location         = new System.Drawing.Point(0, 0);
     this.msMain.Name             = "msMain";
     this.msMain.ShowItemToolTips = true;
     this.msMain.Size             = new System.Drawing.Size(550, 24);
     this.msMain.TabIndex         = 0;
     this.msMain.Text             = "menuStrip1";
     //
     // pToolbars
     //
     this.pToolBars.Dock        = System.Windows.Forms.DockStyle.Top;
     this.pToolBars.Location    = new System.Drawing.Point(0, 24);
     this.pToolBars.Name        = "pToolbars";
     this.pToolBars.Orientation = System.Windows.Forms.Orientation.Horizontal;
     this.pToolBars.RowMargin   = new System.Windows.Forms.Padding(3, 0, 0, 0);
     this.pToolBars.Size        = new System.Drawing.Size(550, 0);
     //
     // BaseGuiForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(550, 549);
     this.Controls.Add(this.pToolBars);
     this.Controls.Add(this.msMain);
     this.MainMenuStrip = this.msMain;
     this.Name          = "BaseGuiForm";
     this.Text          = "BaseGUIForm";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 54
0
        public void ActivarOpcionesPerfil(int n_IdPerfil, System.Windows.Forms.MenuStrip o_Menu)
        {
            DataTable dtResul = new DataTable();
            //TraerPerfil
            CD_sys_perfil miFun = new CD_sys_perfil();

            miFun.mysConec = mysConec;
            miFun.TraerPerfil(n_IdPerfil);
            dtLista = miFun.dtLista;
            if (miFun.b_OcurrioError == true)
            {
                b_OcurrioError = miFun.b_OcurrioError;
                c_ErrorMensaje = miFun.c_ErrorMensaje;
                n_ErrorNumber  = miFun.n_ErrorNumber;
                return;
            }
            int n_row = 0;
            int n_fil = 0;

            for (n_row = 0; n_row <= o_Menu.Items.Count - 1; n_row++)
            {
                for (n_fil = 0; n_fil <= dtLista.Rows.Count - 1; n_fil++)
                {
                    if (o_Menu.Items[n_row].Text == dtLista.Rows[n_fil]["c_des"].ToString())
                    {
                        if (Convert.ToInt32(funFunciones.NulosN(dtLista.Rows[n_fil]["n_visible"])) == 1)
                        {
                            o_Menu.Items[n_row].Enabled = true;
                        }
                        else
                        {
                            o_Menu.Items[n_row].Enabled = false;
                        }
                        break;
                    }
                }
            }
            return;
        }
Esempio n. 55
0
 private void InitializeComponent()
 {
     this.menuStrip1         = new System.Windows.Forms.MenuStrip();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem1
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(292, 24);
     this.menuStrip1.TabIndex = 0;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(90, 20);
     this.toolStripMenuItem1.Text = "ChildMenuItem";
     //
     // ChildForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(292, 273);
     this.Controls.Add(this.menuStrip1);
     this.MainMenuStrip = this.menuStrip1;
     this.Name          = "ChildForm";
     this.Text          = "ChildForm";
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 56
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ToolStripStatusLabel           statusLabel1;
     System.Windows.Forms.ToolStripStatusLabel           statusLabel2;
     System.Windows.Forms.MenuStrip                      menuStrip;
     System.Windows.Forms.ToolStripSeparator             toolStripMenuItem1;
     System.Windows.Forms.ToolStripSeparator             toolStripMenuItem2;
     AIMS.Libraries.CodeEditor.WinForms.LineMarginRender lineMarginRender2 = new AIMS.Libraries.CodeEditor.WinForms.LineMarginRender();
     this.mnuEdit         = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuFind         = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuReplace      = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuFindNext     = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuSelectAll    = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuSave         = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuClose        = new System.Windows.Forms.ToolStripMenuItem();
     this.statusBar       = new System.Windows.Forms.StatusStrip();
     this.cursorLine      = new System.Windows.Forms.ToolStripStatusLabel();
     this.cursorCol       = new System.Windows.Forms.ToolStripStatusLabel();
     this.txtText         = new AIMS.Libraries.CodeEditor.CodeEditorControl();
     this.syntaxDocument1 = new AIMS.Libraries.CodeEditor.Syntax.SyntaxDocument(this.components);
     statusLabel1         = new System.Windows.Forms.ToolStripStatusLabel();
     statusLabel2         = new System.Windows.Forms.ToolStripStatusLabel();
     menuStrip            = new System.Windows.Forms.MenuStrip();
     toolStripMenuItem1   = new System.Windows.Forms.ToolStripSeparator();
     toolStripMenuItem2   = new System.Windows.Forms.ToolStripSeparator();
     menuStrip.SuspendLayout();
     this.statusBar.SuspendLayout();
     this.SuspendLayout();
     //
     // statusLabel1
     //
     statusLabel1.Name      = "statusLabel1";
     statusLabel1.Size      = new System.Drawing.Size(32, 17);
     statusLabel1.Text      = "Line:";
     statusLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // statusLabel2
     //
     statusLabel2.Name      = "statusLabel2";
     statusLabel2.Padding   = new System.Windows.Forms.Padding(10, 0, 0, 0);
     statusLabel2.Size      = new System.Drawing.Size(45, 17);
     statusLabel2.Text      = "Char:";
     statusLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // menuStrip
     //
     menuStrip.BackColor = System.Drawing.SystemColors.Window;
     menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuEdit
     });
     menuStrip.Location = new System.Drawing.Point(0, 0);
     menuStrip.Name     = "menuStrip";
     menuStrip.Size     = new System.Drawing.Size(1230, 24);
     menuStrip.TabIndex = 1004;
     menuStrip.Text     = "menuStrip1";
     //
     // mnuEdit
     //
     this.mnuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.mnuFind,
         this.mnuReplace,
         this.mnuFindNext,
         toolStripMenuItem1,
         this.mnuSelectAll,
         toolStripMenuItem2,
         this.mnuSave,
         this.mnuClose
     });
     this.mnuEdit.Name = "mnuEdit";
     this.mnuEdit.Size = new System.Drawing.Size(39, 20);
     this.mnuEdit.Text = "&Edit";
     //
     // mnuFind
     //
     this.mnuFind.Name         = "mnuFind";
     this.mnuFind.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
     this.mnuFind.Size         = new System.Drawing.Size(167, 22);
     this.mnuFind.Text         = "&Find...";
     this.mnuFind.Click       += new System.EventHandler(this.mnuFind_Click);
     //
     // mnuReplace
     //
     this.mnuReplace.Name         = "mnuReplace";
     this.mnuReplace.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.H)));
     this.mnuReplace.Size         = new System.Drawing.Size(167, 22);
     this.mnuReplace.Text         = "&Replace...";
     this.mnuReplace.Click       += new System.EventHandler(this.mnuReplace_Click);
     //
     // mnuFindNext
     //
     this.mnuFindNext.Name         = "mnuFindNext";
     this.mnuFindNext.ShortcutKeys = System.Windows.Forms.Keys.F3;
     this.mnuFindNext.Size         = new System.Drawing.Size(167, 22);
     this.mnuFindNext.Text         = "Find &Next";
     this.mnuFindNext.Click       += new System.EventHandler(this.mnuFindNext_Click);
     //
     // toolStripMenuItem1
     //
     toolStripMenuItem1.Name = "toolStripMenuItem1";
     toolStripMenuItem1.Size = new System.Drawing.Size(164, 6);
     //
     // mnuSelectAll
     //
     this.mnuSelectAll.Name         = "mnuSelectAll";
     this.mnuSelectAll.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
     this.mnuSelectAll.Size         = new System.Drawing.Size(167, 22);
     this.mnuSelectAll.Text         = "Select &All";
     this.mnuSelectAll.Click       += new System.EventHandler(this.mnuSelectAll_Click);
     //
     // toolStripMenuItem2
     //
     toolStripMenuItem2.Name = "toolStripMenuItem2";
     toolStripMenuItem2.Size = new System.Drawing.Size(164, 6);
     //
     // mnuSave
     //
     this.mnuSave.Name         = "mnuSave";
     this.mnuSave.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     this.mnuSave.Size         = new System.Drawing.Size(167, 22);
     this.mnuSave.Text         = "&Save";
     this.mnuSave.Click       += new System.EventHandler(this.mnuSave_Click);
     //
     // mnuClose
     //
     this.mnuClose.Name   = "mnuClose";
     this.mnuClose.Size   = new System.Drawing.Size(167, 22);
     this.mnuClose.Text   = "&Close";
     this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click);
     //
     // statusBar
     //
     this.statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         statusLabel1,
         this.cursorLine,
         statusLabel2,
         this.cursorCol
     });
     this.statusBar.Location = new System.Drawing.Point(0, 713);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(1230, 22);
     this.statusBar.TabIndex = 1003;
     this.statusBar.Text     = "statusStrip1";
     //
     // cursorLine
     //
     this.cursorLine.Name      = "cursorLine";
     this.cursorLine.Size      = new System.Drawing.Size(13, 17);
     this.cursorLine.Text      = "0";
     this.cursorLine.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cursorCol
     //
     this.cursorCol.Name      = "cursorCol";
     this.cursorCol.Size      = new System.Drawing.Size(13, 17);
     this.cursorCol.Text      = "0";
     this.cursorCol.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtText
     //
     this.txtText.ActiveView           = AIMS.Libraries.CodeEditor.WinForms.ActiveView.BottomRight;
     this.txtText.AutoListPosition     = null;
     this.txtText.AutoListSelectedText = "";
     this.txtText.AutoListVisible      = false;
     this.txtText.CopyAsRTF            = false;
     this.txtText.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.txtText.Document             = this.syntaxDocument1;
     this.txtText.FileName             = null;
     this.txtText.InfoTipCount         = 1;
     this.txtText.InfoTipPosition      = null;
     this.txtText.InfoTipSelectedIndex = 1;
     this.txtText.InfoTipVisible       = false;
     lineMarginRender2.Bounds          = new System.Drawing.Rectangle(19, 0, 19, 16);
     this.txtText.LineMarginRender     = lineMarginRender2;
     this.txtText.Location             = new System.Drawing.Point(0, 52);
     this.txtText.LockCursorUpdate     = false;
     this.txtText.Name                 = "txtText";
     this.txtText.Saved                = false;
     this.txtText.ShowScopeIndicator   = false;
     this.txtText.Size                 = new System.Drawing.Size(1230, 661);
     this.txtText.SmoothScroll         = false;
     this.txtText.SplitviewH           = -4;
     this.txtText.SplitviewV           = -4;
     this.txtText.TabGuideColor        = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(233)))), ((int)(((byte)(233)))));
     this.txtText.TabIndex             = 1005;
     this.txtText.Text                 = "codeEditorControl1";
     this.txtText.WhitespaceColor      = System.Drawing.SystemColors.ControlDark;
     this.txtText.CaretChange         += new System.EventHandler(this.txtText_CaretChange);
     //
     // syntaxDocument1
     //
     this.syntaxDocument1.Lines = new string[] {
         ""
     };
     this.syntaxDocument1.MaxUndoBufferSize = 1000;
     this.syntaxDocument1.Modified          = false;
     this.syntaxDocument1.UndoStep          = 0;
     //
     // TextEditorFormBase
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(1230, 735);
     this.Controls.Add(this.txtText);
     this.Controls.Add(this.statusBar);
     this.Controls.Add(menuStrip);
     this.MinimizeBox   = false;
     this.Name          = "TextEditorFormBase";
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "Script Editor";
     menuStrip.ResumeLayout(false);
     menuStrip.PerformLayout();
     this.statusBar.ResumeLayout(false);
     this.statusBar.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 57
0
        private void InitializeComponent()
        {
            this.gameToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
            this.startANewGameToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.startANewTournirToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.propertiesToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
            this.exitToolStripMenuItem             = new System.Windows.Forms.ToolStripSeparator();
            this.exitToolStripMenuItem1            = new System.Windows.Forms.ToolStripMenuItem();
            this.helpToolStripMenuItem             = new System.Windows.Forms.ToolStripMenuItem();
            this.howToPlayToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1                   = new System.Windows.Forms.ToolStripSeparator();
            this.aboutToolStripMenuItem                = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1                            = new System.Windows.Forms.MenuStrip();
            this.statusStripPlayersStatus              = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabelCurrentPlayer     = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabelCurrentPlayerName = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabelPlayer1Name       = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabelPlayer1Score      = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabelPlayer2Name       = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripStatusLabelPlayer2Score      = new System.Windows.Forms.ToolStripStatusLabel();
            this.gamePanel         = new System.Windows.Forms.Panel();
            this.fallingCoinPicBox = new System.Windows.Forms.PictureBox();
            this.labelAbout        = new System.Windows.Forms.Label();
            this.menuStrip1.SuspendLayout();
            this.statusStripPlayersStatus.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize) this.fallingCoinPicBox).BeginInit();
            this.SuspendLayout();
            //
            // gameToolStripMenuItem
            //
            this.gameToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.startANewGameToolStripMenuItem,
                this.startANewTournirToolStripMenuItem,
                this.propertiesToolStripMenuItem,
                this.exitToolStripMenuItem,
                this.exitToolStripMenuItem1
            });
            this.gameToolStripMenuItem.Name = "gameToolStripMenuItem";
            this.gameToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
            this.gameToolStripMenuItem.Text = "Game";
            //
            // startANewGameToolStripMenuItem
            //
            this.startANewGameToolStripMenuItem.Name   = "startANewGameToolStripMenuItem";
            this.startANewGameToolStripMenuItem.Size   = new System.Drawing.Size(176, 22);
            this.startANewGameToolStripMenuItem.Text   = "Start a New Game";
            this.startANewGameToolStripMenuItem.Click += new System.EventHandler(this.StartANewGameToolStripMenuItem_Click);
            //
            // startANewTournirToolStripMenuItem
            //
            this.startANewTournirToolStripMenuItem.Name   = "startANewTournirToolStripMenuItem";
            this.startANewTournirToolStripMenuItem.Size   = new System.Drawing.Size(176, 22);
            this.startANewTournirToolStripMenuItem.Text   = "Start a New Tournir";
            this.startANewTournirToolStripMenuItem.Click += new System.EventHandler(this.StartANewTournirToolStripMenuItem_Click);
            //
            // propertiesToolStripMenuItem
            //
            this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem";
            this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
            this.propertiesToolStripMenuItem.Text = "Properties...";
            //
            // exitToolStripMenuItem
            //
            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size = new System.Drawing.Size(173, 6);
            //
            // exitToolStripMenuItem1
            //
            this.exitToolStripMenuItem1.Name   = "exitToolStripMenuItem1";
            this.exitToolStripMenuItem1.Size   = new System.Drawing.Size(176, 22);
            this.exitToolStripMenuItem1.Text   = "Exit";
            this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click);
            //
            // helpToolStripMenuItem
            //
            this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.howToPlayToolStripMenuItem,
                this.toolStripSeparator1,
                this.aboutToolStripMenuItem
            });
            this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
            this.helpToolStripMenuItem.Text = "Help";
            //
            // howToPlayToolStripMenuItem
            //
            this.howToPlayToolStripMenuItem.Name   = "howToPlayToolStripMenuItem";
            this.howToPlayToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.howToPlayToolStripMenuItem.Text   = "How to play?";
            this.howToPlayToolStripMenuItem.Click += new System.EventHandler(this.howToPlayToolStripMenuItem_Click);
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6);
            //
            // aboutToolStripMenuItem
            //
            this.aboutToolStripMenuItem.Name   = "aboutToolStripMenuItem";
            this.aboutToolStripMenuItem.Size   = new System.Drawing.Size(152, 22);
            this.aboutToolStripMenuItem.Text   = "About";
            this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
            //
            // menuStrip1
            //
            this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.gameToolStripMenuItem,
                this.helpToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(467, 24);
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // statusStripPlayersStatus
            //
            this.statusStripPlayersStatus.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.statusStripPlayersStatus.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripStatusLabelCurrentPlayer,
                this.toolStripStatusLabelCurrentPlayerName,
                this.toolStripStatusLabelPlayer1Name,
                this.toolStripStatusLabelPlayer1Score,
                this.toolStripStatusLabelPlayer2Name,
                this.toolStripStatusLabelPlayer2Score
            });
            this.statusStripPlayersStatus.Location = new System.Drawing.Point(0, 447);
            this.statusStripPlayersStatus.Name     = "statusStripPlayersStatus";
            this.statusStripPlayersStatus.Size     = new System.Drawing.Size(467, 22);
            this.statusStripPlayersStatus.Stretch  = false;
            this.statusStripPlayersStatus.TabIndex = 1;
            this.statusStripPlayersStatus.Text     = "statusStrip1";
            //
            // toolStripStatusLabelCurrentPlayer
            //
            this.toolStripStatusLabelCurrentPlayer.Name    = "toolStripStatusLabelCurrentPlayer";
            this.toolStripStatusLabelCurrentPlayer.Size    = new System.Drawing.Size(88, 17);
            this.toolStripStatusLabelCurrentPlayer.Text    = "Current Player :";
            this.toolStripStatusLabelCurrentPlayer.Visible = false;
            //
            // toolStripStatusLabelCurrentPlayerName
            //
            this.toolStripStatusLabelCurrentPlayerName.Name    = "toolStripStatusLabelCurrentPlayerName";
            this.toolStripStatusLabelCurrentPlayerName.Size    = new System.Drawing.Size(0, 17);
            this.toolStripStatusLabelCurrentPlayerName.Visible = false;
            //
            // toolStripStatusLabelPlayer1Name
            //
            this.toolStripStatusLabelPlayer1Name.Margin  = new System.Windows.Forms.Padding(20, 3, 0, 2);
            this.toolStripStatusLabelPlayer1Name.Name    = "toolStripStatusLabelPlayer1Name";
            this.toolStripStatusLabelPlayer1Name.Size    = new System.Drawing.Size(0, 17);
            this.toolStripStatusLabelPlayer1Name.Visible = false;
            //
            // toolStripStatusLabelPlayer1Score
            //
            this.toolStripStatusLabelPlayer1Score.Margin  = new System.Windows.Forms.Padding(-5, 3, 0, 2);
            this.toolStripStatusLabelPlayer1Score.Name    = "toolStripStatusLabelPlayer1Score";
            this.toolStripStatusLabelPlayer1Score.Size    = new System.Drawing.Size(13, 17);
            this.toolStripStatusLabelPlayer1Score.Text    = "0";
            this.toolStripStatusLabelPlayer1Score.Visible = false;
            //
            // toolStripStatusLabelPlayer2Name
            //
            this.toolStripStatusLabelPlayer2Name.Name    = "toolStripStatusLabelPlayer2Name";
            this.toolStripStatusLabelPlayer2Name.Size    = new System.Drawing.Size(0, 17);
            this.toolStripStatusLabelPlayer2Name.Visible = false;
            //
            // toolStripStatusLabelPlayer2Score
            //
            this.toolStripStatusLabelPlayer2Score.Margin  = new System.Windows.Forms.Padding(-5, 3, 0, 2);
            this.toolStripStatusLabelPlayer2Score.Name    = "toolStripStatusLabelPlayer2Score";
            this.toolStripStatusLabelPlayer2Score.Size    = new System.Drawing.Size(13, 17);
            this.toolStripStatusLabelPlayer2Score.Text    = "0";
            this.toolStripStatusLabelPlayer2Score.Visible = false;
            //
            // gamePanel
            //
            this.gamePanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right));
            this.gamePanel.AutoSize    = true;
            this.gamePanel.BackColor   = System.Drawing.Color.Plum;
            this.gamePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.gamePanel.Location    = new System.Drawing.Point(12, 50);
            this.gamePanel.Name        = "gamePanel";
            this.gamePanel.Size        = new System.Drawing.Size(443, 372);
            this.gamePanel.TabIndex    = 2;
            //
            // fallingCoinPicBox
            //
            this.fallingCoinPicBox.Location = new System.Drawing.Point(-1, -1);
            this.fallingCoinPicBox.Name     = "fallingCoinPicBox";
            this.fallingCoinPicBox.Size     = new System.Drawing.Size(67, 67);
            this.fallingCoinPicBox.TabIndex = 0;
            this.fallingCoinPicBox.TabStop  = false;

            //
            // labelAbout
            //
            this.labelAbout.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                            | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
            this.labelAbout.BackColor = System.Drawing.Color.GhostWhite;
            this.labelAbout.Font      = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(177)));
            this.labelAbout.Location  = new System.Drawing.Point(67, 162);
            this.labelAbout.Name      = "labelAbout";
            this.labelAbout.Size      = new System.Drawing.Size(333, 145);
            this.labelAbout.TabIndex  = 5;
            this.labelAbout.Text      = "4 In A Row !! :)";
            this.labelAbout.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.labelAbout.Visible   = false;
            this.labelAbout.Click    += new System.EventHandler(this.labelAbout_Click);
            //
            // MainScreen
            //
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            this.ClientSize    = new System.Drawing.Size(467, 469);
            this.Controls.Add(this.labelAbout);
            this.Controls.Add(this.gamePanel);
            this.Controls.Add(this.statusStripPlayersStatus);
            this.Controls.Add(this.menuStrip1);
            this.ForeColor       = System.Drawing.SystemColors.ControlText;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.MainMenuStrip   = this.menuStrip1;
            this.MaximizeBox     = false;
            this.Name            = "MainScreen";
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text            = "4 In a Row!!";
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.statusStripPlayersStatus.ResumeLayout(false);
            this.statusStripPlayersStatus.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.fallingCoinPicBox)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 58
0
        /// <summary>
        /// This method initialize the components contained on the form.
        /// </summary>
        public void InitializeComponent()
        {
            this.components    = new System.ComponentModel.Container();
            this.Panel1        = new System.Windows.Forms.Panel();
            this.sclviewertree = new SclViewerTree();
            // Legacy Tree initialization
            this.Panel2 = new System.Windows.Forms.Panel();
            this.PropertyGridAttributes = new System.Windows.Forms.PropertyGrid();
            this.splitContainer1        = new System.Windows.Forms.SplitContainer();

            this.mainMenu1       = new System.Windows.Forms.MainMenu(this.components);
            this.fileMenu        = new System.Windows.Forms.MenuItem();
            this.openItem        = new System.Windows.Forms.MenuItem();
            this.exitItem        = new System.Windows.Forms.MenuItem();
            this.editMenu        = new System.Windows.Forms.MenuItem();
            this.preferencesItem = new System.Windows.Forms.MenuItem();
            this.helpMenu        = new System.Windows.Forms.MenuItem();
            this.aboutItem       = new System.Windows.Forms.MenuItem();
            this.menuStrip1      = new System.Windows.Forms.MenuStrip();

            this.fileToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.newToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.saveToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.saveasToolStripMenuItem = new ToolStripMenuItem();
            this.exitToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.helpToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.aboutToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
            this.toolsToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();

            this.validateSCLFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            this.importIEDConfigToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            this.Exit       = new System.Windows.Forms.ToolBarButton();
            this.toolBar1   = new System.Windows.Forms.ToolBar();
            this.Separator1 = new System.Windows.Forms.ToolBarButton();

            this.New  = new System.Windows.Forms.ToolBarButton();
            this.Open = new System.Windows.Forms.ToolBarButton();
            this.save = new System.Windows.Forms.ToolBarButton();

            this.Separator2            = new System.Windows.Forms.ToolBarButton();
            this.statusStrip1          = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();

            this.Panel1.SuspendLayout();

            this.Panel2.SuspendLayout();

            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();

            this.menuStrip1.SuspendLayout();
            this.statusStrip1.SuspendLayout();

            this.SuspendLayout();
            //
            // Panel1
            //
            this.Panel1.Controls.Add(this.sclviewertree);
            this.Panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.Panel1.Location = new System.Drawing.Point(0, 0);
            this.Panel1.Name     = "Panel1";
            //this.Panel1.Size = new System.Drawing.Size(347, 670);
            this.Panel1.TabIndex      = 0;
            this.Panel1.AutoSize      = true;
            this.sclviewertree.Anchor = ((System.Windows.Forms.AnchorStyles)
                                             ((((System.Windows.Forms.AnchorStyles.Top
                                                 | System.Windows.Forms.AnchorStyles.Bottom)
                                                | System.Windows.Forms.AnchorStyles.Left)
                                               | System.Windows.Forms.AnchorStyles.Right)));
            this.sclviewertree.Location     = new System.Drawing.Point(0, 0);
            this.sclviewertree.Name         = "SclTreeViewer";
            this.sclviewertree.Dock         = DockStyle.Fill;
            this.sclviewertree.TabIndex     = 0;
            this.sclviewertree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.sclviewertreeAfterSelect);
            //
            // Panel2
            //
            this.Panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.Panel2.Controls.Add(this.PropertyGridAttributes);

            this.Panel2.Location = new System.Drawing.Point(0, 0);
            this.Panel2.Name     = "Panel2";
            //this.Panel2.Size = new System.Drawing.Size(583, 670);
            this.Panel2.TabIndex = 2;
            //this.Panel2.AutoScroll = true;
            this.Panel2.AutoSize = true;

            //
            // PropertyGridAttributes
            //
            this.PropertyGridAttributes.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
            this.PropertyGridAttributes.Location = new System.Drawing.Point(1, 1);
            this.PropertyGridAttributes.Name     = "PropertyGridAttributes";
            this.PropertyGridAttributes.Dock     = DockStyle.Fill;
            //this.PropertyGridAttributes.Size = new System.Drawing.Size(580, 465);
            //this.PropertyGridAttributes.AutoScroll = true;
            //this.PropertyGridAttributes.AutoSize = true;
            this.PropertyGridAttributes.TabIndex              = 3;
            this.PropertyGridAttributes.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.PropertyGridAttributesPropertyValueChanged);
            //
            // splitContainer1
            //
            this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
            this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.splitContainer1.Location    = new System.Drawing.Point(0, 52);
            this.splitContainer1.Name        = "splitContainer1";
            this.splitContainer1.Dock        = DockStyle.Fill;
            //this.splitContainer1.Size = new System.Drawing.Size(943, 672);
            //this.splitContainer1.MinimumSize = new System.Drawing.Size(300, 200);
            //this.splitContainer1.AutoSize = true;
            //this.splitContainer1.AutoScroll = true;
            //this.splitContainer1.SplitterDistance = 349;

            //
            // splitContainer1.Panel1
            //
            this.splitContainer1.Panel1.AutoScroll = true;

            this.splitContainer1.Panel1.Controls.Add(this.Panel1);
            //this.splitContainer1.AutoScrollMinSize = new System.Drawing.Size(943, 672);

            //
            // splitContainer1.Panel2
            //
            this.splitContainer1.Panel2.Controls.Add(this.Panel2);
            this.splitContainer1.Panel2.AutoScroll = true;
            this.splitContainer1.TabIndex          = 5;

            //
            // mainMenu1
            //
            this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                this.fileMenu,
                this.helpMenu
            });
            //
            // File Menu
            //
            this.fileMenu.Index = 0;
            this.fileMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                this.openItem,
                this.exitItem
            });
            this.fileMenu.OwnerDraw = true;
            this.fileMenu.Text      = "File";
            //
            // Open SCL File
            //
            this.openItem.Index     = 0;
            this.openItem.OwnerDraw = true;
            this.openItem.Text      = "Open";
            //
            // Exit Application
            //
            this.exitItem.Index     = 1;
            this.exitItem.OwnerDraw = true;
            this.exitItem.Text      = "Exit";
            this.exitItem.Click    += new System.EventHandler(this.exitApp);

            //
            // Preferences
            //
            this.preferencesItem.Index     = 1;
            this.preferencesItem.OwnerDraw = true;
            this.preferencesItem.Text      = "Preferences";
            this.preferencesItem.Click    += new System.EventHandler(this.OpenPreferencesDialog);

            //
            // Edit
            //
            this.editMenu.Index = 1;
            this.editMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                this.aboutItem
            });
            this.helpMenu.OwnerDraw = true;
            this.helpMenu.Text      = "Help";

            //
            // Help
            //
            this.helpMenu.Index = 1;
            this.helpMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                this.aboutItem
            });
            this.helpMenu.OwnerDraw = true;
            this.helpMenu.Text      = "Help";
            //
            // About
            //
            this.aboutItem.Index     = 0;
            this.aboutItem.OwnerDraw = true;
            this.aboutItem.Text      = "About";
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.fileToolStripMenuItem,
                this.toolsToolStripMenuItem,
                this.helpToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            //this.menuStrip1.Size = new System.Drawing.Size(943, 24);
            //this.menuStrip1.AutoSize = true;
            this.menuStrip1.TabIndex = 0;
            this.menuStrip1.Text     = "menuStrip1";
            //
            // fileToolStripMenuItem
            //
            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.newToolStripMenuItem,
                this.openToolStripMenuItem,
                this.saveToolStripMenuItem,
                this.saveasToolStripMenuItem,
                this.exitToolStripMenuItem
            });
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            //this.fileToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
            //this.fileToolStripMenuItem.AutoSize = true;
            this.fileToolStripMenuItem.Text = "Project";
            //
            // newToolStripMenuItem
            //
            this.newToolStripMenuItem.Name = "newToolStripMenuItem";
            //this.newToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            //this.newToolStripMenuItem.AutoSize = true;
            this.newToolStripMenuItem.Text   = "New";
            this.newToolStripMenuItem.Click += new System.EventHandler(this.NewFile);
            //
            // openToolStripMenuItem
            //
            this.openToolStripMenuItem.Name = "openToolStripMenuItem";
            //this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            //this.openToolStripMenuItem.AutoSize = true;
            this.openToolStripMenuItem.Text   = "Open";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.OpenFile);
            //
            // saveToolStripMenuItem
            //
            this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
            //this.saveToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            //this.saveToolStripMenuItem.AutoSize = true;
            this.saveToolStripMenuItem.Text   = "Save";
            this.saveToolStripMenuItem.Click += new System.EventHandler(this.SaveFile);
            //
            // saveasToolStripMenuItem
            //
            this.saveasToolStripMenuItem.Name   = "saveasToolStripMenuItem";
            this.saveasToolStripMenuItem.Text   = "Save as...";
            this.saveasToolStripMenuItem.Click += new System.EventHandler(this.SaveAsFile);
            //
            // exitToolStripMenuItem
            //
            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
            //this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            //this.exitToolStripMenuItem.AutoSize = true;
            this.exitToolStripMenuItem.Text   = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitApp);
            //
            // helpToolStripMenuItem
            //
            this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.aboutToolStripMenuItem
            });
            this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
            //this.helpToolStripMenuItem.Size = new System.Drawing.Size(40, 20);
            //this.helpToolStripMenuItem.AutoSize = true;
            this.helpToolStripMenuItem.Text = "Help";
            //
            // aboutToolStripMenuItem
            //
            this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
            //this.aboutToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            //this.aboutToolStripMenuItem.AutoSize = true;
            this.aboutToolStripMenuItem.Text   = "About";
            this.aboutToolStripMenuItem.Click += new System.EventHandler(this.AboutClick);
            //
            // toolsToolStripMenuItem
            //
            this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.validateSCLFileToolStripMenuItem,
                this.importIEDConfigToolStripMenuItem
            });
            this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
            //this.toolsToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
            //this.toolsToolStripMenuItem.AutoSize = true;
            this.toolsToolStripMenuItem.Text = "Tools";
            //
            // validateSCLFileToolStripMenuItem
            //
            this.validateSCLFileToolStripMenuItem.Name = "validateSCLFileToolStripMenuItem";
            //this.validateSCLFileToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
            //this.validateSCLFileToolStripMenuItem.AutoSize = true;
            this.validateSCLFileToolStripMenuItem.Text   = "Validate SCL file";
            this.validateSCLFileToolStripMenuItem.Click += new System.EventHandler(this.ValidateFileClick);
            //
            // importIEDConfigToolStripMenuItem
            //
            this.importIEDConfigToolStripMenuItem.Name = "importIEDConfigToolStripMenuItem";
            //this.importIEDConfigToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
            //this.importIEDConfigToolStripMenuItem.AutoSize = true;
            this.importIEDConfigToolStripMenuItem.Text   = "Import IED file";
            this.importIEDConfigToolStripMenuItem.Click += new System.EventHandler(this.ImportIEDClick);

            //
            // toolBar1
            //
            this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
            this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
                this.Separator1,
                this.New,
                this.Open,
                this.save,
                this.Separator2
            });
            this.toolBar1.ButtonSize = new System.Drawing.Size(16, 16);

            this.toolBar1.DropDownArrows = true;
            this.toolBar1.Location       = new System.Drawing.Point(0, 24);
            this.toolBar1.Name           = "toolBar1";
            this.toolBar1.ShowToolTips   = true;
            //this.toolBar1.Size = new System.Drawing.Size(943, 28);
            this.toolBar1.TabIndex     = 1;
            this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarEvent);
            //
            // Separator1
            //
            this.Separator1.Name  = "Separator1";
            this.Separator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
            //
            // New
            //
            this.New.ImageIndex  = 0;
            this.New.Name        = "New";
            this.New.ToolTipText = "New configuration file";
            //
            // Open
            //
            this.Open.ImageIndex  = 1;
            this.Open.Name        = "Open";
            this.Open.ToolTipText = "Open a configuration file";
            //
            // Salvar
            //
            this.save.ImageIndex  = 2;
            this.save.Name        = "Salvar";
            this.save.ToolTipText = "Save configuration file";
            //
            // Separator2
            //
            this.Separator2.Name  = "Separator2";
            this.Separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
            //
            // statusStrip1
            //
            this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripStatusLabel1
            });
            this.statusStrip1.Location = new System.Drawing.Point(0, 724);
            this.statusStrip1.Name     = "statusStrip1";
            this.statusStrip1.Size     = new System.Drawing.Size(943, 22);
            this.statusStrip1.TabIndex = 4;
            this.statusStrip1.Text     = "Status Bar";
            //
            // toolStripStatusLabel1
            //
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17);
            //
            // FormSCL
            //
            //this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            //this.ClientSize = new System.Drawing.Size(943, 746);
            this.Controls.Add(this.splitContainer1);
            this.Controls.Add(this.toolBar1);
            this.Controls.Add(this.menuStrip1);
            this.Controls.Add(this.statusStrip1);
            this.Name          = "FormSCL";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = this.AppName;
            this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
            //this.AutoScroll = true;
            this.AutoSize = true;

            this.Load       += new System.EventHandler(this.Form1_Load);
            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormSCLFormClosed);
            this.Panel1.ResumeLayout(false);
            this.Panel2.ResumeLayout(false);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.openFileDialog          = new System.Windows.Forms.OpenFileDialog();
     this.menuStrip               = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.openToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.reloadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1     = new System.Windows.Forms.ToolStripSeparator();
     this.closeToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.exitToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.splitContainer          = new System.Windows.Forms.SplitContainer();
     this.treeView             = new System.Windows.Forms.TreeView();
     this.imageList            = new System.Windows.Forms.ImageList(this.components);
     this.tabControl           = new System.Windows.Forms.TabControl();
     this.tabPage              = new System.Windows.Forms.TabPage();
     this.statusStrip          = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
     this.menuStrip.SuspendLayout();
     this.splitContainer.Panel1.SuspendLayout();
     this.splitContainer.Panel2.SuspendLayout();
     this.splitContainer.SuspendLayout();
     this.tabControl.SuspendLayout();
     this.statusStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // openFileDialog
     //
     this.openFileDialog.DefaultExt = "*.sol";
     this.openFileDialog.Filter     = "SharedObject Files|*.sol|All Files|*.*";
     //
     // menuStrip
     //
     this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem
     });
     this.menuStrip.Location   = new System.Drawing.Point(0, 0);
     this.menuStrip.Name       = "menuStrip";
     this.menuStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     this.menuStrip.Size       = new System.Drawing.Size(654, 24);
     this.menuStrip.TabIndex   = 4;
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.openToolStripMenuItem,
         this.reloadToolStripMenuItem,
         this.toolStripSeparator1,
         this.closeToolStripMenuItem,
         this.exitToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20);
     this.fileToolStripMenuItem.Text = "&File";
     //
     // openToolStripMenuItem
     //
     this.openToolStripMenuItem.Name   = "openToolStripMenuItem";
     this.openToolStripMenuItem.Size   = new System.Drawing.Size(118, 22);
     this.openToolStripMenuItem.Text   = "&Open";
     this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
     //
     // reloadToolStripMenuItem
     //
     this.reloadToolStripMenuItem.Enabled = false;
     this.reloadToolStripMenuItem.Name    = "reloadToolStripMenuItem";
     this.reloadToolStripMenuItem.Size    = new System.Drawing.Size(118, 22);
     this.reloadToolStripMenuItem.Text    = "&Reload";
     this.reloadToolStripMenuItem.Click  += new System.EventHandler(this.reloadToolStripMenuItem_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(115, 6);
     //
     // closeToolStripMenuItem
     //
     this.closeToolStripMenuItem.Name   = "closeToolStripMenuItem";
     this.closeToolStripMenuItem.Size   = new System.Drawing.Size(118, 22);
     this.closeToolStripMenuItem.Text   = "&Close";
     this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name   = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size   = new System.Drawing.Size(118, 22);
     this.exitToolStripMenuItem.Text   = "&Exit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // splitContainer
     //
     this.splitContainer.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer.Location = new System.Drawing.Point(0, 24);
     this.splitContainer.Name     = "splitContainer";
     //
     // splitContainer.Panel1
     //
     this.splitContainer.Panel1.Controls.Add(this.treeView);
     //
     // splitContainer.Panel2
     //
     this.splitContainer.Panel2.Controls.Add(this.tabControl);
     this.splitContainer.Size             = new System.Drawing.Size(654, 426);
     this.splitContainer.SplitterDistance = 218;
     this.splitContainer.TabIndex         = 5;
     //
     // treeView
     //
     this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView.FullRowSelect      = true;
     this.treeView.ImageIndex         = 0;
     this.treeView.ImageList          = this.imageList;
     this.treeView.Location           = new System.Drawing.Point(6, 6);
     this.treeView.Name               = "treeView";
     this.treeView.SelectedImageIndex = 0;
     this.treeView.Size               = new System.Drawing.Size(211, 392);
     this.treeView.TabIndex           = 0;
     this.treeView.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterSelect);
     //
     // imageList
     //
     this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList.Images.SetKeyName(0, "None");
     this.imageList.Images.SetKeyName(1, "Array");
     this.imageList.Images.SetKeyName(2, "ByteArray");
     this.imageList.Images.SetKeyName(3, "Date");
     this.imageList.Images.SetKeyName(4, "Int");
     this.imageList.Images.SetKeyName(5, "null");
     this.imageList.Images.SetKeyName(6, "Number");
     this.imageList.Images.SetKeyName(7, "Object");
     this.imageList.Images.SetKeyName(8, "String");
     this.imageList.Images.SetKeyName(9, "undefined");
     this.imageList.Images.SetKeyName(10, "XML");
     this.imageList.Images.SetKeyName(11, "Mixed");
     this.imageList.Images.SetKeyName(12, "Ref");
     this.imageList.Images.SetKeyName(13, "Boolean");
     this.imageList.Images.SetKeyName(14, "LostReference");
     this.imageList.Images.SetKeyName(15, "shared_object");
     //
     // tabControl
     //
     this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.tabControl.Controls.Add(this.tabPage);
     this.tabControl.ImageList     = this.imageList;
     this.tabControl.Location      = new System.Drawing.Point(0, 6);
     this.tabControl.Name          = "tabControl";
     this.tabControl.Padding       = new System.Drawing.Point(9, 5);
     this.tabControl.SelectedIndex = 0;
     this.tabControl.Size          = new System.Drawing.Size(429, 394);
     this.tabControl.TabIndex      = 1;
     this.tabControl.Visible       = false;
     //
     // tabPage
     //
     this.tabPage.Location = new System.Drawing.Point(4, 27);
     this.tabPage.Name     = "tabPage";
     this.tabPage.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage.Size     = new System.Drawing.Size(421, 363);
     this.tabPage.TabIndex = 1;
     this.tabPage.UseVisualStyleBackColor = true;
     //
     // statusStrip
     //
     this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripStatusLabel
     });
     this.statusStrip.Location = new System.Drawing.Point(0, 428);
     this.statusStrip.Name     = "statusStrip";
     this.statusStrip.Size     = new System.Drawing.Size(654, 22);
     this.statusStrip.TabIndex = 6;
     //
     // toolStripStatusLabel
     //
     this.toolStripStatusLabel.Margin   = new System.Windows.Forms.Padding(3, 3, 0, 2);
     this.toolStripStatusLabel.Name     = "toolStripStatusLabel";
     this.toolStripStatusLabel.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;
     this.toolStripStatusLabel.Size     = new System.Drawing.Size(42, 17);
     this.toolStripStatusLabel.Text     = "Ready.";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(654, 450);
     this.Controls.Add(this.statusStrip);
     this.Controls.Add(this.splitContainer);
     this.Controls.Add(this.menuStrip);
     this.MainMenuStrip = this.menuStrip;
     this.Name          = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = " SharedObject Reader";
     this.Load         += new System.EventHandler(this.MainForm_Load);
     this.menuStrip.ResumeLayout(false);
     this.menuStrip.PerformLayout();
     this.splitContainer.Panel1.ResumeLayout(false);
     this.splitContainer.Panel2.ResumeLayout(false);
     this.splitContainer.ResumeLayout(false);
     this.tabControl.ResumeLayout(false);
     this.statusStrip.ResumeLayout(false);
     this.statusStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 60
0
        /// <summary>
        /// Требуемый метод для поддержки конструктора — не изменяйте
        /// содержимое этого метода с помощью редактора кода.
        /// </summary>
        private void InitializeComponent()
        {
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.searchToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.setSearchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.showAllToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
            this.clearToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            this.addToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
            this.deleteToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
            this.tableView = new System.Windows.Forms.TextBox();
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // menuStrip1
            //
            this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.searchToolStripMenuItem,
                this.addToolStripMenuItem,
                this.deleteToolStripMenuItem
            });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name     = "menuStrip1";
            this.menuStrip1.Size     = new System.Drawing.Size(800, 28);
            this.menuStrip1.TabIndex = 0;
            //
            // searchToolStripMenuItem
            //
            this.searchToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.setSearchToolStripMenuItem,
                this.showAllToolStripMenuItem,
                this.clearToolStripMenuItem
            });
            this.searchToolStripMenuItem.Name = "searchToolStripMenuItem";
            this.searchToolStripMenuItem.Size = new System.Drawing.Size(56, 24);
            this.searchToolStripMenuItem.Text = "Поиск";
            //
            // setSearchToolStripMenuItem
            //
            this.setSearchToolStripMenuItem.Name = "setSearchToolStripMenuItem";
            this.setSearchToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.setSearchToolStripMenuItem.Text = "Найти";
            //
            // clearToolStripMenuItem
            //
            this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
            this.clearToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.clearToolStripMenuItem.Text = "Очистить";
            //
            // showAllToolStripMenuItem
            //
            this.showAllToolStripMenuItem.Name = "showAllToolStripMenuItem";
            this.showAllToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
            this.showAllToolStripMenuItem.Text = "Показать всех";
            //
            // addToolStripMenuItem
            //
            this.addToolStripMenuItem.Name   = "addToolStripMenuItem";
            this.addToolStripMenuItem.Size   = new System.Drawing.Size(59, 24);
            this.addToolStripMenuItem.Text   = "Добавить";
            this.addToolStripMenuItem.Click += new System.EventHandler(this.OnAddClick);
            //
            // deleteToolStripMenuItem
            //
            this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
            this.deleteToolStripMenuItem.Size = new System.Drawing.Size(67, 24);
            this.deleteToolStripMenuItem.Text = "Удалить";

            //
            // tableView
            //
            this.tableView.Anchor     = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
            this.tableView.BackColor  = System.Drawing.SystemColors.ButtonFace;
            this.tableView.Location   = new System.Drawing.Point(12, 31);
            this.tableView.Multiline  = true;
            this.tableView.Name       = "tableView";
            this.tableView.ReadOnly   = true;
            this.tableView.TabStop    = false;
            this.tableView.Size       = new System.Drawing.Size(776, 407);
            this.tableView.TabIndex   = 1;
            this.tableView.ScrollBars = ScrollBars.Vertical;
            //
            // MainForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(800, 450);
            this.Controls.Add(this.tableView);
            this.Controls.Add(this.menuStrip1);
            this.MainMenuStrip = this.menuStrip1;
            this.Name          = "XMLViewer";
            this.Text          = "Список абонентов кабельного TV";
            this.MinimumSize   = new System.Drawing.Size(300, 500);
            this.menuStrip1.ResumeLayout(true);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(true);
            this.PerformLayout();
        }