Inheritance: ToolStripItem
コード例 #1
1
        protected override void OnBarUpdate()
        {
            if (ChartControl == null || _x )
                return;
            if (!ChartControl.Controls.ContainsKey("TSEco_News"))
            {
                _myitem0 = new ToolStripSeparator();
                _myitem0.Name = "TradingStudiesEcoSeparator";

                _myitem1 = new ToolStripButton("Hide News");
                _myitem1.Text = "Hide News";
                _myitem1.Name = "TradingStudiesEcoNews";
                _myitem1.Click += ToolClick1;
                _myitem1.Enabled = true;
                _myitem1.ForeColor = Color.Black;
                _mystrip = (ToolStrip) ChartControl.Controls["tsrTool"];
                _mystrip.Items.Add(_myitem0);
                _mystrip.Items.Add(_myitem1);

                _sp = new Splitter();
                _sp.Name = "TSEco_Splitter";
                _sp.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                ChartControl.Controls.Add(_sp);

                _so = new EcoNewsControl.EcoNewsControl(Cbi.Core.InstallDir + @"\Sounds", Cbi.Core.UserDataDir + @"bin\Custom\");
                _so.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                _so.Name = "TSEco_News";
                ChartControl.Controls.Add(_so);
            }
            else
                _so = ChartControl.Controls["TSEco_News"] as EcoNewsControl.EcoNewsControl;
            _x = true;
        }
コード例 #2
0
        public ContextMenuStrip Create()
        {
            // Add the default menu options.
            ContextMenuStrip menu = new ContextMenuStrip();
            ToolStripMenuItem about;
            ToolStripSeparator sep;

            // About.
            about = new ToolStripMenuItem();
            about.Text = "About";
            about.Click += new EventHandler(About_Click);
            menu.Items.Add(about);

            // Separator.
            sep = new ToolStripSeparator();
            menu.Items.Add(sep);

            // Exit.
            about = new ToolStripMenuItem();
            about.Text = "Exit";
            about.Click += new System.EventHandler(Exit_Click);
            menu.Items.Add(about);

            return menu;
        }
コード例 #3
0
        /// <summary>
        /// Assigns the ContextMenuStrip control to the HexBox control.
        /// </summary>
        void CheckBuiltInContextMenu()
        {
            if (Util.DesignMode)
                return;

            if (this._contextMenuStrip == null)
            {
                ContextMenuStrip cms = new ContextMenuStrip();
                _cutToolStripMenuItem = new ToolStripMenuItem(CutMenuItemTextInternal, CutMenuItemImage, new EventHandler(CutMenuItem_Click));
                cms.Items.Add(_cutToolStripMenuItem);
                _copyToolStripMenuItem = new ToolStripMenuItem(CopyMenuItemTextInternal, CopyMenuItemImage, new EventHandler(CopyMenuItem_Click));
                cms.Items.Add(_copyToolStripMenuItem);
                _pasteToolStripMenuItem = new ToolStripMenuItem(PasteMenuItemTextInternal, PasteMenuItemImage, new EventHandler(PasteMenuItem_Click));
                cms.Items.Add(_pasteToolStripMenuItem);
                _toolStripSeparator = new ToolStripSeparator();
                cms.Items.Add(_toolStripSeparator);
                _selectAllToolStripMenuItem = new ToolStripMenuItem(SelectAllMenuItemTextInternal, SelectAllMenuItemImage, new EventHandler(SelectAllMenuItem_Click));
                cms.Items.Add(_selectAllToolStripMenuItem);
                cms.Opening += new CancelEventHandler(BuildInContextMenuStrip_Opening);

                _contextMenuStrip = cms;
            }

            if (this._hexBox.ByteProvider == null && this._hexBox.ContextMenuStrip == this._contextMenuStrip)
                this._hexBox.ContextMenuStrip = null;
            else if (this._hexBox.ByteProvider != null && this._hexBox.ContextMenuStrip == null)
                this._hexBox.ContextMenuStrip = _contextMenuStrip;
        }
コード例 #4
0
 /// <summary>
 /// Creates and attaches the context menu
 /// </summary>
 private void InitializeContextMenu()
 {
     this.menu = new ContextMenuStrip();
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.RefreshView"), null, new EventHandler(this.RefreshFileView)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.SynchronizeView"), null, new EventHandler(this.SynchronizeView)));
     this.menu.Items.Add(new ToolStripSeparator());
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.CreateFileHere"), null, new EventHandler(this.CreateFileHere)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.CreateFolderHere"), null, new EventHandler(this.CreateFolderHere)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.CommandPromptHere"), null, new EventHandler(this.CommandPromptHere)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.ExploreHere"), null, new EventHandler(this.ExploreHere)));
     this.shellButton = new ToolStripMenuItem(TextHelper.GetString("Label.ShellMenu"), null, new EventHandler(this.ShowShellMenu));
     this.menu.Items.Add(this.shellButton);
     this.menu.Items.Add(new ToolStripSeparator());
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.TrustHere"), null, new EventHandler(this.TrustHere)));
     this.separator    = new ToolStripSeparator();
     this.runButton    = new ToolStripMenuItem(TextHelper.GetString("Label.Run"), null, new EventHandler(this.OpenItem));
     this.editButton   = new ToolStripMenuItem(TextHelper.GetString("Label.Edit"), null, new EventHandler(this.EditItems));
     this.copyButton   = new ToolStripMenuItem(TextHelper.GetString("Label.Copy"), null, new EventHandler(this.CopyItems));
     this.pasteButton  = new ToolStripMenuItem(TextHelper.GetString("Label.Paste"), null, new EventHandler(this.PasteItems));
     this.renameButton = new ToolStripMenuItem(TextHelper.GetString("Label.Rename"), null, new EventHandler(this.RenameItem));
     this.deleteButton = new ToolStripMenuItem(TextHelper.GetString("Label.Delete"), null, new EventHandler(this.DeleteItems));
     this.menu.Items.Add(this.separator);
     this.menu.Items.AddRange(new ToolStripMenuItem[6] {
         this.runButton, this.editButton, this.copyButton, this.pasteButton, this.renameButton, this.deleteButton
     });
     this.menu.Font = PluginBase.Settings.DefaultFont;
     this.fileView.ContextMenuStrip = this.menu;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: Simonxz/metaboxer
        static void Main()
        {
            ToolStripMenuItem toolStripMenuItemSendClipboard = new ToolStripMenuItem();
            toolStripMenuItemSendClipboard.Text = "Send Clipboard";
            toolStripMenuItemSendClipboard.Click += new EventHandler(ToolStripMenuItemSendClipboard);

            ToolStripMenuItem toolStripMenuItemCaptureImage = new ToolStripMenuItem();
            toolStripMenuItemCaptureImage.Text = "Capture Image";
            toolStripMenuItemCaptureImage.Click += new EventHandler(ToolStripMenuItemCaptureImageClick);

            ToolStripSeparator toolStripSeparator = new ToolStripSeparator();

            ToolStripMenuItem toolStripMenuItemExit = new ToolStripMenuItem();
            toolStripMenuItemExit.Text = "Exit";
            toolStripMenuItemExit.Click += new EventHandler(ToolStripMenuItemExitClick);

            ContextMenuStrip contextMenuStrip = new ContextMenuStrip();
            contextMenuStrip.Items.AddRange(new ToolStripItem[] {
                toolStripMenuItemSendClipboard,
                toolStripMenuItemCaptureImage,
                toolStripSeparator,
                toolStripMenuItemExit
            });

            NotifyIcon notifyIcon = new NotifyIcon();
            notifyIcon.Icon = (Icon)new ResourceManager("Metaboxer", Assembly.GetExecutingAssembly()).GetObject("Metaboxer.ico");;
            notifyIcon.Text = "Metaboxer";
            notifyIcon.ContextMenuStrip = contextMenuStrip;
            notifyIcon.Visible = true;
            Application.Run();
            notifyIcon.Visible = false;
        }
コード例 #6
0
    /// <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 );
    }
コード例 #7
0
ファイル: MainMenuManager.cs プロジェクト: Aquilon96/ags
        private ToolStripItem AddMenuItem(string menu, string id, string name, Keys shortcutKeys, string iconKey, bool enabled)
        {
            ToolStripItem[] results = _mainMenu.Items.Find(menu, false);
            if (results.Length == 0)
            {
                throw new AGSEditorException("Menu " + menu + " not found");
            }
            ToolStripMenuItem topMenu = (ToolStripMenuItem)results[0];
            ToolStripItem newItem;

            if (name == MenuCommand.MENU_TEXT_SEPARATOR)
            {
                newItem = new ToolStripSeparator();
            }
            else
            {
                newItem = new ToolStripMenuItem(name, null, _onClick, id);
                ((ToolStripMenuItem)newItem).ShortcutKeys = shortcutKeys;
                if (iconKey != null)
                {
                    newItem.Image = Factory.GUIController.ImageList.Images[iconKey];
                }
				newItem.Enabled = enabled;
            }
            topMenu.DropDownItems.Add(newItem);
			return newItem;
        }
コード例 #8
0
        public override bool Initialize( IPluginHost host )
        {
            if ( host == null ) return false;
            m_host = host;

            // Get a reference to the 'Tools' menu item container
            ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems;

            // Add a separator at the bottom
            m_tsSeparator = new ToolStripSeparator();
            tsMenu.Add( m_tsSeparator );

            // Add menu item 'KeePassCompare'
            m_tsmiMenuItem = new ToolStripMenuItem();
            m_tsmiMenuItem.Text = "KeePassCompare Compare!";
            m_tsmiMenuItem.Click += this.OnMenuCompare;
            tsMenu.Add( m_tsmiMenuItem );

            // Add menu item 'KeePassCompare'
            m_tsmiMenuItem2 = new ToolStripMenuItem();
            m_tsmiMenuItem2.Text = "KeePassCompare Reset Colours";
            m_tsmiMenuItem2.Click += this.OnResetColors;
            tsMenu.Add( m_tsmiMenuItem2 );

            return true;
        }
コード例 #9
0
ファイル: ContextMenus.cs プロジェクト: JpEncausse/SpeechBox
        /// <summary>
        /// Creates this instance.
        /// </summary>
        /// <returns>ContextMenuStrip</returns>
        public ContextMenuStrip Create()
        {
            // Add the default menu options.
            ContextMenuStrip menu = new ContextMenuStrip();
            ToolStripMenuItem item;
            ToolStripSeparator sep;

            // Windows Explorer.
            item = new ToolStripMenuItem();
            item.Text = "Explorer";
            item.Click += new EventHandler(Explorer_Click);
            item.Image = Resources.Explorer;
            menu.Items.Add(item);

            // About.
            item = new ToolStripMenuItem();
            item.Text = "About";
            item.Click += new EventHandler(About_Click);
            item.Image = Resources.About;
            menu.Items.Add(item);

            // Separator.
            sep = new ToolStripSeparator();
            menu.Items.Add(sep);

            // Exit.
            item = new ToolStripMenuItem();
            item.Text = "Exit";
            item.Click += new System.EventHandler(Exit_Click);
            item.Image = Resources.Exit;
            menu.Items.Add(item);

            return menu;
        }
コード例 #10
0
ファイル: Mainform.cs プロジェクト: rogerluo/Stror
        /// <summary> 
        /// 初始化任务栏
        /// </summary>
        private void InitStatus()
        {
            this.stsStatus.SuspendLayout();
            // Timer
            ToolStripStatusLabel tsslblTimer = new ToolStripStatusLabel();
            tsslblTimer.Name = "tsslblTimer";
            tsslblTimer.Text = Utility.GetLongSysDateTimeString();

            ToolStripSeparator tssp1 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblUser = new ToolStripStatusLabel();
            tsslblUser.Name = "tsslblUser";
            tsslblUser.Text = "登录人员:";

            ToolStripSeparator tssp2 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblABName = new ToolStripStatusLabel();
            tsslblABName.Name = "tsslblABName";
            tsslblABName.Text = "当前账本:";

            ToolStripSeparator tssp3 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblIP = new ToolStripStatusLabel();
            tsslblIP.Name = "tsslblIP";
            tsslblIP.Text = "IP:";

            this.stsStatus.Items.AddRange(new ToolStripItem[] { tsslblTimer, tssp1, tsslblUser, tssp2, tsslblABName, tssp3, tsslblIP});

            this.stsStatus.ResumeLayout(false);
            this.stsStatus.PerformLayout();
        }
コード例 #11
0
ファイル: App.xaml.cs プロジェクト: byGeek/SmartControl
        private void CreateContextMenu()
        {
            if (_notifyIcon == null)
            {
                _notifyIcon = new System.Windows.Forms.NotifyIcon();
                _notifyIcon.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();

                _startMenuItem        = new Forms.ToolStripMenuItem("Start Server");
                _startMenuItem.Click += _startMenuItem_Click;
                _notifyIcon.ContextMenuStrip.Items.Add(_startMenuItem);

                _stopMenuItem        = new Forms.ToolStripMenuItem("Stop Server");
                _stopMenuItem.Click += _stopMenuItem_Click;
                _notifyIcon.ContextMenuStrip.Items.Add(_stopMenuItem);

                var seperator = new Forms.ToolStripSeparator();
                _notifyIcon.ContextMenuStrip.Items.Add(seperator);

                _exitMenuItem        = new Forms.ToolStripMenuItem("Exit");
                _exitMenuItem.Click += _exitMenuItem_Click;
                _notifyIcon.ContextMenuStrip.Items.Add(_exitMenuItem);

                _notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
                _notifyIcon.Icon    = SmartControlServer.Properties.Resources.trayIcon;
                _notifyIcon.Visible = true;
            }
        }
コード例 #12
0
ファイル: DynamicMenu.cs プロジェクト: jonbws/strengthreport
        public void AddSeparator()
        {
            ToolStripSeparator sep = new ToolStripSeparator();

            m_tsmiHost.DropDownItems.Add(sep);
            m_vMenuItems.Add(sep);
        }
コード例 #13
0
ファイル: ToolsMenu.cs プロジェクト: metadeta96/openpdn
 private void InitializeComponent()
 {
     this.menuToolsAntialiasing = new PdnMenuItem();
     this.menuToolsAlphaBlending = new PdnMenuItem();
     this.menuToolsSeperator = new ToolStripSeparator();
     // 
     // ToolsMenu
     //
     this.DropDownItems.AddRange(
         new ToolStripItem[]
         {
             this.menuToolsAntialiasing,
             this.menuToolsAlphaBlending,
             this.menuToolsSeperator
         });
     this.Name = "Menu.Tools";
     this.Text = PdnResources.GetString("Menu.Tools.Text");
     // 
     // menuToolsAntiAliasing
     // 
     this.menuToolsAntialiasing.Name = "AntiAliasing";
     this.menuToolsAntialiasing.Click += new System.EventHandler(MenuToolsAntiAliasing_Click);
     //
     // menuToolsAlphaBlending
     //
     this.menuToolsAlphaBlending.Name = "AlphaBlending";
     this.menuToolsAlphaBlending.Click += new EventHandler(MenuToolsAlphaBlending_Click);
 }
コード例 #14
0
ファイル: RecentFileUIMrg.cs プロジェクト: xiaoyj/Space
 public void AddRecentFileItem(string filePath, ToolStripMenuItemBase m_FileMenuItem)
 {
     int num = m_FileMenuItem.DropDownItems.IndexOfKey("HistorySeparator");
     if (num == -1)
     {
         ToolStripSeparator separator = new ToolStripSeparator();
         separator.Name = "HistorySeparator";
         m_FileMenuItem.DropDownItems.Insert(m_FileMenuItem.DropDownItems.Count - 2, separator);
         num = m_FileMenuItem.DropDownItems.Count - 3;
     }
     if (m_FileMenuItem.DropDownItems.ContainsKey(filePath.Trim().ToLower()))
     {
         m_FileMenuItem.DropDownItems.RemoveByKey(filePath.Trim().ToLower());
     }
     else if ((m_FileMenuItem.DropDownItems.Count - num) == 8)
     {
         m_FileMenuItem.DropDownItems.RemoveAt(m_FileMenuItem.DropDownItems.Count - 3);
     }
     ToolStripMenuItemBase base2 = new ToolStripMenuItemBase();
     base2.Text = RecentFileUtil.FormatFileName(filePath.Trim());
     base2.Tag = filePath.Trim();
     base2.Name = filePath.Trim().ToLower();
     base2.Click += new EventHandler(this.OpenRecentProject);
     m_FileMenuItem.DropDownItems.Insert(num + 1, base2);
 }
コード例 #15
0
        private void btnSubForum_Clicked(object sender, EventArgs e)
        {
            PostPanel postPanel = new PostPanel(this._forumName, ((Button)sender).Text, this.Height, this.Width);

            postPanel.StartPosition = FormStartPosition.Manual;
            postPanel.Location      = new Point(this.Location.X + (this.Width - postPanel.Width) / 2, this.Location.Y + (this.Height - postPanel.Height) / 2);
            postPanel.TopLevel      = false;
            this.panel1.Controls.Clear();
            this.panel1.Controls.Add(postPanel);

            ToolStripItem addPost = new ToolStripLabel();

            addPost.BackColor   = System.Drawing.SystemColors.ActiveCaption;
            addPost.ForeColor   = System.Drawing.SystemColors.ActiveCaption;
            addPost.Name        = "btnAddPost";
            addPost.Size        = new System.Drawing.Size(65, 28);
            addPost.Text        = "Add Post";
            addPost.MouseEnter += new System.EventHandler(this.btn_MouseEnter);
            addPost.MouseLeave += new System.EventHandler(this.btn_MouseLeave);

            ToolStripItem Home_AddPost = new System.Windows.Forms.ToolStripSeparator();

            Home_AddPost.Name = "Home_AddPost";

            this.memberMenu.Items.Add(Home_AddPost);
            this.memberMenu.Items.Add(addPost);
            postPanel.Show();
        }
コード例 #16
0
ファイル: frmMenuContext.cs プロジェクト: menterleo/BatRunner
        private void RefeshMenu()
        {
            flowLayoutPanel1.Controls.Clear();

            if (!Directory.Exists(filepath)) Directory.CreateDirectory(filepath);

            string[] s1 = Directory.GetFiles(filepath);

            foreach (string str in s1)
            {
                FileInfo fi = new FileInfo(str);
                if (fi.Extension.ToLower() != ".bat") continue;
                MenuItem item = new MenuItem();
                item.Text = fi.Name.Replace(fi.Extension, "");
                item.Tag = fi.FullName;
                contextMenuStrip1.Items.Add(item);
            }

            System.Windows.Forms.ToolStripSeparator tls = new ToolStripSeparator();
            contextMenuStrip1.Items.Add(tls);

            System.Windows.Forms.ToolStripMenuItem itemEdit = new ToolStripMenuItem();
            itemEdit.Text = "Edit";
            contextMenuStrip1.Items.Add(itemEdit);

            System.Windows.Forms.ToolStripMenuItem itemrefsh = new ToolStripMenuItem();
            itemrefsh.Text = "Refsh";
            contextMenuStrip1.Items.Add(itemrefsh);

            System.Windows.Forms.ToolStripMenuItem itemexit = new ToolStripMenuItem();
            itemexit.Text = "Exit";
            contextMenuStrip1.Items.Add(itemexit);
        }
コード例 #17
0
ファイル: frmQueryWindow.cs プロジェクト: CodePh4nt0m/DevKit
        private void LoadEnvironments()
        {
            EntityBusiness edata = new EntityBusiness();
            var serverlist =
                edata.GetServerList().ToList();
            if (serverlist != null)
            {
                _envlist = serverlist;
                foreach (var s in serverlist)
                {
                    ToolStripItem item = new ToolStripMenuItem();
                    item.Text = s.DbAlias;
                    item.Name = s.ServerID.ToString();
                    item.Click += new EventHandler(item_Click);
                    tsbtnExeOn.DropDownItems.Add(item);

                    ToolStripItem item2 = new ToolStripMenuItem();
                    item2.Text = s.DbAlias;
                    item2.Name = s.ServerID.ToString();
                    item2.Click += new EventHandler(itemcheck_Click);
                    tsbtnExeOnSelected.DropDownItems.Add(item2);
                }
            }

            ToolStripSeparator tsSeparator = new ToolStripSeparator();
            tsbtnExeOn.DropDownItems.Add(tsSeparator);

            ToolStripItem itemall = new ToolStripMenuItem();
            itemall.Text = "All Environments";
            itemall.Name = "all";
            itemall.Click += new EventHandler(item_Click);
            tsbtnExeOn.DropDownItems.Add(itemall);
        }
コード例 #18
0
        public ToolStripSeparator AddToolStripSeparator()
        {
            var strip = new ToolStripSeparator();
            Items.Add(strip);

            return strip;
        }
コード例 #19
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public void LoadMenus(string name)
        {
            this.DropDownItems.Clear();

            IList<GridRelatedInfo> list = ADInfoBll.Instance.GetGridRelatedInfo(name);
            if (list == null || list.Count == 0)
            {
                this.Visible = false;
                return;
            }

            foreach (GridRelatedInfo info in list)
            {
                ToolStripItem item;
                if (info.Name.ToUpper() == "SEPARATOR")
                {
                    item = new ToolStripSeparator();
                }
                else
                {
                    item = new ToolStripMenuItem();
                    item.Name = info.Name + "toolStripMenuItem";
                    item.Size = new System.Drawing.Size(172, 22);
                    item.Text = info.Text;
                    item.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
                    item.Tag = info;
                }

                this.DropDownItems.Add(item);
            }

            this.DropDownOpened -= new EventHandler(GridGotoDetailFormToolStripItem_DropDownOpened);
            this.DropDownOpened += new EventHandler(GridGotoDetailFormToolStripItem_DropDownOpened);
        }
コード例 #20
0
        public QuickTextBox()
        {
            this.SuspendLayout();

            this.Multiline = true;
            this.MaxLength = 640000;
            this.ScrollBars = ScrollBars.Vertical;
            this.Font = new System.Drawing.Font("Tahoma", 8.25F);

            _ContextMenuStrip = new ContextMenuStrip();
            _ToolStripMenuItem = new ToolStripMenuItem("全选(&A)");
            _ToolStripMenuItem.Click += new EventHandler(SelectAllEx);
            _ContextMenuStrip.Items.Add(_ToolStripMenuItem);
            _ToolStripMenuItem = new ToolStripMenuItem("拷贝(&C)");
            _ToolStripMenuItem.Click += new EventHandler(CopyEx);
            _ContextMenuStrip.Items.Add(_ToolStripMenuItem);
            _ToolStripMenuItem = new ToolStripMenuItem("粘贴(&P)");
            _ToolStripMenuItem.Click += new EventHandler(PasteEx);
            _ContextMenuStrip.Items.Add(_ToolStripMenuItem);
            _ToolStripMenuItem = new ToolStripMenuItem("剪切(&T)");
            _ToolStripMenuItem.Click += new EventHandler(CutEx);
            _ContextMenuStrip.Items.Add(_ToolStripMenuItem);
            ToolStripSeparator separator = new ToolStripSeparator();
            _ContextMenuStrip.Items.Add(separator);
            _ToolStripMenuItem = new ToolStripMenuItem("还原(&F)");
            _ToolStripMenuItem.Click += new EventHandler(ClearEx);
            _ContextMenuStrip.Items.Add(_ToolStripMenuItem);
            this.ContextMenuStrip = _ContextMenuStrip;
            this.ResumeLayout(false);
        }
        /// <summary>
        /// Initializes the plugin using the specified KeePass host.
        /// </summary>
        /// <param name="host">The plugin host.</param>
        /// <returns></returns>
        public override bool Initialize(IPluginHost host)
        {
            Debug.Assert(host != null);
            if(host == null) return false;
            m_host = host;

            // Add a seperator and menu item to the 'Tools' menu
            ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems;
            m_tsSeparator1 = new ToolStripSeparator();
            tsMenu.Add(m_tsSeparator1);
            menuDownloadFavicons = new ToolStripMenuItem();
            menuDownloadFavicons.Text = "Download Favicons for all entries";
            menuDownloadFavicons.Click += OnMenuDownloadFavicons;
            tsMenu.Add(menuDownloadFavicons);

            // Add a seperator and menu item to the group context menu
            ContextMenuStrip gcm = m_host.MainWindow.GroupContextMenu;
            m_tsSeparator2 = new ToolStripSeparator();
            gcm.Items.Add(m_tsSeparator2);
            menuDownloadGroupFavicons = new ToolStripMenuItem();
            menuDownloadGroupFavicons.Text = "Download Favicons";
            menuDownloadGroupFavicons.Click += OnMenuDownloadGroupFavicons;
            gcm.Items.Add(menuDownloadGroupFavicons);

            // Add a seperator and menu item to the entry context menu
            ContextMenuStrip ecm = m_host.MainWindow.EntryContextMenu;
            m_tsSeparator3 = new ToolStripSeparator();
            ecm.Items.Add(m_tsSeparator3);
            menuDownloadEntryFavicons = new ToolStripMenuItem();
            menuDownloadEntryFavicons.Text = "Download Favicons";
            menuDownloadEntryFavicons.Click += OnMenuDownloadEntryFavicons;
            ecm.Items.Add(menuDownloadEntryFavicons);

            return true; // Initialization successful
        }
コード例 #22
0
 private void AddMenuItems() {
     var toolsMenu = m_host.MainWindow.ToolsMenu.DropDownItems;
     m_toolsSeparator = new ToolStripSeparator();
     toolsMenu.Add(m_toolsSeparator);
     m_mainPopup = new ToolStripMenuItem();
     m_mainPopup.Text = "KeePassQiniu";
     toolsMenu.Add(m_mainPopup);
     m_uploadToolItem = new ToolStripMenuItem();
     m_uploadToolItem.Text = "立即上传";
     m_uploadToolItem.Click += OnMenuBackupNow;
     m_uploadToolItem.Enabled = false;
     m_mainPopup.DropDownItems.Add(m_uploadToolItem);
     m_downToolItem = new ToolStripMenuItem();
     m_downToolItem.Text = "立即下载";
     m_downToolItem.Click += OnMenuDown;
     m_downToolItem.Enabled = true;
     m_mainPopup.DropDownItems.Add(m_downToolItem);
     m_toolsSeparator = new ToolStripSeparator();
     m_mainPopup.DropDownItems.Add(m_toolsSeparator);
     var autoBackup = new ToolStripMenuItem();
     autoBackup.Text = "自动同步";
     autoBackup.Checked = KeePassQiniuConfig.Default.AutoSync;
     autoBackup.Click += OnMenuAutomaticBackup;
     autoBackup.Enabled = true;
     m_mainPopup.DropDownItems.Add(autoBackup);
     var configure = new ToolStripMenuItem();
     configure.Text = "配置...";
     configure.Click += OnMenuConfig;
     configure.Enabled = true;
     m_mainPopup.DropDownItems.Add(configure);
 }
コード例 #23
0
ファイル: GUIBuilder.cs プロジェクト: tu-tran/FareLiz
        /// <summary>
        /// Attach the default context menu into tray icon for Win32 Window (for restoring form and exit application)
        /// </summary>
        /// <param name="parent">
        /// The parent.
        /// </param>
        /// <param name="trayIcon">
        /// The tray Icon.
        /// </param>
        /// <param name="showInTaskbarOnRestore">
        /// The show In Taskbar On Restore.
        /// </param>
        internal static void AttachMenuToTrayIcon(Form parent, NotifyIcon trayIcon, bool showInTaskbarOnRestore)
        {
            // Restore window and put it to front
            var restoreWindowHandler = new EventHandler(
                (o, e) =>
                    {
                        parent.Show();
                        parent.ShowInTaskbar = showInTaskbarOnRestore;
                        parent.WindowState = FormWindowState.Normal;
                        NativeMethods.ShowToFront(parent.Handle);
                    });

            var mnuShow = new ToolStripMenuItem("Show Main Window", null, restoreWindowHandler);
            var toolStripSeparator = new ToolStripSeparator();
            var mnuExit = new ToolStripMenuItem("Exit", null, (o, e) => { Environment.Exit(0); });

            var trayIconMenuStrip = new ContextMenuStrip();
            trayIconMenuStrip.Items.Add(mnuShow);
            trayIconMenuStrip.Items.Add(toolStripSeparator);
            trayIconMenuStrip.Items.Add(mnuExit);

            // Attach the handler for double-clicking the tray icon
            trayIcon.DoubleClick -= restoreWindowHandler;
            trayIcon.DoubleClick += restoreWindowHandler;

            // Attach the menu strip to the tray icon
            trayIcon.ContextMenuStrip = trayIconMenuStrip;
        }
コード例 #24
0
ファイル: cWellClass.cs プロジェクト: cyrenaique/HCSA
        public ToolStripMenuItem GetExtendedContextMenu()
        {
            #region Context Menu
            base.SpecificContextMenu = new ToolStripMenuItem("Class [" + this.Name + "]");

            ToolStripMenuItem ToolStripMenuItem_DisplayDataTable = new ToolStripMenuItem("Display Data Table");
            ToolStripMenuItem_DisplayDataTable.Click += new System.EventHandler(this.ToolStripMenuItem_DisplayDataTable);
            base.SpecificContextMenu.DropDownItems.Add(ToolStripMenuItem_DisplayDataTable);

            ToolStripMenuItem ToolStripMenuItem_DisplayHistograms = new ToolStripMenuItem("Display Histograms");
            ToolStripMenuItem_DisplayHistograms.Click += new System.EventHandler(this.ToolStripMenuItem_DisplayHistograms);
            base.SpecificContextMenu.DropDownItems.Add(ToolStripMenuItem_DisplayHistograms);

            if (cGlobalInfo.CurrentScreening.ListDescriptors.GetActiveDescriptor().IsConnectedToDatabase)
            {
                ToolStripMenuItem ToolStripMenuItem_DisplaySingleCellHistogram = new ToolStripMenuItem("Single Cell Histogram");
                ToolStripMenuItem_DisplaySingleCellHistogram.Click += new System.EventHandler(this.ToolStripMenuItem_DisplaySingleCellHistogram);
                base.SpecificContextMenu.DropDownItems.Add(ToolStripMenuItem_DisplaySingleCellHistogram);
            }

            ToolStripSeparator ToolStripSep = new ToolStripSeparator();
            base.SpecificContextMenu.DropDownItems.Add(ToolStripSep);

            ToolStripMenuItem ToolStripMenuItem_SetAsActivePlate = new ToolStripMenuItem("Set as Active");
            ToolStripMenuItem_SetAsActivePlate.Click += new System.EventHandler(this.ToolStripMenuItem_SetAsActivePlate);
            base.SpecificContextMenu.DropDownItems.Add(ToolStripMenuItem_SetAsActivePlate);
            #endregion
            return base.SpecificContextMenu;
        }
コード例 #25
0
ファイル: MenuLoader.cs プロジェクト: kandsy/DemoDock
        public override void AddMenu(Form mainForm)
        {
            // 创建一个Plugin菜单
            PluginMenuItem = GetPluginMenu(mainForm);

            // 在Plugin菜单下挂一下Demo菜单
            ToolStripMenuItem menuPlugin_Demo = new ToolStripMenuItem("弹出自己的Dock窗口");
            PluginMenuItem.DropDownItems.Add(menuPlugin_Demo);
            menuPlugin_Demo.Click += menuPlugin_Demo_Click;

            // 添加分隔符
            ToolStripSeparator menu_Sepearator = new ToolStripSeparator();
            PluginMenuItem.DropDownItems.Add(menu_Sepearator);

            // 参考QuoteMonitor的方式,再挂二级菜单
            ToolStripMenuItem menuPlugin_Demo2 = new ToolStripMenuItem("显示二级菜单");
            PluginMenuItem.DropDownItems.Add(menuPlugin_Demo2);
            menuPlugin_Demo2.DropDownOpening += menuPlugin_Demo2_DropDownOpening;

            // 在Plugin菜单下挂一下Demo菜单
            ToolStripMenuItem menuPlugin_Demo3 = new ToolStripMenuItem("弹出IDE的内部窗口Account并修改");
            PluginMenuItem.DropDownItems.Add(menuPlugin_Demo3);
            menuPlugin_Demo3.Click += menuPlugin_Demo3_Click;

            ToolStripMenuItem menuPlugin_Demo4 = new ToolStripMenuItem("弹出IDE的内部窗口Portfolio并添加");
            PluginMenuItem.DropDownItems.Add(menuPlugin_Demo4);
            menuPlugin_Demo4.Click += menuPlugin_Demo4_Click;
        }
コード例 #26
0
ファイル: ContextMenu.cs プロジェクト: ashoulson/SimplePTT
        public ContextMenuStrip Create()
        {
            // Add the default menu options.
              ContextMenuStrip menu = new ContextMenuStrip();
              ToolStripMenuItem item;
              ToolStripSeparator sep;

              // Name
              item = new ToolStripMenuItem();
              item.Text = "SimplePTT 1.1";
              item.Enabled = false;
              menu.Items.Add(item);

              // Separator
              sep = new ToolStripSeparator();
              menu.Items.Add(sep);

              // Exit
              item = new ToolStripMenuItem();
              item.Text = "Exit";
              item.Click += new System.EventHandler(Exit_Click);
              menu.Items.Add(item);

              return menu;
        }
コード例 #27
0
        /// <summary>
        /// Creates this instance.
        /// </summary>
        /// <returns>ContextMenuStrip</returns>
        public ContextMenuStrip Create()
        {
            // Add the default menu options.
            ContextMenuStrip menu = new ContextMenuStrip();
            ToolStripMenuItem item;
            ToolStripSeparator sep;

            this._textmodeItem = new ToolStripMenuItem();

            this._textmodeItem.Text = "Text mode";
            this._textmodeItem.Enabled = false;
            menu.Items.Add(this._textmodeItem);

            this.SetTextModeText(BopomofoRegistry.IsSimplifiedEnable(), false);

            // About.
            item = new ToolStripMenuItem();
            item.Text = "About";
            item.Click += new EventHandler(this.About_Click);
            menu.Items.Add(item);

            // Separator.
            sep = new ToolStripSeparator();
            menu.Items.Add(sep);

            // Exit.
            item = new ToolStripMenuItem();
            item.Text = "Exit";
            item.Click += new System.EventHandler(this.Exit_Click);
            menu.Items.Add(item);

            return menu;
        }
コード例 #28
0
ファイル: ContextMenus.cs プロジェクト: Greevee/DashBoard
        public ContextMenuStrip Create()
        {
            // Add the default menu options.
            ContextMenuStrip menu = new ContextMenuStrip();
            ToolStripMenuItem item;
            ToolStripSeparator sep;

            // Settings.
            item = new ToolStripMenuItem();
            item.Text = "Settings";
            item.Click += new EventHandler(Settings_Click);
            item.Image = Resources.settings;
            menu.Items.Add(item);

            // Separator.
            sep = new ToolStripSeparator();
            menu.Items.Add(sep);

            // Exit.
            item = new ToolStripMenuItem();
            item.Text = "Exit";
            item.Click += new System.EventHandler(Exit_Click);
            item.Image = Resources.exit;
            menu.Items.Add(item);

            return menu;
        }
コード例 #29
0
ファイル: KeyTermsControl.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:KeyTermsControl"/> class.
		/// </summary>
		/// <param name="sCaption">The caption to use when this control is displayed as a
		/// floating window</param>
		/// <param name="sProject">The name of the current project</param>
		/// ------------------------------------------------------------------------------------
		internal KeyTermsControl(string sCaption, string sProject) : base(sCaption, sProject)
		{
			InitializeComponent();

			m_sepShowOnlyAtTop = new ToolStripSeparator();
			m_ToolStrip.Items.Insert(0, m_sepShowOnlyAtTop);

			AddToolStripButton(0, TeResourceHelper.KeyTermFilterImage,
				TeResourceHelper.GetTmResourceString("kstidApplyFilterToKeyTermsToolTip"));

			m_tbbApplyFilter = m_ToolStrip.Items[0] as ToolStripButton;
			m_ToolStrip.Items.Insert(0, new ToolStripSeparator());

			AddToolStripButton(0, TeResourceHelper.KeyTermNotRenderedImage,
				TeResourceHelper.GetTmResourceString("kstidVernEqNotAssignedToolTip"));

			m_tbbNotRendered = m_ToolStrip.Items[0] as ToolStripButton;

			AddToolStripButton(0, TeResourceHelper.KeyTermIgnoreRenderingImage,
				TeResourceHelper.GetTmResourceString("kstidNotRenderedToolTip"));

			m_tbbVernNotAssigned = m_ToolStrip.Items[0] as ToolStripButton;

			AddToolStripButton(0, TeResourceHelper.KeyTermRenderedImage,
				TeResourceHelper.GetTmResourceString("kstidUseAsVernEqToolTip"));

			m_tbbUseAsVern = m_ToolStrip.Items[0] as ToolStripButton;

			m_ToolStrip.Items.Insert(0, new ToolStripSeparator());
			AddToolStripButton(0, TeResourceHelper.UpdateKeyTermEquivalentsImage,
				TeResourceHelper.GetTmResourceString("kstidUpdateKeyTermEquivalentsToolTip"));
			m_tbbUpdateKeyTermEquivalents = m_ToolStrip.Items[0] as ToolStripButton;
			m_ToolStrip.ItemClicked += new ToolStripItemClickedEventHandler(OnItemClicked);
		}
コード例 #30
0
        private void BuildConfigItems()
        {
            ClearConfigItems();

            var config = Configuration.Load();

            if (config.ProfileConfigurations.Any())
            {
                var menuItem = new ToolStripSeparator();
                _configItems.Add(menuItem);
                _trayMenu.Items.Add(menuItem);
            }

            foreach (var profileConfig in config.ProfileConfigurations)
            {
                var isSelected = profileConfig.Name.ToLowerInvariant() == config.CurrentConfiguration.ToLowerInvariant();
                var menuItem = new ToolStripMenuItem(profileConfig.Name);
                menuItem.CheckOnClick = true;
                menuItem.Checked = isSelected;
                menuItem.Tag = profileConfig.Name;
                menuItem.Click += (sender, e) => { SelectConfiguration(((ToolStripMenuItem)sender).Tag.ToString()); };
                _configItems.Add(menuItem);
                _trayMenu.Items.Add(menuItem);
            }
        }
コード例 #31
0
ファイル: KeeBook.cs プロジェクト: codermarcel/KeeBook
        public override bool Initialize(IPluginHost host)
        {
            Terminate();

            if (host == null) return false;
            m_host = host;

            bool showSuccessMsg = Properties.Settings.Default.success_message;
            bool showMsg = Properties.Settings.Default.debug_message;
            bool setDate = Properties.Settings.Default.date_as_note;
            bool checkDuplicate = Properties.Settings.Default.prevent_duplicate;

            ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems;

            // Add a separator at the bottom of KeePass
            ToolStripSeparator kbSeperator = new ToolStripSeparator();
            tsMenu.Add(kbSeperator);

            // Add the popup menu item to KeePass
            ToolStripMenuItem kbMenuTootItem = new ToolStripMenuItem();
            kbMenuTootItem.Text = ProductName;
            kbMenuTootItem.Image = KeeBook.Properties.Resources.KeeBook.ToBitmap();
            tsMenu.Add(kbMenuTootItem);

            // Add menu item 'Show success message'
            ToolStripMenuItem kbMenuSubItemShowSuccess = new ToolStripMenuItem();
            kbMenuSubItemShowSuccess.Text = cbShowSuccessNotificationName;
            kbMenuSubItemShowSuccess.Checked = showSuccessMsg;
            kbMenuSubItemShowSuccess.Enabled = true;
            kbMenuSubItemShowSuccess.Click += cbShowMessageClick;
            kbMenuTootItem.DropDownItems.Add(kbMenuSubItemShowSuccess);

            // Add menu item 'Show entry messagebox'
            ToolStripMenuItem kbMenuSubItemShowmsg = new ToolStripMenuItem();
            kbMenuSubItemShowmsg.Text = cbShowMsgName;
            kbMenuSubItemShowmsg.Checked = showMsg;
            kbMenuSubItemShowmsg.Enabled = true;
            kbMenuSubItemShowmsg.Click += cbShowMessageClick;
            kbMenuTootItem.DropDownItems.Add(kbMenuSubItemShowmsg);

            // Add submenu item "Set date as note"
            ToolStripMenuItem kbMenuSubItemCbDate = new ToolStripMenuItem();
            kbMenuSubItemCbDate.Text = cbDateName;
            kbMenuSubItemCbDate.Checked = setDate;
            kbMenuSubItemCbDate.Enabled = true;
            kbMenuSubItemCbDate.Click += cbSetDateClick;
            kbMenuTootItem.DropDownItems.Add(kbMenuSubItemCbDate);

            // Add submenu item "Check for duplicate entry"
            ToolStripMenuItem kbPreventDuplicates = new ToolStripMenuItem();
            kbPreventDuplicates.Text = cbDuplicateEntry;
            kbPreventDuplicates.Checked = checkDuplicate;
            kbPreventDuplicates.Enabled = true;
            kbPreventDuplicates.Click += cbPreventDuplicateClick;
            kbMenuTootItem.DropDownItems.Add(kbPreventDuplicates);

            reqListener();
            return true;
        }
コード例 #32
0
 private void InitializeComponent()
 {
     this.components = new Container();
     ComponentResourceManager manager = new ComponentResourceManager(typeof(webcam));
     this.contextMenuStrip1 = new ContextMenuStrip(this.components);
     this.newWebcamToolStripMenuItem = new ToolStripMenuItem();
     this.saveToolStripMenuItem = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.refreshToolStripMenuItem = new ToolStripMenuItem();
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.pictureBox1 = new PictureBox();
     this.saveFileDialog1 = new SaveFileDialog();
     this.contextMenuStrip1.SuspendLayout();
     ((ISupportInitialize) this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.newWebcamToolStripMenuItem, this.saveToolStripMenuItem, this.toolStripSeparator1, this.refreshToolStripMenuItem });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new Size(0x8b, 0x4c);
     this.newWebcamToolStripMenuItem.Image = (Image) manager.GetObject("newWebcamToolStripMenuItem.Image");
     this.newWebcamToolStripMenuItem.Name = "newWebcamToolStripMenuItem";
     this.newWebcamToolStripMenuItem.Size = new Size(0x8a, 0x16);
     this.newWebcamToolStripMenuItem.Text = "New Picture";
     this.newWebcamToolStripMenuItem.Click += new EventHandler(this.newWebcamToolStripMenuItem_Click);
     this.saveToolStripMenuItem.Image = (Image) manager.GetObject("saveToolStripMenuItem.Image");
     this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.Size = new Size(0x8a, 0x16);
     this.saveToolStripMenuItem.Text = "Save";
     this.saveToolStripMenuItem.Click += new EventHandler(this.saveToolStripMenuItem_Click);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new Size(0x87, 6);
     this.refreshToolStripMenuItem.Image = (Image) manager.GetObject("refreshToolStripMenuItem.Image");
     this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
     this.refreshToolStripMenuItem.Size = new Size(0x8a, 0x16);
     this.refreshToolStripMenuItem.Text = "Refresh";
     this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
     this.timer1.Enabled = true;
     this.timer1.Interval = 500;
     this.timer1.Tick += new EventHandler(this.timer1_Tick);
     this.pictureBox1.ContextMenuStrip = this.contextMenuStrip1;
     this.pictureBox1.Dock = DockStyle.Fill;
     this.pictureBox1.Location = new Point(0, 0);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Size(0x299, 0x1f9);
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop = false;
     this.saveFileDialog1.FileName = "webcam.jpg";
     this.saveFileDialog1.Filter = "JPG pictures|*.jpg|All Files|*.*";
     this.saveFileDialog1.FileOk += new CancelEventHandler(this.saveFileDialog1_FileOk);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x299, 0x1f9);
     base.Controls.Add(this.pictureBox1);
     base.Icon = (Icon) manager.GetObject("$this.Icon");
     base.Name = "webcam";
     this.Text = "Webcam | LokiRAT";
     this.contextMenuStrip1.ResumeLayout(false);
     ((ISupportInitialize) this.pictureBox1).EndInit();
     base.ResumeLayout(false);
 }
コード例 #33
0
ファイル: MainForm.cs プロジェクト: CodeAsm/open-sauce
		static void BuildMenuSeparator(ToolStripMenuItem owner)
		{
			var tss = new ToolStripSeparator();
			tss.BackColor = System.Drawing.SystemColors.ControlDarkDark;
			tss.ForeColor = System.Drawing.Color.LightGreen;

			owner.DropDownItems.Add(tss);
		}
コード例 #34
0
        public void AddSeparator()
        {
            ToolStripSeparator Separator = new System.Windows.Forms.ToolStripSeparator()
            {
                Size = new System.Drawing.Size(21, 6)
            };

            this.Items.Add(new System.Windows.Forms.ToolStripSeparator());
        }
コード例 #35
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();
            }
        }
コード例 #36
0
ファイル: PdnStatusBar.cs プロジェクト: onelifeonelover/cstd
 private void InitializeComponent()
 {
     this.contextStatusLabel      = new ToolStripStatusLabel();
     this.progressStatusSeparator = new ToolStripSeparator();
     this.progressStatusBar       = new ToolStripProgressBar();
     this.imageInfoStatusLabel    = new ToolStripStatusLabel();
     this.cursorInfoStatusLabel   = new ToolStripStatusLabel();
     SuspendLayout();
     //
     // contextStatusLabel
     //
     this.contextStatusLabel.Name       = "contextStatusLabel";
     this.contextStatusLabel.Width      = UI.ScaleWidth(436);
     this.contextStatusLabel.Spring     = true;
     this.contextStatusLabel.TextAlign  = ContentAlignment.MiddleLeft;
     this.contextStatusLabel.ImageAlign = ContentAlignment.MiddleLeft;
     //
     // progressStatusBar
     //
     this.progressStatusBar.Name     = "progressStatusBar";
     this.progressStatusBar.Width    = 130;
     this.progressStatusBar.AutoSize = false;
     //
     // imageInfoStatusLabel
     //
     this.imageInfoStatusLabel.Name       = "imageInfoStatusLabel";
     this.imageInfoStatusLabel.Width      = UI.ScaleWidth(130);
     this.imageInfoStatusLabel.TextAlign  = ContentAlignment.MiddleLeft;
     this.imageInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft;
     this.imageInfoStatusLabel.AutoSize   = false;
     //
     // cursorInfoStatusLabel
     //
     this.cursorInfoStatusLabel.Name       = "cursorInfoStatusLabel";
     this.cursorInfoStatusLabel.Width      = UI.ScaleWidth(130);
     this.cursorInfoStatusLabel.TextAlign  = ContentAlignment.MiddleLeft;
     this.cursorInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft;
     this.cursorInfoStatusLabel.AutoSize   = false;
     //
     // PdnStatusBar
     //
     this.Name = "PdnStatusBar";
     this.Items.Add(this.contextStatusLabel);
     this.Items.Add(this.progressStatusSeparator);
     this.Items.Add(this.progressStatusBar);
     this.Items.Add(new ToolStripSeparator());
     this.Items.Add(this.imageInfoStatusLabel);
     this.Items.Add(new ToolStripSeparator());
     this.Items.Add(this.cursorInfoStatusLabel);
     ResumeLayout(false);
 }
コード例 #37
0
        public void InitializeComponent()
        {
            this.SuspendLayout();

            _clear              = new System.Windows.Forms.ToolStripButton();
            _clear.Name         = "_clear";
            _clear.Image        = Properties.Resources.layer_delete;
            _clear.Click       += OnRemoveFeatures;
            _clear.ToolTipText += "Removes all geometries from the geometry layer";

            _sep1      = new System.Windows.Forms.ToolStripSeparator();
            _sep1.Size = new System.Drawing.Size(6, 6);

            _addPoint                 = new System.Windows.Forms.ToolStripButton();
            _addPoint.Name            = "_addPoint";
            _addPoint.Image           = Properties.Resources.point_create;
            _addPoint.CheckOnClick    = true;
            _addPoint.CheckedChanged += OnCheckedChanged;
            _addPoint.MouseDown      += new MouseEventHandler(OnMouseDown);
            _addPoint.ToolTipText    += "Adds a point to the geometry layer";

            _addLineString                 = new System.Windows.Forms.ToolStripButton();
            _addLineString.Name            = "_addLineString";
            _addLineString.Image           = Properties.Resources.line_create;
            _addLineString.MouseDown      += OnMouseDown;
            _addLineString.CheckOnClick    = true;
            _addLineString.CheckedChanged += OnCheckedChanged;
            _addLineString.ToolTipText    += "Adds a linestring to the geometry layer";

            _addPolygon                 = new System.Windows.Forms.ToolStripButton();
            _addPolygon.Name            = "_addPolygon";
            _addPolygon.Image           = Properties.Resources.polygon_create;
            _addPolygon.CheckOnClick    = true;
            _addPolygon.MouseDown      += OnMouseDown;
            _addPolygon.CheckedChanged += OnCheckedChanged;
            _addPolygon.ToolTipText    += "Adds a linestring to the geometry layer";

            this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _clear, _sep1, _addPoint, _addLineString, _addPolygon,
                                                                           /* _addPolygonRing, _sep2, _moveFeature, _moveVertex */
                                });

            this.ResumeLayout();
            this.PerformLayout();

            this.Visible = true;

            this.GeometryDefinedHandler = DefaultGeometryDefinedMethod;
        }
コード例 #38
0
 protected override void OnTermination()
 {
     if (toolStrip != null)
     {
         if (toolStripButton != null)
         {
             toolStrip.Items.RemoveByKey("EnableRRButton");
         }
         if (toolStripSeparator != null)
         {
             toolStrip.Items.RemoveByKey("separator");
         }
     }
     toolStrip          = null;
     toolStripButton    = null;
     toolStripSeparator = null;
 }
コード例 #39
0
        private WinForms.ContextMenuStrip CreateContextMenu()
        {
            var menu         = new WinForms.ContextMenuStrip();
            var mnuSeparator = new WinForms.ToolStripSeparator();
            var mnuSettings  = new WinForms.ToolStripMenuItem("Settings...");
            var mnuAbout     = new WinForms.ToolStripMenuItem("About...");
            var mnuExit      = new WinForms.ToolStripMenuItem("Exit");

            mnuExit.Click     += Exit_Click;
            mnuAbout.Click    += About_Click;
            mnuSettings.Click += Settings_Click;
            menu.Items.Add(mnuSettings);
            menu.Items.Add(mnuAbout);
            menu.Items.Add(mnuSeparator);
            menu.Items.Add(mnuExit);
            return(menu);
        }
コード例 #40
0
        protected override void OnStartUp()
        {
            // 28Mar12 CKKOH
            if (Instrument.MasterInstrument.InstrumentType == InstrumentType.Currency)
            {
                switch (fxLotsType)
                {
                case FXLotsType.Mini:
                    sharesMultiplier = 10;
                    break;

                case FXLotsType.Micro:
                    sharesMultiplier = 100;
                    break;

                default:
                    break;
                }
            }
            if (ChartControl != null)
            {
                toolStrip = (ToolStrip)ChartControl.Controls["tsrTool"];

                // Add a separator
                toolStripSeparator      = new System.Windows.Forms.ToolStripSeparator();
                toolStripSeparator.Name = "separator";
                toolStrip.Items.Add(toolStripSeparator);

                // Add a toggle button
                toolStripButton              = new System.Windows.Forms.ToolStripButton("EnableRR");
                toolStripButton.Name         = "EnableRRButton";
                toolStripButton.Text         = "$$";
                toolStripButton.Click       += rewardRiskButtonClick;
                toolStripButton.Enabled      = true;
                toolStripButton.CheckState   = CheckState.Unchecked;
                toolStripButton.CheckOnClick = true;
                toolStripButton.ForeColor    = Color.Black;
                toolStrip.Items.Add(toolStripButton);

                btnBoldFont = new Font(toolStripButton.Font, toolStripButton.Font.Style | FontStyle.Bold);
                btnDefFont  = new Font(toolStripButton.Font, toolStripButton.Font.Style);
            }
        }
コード例 #41
0
		override protected void InitialiseToolbar()
		{
			base.InitialiseToolbar();
			
			// Add background colour buttons to toolbar
			int index = ToolBar.Items.IndexOfKey("toolstripTextColor");

			this.toolStripSeparator99 = new System.Windows.Forms.ToolStripSeparator();
			ToolBar.Items.Insert((index + 1), this.toolStripSeparator99);

			this.toolstripBackColor = new System.Windows.Forms.ToolStripButton();
			this.toolstripBackColor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.toolstripBackColor.Name = "toolstripBackColor";
			this.toolstripBackColor.Tag = "BackColor";
			this.toolstripBackColor.ToolTipText = "Set Background Colour";
			this.toolstripBackColor.Click += new System.EventHandler(OnBackColorClick);

			var assembly = Assembly.GetExecutingAssembly();
			var image = new Bitmap(assembly.GetManifestResourceStream("HTMLReportExporter.Resources.ToolbarBackColor.bmp"));
			image.MakeTransparent(Color.Magenta);
			this.toolstripBackColor.Image = image;
			
			this.toolstripBackColor.Size = this.ToolBar.Items[index].Size;

			ToolBar.Items.Insert((index + 2), this.toolstripBackColor);

			this.toolstripClearBackColor = new System.Windows.Forms.ToolStripButton();

			this.toolstripClearBackColor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.toolstripClearBackColor.Name = "toolstripClearBackColor";
			this.toolstripClearBackColor.Tag = "ClearBackColor";
			this.toolstripClearBackColor.ToolTipText = "Clear Background Colour";
			this.toolstripClearBackColor.Click += new System.EventHandler(OnClearBackColorClick);

			var image2 = new Bitmap(assembly.GetManifestResourceStream("HTMLReportExporter.Resources.ToolbarBackColorClear.bmp"));
			image2.MakeTransparent(Color.Magenta);
			this.toolstripClearBackColor.Image = image2;

			this.toolstripClearBackColor.Size = this.toolstripBackColor.Size;

			ToolBar.Items.Insert((index + 3), this.toolstripClearBackColor);
		}
コード例 #42
0
 /// <summary>
 /// Creates and attaches the context menu
 /// </summary>
 private void InitializeContextMenu()
 {
     this.menu = new ContextMenuStrip();
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.RefreshView"), null, new EventHandler(this.RefreshFileView)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.CommandPromptHere"), null, new EventHandler(this.CommandPromptHere)));
     this.menu.Items.Add(new ToolStripMenuItem(TextHelper.GetString("Label.ExploreHere"), null, new EventHandler(this.ExploreHere)));
     this.shellButton = new ToolStripMenuItem(TextHelper.GetString("Label.ShellMenu"), null, new EventHandler(this.ShowShellMenu));
     this.menu.Items.Add(this.shellButton);
     this.separatorItem1 = new ToolStripSeparator();
     this.menu.Items.Add(separatorItem1);
     this.runButton    = new ToolStripMenuItem(TextHelper.GetString("Label.Run"), null, new EventHandler(this.OpenItem));
     this.renameButton = new ToolStripMenuItem(TextHelper.GetString("Label.Rename"), null, new EventHandler(this.RenameItem));
     this.deleteButton = new ToolStripMenuItem(TextHelper.GetString("Label.Delete"), null, new EventHandler(this.DeleteItems));
     this.menu.Items.Add(this.runButton);
     this.menu.Items.Add(this.renameButton);
     this.menu.Items.Add(this.deleteButton);
     this.menu.Font                 = PluginBase.Settings.DefaultFont;
     this.menu.Renderer             = new DockPanelStripRenderer(false);
     this.fileView.ContextMenuStrip = this.menu;
 }
コード例 #43
0
        private W.NotifyIcon CreateNotifyIcon()
        {
            W.NotifyIcon notifyIcon = new W.NotifyIcon();

            W.ContextMenuStrip notifyIconMenu = new W.ContextMenuStrip();
#pragma warning disable CC0022 // Should dispose object. The menu items are disposed by the ContextMenuStrip.
            W.ToolStripMenuItem  notifyIconViewMenu  = new W.ToolStripMenuItem();
            W.ToolStripSeparator notifyIconSeparator = new W.ToolStripSeparator();
            W.ToolStripMenuItem  notifyIconExitMenu  = new W.ToolStripMenuItem();
#pragma warning restore CC0022 // Should dispose object
            notifyIcon.ContextMenuStrip = notifyIconMenu;

            notifyIcon.Icon              = Properties.Resources.WirePeep;
            notifyIcon.Text              = ApplicationInfo.ApplicationName;
            notifyIcon.Visible           = true;
            notifyIcon.MouseDoubleClick += this.NotifyIconMouseDoubleClick;

            notifyIconMenu.Items.AddRange(new W.ToolStripItem[]
            {
                notifyIconViewMenu,
                notifyIconSeparator,
                notifyIconExitMenu,
            });

            // notifyIconMenu.ShowImageMargin = false;
            notifyIconViewMenu.Font   = new Font(notifyIconMenu.Font, System.Drawing.FontStyle.Bold);
            notifyIconViewMenu.Text   = "&View";
            notifyIconViewMenu.Click += this.NotifyIconViewMenuClick;

            notifyIconExitMenu.Text   = "&Exit";
            notifyIconExitMenu.Click += this.NotifyIconExitMenuClick;

            // The notify icon has to be visible for us to send tooltip notification messages through it.
            notifyIcon.Visible = true;

            return(notifyIcon);
        }
コード例 #44
0
 private void InitializeComponent()
 {
     this.kryptonPanel1       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnAccept          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.statusStrip1        = new System.Windows.Forms.StatusStrip();
     this.tslStatus           = new System.Windows.Forms.ToolStripStatusLabel();
     this.kryptonPanel2       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.tsMenu              = new System.Windows.Forms.ToolStrip();
     this.tsbImport           = new System.Windows.Forms.ToolStripButton();
     this.tsbExport           = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.tsbBold             = new System.Windows.Forms.ToolStripButton();
     this.tsbItalic           = new System.Windows.Forms.ToolStripButton();
     this.tsbUnderline        = new System.Windows.Forms.ToolStripButton();
     this.tsbStrikethrough    = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.tscmbTextSize       = new System.Windows.Forms.ToolStripComboBox();
     this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
     this.tsbProperties       = new System.Windows.Forms.ToolStripButton();
     this.kryptonPanel3       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kptxtTypefaceFilter = new ExtendedControls.ExtendedToolkit.Controls.KryptonPromptTextBox();
     this.ktxtSampleText      = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.klstTypefaces       = new ComponentFactory.Krypton.Toolkit.KryptonListBox();
     this.panel1              = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.tsMenu.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
     this.kryptonPanel3.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnAccept);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Controls.Add(this.statusStrip1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 742);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(1115, 77);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnAccept
     //
     this.kbtnAccept.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnAccept.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnAccept.Location     = new System.Drawing.Point(863, 16);
     this.kbtnAccept.Name         = "kbtnAccept";
     this.kbtnAccept.Size         = new System.Drawing.Size(144, 26);
     this.kbtnAccept.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAccept.TabIndex    = 6;
     this.kbtnAccept.Values.Text = "&Use Typeface";
     //
     // kbtnCancel
     //
     this.kbtnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.kbtnCancel.Location     = new System.Drawing.Point(1013, 16);
     this.kbtnCancel.Name         = "kbtnCancel";
     this.kbtnCancel.Size         = new System.Drawing.Size(90, 26);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 5;
     this.kbtnCancel.Values.Text = "C&ancel";
     //
     // statusStrip1
     //
     this.statusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tslStatus
     });
     this.statusStrip1.Location   = new System.Drawing.Point(0, 55);
     this.statusStrip1.Name       = "statusStrip1";
     this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode;
     this.statusStrip1.Size       = new System.Drawing.Size(1115, 22);
     this.statusStrip1.TabIndex   = 0;
     this.statusStrip1.Text       = "statusStrip1";
     //
     // tslStatus
     //
     this.tslStatus.Name      = "tslStatus";
     this.tslStatus.Size      = new System.Drawing.Size(1100, 17);
     this.tslStatus.Spring    = true;
     this.tslStatus.Text      = "Ready";
     this.tslStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.tsMenu);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(1115, 25);
     this.kryptonPanel2.TabIndex = 1;
     //
     // tsMenu
     //
     this.tsMenu.Dock      = System.Windows.Forms.DockStyle.None;
     this.tsMenu.Font      = new System.Drawing.Font("Segoe UI", 9F);
     this.tsMenu.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.tsMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsbImport,
         this.tsbExport,
         this.toolStripSeparator1,
         this.tsbBold,
         this.tsbItalic,
         this.tsbUnderline,
         this.tsbStrikethrough,
         this.toolStripSeparator2,
         this.tscmbTextSize,
         this.toolStripSeparator3,
         this.tsbProperties
     });
     this.tsMenu.Location = new System.Drawing.Point(0, 0);
     this.tsMenu.Name     = "tsMenu";
     this.tsMenu.Size     = new System.Drawing.Size(265, 25);
     this.tsMenu.TabIndex = 0;
     this.tsMenu.Text     = "toolStrip1";
     this.tsMenu.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tsMenu_KeyDown);
     //
     // tsbImport
     //
     this.tsbImport.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbImport.Image                 = global::ExtendedControls.Properties.Resources.Open_File_16_x_16;
     this.tsbImport.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbImport.Name   = "tsbImport";
     this.tsbImport.Size   = new System.Drawing.Size(23, 22);
     this.tsbImport.Text   = "toolStripButton1";
     this.tsbImport.Click += new System.EventHandler(this.tsbImport_Click);
     //
     // tsbExport
     //
     this.tsbExport.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbExport.Image                 = global::ExtendedControls.Properties.Resources.Export_To_Document;
     this.tsbExport.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbExport.Name   = "tsbExport";
     this.tsbExport.Size   = new System.Drawing.Size(23, 22);
     this.tsbExport.Text   = "toolStripButton2";
     this.tsbExport.Click += new System.EventHandler(this.tsbExport_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // tsbBold
     //
     this.tsbBold.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbBold.Image                 = global::ExtendedControls.Properties.Resources.text_bold;
     this.tsbBold.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbBold.Name            = "tsbBold";
     this.tsbBold.Size            = new System.Drawing.Size(23, 22);
     this.tsbBold.Text            = "toolStripButton3";
     this.tsbBold.CheckedChanged += new System.EventHandler(this.tsbBold_CheckedChanged);
     //
     // tsbItalic
     //
     this.tsbItalic.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbItalic.Image                 = global::ExtendedControls.Properties.Resources.text_italic;
     this.tsbItalic.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbItalic.Name            = "tsbItalic";
     this.tsbItalic.Size            = new System.Drawing.Size(23, 22);
     this.tsbItalic.Text            = "toolStripButton4";
     this.tsbItalic.CheckedChanged += new System.EventHandler(this.tsbItalic_CheckedChanged);
     //
     // tsbUnderline
     //
     this.tsbUnderline.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbUnderline.Image                 = global::ExtendedControls.Properties.Resources.text_underline;
     this.tsbUnderline.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbUnderline.Name            = "tsbUnderline";
     this.tsbUnderline.Size            = new System.Drawing.Size(23, 22);
     this.tsbUnderline.Text            = "toolStripButton5";
     this.tsbUnderline.CheckedChanged += new System.EventHandler(this.tsbUnderline_CheckedChanged);
     //
     // tsbStrikethrough
     //
     this.tsbStrikethrough.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbStrikethrough.Image                 = global::ExtendedControls.Properties.Resources.text_strikethrough;
     this.tsbStrikethrough.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbStrikethrough.Name            = "tsbStrikethrough";
     this.tsbStrikethrough.Size            = new System.Drawing.Size(23, 22);
     this.tsbStrikethrough.Text            = "toolStripButton6";
     this.tsbStrikethrough.CheckedChanged += new System.EventHandler(this.tsbStrikethrough_CheckedChanged);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // tscmbTextSize
     //
     this.tscmbTextSize.AutoSize              = false;
     this.tscmbTextSize.Name                  = "tscmbTextSize";
     this.tscmbTextSize.Size                  = new System.Drawing.Size(50, 23);
     this.tscmbTextSize.SelectedIndexChanged += new System.EventHandler(this.tscmbTextSize_SelectedIndexChanged);
     this.tscmbTextSize.TextChanged          += new System.EventHandler(this.tscmbTextSize_TextChanged);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
     //
     // tsbProperties
     //
     this.tsbProperties.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsbProperties.Image                 = global::ExtendedControls.Properties.Resources.text_lowercase;
     this.tsbProperties.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbProperties.Name   = "tsbProperties";
     this.tsbProperties.Size   = new System.Drawing.Size(23, 22);
     this.tsbProperties.Text   = "toolStripButton7";
     this.tsbProperties.Click += new System.EventHandler(this.tsbProperties_Click);
     //
     // kryptonPanel3
     //
     this.kryptonPanel3.Controls.Add(this.kptxtTypefaceFilter);
     this.kryptonPanel3.Controls.Add(this.ktxtSampleText);
     this.kryptonPanel3.Controls.Add(this.klstTypefaces);
     this.kryptonPanel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel3.Location = new System.Drawing.Point(0, 25);
     this.kryptonPanel3.Name     = "kryptonPanel3";
     this.kryptonPanel3.Size     = new System.Drawing.Size(1115, 717);
     this.kryptonPanel3.TabIndex = 0;
     //
     // kptxtTypefaceFilter
     //
     this.kptxtTypefaceFilter.DrawPrompt       = true;
     this.kptxtTypefaceFilter.FocusSelect      = true;
     this.kptxtTypefaceFilter.Font             = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kptxtTypefaceFilter.Location         = new System.Drawing.Point(12, 6);
     this.kptxtTypefaceFilter.Name             = "kptxtTypefaceFilter";
     this.kptxtTypefaceFilter.PromptForeColour = System.Drawing.SystemColors.GrayText;
     this.kptxtTypefaceFilter.PromptText       = "Filter typefaces";
     this.kptxtTypefaceFilter.PromptTypeface   = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kptxtTypefaceFilter.Size             = new System.Drawing.Size(333, 29);
     this.kptxtTypefaceFilter.TabIndex         = 2;
     this.kptxtTypefaceFilter.Click           += new System.EventHandler(this.kptxtTypefaceFilter_Click);
     this.kptxtTypefaceFilter.TextChanged     += new System.EventHandler(this.kptxtTypefaceFilter_TextChanged);
     this.kptxtTypefaceFilter.Enter           += new System.EventHandler(this.kptxtTypefaceFilter_Enter);
     this.kptxtTypefaceFilter.KeyDown         += new System.Windows.Forms.KeyEventHandler(this.kptxtTypefaceFilter_KeyDown);
     //
     // ktxtSampleText
     //
     this.ktxtSampleText.Location  = new System.Drawing.Point(351, 6);
     this.ktxtSampleText.Multiline = true;
     this.ktxtSampleText.Name      = "ktxtSampleText";
     this.ktxtSampleText.ReadOnly  = true;
     this.ktxtSampleText.Size      = new System.Drawing.Size(752, 702);
     this.ktxtSampleText.TabIndex  = 1;
     this.ktxtSampleText.Text      = "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r\nabcdefghijklmnopqrstuvwxyz\r\n1234567890\r\n\r\n/\\|!?%$&()[" +
                                     "]{}<>+-~=*@;:,._\r\n\r\nLorem ipsum dolor sit amet";
     this.ktxtSampleText.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ktxtSampleText_KeyDown);
     this.ktxtSampleText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ktxtSampleText_KeyPress);
     //
     // klstTypefaces
     //
     this.klstTypefaces.Location              = new System.Drawing.Point(12, 41);
     this.klstTypefaces.Name                  = "klstTypefaces";
     this.klstTypefaces.Size                  = new System.Drawing.Size(333, 667);
     this.klstTypefaces.TabIndex              = 0;
     this.klstTypefaces.SelectedIndexChanged += new System.EventHandler(this.klstTypefaces_SelectedIndexChanged);
     this.klstTypefaces.KeyDown              += new System.Windows.Forms.KeyEventHandler(this.klstTypefaces_KeyDown);
     this.klstTypefaces.KeyPress             += new System.Windows.Forms.KeyPressEventHandler(this.klstTypefaces_KeyPress);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 739);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(1115, 3);
     this.panel1.TabIndex  = 2;
     //
     // TypefaceSelector
     //
     this.AcceptButton = this.kbtnAccept;
     this.ClientSize   = new System.Drawing.Size(1115, 819);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel3);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "TypefaceSelector";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Select Typeface";
     this.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.TypefaceSelector_KeyDown);
     this.Resize         += new System.EventHandler(this.TypefaceSelector_Resize);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.tsMenu.ResumeLayout(false);
     this.tsMenu.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit();
     this.kryptonPanel3.ResumeLayout(false);
     this.kryptonPanel3.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #45
0
        //private ImageList imageList1;

        private void InitializeComponent()
        {
            // panelTabPage = new System.Windows.Forms.Panel();
            panelPageNavigation      = new System.Windows.Forms.Panel();
            toolStripPageNavigation  = new System.Windows.Forms.ToolStrip();
            toolStripButtonAdd       = new System.Windows.Forms.ToolStripButton();
            toolStripButtonDelete    = new System.Windows.Forms.ToolStripButton();
            toolStripSeparator1      = new System.Windows.Forms.ToolStripSeparator();
            toolStripButtonFirst     = new System.Windows.Forms.ToolStripButton();
            toolStripButtonPrevious  = new System.Windows.Forms.ToolStripButton();
            toolStripLabelPageNumber = new System.Windows.Forms.ToolStripLabel();
            toolStripButtonNext      = new System.Windows.Forms.ToolStripButton();
            toolStripButtonLast      = new System.Windows.Forms.ToolStripButton();
            // drawarea = new DrawArea(this);
            // panelTabPage.SuspendLayout();
            panelPageNavigation.SuspendLayout();
            toolStripPageNavigation.SuspendLayout();
            SuspendLayout();
            //
            // panelTabPage
            //
            //this.panelTabPage.AutoScroll = true;
            ////panelTabPage.Controls.Add(drawarea);
            //this.panelTabPage.Dock = System.Windows.Forms.DockStyle.Fill;
            //this.panelTabPage.Location = new System.Drawing.Point(0, 0);
            //this.panelTabPage.Name = "panelTabPage";
            //this.panelTabPage.Size = new System.Drawing.Size(550, 167);
            //this.panelTabPage.TabIndex = 0;
            //
            // panelPageNavigation
            //
            this.panelPageNavigation.BackColor = System.Drawing.Color.Gainsboro;
            this.panelPageNavigation.Controls.Add(this.toolStripPageNavigation);
            this.panelPageNavigation.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.panelPageNavigation.Location = new System.Drawing.Point(0, 167);
            this.panelPageNavigation.Name     = "panelPageNavigation";
            this.panelPageNavigation.Size     = new System.Drawing.Size(550, 20);
            this.panelPageNavigation.TabIndex = 0;
            //
            // toolStripPageNavigation
            //
            this.toolStripPageNavigation.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripButtonAdd,
                this.toolStripButtonDelete,
                this.toolStripSeparator1,
                this.toolStripButtonFirst,
                this.toolStripButtonPrevious,
                this.toolStripLabelPageNumber,
                this.toolStripButtonNext,
                this.toolStripButtonLast
            });
            this.toolStripPageNavigation.Location     = new System.Drawing.Point(0, 0);
            this.toolStripPageNavigation.Name         = "toolStripPageNavigation";
            this.toolStripPageNavigation.Size         = new System.Drawing.Size(550, 25);
            this.toolStripPageNavigation.TabIndex     = 2;
            this.toolStripPageNavigation.Text         = "toolStripPageNavigation";
            this.toolStripPageNavigation.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStripPageNavigation_ItemClicked);
            //
            // toolStripButtonAdd
            //
            this.toolStripButtonAdd.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonAdd.Image                 = DCS.Properties.Resources._03;
            this.toolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonAdd.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonAdd.Name = "toolStripButtonAdd";
            this.toolStripButtonAdd.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonAdd.Text = "Add";
            //
            // toolStripButtonNew
            //
            this.toolStripButtonDelete.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonDelete.Image                 = DCS.Properties.Resources._01;
            this.toolStripButtonDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonDelete.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonDelete.Name = "toolStripButtonDelete";
            this.toolStripButtonDelete.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonDelete.Text = "Delete";
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            //
            // toolStripButtonFirst
            //
            this.toolStripButtonFirst.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonFirst.Image                 = DCS.Properties.Resources._38;
            this.toolStripButtonFirst.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonFirst.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonFirst.Name = "toolStripButtonFirst";
            this.toolStripButtonFirst.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonFirst.Text = "First";
            //
            // toolStripButtonPrevious
            //
            this.toolStripButtonPrevious.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonPrevious.Image                 = DCS.Properties.Resources._44;
            this.toolStripButtonPrevious.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonPrevious.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonPrevious.Name = "toolStripButtonPrevious";
            this.toolStripButtonPrevious.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonPrevious.Text = "Previous";
            //
            // toolStripLabelPageNumber
            //
            this.toolStripLabelPageNumber.Margin = new System.Windows.Forms.Padding(0);
            this.toolStripLabelPageNumber.Name   = "toolStripLabelPageNumber";
            this.toolStripLabelPageNumber.Size   = new System.Drawing.Size(13, 40);
            this.toolStripLabelPageNumber.Text   = "1";
            //
            // toolStripButtonNext
            //
            this.toolStripButtonNext.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonNext.Image                 = DCS.Properties.Resources._43;
            this.toolStripButtonNext.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonNext.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonNext.Name = "toolStripButtonNext";
            this.toolStripButtonNext.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonNext.Text = "Next";
            //
            // toolStripButtonLast
            //
            this.toolStripButtonLast.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButtonLast.Image                 = DCS.Properties.Resources._37;
            this.toolStripButtonLast.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButtonLast.Margin                = new System.Windows.Forms.Padding(0);
            this.toolStripButtonLast.Name = "toolStripButtonLast";
            this.toolStripButtonLast.Size = new System.Drawing.Size(23, 25);
            this.toolStripButtonLast.Text = "Last";
            //
            // TabFBDPageControl
            //
            // this.Controls.Add(this.panelTabPage);
            this.Controls.Add(this.panelPageNavigation);
            //  this.ImageIndex = 0;
            this.Location = new System.Drawing.Point(4, 23);
            this.Size     = new System.Drawing.Size(550, 187);
            this.Text     = "tabPage";

            //this.panelTabPage.ResumeLayout(false);
            //this.panelTabPage.PerformLayout();
            this.panelPageNavigation.ResumeLayout(false);
            this.panelPageNavigation.PerformLayout();
            this.toolStripPageNavigation.ResumeLayout(false);
            this.toolStripPageNavigation.PerformLayout();

            this.ResumeLayout(false);
        }
コード例 #46
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmCheques));
     this.cmbRazonSocial     = new System.Windows.Forms.ComboBox();
     this.txtImporte         = new System.Windows.Forms.TextBox();
     this.Label7             = new System.Windows.Forms.Label();
     this.Label6             = new System.Windows.Forms.Label();
     this.Label2             = new System.Windows.Forms.Label();
     this.Label1             = new System.Windows.Forms.Label();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.txtCuenta          = new System.Windows.Forms.TextBox();
     this.txtNumCheq         = new System.Windows.Forms.TextBox();
     this.txtCP              = new System.Windows.Forms.TextBox();
     this.txtSuc             = new System.Windows.Forms.TextBox();
     this.txtBanco           = new System.Windows.Forms.TextBox();
     this.Toolbar1           = new System.Windows.Forms.ToolStrip();
     this.tlbNuevo           = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button2  = new System.Windows.Forms.ToolStripSeparator();
     this.tlbGuardar         = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button4  = new System.Windows.Forms.ToolStripSeparator();
     this.tlbImprimir        = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button6  = new System.Windows.Forms.ToolStripSeparator();
     this.tlbAnular          = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button8  = new System.Windows.Forms.ToolStripSeparator();
     this.tlbEditar          = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button10 = new System.Windows.Forms.ToolStripSeparator();
     this.tlbFacturar        = new System.Windows.Forms.ToolStripButton();
     this.lblIDCliente       = new System.Windows.Forms.Label();
     this.dtFechaEmision     = new System.Windows.Forms.DateTimePicker();
     this.dtFechaPago        = new System.Windows.Forms.DateTimePicker();
     this.groupBox1.SuspendLayout();
     this.Toolbar1.SuspendLayout();
     this.SuspendLayout();
     //
     // cmbRazonSocial
     //
     this.cmbRazonSocial.BackColor             = System.Drawing.SystemColors.Window;
     this.cmbRazonSocial.Cursor                = System.Windows.Forms.Cursors.Default;
     this.cmbRazonSocial.ForeColor             = System.Drawing.SystemColors.WindowText;
     this.cmbRazonSocial.Location              = new System.Drawing.Point(79, 193);
     this.cmbRazonSocial.Name                  = "cmbRazonSocial";
     this.cmbRazonSocial.RightToLeft           = System.Windows.Forms.RightToLeft.No;
     this.cmbRazonSocial.Size                  = new System.Drawing.Size(321, 21);
     this.cmbRazonSocial.Sorted                = true;
     this.cmbRazonSocial.TabIndex              = 6;
     this.cmbRazonSocial.DropDown             += new System.EventHandler(this.CmbRazonSocialDropDown);
     this.cmbRazonSocial.SelectedIndexChanged += new System.EventHandler(this.CmbRazonSocialSelectedIndexChanged);
     //
     // txtImporte
     //
     this.txtImporte.AcceptsReturn = true;
     this.txtImporte.BackColor     = System.Drawing.SystemColors.Window;
     this.txtImporte.Cursor        = System.Windows.Forms.Cursors.IBeam;
     this.txtImporte.ForeColor     = System.Drawing.SystemColors.WindowText;
     this.txtImporte.Location      = new System.Drawing.Point(518, 97);
     this.txtImporte.MaxLength     = 0;
     this.txtImporte.Name          = "txtImporte";
     this.txtImporte.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.txtImporte.Size          = new System.Drawing.Size(165, 20);
     this.txtImporte.TabIndex      = 5;
     this.txtImporte.Text          = "0";
     //
     // Label7
     //
     this.Label7.AutoSize    = true;
     this.Label7.BackColor   = System.Drawing.SystemColors.Control;
     this.Label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Label7.Cursor      = System.Windows.Forms.Cursors.Default;
     this.Label7.ForeColor   = System.Drawing.SystemColors.ControlText;
     this.Label7.Location    = new System.Drawing.Point(32, 196);
     this.Label7.Name        = "Label7";
     this.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.Label7.Size        = new System.Drawing.Size(41, 15);
     this.Label7.TabIndex    = 15;
     this.Label7.Text        = "Cliente";
     //
     // Label6
     //
     this.Label6.AutoSize    = true;
     this.Label6.BackColor   = System.Drawing.SystemColors.Control;
     this.Label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Label6.Cursor      = System.Windows.Forms.Cursors.Default;
     this.Label6.ForeColor   = System.Drawing.SystemColors.ControlText;
     this.Label6.Location    = new System.Drawing.Point(468, 100);
     this.Label6.Name        = "Label6";
     this.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.Label6.Size        = new System.Drawing.Size(44, 15);
     this.Label6.TabIndex    = 14;
     this.Label6.Text        = "Importe";
     //
     // Label2
     //
     this.Label2.AutoSize    = true;
     this.Label2.BackColor   = System.Drawing.SystemColors.Control;
     this.Label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Label2.Cursor      = System.Windows.Forms.Cursors.Default;
     this.Label2.ForeColor   = System.Drawing.SystemColors.ControlText;
     this.Label2.Location    = new System.Drawing.Point(34, 124);
     this.Label2.Name        = "Label2";
     this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.Label2.Size        = new System.Drawing.Size(84, 15);
     this.Label2.TabIndex    = 10;
     this.Label2.Text        = "Fecha De Pago";
     //
     // Label1
     //
     this.Label1.AutoSize    = true;
     this.Label1.BackColor   = System.Drawing.SystemColors.Control;
     this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Label1.Cursor      = System.Windows.Forms.Cursors.Default;
     this.Label1.ForeColor   = System.Drawing.SystemColors.ControlText;
     this.Label1.Location    = new System.Drawing.Point(34, 97);
     this.Label1.Name        = "Label1";
     this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.Label1.Size        = new System.Drawing.Size(95, 15);
     this.Label1.TabIndex    = 9;
     this.Label1.Text        = "Fecha De Emisión";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.txtCuenta);
     this.groupBox1.Controls.Add(this.txtNumCheq);
     this.groupBox1.Controls.Add(this.txtCP);
     this.groupBox1.Controls.Add(this.txtSuc);
     this.groupBox1.Controls.Add(this.txtBanco);
     this.groupBox1.Location = new System.Drawing.Point(574, 155);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(109, 96);
     this.groupBox1.TabIndex = 25;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Datos del Cheque";
     //
     // txtCuenta
     //
     this.txtCuenta.Location  = new System.Drawing.Point(30, 70);
     this.txtCuenta.MaxLength = 11;
     this.txtCuenta.Name      = "txtCuenta";
     this.txtCuenta.Size      = new System.Drawing.Size(74, 20);
     this.txtCuenta.TabIndex  = 4;
     this.txtCuenta.Text      = "00000000000";
     //
     // txtNumCheq
     //
     this.txtNumCheq.Location  = new System.Drawing.Point(48, 44);
     this.txtNumCheq.MaxLength = 8;
     this.txtNumCheq.Name      = "txtNumCheq";
     this.txtNumCheq.Size      = new System.Drawing.Size(55, 20);
     this.txtNumCheq.TabIndex  = 3;
     this.txtNumCheq.Text      = "00000000";
     //
     // txtCP
     //
     this.txtCP.Location  = new System.Drawing.Point(70, 18);
     this.txtCP.MaxLength = 4;
     this.txtCP.Name      = "txtCP";
     this.txtCP.Size      = new System.Drawing.Size(34, 20);
     this.txtCP.TabIndex  = 2;
     this.txtCP.Text      = "0000";
     //
     // txtSuc
     //
     this.txtSuc.Location  = new System.Drawing.Point(40, 19);
     this.txtSuc.MaxLength = 3;
     this.txtSuc.Name      = "txtSuc";
     this.txtSuc.Size      = new System.Drawing.Size(24, 20);
     this.txtSuc.TabIndex  = 1;
     this.txtSuc.Text      = "000";
     //
     // txtBanco
     //
     this.txtBanco.Location  = new System.Drawing.Point(7, 18);
     this.txtBanco.MaxLength = 3;
     this.txtBanco.Name      = "txtBanco";
     this.txtBanco.Size      = new System.Drawing.Size(27, 20);
     this.txtBanco.TabIndex  = 0;
     this.txtBanco.Text      = "000";
     //
     // Toolbar1
     //
     this.Toolbar1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tlbNuevo,
         this._Toolbar1_Button2,
         this.tlbGuardar,
         this._Toolbar1_Button4,
         this.tlbImprimir,
         this._Toolbar1_Button6,
         this.tlbAnular,
         this._Toolbar1_Button8,
         this.tlbEditar,
         this._Toolbar1_Button10,
         this.tlbFacturar
     });
     this.Toolbar1.Location = new System.Drawing.Point(0, 0);
     this.Toolbar1.Name     = "Toolbar1";
     this.Toolbar1.Size     = new System.Drawing.Size(947, 42);
     this.Toolbar1.TabIndex = 41;
     //
     // tlbNuevo
     //
     this.tlbNuevo.AutoSize          = false;
     this.tlbNuevo.Image             = ((System.Drawing.Image)(resources.GetObject("tlbNuevo.Image")));
     this.tlbNuevo.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbNuevo.Name              = "tlbNuevo";
     this.tlbNuevo.Size              = new System.Drawing.Size(40, 39);
     this.tlbNuevo.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbNuevo.ToolTipText       = "Nuevo";
     //
     // _Toolbar1_Button2
     //
     this._Toolbar1_Button2.Name = "_Toolbar1_Button2";
     this._Toolbar1_Button2.Size = new System.Drawing.Size(6, 42);
     //
     // tlbGuardar
     //
     this.tlbGuardar.AutoSize          = false;
     this.tlbGuardar.Image             = ((System.Drawing.Image)(resources.GetObject("tlbGuardar.Image")));
     this.tlbGuardar.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbGuardar.Name              = "tlbGuardar";
     this.tlbGuardar.Size              = new System.Drawing.Size(40, 39);
     this.tlbGuardar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbGuardar.ToolTipText       = "Guardar";
     this.tlbGuardar.Click            += new System.EventHandler(this.TlbGuardarClick);
     //
     // _Toolbar1_Button4
     //
     this._Toolbar1_Button4.AutoSize = false;
     this._Toolbar1_Button4.Name     = "_Toolbar1_Button4";
     this._Toolbar1_Button4.Size     = new System.Drawing.Size(0, 39);
     //
     // tlbImprimir
     //
     this.tlbImprimir.AutoSize          = false;
     this.tlbImprimir.Enabled           = false;
     this.tlbImprimir.Image             = ((System.Drawing.Image)(resources.GetObject("tlbImprimir.Image")));
     this.tlbImprimir.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbImprimir.Name              = "tlbImprimir";
     this.tlbImprimir.Size              = new System.Drawing.Size(40, 39);
     this.tlbImprimir.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbImprimir.ToolTipText       = "Imprimir";
     //
     // _Toolbar1_Button6
     //
     this._Toolbar1_Button6.Name = "_Toolbar1_Button6";
     this._Toolbar1_Button6.Size = new System.Drawing.Size(6, 42);
     //
     // tlbAnular
     //
     this.tlbAnular.AutoSize          = false;
     this.tlbAnular.Enabled           = false;
     this.tlbAnular.Image             = ((System.Drawing.Image)(resources.GetObject("tlbAnular.Image")));
     this.tlbAnular.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbAnular.Name              = "tlbAnular";
     this.tlbAnular.Size              = new System.Drawing.Size(40, 39);
     this.tlbAnular.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbAnular.ToolTipText       = "Anular";
     //
     // _Toolbar1_Button8
     //
     this._Toolbar1_Button8.Name = "_Toolbar1_Button8";
     this._Toolbar1_Button8.Size = new System.Drawing.Size(6, 42);
     //
     // tlbEditar
     //
     this.tlbEditar.AutoSize          = false;
     this.tlbEditar.Enabled           = false;
     this.tlbEditar.Image             = ((System.Drawing.Image)(resources.GetObject("tlbEditar.Image")));
     this.tlbEditar.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbEditar.Name              = "tlbEditar";
     this.tlbEditar.Size              = new System.Drawing.Size(40, 39);
     this.tlbEditar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbEditar.ToolTipText       = "Editar";
     //
     // _Toolbar1_Button10
     //
     this._Toolbar1_Button10.Name = "_Toolbar1_Button10";
     this._Toolbar1_Button10.Size = new System.Drawing.Size(6, 42);
     //
     // tlbFacturar
     //
     this.tlbFacturar.AutoSize          = false;
     this.tlbFacturar.Enabled           = false;
     this.tlbFacturar.Image             = ((System.Drawing.Image)(resources.GetObject("tlbFacturar.Image")));
     this.tlbFacturar.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tlbFacturar.Name              = "tlbFacturar";
     this.tlbFacturar.Size              = new System.Drawing.Size(40, 39);
     this.tlbFacturar.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tlbFacturar.ToolTipText       = "Facturar";
     //
     // lblIDCliente
     //
     this.lblIDCliente.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblIDCliente.Location    = new System.Drawing.Point(406, 195);
     this.lblIDCliente.Name        = "lblIDCliente";
     this.lblIDCliente.Size        = new System.Drawing.Size(129, 16);
     this.lblIDCliente.TabIndex    = 42;
     //
     // dtFechaEmision
     //
     this.dtFechaEmision.Format   = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtFechaEmision.Location = new System.Drawing.Point(148, 97);
     this.dtFechaEmision.Name     = "dtFechaEmision";
     this.dtFechaEmision.Size     = new System.Drawing.Size(104, 20);
     this.dtFechaEmision.TabIndex = 43;
     //
     // dtFechaPago
     //
     this.dtFechaPago.Format   = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtFechaPago.Location = new System.Drawing.Point(148, 118);
     this.dtFechaPago.Name     = "dtFechaPago";
     this.dtFechaPago.Size     = new System.Drawing.Size(104, 20);
     this.dtFechaPago.TabIndex = 44;
     //
     // frmCheques
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.SystemColors.Control;
     this.ClientSize          = new System.Drawing.Size(947, 336);
     this.Controls.Add(this.dtFechaPago);
     this.Controls.Add(this.dtFechaEmision);
     this.Controls.Add(this.lblIDCliente);
     this.Controls.Add(this.Toolbar1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.cmbRazonSocial);
     this.Controls.Add(this.txtImporte);
     this.Controls.Add(this.Label7);
     this.Controls.Add(this.Label6);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.Label1);
     this.Cursor          = System.Windows.Forms.Cursors.Default;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Location        = new System.Drawing.Point(4, 30);
     this.Name            = "frmCheques";
     this.RightToLeft     = System.Windows.Forms.RightToLeft.No;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds;
     this.Text            = "Cheques Nuevos";
     this.Load           += new System.EventHandler(this.FrmChequesLoad);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.Toolbar1.ResumeLayout(false);
     this.Toolbar1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #47
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ToolStripSeparator Separator1;
     this._Timer = new System.Windows.Forms.Timer(this.components);
     this._ToolStripContainer    = new System.Windows.Forms.ToolStripContainer();
     this._StatusBar             = new System.Windows.Forms.StatusStrip();
     this._TimeLabel             = new System.Windows.Forms.ToolStripStatusLabel();
     this._MoneyLabel            = new System.Windows.Forms.ToolStripStatusLabel();
     this._EmployeesLabel        = new System.Windows.Forms.ToolStripStatusLabel();
     this._PositionLabel         = new System.Windows.Forms.ToolStripStatusLabel();
     this._MainSplitContainer    = new System.Windows.Forms.SplitContainer();
     this._Canvas                = new ButtonOffice.Canvas();
     this._SystemTools           = new System.Windows.Forms.ToolStrip();
     this._LoadButton            = new System.Windows.Forms.ToolStripDropDownButton();
     this._NewGameButton         = new System.Windows.Forms.ToolStripMenuItem();
     this._SaveGameButton        = new System.Windows.Forms.ToolStripMenuItem();
     this._LoadGameButton        = new System.Windows.Forms.ToolStripMenuItem();
     this._QuitApplicationButton = new System.Windows.Forms.ToolStripMenuItem();
     this._GameTools             = new System.Windows.Forms.ToolStrip();
     this._BuildOfficeButton     = new System.Windows.Forms.ToolStripButton();
     this._BuildBathroomButton   = new System.Windows.Forms.ToolStripButton();
     this._BuildStairsButton     = new System.Windows.Forms.ToolStripButton();
     this._HireWorkerButton      = new System.Windows.Forms.ToolStripButton();
     this._HireITTechButton      = new System.Windows.Forms.ToolStripButton();
     this._HireJanitorButton     = new System.Windows.Forms.ToolStripButton();
     this._HireAccountantButton  = new System.Windows.Forms.ToolStripButton();
     this._PlaceCatButton        = new System.Windows.Forms.ToolStripButton();
     Separator1 = new System.Windows.Forms.ToolStripSeparator();
     this._ToolStripContainer.BottomToolStripPanel.SuspendLayout();
     this._ToolStripContainer.ContentPanel.SuspendLayout();
     this._ToolStripContainer.TopToolStripPanel.SuspendLayout();
     this._ToolStripContainer.SuspendLayout();
     this._StatusBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._MainSplitContainer)).BeginInit();
     this._MainSplitContainer.Panel1.SuspendLayout();
     this._MainSplitContainer.SuspendLayout();
     this._SystemTools.SuspendLayout();
     this._GameTools.SuspendLayout();
     this.SuspendLayout();
     //
     // Separator1
     //
     Separator1.Name = "Separator1";
     Separator1.Size = new System.Drawing.Size(97, 6);
     //
     // _Timer
     //
     this._Timer.Interval = 10;
     this._Timer.Tick    += new System.EventHandler(this._OnTimerTicked);
     //
     // _ToolStripContainer
     //
     //
     // _ToolStripContainer.BottomToolStripPanel
     //
     this._ToolStripContainer.BottomToolStripPanel.Controls.Add(this._StatusBar);
     //
     // _ToolStripContainer.ContentPanel
     //
     this._ToolStripContainer.ContentPanel.Controls.Add(this._MainSplitContainer);
     this._ToolStripContainer.ContentPanel.Size = new System.Drawing.Size(910, 481);
     this._ToolStripContainer.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._ToolStripContainer.Location = new System.Drawing.Point(0, 0);
     this._ToolStripContainer.Name     = "_ToolStripContainer";
     this._ToolStripContainer.Size     = new System.Drawing.Size(910, 528);
     this._ToolStripContainer.TabIndex = 3;
     this._ToolStripContainer.Text     = "toolStripContainer1";
     //
     // _ToolStripContainer.TopToolStripPanel
     //
     this._ToolStripContainer.TopToolStripPanel.Controls.Add(this._SystemTools);
     this._ToolStripContainer.TopToolStripPanel.Controls.Add(this._GameTools);
     //
     // _StatusBar
     //
     this._StatusBar.Dock = System.Windows.Forms.DockStyle.None;
     this._StatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._TimeLabel,
         this._MoneyLabel,
         this._EmployeesLabel,
         this._PositionLabel
     });
     this._StatusBar.Location = new System.Drawing.Point(0, 0);
     this._StatusBar.Name     = "_StatusBar";
     this._StatusBar.Size     = new System.Drawing.Size(910, 22);
     this._StatusBar.TabIndex = 0;
     //
     // _TimeLabel
     //
     this._TimeLabel.Name = "_TimeLabel";
     this._TimeLabel.Size = new System.Drawing.Size(70, 17);
     this._TimeLabel.Text = "Day && Time";
     //
     // _MoneyLabel
     //
     this._MoneyLabel.Name = "_MoneyLabel";
     this._MoneyLabel.Size = new System.Drawing.Size(44, 17);
     this._MoneyLabel.Text = "Money";
     //
     // _EmployeesLabel
     //
     this._EmployeesLabel.Name = "_EmployeesLabel";
     this._EmployeesLabel.Size = new System.Drawing.Size(64, 17);
     this._EmployeesLabel.Text = "Employees";
     //
     // _PositionLabel
     //
     this._PositionLabel.Name = "_PositionLabel";
     this._PositionLabel.Size = new System.Drawing.Size(50, 17);
     this._PositionLabel.Text = "Position";
     //
     // _MainSplitContainer
     //
     this._MainSplitContainer.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._MainSplitContainer.Location = new System.Drawing.Point(0, 0);
     this._MainSplitContainer.Name     = "_MainSplitContainer";
     //
     // _MainSplitContainer.Panel1
     //
     this._MainSplitContainer.Panel1Collapsed = true;
     this._MainSplitContainer.Panel2.Controls.Add(this._Canvas);
     this._MainSplitContainer.Size             = new System.Drawing.Size(910, 481);
     this._MainSplitContainer.SplitterDistance = 160;
     this._MainSplitContainer.TabIndex         = 3;
     //
     // _Canvas
     //
     this._Canvas.BackColor  = System.Drawing.SystemColors.ControlDark;
     this._Canvas.Dock       = System.Windows.Forms.DockStyle.Fill;
     this._Canvas.Location   = new System.Drawing.Point(0, 0);
     this._Canvas.Name       = "_Canvas";
     this._Canvas.Size       = new System.Drawing.Size(910, 481);
     this._Canvas.TabIndex   = 4;
     this._Canvas.Paint     += new System.Windows.Forms.PaintEventHandler(this._OnCanvasPaint);
     this._Canvas.KeyDown   += new System.Windows.Forms.KeyEventHandler(this._OnCanvasKeyDown);
     this._Canvas.KeyUp     += new System.Windows.Forms.KeyEventHandler(this._OnCanvasKeyUp);
     this._Canvas.MouseDown += new System.Windows.Forms.MouseEventHandler(this._OnCanvasMouseDown);
     this._Canvas.MouseMove += new System.Windows.Forms.MouseEventHandler(this._OnCanvasMouseMoved);
     this._Canvas.MouseUp   += new System.Windows.Forms.MouseEventHandler(this._OnCanvasMouseUp);
     //
     // _SystemTools
     //
     this._SystemTools.Dock = System.Windows.Forms.DockStyle.None;
     this._SystemTools.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._LoadButton
     });
     this._SystemTools.Location   = new System.Drawing.Point(3, 0);
     this._SystemTools.Name       = "_SystemTools";
     this._SystemTools.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     this._SystemTools.Size       = new System.Drawing.Size(54, 25);
     this._SystemTools.TabIndex   = 2;
     //
     // _LoadButton
     //
     this._LoadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._LoadButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._NewGameButton,
         this._SaveGameButton,
         this._LoadGameButton,
         Separator1,
         this._QuitApplicationButton
     });
     this._LoadButton.Name = "_LoadButton";
     this._LoadButton.ShowDropDownArrow = false;
     this._LoadButton.Size = new System.Drawing.Size(42, 22);
     this._LoadButton.Text = "Game";
     //
     // _NewGameButton
     //
     this._NewGameButton.Name   = "_NewGameButton";
     this._NewGameButton.Size   = new System.Drawing.Size(100, 22);
     this._NewGameButton.Text   = "New";
     this._NewGameButton.Click += new System.EventHandler(this._OnNewGameButtonClicked);
     //
     // _SaveGameButton
     //
     this._SaveGameButton.Name   = "_SaveGameButton";
     this._SaveGameButton.Size   = new System.Drawing.Size(100, 22);
     this._SaveGameButton.Text   = "Save";
     this._SaveGameButton.Click += new System.EventHandler(this._OnSaveGameButtonClicked);
     //
     // _LoadGameButton
     //
     this._LoadGameButton.Name   = "_LoadGameButton";
     this._LoadGameButton.Size   = new System.Drawing.Size(100, 22);
     this._LoadGameButton.Text   = "Load";
     this._LoadGameButton.Click += new System.EventHandler(this._OnLoadGameButtonClicked);
     //
     // _QuitApplicationButton
     //
     this._QuitApplicationButton.Name   = "_QuitApplicationButton";
     this._QuitApplicationButton.Size   = new System.Drawing.Size(100, 22);
     this._QuitApplicationButton.Text   = "Quit";
     this._QuitApplicationButton.Click += new System.EventHandler(this._OnQuitApplicationButtonClicked);
     //
     // _GameTools
     //
     this._GameTools.Dock = System.Windows.Forms.DockStyle.None;
     this._GameTools.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._BuildOfficeButton,
         this._BuildBathroomButton,
         this._BuildStairsButton,
         this._HireWorkerButton,
         this._HireITTechButton,
         this._HireJanitorButton,
         this._HireAccountantButton,
         this._PlaceCatButton
     });
     this._GameTools.Location   = new System.Drawing.Point(57, 0);
     this._GameTools.Name       = "_GameTools";
     this._GameTools.Padding    = new System.Windows.Forms.Padding(0);
     this._GameTools.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     this._GameTools.Size       = new System.Drawing.Size(404, 25);
     this._GameTools.TabIndex   = 1;
     //
     // _BuildOfficeButton
     //
     this._BuildOfficeButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._BuildOfficeButton.Name            = "_BuildOfficeButton";
     this._BuildOfficeButton.Size            = new System.Drawing.Size(43, 22);
     this._BuildOfficeButton.Text            = "Office";
     this._BuildOfficeButton.ToolTipText     = "Build office";
     this._BuildOfficeButton.CheckedChanged += new System.EventHandler(this._OnBuildOfficeButtonCheckedChanged);
     this._BuildOfficeButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _BuildBathroomButton
     //
     this._BuildBathroomButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._BuildBathroomButton.ImageTransparentColor = System.Drawing.Color.Transparent;
     this._BuildBathroomButton.Name            = "_BuildBathroomButton";
     this._BuildBathroomButton.Size            = new System.Drawing.Size(64, 22);
     this._BuildBathroomButton.Text            = "Bathroom";
     this._BuildBathroomButton.CheckedChanged += new System.EventHandler(this._OnBuildBathroomButtonCheckedChanged);
     this._BuildBathroomButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _BuildStairsButton
     //
     this._BuildStairsButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._BuildStairsButton.ImageTransparentColor = System.Drawing.Color.Transparent;
     this._BuildStairsButton.Name            = "_BuildStairsButton";
     this._BuildStairsButton.Size            = new System.Drawing.Size(39, 22);
     this._BuildStairsButton.Text            = "Stairs";
     this._BuildStairsButton.CheckedChanged += new System.EventHandler(this._OnBuildStairsButtonCheckedChanged);
     this._BuildStairsButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _HireWorkerButton
     //
     this._HireWorkerButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._HireWorkerButton.Name            = "_HireWorkerButton";
     this._HireWorkerButton.Size            = new System.Drawing.Size(49, 22);
     this._HireWorkerButton.Text            = "Worker";
     this._HireWorkerButton.CheckedChanged += new System.EventHandler(this._OnHireWorkerButtonCheckedChanged);
     this._HireWorkerButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _HireITTechButton
     //
     this._HireITTechButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._HireITTechButton.Name            = "_HireITTechButton";
     this._HireITTechButton.Size            = new System.Drawing.Size(50, 22);
     this._HireITTechButton.Text            = "IT Tech";
     this._HireITTechButton.CheckedChanged += new System.EventHandler(this._OnHireITTechButtonCheckedChanged);
     this._HireITTechButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _HireJanitorButton
     //
     this._HireJanitorButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._HireJanitorButton.Name            = "_HireJanitorButton";
     this._HireJanitorButton.Size            = new System.Drawing.Size(46, 22);
     this._HireJanitorButton.Text            = "Janitor";
     this._HireJanitorButton.CheckedChanged += new System.EventHandler(this._OnHireJanitorButtonCheckedChanged);
     this._HireJanitorButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _HireAccountantButton
     //
     this._HireAccountantButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._HireAccountantButton.Name            = "_HireAccountantButton";
     this._HireAccountantButton.Size            = new System.Drawing.Size(73, 22);
     this._HireAccountantButton.Text            = "Accountant";
     this._HireAccountantButton.CheckedChanged += new System.EventHandler(this._OnHireAccountantButtonCheckedChanged);
     this._HireAccountantButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // _PlaceCatButton
     //
     this._PlaceCatButton.DisplayStyle    = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this._PlaceCatButton.Name            = "_PlaceCatButton";
     this._PlaceCatButton.Size            = new System.Drawing.Size(29, 22);
     this._PlaceCatButton.Text            = "Cat";
     this._PlaceCatButton.CheckedChanged += new System.EventHandler(this._OnPlaceCatButtonCheckedChanged);
     this._PlaceCatButton.Click          += new System.EventHandler(this._OnToolButtonClicked);
     //
     // MainWindow
     //
     this.ClientSize = new System.Drawing.Size(910, 528);
     this.Controls.Add(this._ToolStripContainer);
     this.Name    = "MainWindow";
     this.Load   += new System.EventHandler(this._OnMainWindowLoaded);
     this.Resize += new System.EventHandler(this._OnMainWindowResized);
     this._ToolStripContainer.BottomToolStripPanel.ResumeLayout(false);
     this._ToolStripContainer.BottomToolStripPanel.PerformLayout();
     this._ToolStripContainer.ContentPanel.ResumeLayout(false);
     this._ToolStripContainer.TopToolStripPanel.ResumeLayout(false);
     this._ToolStripContainer.TopToolStripPanel.PerformLayout();
     this._ToolStripContainer.ResumeLayout(false);
     this._ToolStripContainer.PerformLayout();
     this._StatusBar.ResumeLayout(false);
     this._StatusBar.PerformLayout();
     this._MainSplitContainer.Panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._MainSplitContainer)).EndInit();
     this._MainSplitContainer.ResumeLayout(false);
     this._SystemTools.ResumeLayout(false);
     this._SystemTools.PerformLayout();
     this._GameTools.ResumeLayout(false);
     this._GameTools.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #48
0
 /// <summary>
 /// Required baseMethod for Designer support - do not modify
 /// the contents of this baseMethod with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator1;
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator2;
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator5;
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator6;
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator3;
     System.Windows.Forms.ToolStripSeparator        toolStripSeparator4;
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewsManagerControl));
     this.toolStripLabelSources           = new System.Windows.Forms.ToolStripLabel();
     this.toolStrip                       = new System.Windows.Forms.ToolStrip();
     this.toolStripLabelUpdating          = new System.Windows.Forms.ToolStripLabel();
     this.toolStripButtonUpdate           = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonDetails          = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonMarkRead         = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonMarkAllRead      = new System.Windows.Forms.ToolStripButton();
     this.toolStripDropDownButtonShowMode = new System.Windows.Forms.ToolStripDropDownButton();
     this.toolStripMenuItem1              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator8             = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripMenuItem2              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem4              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItemRead           = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripDropDownButtonChannel  = new System.Windows.Forms.ToolStripDropDownButton();
     this.toolStripDropDownButtonSource   = new System.Windows.Forms.ToolStripDropDownButton();
     this.toolStripButtonSettings         = new System.Windows.Forms.ToolStripButton();
     this.toolStripTextBoxSearch          = new System.Windows.Forms.ToolStripTextBox();
     this.toolStripButtonSearch           = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonMark             = new System.Windows.Forms.ToolStripButton();
     this.toolStripButtonSearchClear      = new System.Windows.Forms.ToolStripButton();
     this.imageList                       = new System.Windows.Forms.ImageList(this.components);
     this.splitter1                       = new System.Windows.Forms.Splitter();
     this.contextMenuStrip                = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.toolStripMenuItem5              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem7              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator9             = new System.Windows.Forms.ToolStripSeparator();
     this.toolStripMenuItem6              = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator7             = new System.Windows.Forms.ToolStripSeparator();
     this.deleteToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.listView             = new CommonSupport.VirtualListViewEx();
     this.columnHeaderGeneral  = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderTitle    = new System.Windows.Forms.ColumnHeader();
     this.columnHeaderDateTime = new System.Windows.Forms.ColumnHeader();
     this.newsItemControl1     = new CommonSupport.NewsItemControl();
     toolStripSeparator1       = new System.Windows.Forms.ToolStripSeparator();
     toolStripSeparator2       = new System.Windows.Forms.ToolStripSeparator();
     toolStripSeparator5       = new System.Windows.Forms.ToolStripSeparator();
     toolStripSeparator6       = new System.Windows.Forms.ToolStripSeparator();
     toolStripSeparator3       = new System.Windows.Forms.ToolStripSeparator();
     toolStripSeparator4       = new System.Windows.Forms.ToolStripSeparator();
     this.toolStrip.SuspendLayout();
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // toolStripSeparator1
     //
     toolStripSeparator1.Name = "toolStripSeparator1";
     toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripSeparator2
     //
     toolStripSeparator2.Name = "toolStripSeparator2";
     toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripSeparator5
     //
     toolStripSeparator5.Name = "toolStripSeparator5";
     toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripSeparator6
     //
     toolStripSeparator6.Name = "toolStripSeparator6";
     toolStripSeparator6.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripSeparator3
     //
     toolStripSeparator3.Name = "toolStripSeparator3";
     toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripSeparator4
     //
     toolStripSeparator4.Name = "toolStripSeparator4";
     toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripLabelSources
     //
     this.toolStripLabelSources.Name = "toolStripLabelSources";
     this.toolStripLabelSources.Size = new System.Drawing.Size(53, 22);
     this.toolStripLabelSources.Text = "Feeds [0]";
     //
     // toolStrip
     //
     this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripLabelSources,
         this.toolStripLabelUpdating,
         toolStripSeparator1,
         this.toolStripButtonUpdate,
         toolStripSeparator4,
         this.toolStripButtonDetails,
         toolStripSeparator6,
         this.toolStripButtonMarkRead,
         this.toolStripButtonMarkAllRead,
         toolStripSeparator3,
         this.toolStripDropDownButtonShowMode,
         toolStripSeparator2,
         this.toolStripDropDownButtonChannel,
         this.toolStripDropDownButtonSource,
         this.toolStripButtonSettings,
         toolStripSeparator5,
         this.toolStripTextBoxSearch,
         this.toolStripButtonSearch,
         this.toolStripButtonMark,
         this.toolStripButtonSearchClear
     });
     this.toolStrip.Location = new System.Drawing.Point(0, 0);
     this.toolStrip.Name     = "toolStrip";
     this.toolStrip.Size     = new System.Drawing.Size(802, 25);
     this.toolStrip.TabIndex = 17;
     this.toolStrip.Text     = "toolStrip1";
     //
     // toolStripLabelUpdating
     //
     this.toolStripLabelUpdating.AutoSize     = false;
     this.toolStripLabelUpdating.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.toolStripLabelUpdating.Image        = ((System.Drawing.Image)(resources.GetObject("toolStripLabelUpdating.Image")));
     this.toolStripLabelUpdating.Name         = "toolStripLabelUpdating";
     this.toolStripLabelUpdating.Size         = new System.Drawing.Size(20, 22);
     this.toolStripLabelUpdating.ToolTipText  = "Updating";
     //
     // toolStripButtonUpdate
     //
     this.toolStripButtonUpdate.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonUpdate.Image")));
     this.toolStripButtonUpdate.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonUpdate.Name   = "toolStripButtonUpdate";
     this.toolStripButtonUpdate.Size   = new System.Drawing.Size(62, 22);
     this.toolStripButtonUpdate.Text   = "Update";
     this.toolStripButtonUpdate.Click += new System.EventHandler(this.toolStripButtonUpdate_Click);
     //
     // toolStripButtonDetails
     //
     this.toolStripButtonDetails.Checked               = true;
     this.toolStripButtonDetails.CheckOnClick          = true;
     this.toolStripButtonDetails.CheckState            = System.Windows.Forms.CheckState.Checked;
     this.toolStripButtonDetails.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonDetails.Name   = "toolStripButtonDetails";
     this.toolStripButtonDetails.Size   = new System.Drawing.Size(72, 22);
     this.toolStripButtonDetails.Text   = "Show Details";
     this.toolStripButtonDetails.Click += new System.EventHandler(this.toolStripButtonDetails_Click);
     //
     // toolStripButtonMarkRead
     //
     this.toolStripButtonMarkRead.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonMarkRead.Image")));
     this.toolStripButtonMarkRead.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonMarkRead.Name        = "toolStripButtonMarkRead";
     this.toolStripButtonMarkRead.Size        = new System.Drawing.Size(78, 22);
     this.toolStripButtonMarkRead.Text        = "Mark Read";
     this.toolStripButtonMarkRead.ToolTipText = "Mark Selected Items as Read";
     this.toolStripButtonMarkRead.Visible     = false;
     this.toolStripButtonMarkRead.Click      += new System.EventHandler(this.toolStripButtonMarkRead_Click);
     //
     // toolStripButtonMarkAllRead
     //
     this.toolStripButtonMarkAllRead.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonMarkAllRead.Name        = "toolStripButtonMarkAllRead";
     this.toolStripButtonMarkAllRead.Size        = new System.Drawing.Size(76, 22);
     this.toolStripButtonMarkAllRead.Text        = "Mark All Read";
     this.toolStripButtonMarkAllRead.ToolTipText = "Mark All Items as Read";
     this.toolStripButtonMarkAllRead.Click      += new System.EventHandler(this.toolStripButtonMarkAllRead_Click);
     //
     // toolStripDropDownButtonShowMode
     //
     this.toolStripDropDownButtonShowMode.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem1,
         this.toolStripSeparator8,
         this.toolStripMenuItem2,
         this.toolStripMenuItem3,
         this.toolStripMenuItem4,
         this.toolStripMenuItemRead
     });
     this.toolStripDropDownButtonShowMode.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripDropDownButtonShowMode.Name = "toolStripDropDownButtonShowMode";
     this.toolStripDropDownButtonShowMode.Size = new System.Drawing.Size(42, 22);
     this.toolStripDropDownButtonShowMode.Text = "View";
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name   = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size   = new System.Drawing.Size(131, 22);
     this.toolStripMenuItem1.Text   = "Default";
     this.toolStripMenuItem1.Click += new System.EventHandler(this.buttonShowModeDefault_Click);
     //
     // toolStripSeparator8
     //
     this.toolStripSeparator8.Name = "toolStripSeparator8";
     this.toolStripSeparator8.Size = new System.Drawing.Size(128, 6);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem2.Image")));
     this.toolStripMenuItem2.Name   = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size   = new System.Drawing.Size(131, 22);
     this.toolStripMenuItem2.Text   = "Favourite";
     this.toolStripMenuItem2.Click += new System.EventHandler(this.buttonShowModeFavourite_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem3.Image")));
     this.toolStripMenuItem3.Name   = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size   = new System.Drawing.Size(131, 22);
     this.toolStripMenuItem3.Text   = "Deleted";
     this.toolStripMenuItem3.Click += new System.EventHandler(this.buttonShowModeDeleted_Click);
     //
     // toolStripMenuItem4
     //
     this.toolStripMenuItem4.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem4.Image")));
     this.toolStripMenuItem4.Name   = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size   = new System.Drawing.Size(131, 22);
     this.toolStripMenuItem4.Text   = "Unread";
     this.toolStripMenuItem4.Click += new System.EventHandler(this.buttonShowModeUnread_Click);
     //
     // toolStripMenuItemRead
     //
     this.toolStripMenuItemRead.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItemRead.Image")));
     this.toolStripMenuItemRead.Name   = "toolStripMenuItemRead";
     this.toolStripMenuItemRead.Size   = new System.Drawing.Size(131, 22);
     this.toolStripMenuItemRead.Text   = "Read";
     this.toolStripMenuItemRead.Click += new System.EventHandler(this.buttonShowModeRead_Click);
     //
     // toolStripDropDownButtonChannel
     //
     this.toolStripDropDownButtonChannel.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripDropDownButtonChannel.Name                 = "toolStripDropDownButtonChannel";
     this.toolStripDropDownButtonChannel.Size                 = new System.Drawing.Size(59, 22);
     this.toolStripDropDownButtonChannel.Text                 = "Channel";
     this.toolStripDropDownButtonChannel.Visible              = false;
     this.toolStripDropDownButtonChannel.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStripDropDownButtonChannel_DropDownItemClicked);
     this.toolStripDropDownButtonChannel.DropDownOpening     += new System.EventHandler(this.toolStripDropDownButtonChannel_DropDownOpening);
     //
     // toolStripDropDownButtonSource
     //
     this.toolStripDropDownButtonSource.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButtonSource.Image")));
     this.toolStripDropDownButtonSource.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripDropDownButtonSource.Name = "toolStripDropDownButtonSource";
     this.toolStripDropDownButtonSource.Size = new System.Drawing.Size(60, 22);
     this.toolStripDropDownButtonSource.Text = "Feed";
     this.toolStripDropDownButtonSource.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.toolStripDropDownButtonSource_DropDownItemClicked);
     this.toolStripDropDownButtonSource.DropDownOpening     += new System.EventHandler(this.toolStripDropDownButtonSource_DropDownOpening);
     //
     // toolStripButtonSettings
     //
     this.toolStripButtonSettings.Alignment             = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.toolStripButtonSettings.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButtonSettings.Image")));
     this.toolStripButtonSettings.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonSettings.Name      = "toolStripButtonSettings";
     this.toolStripButtonSettings.Size      = new System.Drawing.Size(66, 22);
     this.toolStripButtonSettings.Text      = "Settings";
     this.toolStripButtonSettings.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.toolStripButtonSettings.Click    += new System.EventHandler(this.toolStripButtonSettings_Click);
     //
     // toolStripTextBoxSearch
     //
     this.toolStripTextBoxSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolStripTextBoxSearch.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.toolStripTextBoxSearch.Name        = "toolStripTextBoxSearch";
     this.toolStripTextBoxSearch.Size        = new System.Drawing.Size(140, 25);
     this.toolStripTextBoxSearch.ToolTipText = "Enter string to search or mark";
     this.toolStripTextBoxSearch.KeyDown    += new System.Windows.Forms.KeyEventHandler(this.toolStripTextBoxSearch_KeyDown);
     //
     // toolStripButtonSearch
     //
     this.toolStripButtonSearch.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonSearch.Image")));
     this.toolStripButtonSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonSearch.Name   = "toolStripButtonSearch";
     this.toolStripButtonSearch.Size   = new System.Drawing.Size(60, 22);
     this.toolStripButtonSearch.Text   = "Search";
     this.toolStripButtonSearch.Click += new System.EventHandler(this.toolStripButtonSearch_Click);
     //
     // toolStripButtonMark
     //
     this.toolStripButtonMark.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonMark.Image")));
     this.toolStripButtonMark.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonMark.Name   = "toolStripButtonMark";
     this.toolStripButtonMark.Size   = new System.Drawing.Size(50, 22);
     this.toolStripButtonMark.Text   = "Mark";
     this.toolStripButtonMark.Click += new System.EventHandler(this.toolStripButtonMark_Click);
     //
     // toolStripButtonSearchClear
     //
     this.toolStripButtonSearchClear.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.toolStripButtonSearchClear.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButtonSearchClear.Image")));
     this.toolStripButtonSearchClear.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.toolStripButtonSearchClear.Name        = "toolStripButtonSearchClear";
     this.toolStripButtonSearchClear.Size        = new System.Drawing.Size(36, 22);
     this.toolStripButtonSearchClear.Text        = "Clear";
     this.toolStripButtonSearchClear.ToolTipText = "Clear Search or Mark Results";
     this.toolStripButtonSearchClear.Click      += new System.EventHandler(this.toolStripButtonSearchClear_Click);
     //
     // imageList
     //
     this.imageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList.Images.SetKeyName(0, "square.filled.lightred.png");
     this.imageList.Images.SetKeyName(1, "square.filled.red.png");
     this.imageList.Images.SetKeyName(2, "rssfeed-icon-14x14.png");
     this.imageList.Images.SetKeyName(3, "star_yellow.png");
     //
     // splitter1
     //
     this.splitter1.BackColor = System.Drawing.SystemColors.Control;
     this.splitter1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location  = new System.Drawing.Point(0, 464);
     this.splitter1.Name      = "splitter1";
     this.splitter1.Size      = new System.Drawing.Size(802, 4);
     this.splitter1.TabIndex  = 20;
     this.splitter1.TabStop   = false;
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripMenuItem5,
         this.toolStripMenuItem7,
         this.toolStripSeparator9,
         this.toolStripMenuItem6,
         this.toolStripSeparator7,
         this.deleteToolStripMenuItem
     });
     this.contextMenuStrip.Name = "contextMenuStrip";
     this.contextMenuStrip.Size = new System.Drawing.Size(152, 104);
     //
     // toolStripMenuItem5
     //
     this.toolStripMenuItem5.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem5.Image")));
     this.toolStripMenuItem5.Name   = "toolStripMenuItem5";
     this.toolStripMenuItem5.Size   = new System.Drawing.Size(151, 22);
     this.toolStripMenuItem5.Text   = "Favourite";
     this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click);
     //
     // toolStripMenuItem7
     //
     this.toolStripMenuItem7.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem7.Image")));
     this.toolStripMenuItem7.Name   = "toolStripMenuItem7";
     this.toolStripMenuItem7.Size   = new System.Drawing.Size(151, 22);
     this.toolStripMenuItem7.Text   = "Not Favourite";
     this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
     //
     // toolStripSeparator9
     //
     this.toolStripSeparator9.Name = "toolStripSeparator9";
     this.toolStripSeparator9.Size = new System.Drawing.Size(148, 6);
     //
     // toolStripMenuItem6
     //
     this.toolStripMenuItem6.Image  = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem6.Image")));
     this.toolStripMenuItem6.Name   = "toolStripMenuItem6";
     this.toolStripMenuItem6.Size   = new System.Drawing.Size(151, 22);
     this.toolStripMenuItem6.Text   = "Mark as Read";
     this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripButtonMarkRead_Click);
     //
     // toolStripSeparator7
     //
     this.toolStripSeparator7.Name = "toolStripSeparator7";
     this.toolStripSeparator7.Size = new System.Drawing.Size(148, 6);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Image  = ((System.Drawing.Image)(resources.GetObject("deleteToolStripMenuItem.Image")));
     this.deleteToolStripMenuItem.Name   = "deleteToolStripMenuItem";
     this.deleteToolStripMenuItem.Size   = new System.Drawing.Size(151, 22);
     this.deleteToolStripMenuItem.Text   = "Delete";
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // listView
     //
     this.listView.AutoScroll      = false;
     this.listView.AutoScrollSlack = 3;
     this.listView.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeaderGeneral,
         this.columnHeaderTitle,
         this.columnHeaderDateTime
     });
     this.listView.ContextMenuStrip = this.contextMenuStrip;
     this.listView.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.listView.Font             = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.listView.ForeColor        = System.Drawing.Color.MidnightBlue;
     this.listView.FullRowSelect    = true;
     this.listView.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.listView.HideSelection    = false;
     this.listView.Location         = new System.Drawing.Point(0, 25);
     this.listView.Name             = "listView";
     this.listView.ShowGroups       = false;
     this.listView.Size             = new System.Drawing.Size(802, 439);
     this.listView.SmallImageList   = this.imageList;
     this.listView.TabIndex         = 22;
     this.listView.UseCompatibleStateImageBehavior = false;
     this.listView.View                  = System.Windows.Forms.View.Details;
     this.listView.VirtualMode           = true;
     this.listView.SelectedIndexChanged += new System.EventHandler(this.listViewItems_SelectedIndexChanged);
     this.listView.DoubleClick          += new System.EventHandler(this.listViewItems_DoubleClick);
     this.listView.RetrieveVirtualItem  += new System.Windows.Forms.RetrieveVirtualItemEventHandler(this.objectListView_RetrieveVirtualItem);
     this.listView.KeyDown              += new System.Windows.Forms.KeyEventHandler(this.listView_KeyDown);
     //
     // columnHeaderGeneral
     //
     this.columnHeaderGeneral.Text  = "";
     this.columnHeaderGeneral.Width = 35;
     //
     // columnHeaderTitle
     //
     this.columnHeaderTitle.Text  = "Title";
     this.columnHeaderTitle.Width = 602;
     //
     // columnHeaderDateTime
     //
     this.columnHeaderDateTime.Text = "Date";
     //
     // newsItemControl1
     //
     this.newsItemControl1.BackColor = System.Drawing.SystemColors.Window;
     this.newsItemControl1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.newsItemControl1.Location  = new System.Drawing.Point(0, 468);
     this.newsItemControl1.Margin    = new System.Windows.Forms.Padding(2);
     this.newsItemControl1.Name      = "newsItemControl1";
     this.newsItemControl1.NewsItem  = null;
     this.newsItemControl1.Size      = new System.Drawing.Size(802, 134);
     this.newsItemControl1.TabIndex  = 21;
     //
     // NewsManagerControl
     //
     this.AutoScroll = true;
     this.BackColor  = System.Drawing.SystemColors.ControlLight;
     this.Controls.Add(this.listView);
     this.Controls.Add(this.toolStrip);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.newsItemControl1);
     this.Name  = "NewsManagerControl";
     this.Size  = new System.Drawing.Size(802, 602);
     this.Load += new System.EventHandler(this.OnLoadEvent);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #49
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();
 }
コード例 #50
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmBancos));
     this.Toolbar1          = new System.Windows.Forms.ToolStrip();
     this._Toolbar1_Button1 = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button2 = new System.Windows.Forms.ToolStripSeparator();
     this._Toolbar1_Button3 = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button4 = new System.Windows.Forms.ToolStripSeparator();
     this._Toolbar1_Button5 = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button6 = new System.Windows.Forms.ToolStripSeparator();
     this._Toolbar1_Button7 = new System.Windows.Forms.ToolStripButton();
     this._Toolbar1_Button8 = new System.Windows.Forms.ToolStripSeparator();
     this._Toolbar1_Button9 = new System.Windows.Forms.ToolStripButton();
     this.tabControl1       = new System.Windows.Forms.TabControl();
     this.tabGeneral        = new System.Windows.Forms.TabPage();
     this.tabDatos          = new System.Windows.Forms.TabPage();
     this.tabBusqueda       = new System.Windows.Forms.TabPage();
     this.DataGridView2     = new System.Windows.Forms.DataGridView();
     this.DataGridView1     = new System.Windows.Forms.DataGridView();
     this.Command2          = new System.Windows.Forms.Button();
     this.Command1          = new System.Windows.Forms.Button();
     this.Text2             = new System.Windows.Forms.TextBox();
     this.Text1             = new System.Windows.Forms.TextBox();
     this.Text3             = new System.Windows.Forms.TextBox();
     this.Toolbar1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabGeneral.SuspendLayout();
     this.tabDatos.SuspendLayout();
     this.tabBusqueda.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // Toolbar1
     //
     this.Toolbar1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._Toolbar1_Button1,
         this._Toolbar1_Button2,
         this._Toolbar1_Button3,
         this._Toolbar1_Button4,
         this._Toolbar1_Button5,
         this._Toolbar1_Button6,
         this._Toolbar1_Button7,
         this._Toolbar1_Button8,
         this._Toolbar1_Button9
     });
     this.Toolbar1.Location = new System.Drawing.Point(0, 0);
     this.Toolbar1.Name     = "Toolbar1";
     this.Toolbar1.Size     = new System.Drawing.Size(1370, 42);
     this.Toolbar1.TabIndex = 2;
     //
     // _Toolbar1_Button1
     //
     this._Toolbar1_Button1.AutoSize          = false;
     this._Toolbar1_Button1.Image             = ((System.Drawing.Image)(resources.GetObject("_Toolbar1_Button1.Image")));
     this._Toolbar1_Button1.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this._Toolbar1_Button1.Name              = "_Toolbar1_Button1";
     this._Toolbar1_Button1.Size              = new System.Drawing.Size(40, 39);
     this._Toolbar1_Button1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this._Toolbar1_Button1.ToolTipText       = "Nuevo";
     //
     // _Toolbar1_Button2
     //
     this._Toolbar1_Button2.Name = "_Toolbar1_Button2";
     this._Toolbar1_Button2.Size = new System.Drawing.Size(6, 42);
     //
     // _Toolbar1_Button3
     //
     this._Toolbar1_Button3.AutoSize          = false;
     this._Toolbar1_Button3.Image             = ((System.Drawing.Image)(resources.GetObject("_Toolbar1_Button3.Image")));
     this._Toolbar1_Button3.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this._Toolbar1_Button3.Name              = "_Toolbar1_Button3";
     this._Toolbar1_Button3.Size              = new System.Drawing.Size(40, 39);
     this._Toolbar1_Button3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this._Toolbar1_Button3.ToolTipText       = "Guardar";
     //
     // _Toolbar1_Button4
     //
     this._Toolbar1_Button4.AutoSize = false;
     this._Toolbar1_Button4.Name     = "_Toolbar1_Button4";
     this._Toolbar1_Button4.Size     = new System.Drawing.Size(0, 39);
     //
     // _Toolbar1_Button5
     //
     this._Toolbar1_Button5.AutoSize          = false;
     this._Toolbar1_Button5.Enabled           = false;
     this._Toolbar1_Button5.Image             = ((System.Drawing.Image)(resources.GetObject("_Toolbar1_Button5.Image")));
     this._Toolbar1_Button5.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this._Toolbar1_Button5.Name              = "_Toolbar1_Button5";
     this._Toolbar1_Button5.Size              = new System.Drawing.Size(40, 39);
     this._Toolbar1_Button5.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this._Toolbar1_Button5.ToolTipText       = "Imprimir";
     this._Toolbar1_Button5.Click            += new System.EventHandler(this._Toolbar1_Button5Click);
     //
     // _Toolbar1_Button6
     //
     this._Toolbar1_Button6.Name = "_Toolbar1_Button6";
     this._Toolbar1_Button6.Size = new System.Drawing.Size(6, 42);
     //
     // _Toolbar1_Button7
     //
     this._Toolbar1_Button7.AutoSize          = false;
     this._Toolbar1_Button7.Enabled           = false;
     this._Toolbar1_Button7.Image             = ((System.Drawing.Image)(resources.GetObject("_Toolbar1_Button7.Image")));
     this._Toolbar1_Button7.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this._Toolbar1_Button7.Name              = "_Toolbar1_Button7";
     this._Toolbar1_Button7.Size              = new System.Drawing.Size(40, 39);
     this._Toolbar1_Button7.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this._Toolbar1_Button7.ToolTipText       = "Anular";
     //
     // _Toolbar1_Button8
     //
     this._Toolbar1_Button8.Name = "_Toolbar1_Button8";
     this._Toolbar1_Button8.Size = new System.Drawing.Size(6, 42);
     //
     // _Toolbar1_Button9
     //
     this._Toolbar1_Button9.AutoSize          = false;
     this._Toolbar1_Button9.Enabled           = false;
     this._Toolbar1_Button9.Image             = ((System.Drawing.Image)(resources.GetObject("_Toolbar1_Button9.Image")));
     this._Toolbar1_Button9.ImageScaling      = System.Windows.Forms.ToolStripItemImageScaling.None;
     this._Toolbar1_Button9.Name              = "_Toolbar1_Button9";
     this._Toolbar1_Button9.Size              = new System.Drawing.Size(40, 39);
     this._Toolbar1_Button9.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this._Toolbar1_Button9.ToolTipText       = "Editar";
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabGeneral);
     this.tabControl1.Controls.Add(this.tabDatos);
     this.tabControl1.Controls.Add(this.tabBusqueda);
     this.tabControl1.Location      = new System.Drawing.Point(12, 64);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(976, 321);
     this.tabControl1.TabIndex      = 9;
     //
     // tabGeneral
     //
     this.tabGeneral.Controls.Add(this.Command2);
     this.tabGeneral.Controls.Add(this.Command1);
     this.tabGeneral.Controls.Add(this.Text2);
     this.tabGeneral.Controls.Add(this.Text1);
     this.tabGeneral.Controls.Add(this.Text3);
     this.tabGeneral.Location = new System.Drawing.Point(4, 22);
     this.tabGeneral.Name     = "tabGeneral";
     this.tabGeneral.Padding  = new System.Windows.Forms.Padding(3);
     this.tabGeneral.Size     = new System.Drawing.Size(968, 295);
     this.tabGeneral.TabIndex = 0;
     this.tabGeneral.Text     = "General";
     this.tabGeneral.UseVisualStyleBackColor = true;
     //
     // tabDatos
     //
     this.tabDatos.Controls.Add(this.DataGridView1);
     this.tabDatos.Location = new System.Drawing.Point(4, 22);
     this.tabDatos.Name     = "tabDatos";
     this.tabDatos.Padding  = new System.Windows.Forms.Padding(3);
     this.tabDatos.Size     = new System.Drawing.Size(563, 295);
     this.tabDatos.TabIndex = 1;
     this.tabDatos.Text     = "Datos";
     this.tabDatos.UseVisualStyleBackColor = true;
     //
     // tabBusqueda
     //
     this.tabBusqueda.Controls.Add(this.DataGridView2);
     this.tabBusqueda.Location = new System.Drawing.Point(4, 22);
     this.tabBusqueda.Name     = "tabBusqueda";
     this.tabBusqueda.Size     = new System.Drawing.Size(563, 295);
     this.tabBusqueda.TabIndex = 2;
     this.tabBusqueda.Text     = "Busqueda";
     this.tabBusqueda.UseVisualStyleBackColor = true;
     //
     // DataGridView2
     //
     this.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.DataGridView2.Location = new System.Drawing.Point(161, 72);
     this.DataGridView2.Name     = "DataGridView2";
     this.DataGridView2.Size     = new System.Drawing.Size(240, 150);
     this.DataGridView2.TabIndex = 10;
     //
     // DataGridView1
     //
     this.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.DataGridView1.Location = new System.Drawing.Point(161, 72);
     this.DataGridView1.Name     = "DataGridView1";
     this.DataGridView1.Size     = new System.Drawing.Size(240, 150);
     this.DataGridView1.TabIndex = 9;
     //
     // Command2
     //
     this.Command2.BackColor               = System.Drawing.SystemColors.Control;
     this.Command2.Cursor                  = System.Windows.Forms.Cursors.Default;
     this.Command2.ForeColor               = System.Drawing.SystemColors.ControlText;
     this.Command2.Location                = new System.Drawing.Point(65, 142);
     this.Command2.Name                    = "Command2";
     this.Command2.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.Command2.Size                    = new System.Drawing.Size(153, 25);
     this.Command2.TabIndex                = 12;
     this.Command2.Text                    = "Command2";
     this.Command2.UseVisualStyleBackColor = false;
     //
     // Command1
     //
     this.Command1.BackColor               = System.Drawing.SystemColors.Control;
     this.Command1.Cursor                  = System.Windows.Forms.Cursors.Default;
     this.Command1.ForeColor               = System.Drawing.SystemColors.ControlText;
     this.Command1.Location                = new System.Drawing.Point(49, 62);
     this.Command1.Name                    = "Command1";
     this.Command1.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.Command1.Size                    = new System.Drawing.Size(137, 57);
     this.Command1.TabIndex                = 11;
     this.Command1.Text                    = "Command1";
     this.Command1.UseVisualStyleBackColor = false;
     //
     // Text2
     //
     this.Text2.AcceptsReturn = true;
     this.Text2.BackColor     = System.Drawing.SystemColors.Window;
     this.Text2.Cursor        = System.Windows.Forms.Cursors.IBeam;
     this.Text2.ForeColor     = System.Drawing.SystemColors.WindowText;
     this.Text2.Location      = new System.Drawing.Point(281, 70);
     this.Text2.MaxLength     = 0;
     this.Text2.Name          = "Text2";
     this.Text2.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.Text2.Size          = new System.Drawing.Size(217, 20);
     this.Text2.TabIndex      = 10;
     this.Text2.Text          = "Clientes";
     //
     // Text1
     //
     this.Text1.AcceptsReturn = true;
     this.Text1.BackColor     = System.Drawing.SystemColors.Window;
     this.Text1.Cursor        = System.Windows.Forms.Cursors.IBeam;
     this.Text1.ForeColor     = System.Drawing.SystemColors.WindowText;
     this.Text1.Location      = new System.Drawing.Point(281, 38);
     this.Text1.MaxLength     = 0;
     this.Text1.Name          = "Text1";
     this.Text1.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.Text1.Size          = new System.Drawing.Size(217, 20);
     this.Text1.TabIndex      = 9;
     this.Text1.Text          = "*";
     //
     // Text3
     //
     this.Text3.AcceptsReturn = true;
     this.Text3.BackColor     = System.Drawing.SystemColors.Window;
     this.Text3.Cursor        = System.Windows.Forms.Cursors.IBeam;
     this.Text3.ForeColor     = System.Drawing.SystemColors.WindowText;
     this.Text3.Location      = new System.Drawing.Point(281, 102);
     this.Text3.MaxLength     = 0;
     this.Text3.Name          = "Text3";
     this.Text3.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.Text3.Size          = new System.Drawing.Size(217, 20);
     this.Text3.TabIndex      = 8;
     this.Text3.Text          = "Nombre = N";
     //
     // frmBancos
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.SystemColors.Control;
     this.ClientSize          = new System.Drawing.Size(1370, 749);
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.Toolbar1);
     this.Cursor        = System.Windows.Forms.Cursors.Default;
     this.Location      = new System.Drawing.Point(4, 30);
     this.Name          = "frmBancos";
     this.RightToLeft   = System.Windows.Forms.RightToLeft.No;
     this.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds;
     this.Text          = "ABM Bancos";
     this.Toolbar1.ResumeLayout(false);
     this.Toolbar1.PerformLayout();
     this.tabControl1.ResumeLayout(false);
     this.tabGeneral.ResumeLayout(false);
     this.tabGeneral.PerformLayout();
     this.tabDatos.ResumeLayout(false);
     this.tabBusqueda.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #51
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.Windows.Forms.ToolStripSeparator sep1;
     System.Windows.Forms.ToolStripSeparator sep2;
     System.Windows.Forms.ToolStripSeparator sep3;
     System.Windows.Forms.ToolStripMenuItem  _editMenuItem;
     System.Windows.Forms.ToolStripSeparator sep4;
     System.Windows.Forms.ToolStripSeparator sep5;
     System.Windows.Forms.Panel _stylesPanel;
     System.Windows.Forms.Label _seedLbl;
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
     this._undoMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this._redoMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this._fillStylesGroup       = new System.Windows.Forms.GroupBox();
     this._styleList             = new EscherTiler.StyleListView();
     this._lineStyleGroup        = new System.Windows.Forms.GroupBox();
     this._lineStyleControl      = new EscherTiler.StyleControl();
     this._lineWidthTrack        = new System.Windows.Forms.TrackBar();
     this._greedyStyleManagerPnl = new System.Windows.Forms.Panel();
     this._greedyParamCTrack     = new System.Windows.Forms.TrackBar();
     this._greedyParamBTrack     = new System.Windows.Forms.TrackBar();
     this._greedyParamATrack     = new System.Windows.Forms.TrackBar();
     this._randomStyleMangerPnl  = new System.Windows.Forms.Panel();
     this._randomSeedBtn         = new System.Windows.Forms.Button();
     this._seedNum              = new System.Windows.Forms.NumericUpDown();
     this._styleManagerTypeCmb  = new System.Windows.Forms.ComboBox();
     this._menuStrip            = new System.Windows.Forms.MenuStrip();
     this._fileMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._newMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this._openMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._saveMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._saveAsMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this._pageSetupMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this._printMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this._printPreviewMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this._exitMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._toolsMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this._customizeMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this._optionsMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this._helpMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this._indexMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this._searchMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this._aboutMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this._toolStrip            = new System.Windows.Forms.ToolStrip();
     this._newButton            = new System.Windows.Forms.ToolStripButton();
     this._openButton           = new System.Windows.Forms.ToolStripButton();
     this._saveButton           = new System.Windows.Forms.ToolStripButton();
     this._printButton          = new System.Windows.Forms.ToolStripButton();
     this._helpButton           = new System.Windows.Forms.ToolStripButton();
     this._operationToolStrip   = new System.Windows.Forms.ToolStrip();
     this._panToolBtn           = new System.Windows.Forms.ToolStripButton();
     this._statusStrip          = new System.Windows.Forms.StatusStrip();
     this._statusInfoLabel      = new System.Windows.Forms.ToolStripStatusLabel();
     this._contextToolStrip     = new System.Windows.Forms.ToolStrip();
     this._zoomText             = new System.Windows.Forms.ToolStripTextBox();
     this._changeLineTypeCmb    = new System.Windows.Forms.ToolStripComboBox();
     this._saveFileDialog       = new System.Windows.Forms.SaveFileDialog();
     this._openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this._toolTip              = new System.Windows.Forms.ToolTip(this.components);
     this._renderControl        = new EscherTiler.RenderControl();
     this._pageSetupDialog      = new System.Windows.Forms.PageSetupDialog();
     this._printDocument        = new EscherTiler.Graphics.GDI.TilerPrintDocument();
     this._printDialog          = new System.Windows.Forms.PrintDialog();
     this._printPreviewDialog   = new System.Windows.Forms.PrintPreviewDialog();
     sep1          = new System.Windows.Forms.ToolStripSeparator();
     sep2          = new System.Windows.Forms.ToolStripSeparator();
     sep3          = new System.Windows.Forms.ToolStripSeparator();
     _editMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     sep4          = new System.Windows.Forms.ToolStripSeparator();
     sep5          = new System.Windows.Forms.ToolStripSeparator();
     _stylesPanel  = new System.Windows.Forms.Panel();
     _seedLbl      = new System.Windows.Forms.Label();
     _stylesPanel.SuspendLayout();
     this._fillStylesGroup.SuspendLayout();
     this._lineStyleGroup.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._lineWidthTrack)).BeginInit();
     this._greedyStyleManagerPnl.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamCTrack)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamBTrack)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamATrack)).BeginInit();
     this._randomStyleMangerPnl.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._seedNum)).BeginInit();
     this._menuStrip.SuspendLayout();
     this._toolStrip.SuspendLayout();
     this._operationToolStrip.SuspendLayout();
     this._statusStrip.SuspendLayout();
     this._contextToolStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // sep1
     //
     sep1.Name = "sep1";
     sep1.Size = new System.Drawing.Size(143, 6);
     //
     // sep2
     //
     sep2.Name = "sep2";
     sep2.Size = new System.Drawing.Size(143, 6);
     //
     // sep3
     //
     sep3.Name = "sep3";
     sep3.Size = new System.Drawing.Size(143, 6);
     //
     // _editMenuItem
     //
     _editMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._undoMenuItem,
         this._redoMenuItem
     });
     _editMenuItem.Name    = "_editMenuItem";
     _editMenuItem.Size    = new System.Drawing.Size(39, 20);
     _editMenuItem.Text    = "&Edit";
     _editMenuItem.Visible = false;
     //
     // _undoMenuItem
     //
     this._undoMenuItem.Name         = "_undoMenuItem";
     this._undoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
     this._undoMenuItem.Size         = new System.Drawing.Size(144, 22);
     this._undoMenuItem.Text         = "&Undo";
     this._undoMenuItem.Click       += new System.EventHandler(this.undoMenuItem_Click);
     //
     // _redoMenuItem
     //
     this._redoMenuItem.Name         = "_redoMenuItem";
     this._redoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
     this._redoMenuItem.Size         = new System.Drawing.Size(144, 22);
     this._redoMenuItem.Text         = "&Redo";
     this._redoMenuItem.Click       += new System.EventHandler(this.redoMenuItem_Click);
     //
     // sep4
     //
     sep4.Name = "sep4";
     sep4.Size = new System.Drawing.Size(113, 6);
     //
     // sep5
     //
     sep5.Name = "sep5";
     sep5.Size = new System.Drawing.Size(6, 25);
     //
     // _stylesPanel
     //
     _stylesPanel.Controls.Add(this._fillStylesGroup);
     _stylesPanel.Controls.Add(this._lineStyleGroup);
     _stylesPanel.Controls.Add(this._greedyStyleManagerPnl);
     _stylesPanel.Controls.Add(this._randomStyleMangerPnl);
     _stylesPanel.Controls.Add(this._styleManagerTypeCmb);
     _stylesPanel.Dock     = System.Windows.Forms.DockStyle.Right;
     _stylesPanel.Location = new System.Drawing.Point(789, 49);
     _stylesPanel.Name     = "_stylesPanel";
     _stylesPanel.Size     = new System.Drawing.Size(195, 565);
     _stylesPanel.TabIndex = 6;
     _stylesPanel.Visible  = true;
     //
     // _fillStylesGroup
     //
     this._fillStylesGroup.Controls.Add(this._styleList);
     this._fillStylesGroup.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._fillStylesGroup.Enabled  = false;
     this._fillStylesGroup.Location = new System.Drawing.Point(0, 257);
     this._fillStylesGroup.Name     = "_fillStylesGroup";
     this._fillStylesGroup.Size     = new System.Drawing.Size(195, 308);
     this._fillStylesGroup.TabIndex = 5;
     this._fillStylesGroup.TabStop  = false;
     this._fillStylesGroup.Text     = "Fill styles";
     //
     // _styleList
     //
     this._styleList.Dock           = System.Windows.Forms.DockStyle.Fill;
     this._styleList.Location       = new System.Drawing.Point(3, 16);
     this._styleList.Name           = "_styleList";
     this._styleList.Size           = new System.Drawing.Size(189, 289);
     this._styleList.TabIndex       = 3;
     this._styleList.StylesChanged += new System.EventHandler(this._styleList_StylesChanged);
     //
     // _lineStyleGroup
     //
     this._lineStyleGroup.Controls.Add(this._lineStyleControl);
     this._lineStyleGroup.Controls.Add(this._lineWidthTrack);
     this._lineStyleGroup.Dock     = System.Windows.Forms.DockStyle.Top;
     this._lineStyleGroup.Enabled  = false;
     this._lineStyleGroup.Location = new System.Drawing.Point(0, 149);
     this._lineStyleGroup.Name     = "_lineStyleGroup";
     this._lineStyleGroup.Size     = new System.Drawing.Size(195, 108);
     this._lineStyleGroup.TabIndex = 4;
     this._lineStyleGroup.TabStop  = false;
     this._lineStyleGroup.Text     = "Line style";
     //
     // _lineStyleControl
     //
     this._lineStyleControl.Dock          = System.Windows.Forms.DockStyle.Fill;
     this._lineStyleControl.Location      = new System.Drawing.Point(3, 49);
     this._lineStyleControl.Name          = "_lineStyleControl";
     this._lineStyleControl.Size          = new System.Drawing.Size(189, 56);
     this._lineStyleControl.Style         = null;
     this._lineStyleControl.TabIndex      = 1;
     this._lineStyleControl.StyleChanged += new System.EventHandler(this._lineStyleControl_StyleChanged);
     //
     // _lineWidthTrack
     //
     this._lineWidthTrack.AutoSize      = false;
     this._lineWidthTrack.Dock          = System.Windows.Forms.DockStyle.Top;
     this._lineWidthTrack.Location      = new System.Drawing.Point(3, 16);
     this._lineWidthTrack.Maximum       = 100;
     this._lineWidthTrack.Name          = "_lineWidthTrack";
     this._lineWidthTrack.Size          = new System.Drawing.Size(189, 33);
     this._lineWidthTrack.TabIndex      = 0;
     this._lineWidthTrack.TickFrequency = 10;
     this._toolTip.SetToolTip(this._lineWidthTrack, "The width of the line");
     this._lineWidthTrack.Value         = 10;
     this._lineWidthTrack.Scroll       += new System.EventHandler(this._lineWidthTrack_ValueChanged);
     this._lineWidthTrack.ValueChanged += new System.EventHandler(this._lineWidthTrack_ValueChanged);
     //
     // _greedyStyleManagerPnl
     //
     this._greedyStyleManagerPnl.Controls.Add(this._greedyParamCTrack);
     this._greedyStyleManagerPnl.Controls.Add(this._greedyParamBTrack);
     this._greedyStyleManagerPnl.Controls.Add(this._greedyParamATrack);
     this._greedyStyleManagerPnl.Dock            = System.Windows.Forms.DockStyle.Top;
     this._greedyStyleManagerPnl.Location        = new System.Drawing.Point(0, 47);
     this._greedyStyleManagerPnl.Name            = "_greedyStyleManagerPnl";
     this._greedyStyleManagerPnl.Size            = new System.Drawing.Size(195, 102);
     this._greedyStyleManagerPnl.TabIndex        = 2;
     this._greedyStyleManagerPnl.Visible         = false;
     this._greedyStyleManagerPnl.VisibleChanged += new System.EventHandler(this.StyleManagerPanel_VisibleChanged);
     //
     // _greedyParamCTrack
     //
     this._greedyParamCTrack.AutoSize      = false;
     this._greedyParamCTrack.Dock          = System.Windows.Forms.DockStyle.Top;
     this._greedyParamCTrack.Location      = new System.Drawing.Point(0, 66);
     this._greedyParamCTrack.Name          = "_greedyParamCTrack";
     this._greedyParamCTrack.Size          = new System.Drawing.Size(195, 33);
     this._greedyParamCTrack.TabIndex      = 2;
     this._greedyParamCTrack.ValueChanged += new System.EventHandler(this._greedyParamCTrack_ValueChanged);
     //
     // _greedyParamBTrack
     //
     this._greedyParamBTrack.AutoSize      = false;
     this._greedyParamBTrack.Dock          = System.Windows.Forms.DockStyle.Top;
     this._greedyParamBTrack.Location      = new System.Drawing.Point(0, 33);
     this._greedyParamBTrack.Name          = "_greedyParamBTrack";
     this._greedyParamBTrack.Size          = new System.Drawing.Size(195, 33);
     this._greedyParamBTrack.TabIndex      = 1;
     this._greedyParamBTrack.ValueChanged += new System.EventHandler(this._greedyParamBTrack_ValueChanged);
     //
     // _greedyParamATrack
     //
     this._greedyParamATrack.AutoSize      = false;
     this._greedyParamATrack.Dock          = System.Windows.Forms.DockStyle.Top;
     this._greedyParamATrack.Location      = new System.Drawing.Point(0, 0);
     this._greedyParamATrack.Name          = "_greedyParamATrack";
     this._greedyParamATrack.Size          = new System.Drawing.Size(195, 33);
     this._greedyParamATrack.TabIndex      = 0;
     this._greedyParamATrack.ValueChanged += new System.EventHandler(this._greedyParamATrack_ValueChanged);
     //
     // _randomStyleMangerPnl
     //
     this._randomStyleMangerPnl.Controls.Add(this._randomSeedBtn);
     this._randomStyleMangerPnl.Controls.Add(this._seedNum);
     this._randomStyleMangerPnl.Controls.Add(_seedLbl);
     this._randomStyleMangerPnl.Dock            = System.Windows.Forms.DockStyle.Top;
     this._randomStyleMangerPnl.Location        = new System.Drawing.Point(0, 21);
     this._randomStyleMangerPnl.Name            = "_randomStyleMangerPnl";
     this._randomStyleMangerPnl.Size            = new System.Drawing.Size(195, 26);
     this._randomStyleMangerPnl.TabIndex        = 1;
     this._randomStyleMangerPnl.Visible         = false;
     this._randomStyleMangerPnl.VisibleChanged += new System.EventHandler(this.StyleManagerPanel_VisibleChanged);
     //
     // _randomSeedBtn
     //
     this._randomSeedBtn.Location = new System.Drawing.Point(136, 2);
     this._randomSeedBtn.Name     = "_randomSeedBtn";
     this._randomSeedBtn.Size     = new System.Drawing.Size(56, 22);
     this._randomSeedBtn.TabIndex = 2;
     this._randomSeedBtn.Text     = "&Random";
     this._toolTip.SetToolTip(this._randomSeedBtn, "Picks a random seed");
     this._randomSeedBtn.UseVisualStyleBackColor = true;
     this._randomSeedBtn.Click += new System.EventHandler(this._randomSeedBtn_Click);
     //
     // _seedNum
     //
     this._seedNum.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this._seedNum.Location = new System.Drawing.Point(44, 3);
     this._seedNum.Maximum  = new decimal(new int[] {
         2147483647,
         0,
         0,
         0
     });
     this._seedNum.Minimum = new decimal(new int[] {
         -2147483648,
         0,
         0,
         -2147483648
     });
     this._seedNum.Name          = "_seedNum";
     this._seedNum.Size          = new System.Drawing.Size(86, 20);
     this._seedNum.TabIndex      = 1;
     this._seedNum.ValueChanged += new System.EventHandler(this._seedNum_ValueChanged);
     //
     // _seedLbl
     //
     _seedLbl.AutoSize = true;
     _seedLbl.Location = new System.Drawing.Point(3, 6);
     _seedLbl.Name     = "_seedLbl";
     _seedLbl.Size     = new System.Drawing.Size(35, 13);
     _seedLbl.TabIndex = 0;
     _seedLbl.Text     = "Seed:";
     //
     // _styleManagerTypeCmb
     //
     this._styleManagerTypeCmb.Dock                  = System.Windows.Forms.DockStyle.Top;
     this._styleManagerTypeCmb.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._styleManagerTypeCmb.Enabled               = false;
     this._styleManagerTypeCmb.FormattingEnabled     = true;
     this._styleManagerTypeCmb.Location              = new System.Drawing.Point(0, 0);
     this._styleManagerTypeCmb.Name                  = "_styleManagerTypeCmb";
     this._styleManagerTypeCmb.Size                  = new System.Drawing.Size(195, 21);
     this._styleManagerTypeCmb.TabIndex              = 0;
     this._styleManagerTypeCmb.SelectedIndexChanged += new System.EventHandler(this._styleManagerTypeCmb_SelectedIndexChanged);
     //
     // _menuStrip
     //
     this._menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._fileMenuItem,
         _editMenuItem,
         this._toolsMenuItem,
         this._helpMenuItem
     });
     this._menuStrip.Location = new System.Drawing.Point(0, 0);
     this._menuStrip.Name     = "_menuStrip";
     this._menuStrip.Size     = new System.Drawing.Size(984, 24);
     this._menuStrip.TabIndex = 0;
     this._menuStrip.Text     = "Menu";
     //
     // _fileMenuItem
     //
     this._fileMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._newMenuItem,
         this._openMenuItem,
         sep1,
         this._saveMenuItem,
         this._saveAsMenuItem,
         sep2,
         this._pageSetupMenuItem,
         this._printMenuItem,
         this._printPreviewMenuItem,
         sep3,
         this._exitMenuItem
     });
     this._fileMenuItem.Name = "_fileMenuItem";
     this._fileMenuItem.Size = new System.Drawing.Size(37, 20);
     this._fileMenuItem.Text = "&File";
     //
     // _newMenuItem
     //
     this._newMenuItem.Image = global::EscherTiler.Properties.Resources.NewIcon;
     this._newMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._newMenuItem.Name         = "_newMenuItem";
     this._newMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     this._newMenuItem.Size         = new System.Drawing.Size(146, 22);
     this._newMenuItem.Text         = "&New";
     this._newMenuItem.Click       += new System.EventHandler(this.newMenuItem_Click);
     //
     // _openMenuItem
     //
     this._openMenuItem.Image = global::EscherTiler.Properties.Resources.OpenIcon;
     this._openMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._openMenuItem.Name         = "_openMenuItem";
     this._openMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this._openMenuItem.Size         = new System.Drawing.Size(146, 22);
     this._openMenuItem.Text         = "&Open";
     this._openMenuItem.Click       += new System.EventHandler(this.openMenuItem_Click);
     //
     // _saveMenuItem
     //
     this._saveMenuItem.Image = global::EscherTiler.Properties.Resources.SaveIcon;
     this._saveMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._saveMenuItem.Name         = "_saveMenuItem";
     this._saveMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     this._saveMenuItem.Size         = new System.Drawing.Size(146, 22);
     this._saveMenuItem.Text         = "&Save";
     this._saveMenuItem.Click       += new System.EventHandler(this.saveMenuItem_Click);
     //
     // _saveAsMenuItem
     //
     this._saveAsMenuItem.Name   = "_saveAsMenuItem";
     this._saveAsMenuItem.Size   = new System.Drawing.Size(146, 22);
     this._saveAsMenuItem.Text   = "Save &As";
     this._saveAsMenuItem.Click += new System.EventHandler(this.saveAsMenuItem_Click);
     //
     // _pageSetupMenuItem
     //
     this._pageSetupMenuItem.Name   = "_pageSetupMenuItem";
     this._pageSetupMenuItem.Size   = new System.Drawing.Size(146, 22);
     this._pageSetupMenuItem.Text   = "Page Set&up";
     this._pageSetupMenuItem.Click += new System.EventHandler(this._pageSetupMenuItem_Click);
     //
     // _printMenuItem
     //
     this._printMenuItem.Image = global::EscherTiler.Properties.Resources.PrintIcon;
     this._printMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._printMenuItem.Name         = "_printMenuItem";
     this._printMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
     this._printMenuItem.Size         = new System.Drawing.Size(146, 22);
     this._printMenuItem.Text         = "&Print";
     this._printMenuItem.Click       += new System.EventHandler(this.printMenuItem_Click);
     //
     // _printPreviewMenuItem
     //
     this._printPreviewMenuItem.Image = global::EscherTiler.Properties.Resources.PrintPreviewIcon;
     this._printPreviewMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._printPreviewMenuItem.Name   = "_printPreviewMenuItem";
     this._printPreviewMenuItem.Size   = new System.Drawing.Size(146, 22);
     this._printPreviewMenuItem.Text   = "Print Pre&view";
     this._printPreviewMenuItem.Click += new System.EventHandler(this.printPreviewMenuItem_Click);
     //
     // _exitMenuItem
     //
     this._exitMenuItem.Name   = "_exitMenuItem";
     this._exitMenuItem.Size   = new System.Drawing.Size(146, 22);
     this._exitMenuItem.Text   = "E&xit";
     this._exitMenuItem.Click += new System.EventHandler(this.exitMenuItem_Click);
     //
     // _toolsMenuItem
     //
     this._toolsMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._customizeMenuItem,
         this._optionsMenuItem
     });
     this._toolsMenuItem.Name    = "_toolsMenuItem";
     this._toolsMenuItem.Size    = new System.Drawing.Size(47, 20);
     this._toolsMenuItem.Text    = "&Tools";
     this._toolsMenuItem.Visible = false;
     //
     // _customizeMenuItem
     //
     this._customizeMenuItem.Name = "_customizeMenuItem";
     this._customizeMenuItem.Size = new System.Drawing.Size(130, 22);
     this._customizeMenuItem.Text = "&Customize";
     //
     // _optionsMenuItem
     //
     this._optionsMenuItem.Name = "_optionsMenuItem";
     this._optionsMenuItem.Size = new System.Drawing.Size(130, 22);
     this._optionsMenuItem.Text = "&Options";
     //
     // _helpMenuItem
     //
     this._helpMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._indexMenuItem,
         this._searchMenuItem,
         sep4,
         this._aboutMenuItem
     });
     this._helpMenuItem.Name = "_helpMenuItem";
     this._helpMenuItem.Size = new System.Drawing.Size(44, 20);
     this._helpMenuItem.Text = "&Help";
     //
     // _indexMenuItem
     //
     this._indexMenuItem.Name   = "_indexMenuItem";
     this._indexMenuItem.Size   = new System.Drawing.Size(116, 22);
     this._indexMenuItem.Text   = "&Index";
     this._indexMenuItem.Click += new System.EventHandler(this.indexMenuItem_Click);
     //
     // _searchMenuItem
     //
     this._searchMenuItem.Name   = "_searchMenuItem";
     this._searchMenuItem.Size   = new System.Drawing.Size(116, 22);
     this._searchMenuItem.Text   = "&Search";
     this._searchMenuItem.Click += new System.EventHandler(this.searchMenuItem_Click);
     //
     // _aboutMenuItem
     //
     this._aboutMenuItem.Name   = "_aboutMenuItem";
     this._aboutMenuItem.Size   = new System.Drawing.Size(116, 22);
     this._aboutMenuItem.Text   = "&About...";
     this._aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click);
     //
     // _toolStrip
     //
     this._toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this._toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._newButton,
         this._openButton,
         this._saveButton,
         this._printButton,
         sep5,
         this._helpButton
     });
     this._toolStrip.Location = new System.Drawing.Point(0, 24);
     this._toolStrip.Name     = "_toolStrip";
     this._toolStrip.Size     = new System.Drawing.Size(984, 25);
     this._toolStrip.TabIndex = 1;
     this._toolStrip.Text     = "Tools";
     //
     // _newButton
     //
     this._newButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._newButton.Image                 = global::EscherTiler.Properties.Resources.NewIcon;
     this._newButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._newButton.Name   = "_newButton";
     this._newButton.Size   = new System.Drawing.Size(23, 22);
     this._newButton.Text   = "&New";
     this._newButton.Click += new System.EventHandler(this.newButton_Click);
     //
     // _openButton
     //
     this._openButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._openButton.Image                 = global::EscherTiler.Properties.Resources.OpenIcon;
     this._openButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._openButton.Name   = "_openButton";
     this._openButton.Size   = new System.Drawing.Size(23, 22);
     this._openButton.Text   = "&Open";
     this._openButton.Click += new System.EventHandler(this.openButton_Click);
     //
     // _saveButton
     //
     this._saveButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._saveButton.Image                 = global::EscherTiler.Properties.Resources.SaveIcon;
     this._saveButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._saveButton.Name   = "_saveButton";
     this._saveButton.Size   = new System.Drawing.Size(23, 22);
     this._saveButton.Text   = "&Save";
     this._saveButton.Click += new System.EventHandler(this.saveButton_Click);
     //
     // _printButton
     //
     this._printButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._printButton.Image                 = global::EscherTiler.Properties.Resources.PrintIcon;
     this._printButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._printButton.Name   = "_printButton";
     this._printButton.Size   = new System.Drawing.Size(23, 22);
     this._printButton.Text   = "&Print";
     this._printButton.Click += new System.EventHandler(this.printButton_Click);
     //
     // _helpButton
     //
     this._helpButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._helpButton.Image                 = global::EscherTiler.Properties.Resources.HelpIcon;
     this._helpButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._helpButton.Name   = "_helpButton";
     this._helpButton.Size   = new System.Drawing.Size(23, 22);
     this._helpButton.Text   = "He&lp";
     this._helpButton.Click += new System.EventHandler(this.helpButton_Click);
     //
     // _operationToolStrip
     //
     this._operationToolStrip.AutoSize  = false;
     this._operationToolStrip.Dock      = System.Windows.Forms.DockStyle.Left;
     this._operationToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this._operationToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._panToolBtn
     });
     this._operationToolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
     this._operationToolStrip.Location    = new System.Drawing.Point(0, 49);
     this._operationToolStrip.Name        = "_operationToolStrip";
     this._operationToolStrip.Size        = new System.Drawing.Size(41, 590);
     this._operationToolStrip.TabIndex    = 2;
     this._operationToolStrip.Text        = "Operations";
     //
     // _panToolBtn
     //
     this._panToolBtn.AutoSize              = false;
     this._panToolBtn.Checked               = true;
     this._panToolBtn.CheckState            = System.Windows.Forms.CheckState.Checked;
     this._panToolBtn.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this._panToolBtn.Image                 = global::EscherTiler.Properties.Resources.PanTool_Icon;
     this._panToolBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
     this._panToolBtn.Name   = "_panToolBtn";
     this._panToolBtn.Size   = new System.Drawing.Size(20, 20);
     this._panToolBtn.Text   = "Pan";
     this._panToolBtn.Click += new System.EventHandler(this.toolBtn_Click);
     //
     // _statusStrip
     //
     this._statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._statusInfoLabel
     });
     this._statusStrip.Location = new System.Drawing.Point(0, 639);
     this._statusStrip.Name     = "_statusStrip";
     this._statusStrip.Size     = new System.Drawing.Size(984, 22);
     this._statusStrip.TabIndex = 3;
     this._statusStrip.Text     = "Status";
     //
     // _statusInfoLabel
     //
     this._statusInfoLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Italic);
     this._statusInfoLabel.Name = "_statusInfoLabel";
     this._statusInfoLabel.Size = new System.Drawing.Size(112, 17);
     this._statusInfoLabel.Text = "[Status Information]";
     //
     // _contextToolStrip
     //
     this._contextToolStrip.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this._contextToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this._contextToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this._zoomText,
         this._changeLineTypeCmb
     });
     this._contextToolStrip.Location = new System.Drawing.Point(41, 614);
     this._contextToolStrip.Name     = "_contextToolStrip";
     this._contextToolStrip.Size     = new System.Drawing.Size(943, 25);
     this._contextToolStrip.TabIndex = 4;
     this._contextToolStrip.Text     = "Context Tools";
     //
     // _zoomText
     //
     this._zoomText.Alignment        = System.Windows.Forms.ToolStripItemAlignment.Right;
     this._zoomText.AutoSize         = false;
     this._zoomText.BackColor        = System.Drawing.SystemColors.Window;
     this._zoomText.Name             = "_zoomText";
     this._zoomText.Size             = new System.Drawing.Size(50, 25);
     this._zoomText.Text             = "100%";
     this._zoomText.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this._zoomText.WordWrap         = false;
     this._zoomText.Leave           += new System.EventHandler(this.zoomText_Leave);
     //
     // _changeLineTypeCmb
     //
     this._changeLineTypeCmb.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._changeLineTypeCmb.Name                  = "_changeLineTypeCmb";
     this._changeLineTypeCmb.Size                  = new System.Drawing.Size(121, 25);
     this._changeLineTypeCmb.Visible               = false;
     this._changeLineTypeCmb.SelectedIndexChanged += new System.EventHandler(this.changeLineTypeCmb_SelectedIndexChanged);
     //
     // _saveFileDialog
     //
     this._saveFileDialog.DefaultExt = "esch";
     this._saveFileDialog.Filter     = "Tiling|*.esch";
     //
     // _openFileDialog
     //
     this._openFileDialog.DefaultExt = "esch";
     this._openFileDialog.Filter     = "Tiling|*.esch";
     //
     // _renderControl
     //
     this._renderControl.Cursor      = System.Windows.Forms.Cursors.Cross;
     this._renderControl.Dock        = System.Windows.Forms.DockStyle.Fill;
     this._renderControl.Location    = new System.Drawing.Point(41, 49);
     this._renderControl.Name        = "_renderControl";
     this._renderControl.Size        = new System.Drawing.Size(748, 565);
     this._renderControl.TabIndex    = 5;
     this._renderControl.Render     += new EscherTiler.RenderDelegate(this.renderControl_Render);
     this._renderControl.Layout     += new System.Windows.Forms.LayoutEventHandler(this.renderControl_Layout);
     this._renderControl.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseDown);
     this._renderControl.MouseLeave += new System.EventHandler(this.renderControl_MouseLeave);
     this._renderControl.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseMove);
     this._renderControl.MouseUp    += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseUp);
     //
     // _pageSetupDialog
     //
     this._pageSetupDialog.Document     = this._printDocument;
     this._pageSetupDialog.EnableMetric = true;
     //
     // _printDocument
     //
     this._printDocument.DocumentName = "Tiling";
     this._printDocument.PrintMode    = EscherTiler.Graphics.GDI.TilingPrintMode.TilingFull;
     this._printDocument.Tile         = null;
     this._printDocument.Tiling       = null;
     //
     // _printDialog
     //
     this._printDialog.Document    = this._printDocument;
     this._printDialog.UseEXDialog = true;
     //
     // _printPreviewDialog
     //
     this._printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this._printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this._printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this._printPreviewDialog.Document          = this._printDocument;
     this._printPreviewDialog.Enabled           = true;
     this._printPreviewDialog.Icon         = ((System.Drawing.Icon)(resources.GetObject("_printPreviewDialog.Icon")));
     this._printPreviewDialog.Name         = "_printPreviewDialog";
     this._printPreviewDialog.UseAntiAlias = true;
     this._printPreviewDialog.Visible      = false;
     //
     // Main
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(984, 661);
     this.Controls.Add(this._renderControl);
     this.Controls.Add(_stylesPanel);
     this.Controls.Add(this._contextToolStrip);
     this.Controls.Add(this._operationToolStrip);
     this.Controls.Add(this._toolStrip);
     this.Controls.Add(this._menuStrip);
     this.Controls.Add(this._statusStrip);
     this.MainMenuStrip = this._menuStrip;
     this.MinimumSize   = new System.Drawing.Size(600, 450);
     this.Name          = "Main";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text          = "Escher Tiler";
     this.Click        += new System.EventHandler(this.toolBtn_Click);
     _stylesPanel.ResumeLayout(false);
     this._fillStylesGroup.ResumeLayout(false);
     this._lineStyleGroup.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._lineWidthTrack)).EndInit();
     this._greedyStyleManagerPnl.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamCTrack)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamBTrack)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._greedyParamATrack)).EndInit();
     this._randomStyleMangerPnl.ResumeLayout(false);
     this._randomStyleMangerPnl.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._seedNum)).EndInit();
     this._menuStrip.ResumeLayout(false);
     this._menuStrip.PerformLayout();
     this._toolStrip.ResumeLayout(false);
     this._toolStrip.PerformLayout();
     this._operationToolStrip.ResumeLayout(false);
     this._operationToolStrip.PerformLayout();
     this._statusStrip.ResumeLayout(false);
     this._statusStrip.PerformLayout();
     this._contextToolStrip.ResumeLayout(false);
     this._contextToolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #52
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();
        }
コード例 #53
0
        public AnalogArduinoDueToolbar(AnalogArduinoDue osc, GraphControl gc)
        {
            oscillo      = osc;
            graphControl = gc;

            this.toolStrip = new System.Windows.Forms.ToolStrip();

            this.triggerLabel = new System.Windows.Forms.ToolStripLabel();
            this.trigger      = new OnlyNumbersToolStripTextBox();

            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();

            this.sampleCountLabel = new System.Windows.Forms.ToolStripLabel();
            this.sampleCount      = new OnlyNumbersToolStripTextBox();

            //
            // toolStrip2
            //
            this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.triggerLabel,
                this.trigger,
                this.toolStripSeparator1,
                this.sampleCountLabel,
                this.sampleCount
            });
            this.toolStrip.Location = new System.Drawing.Point(3, 0);
            this.toolStrip.Name     = "toolStrip2";
            this.toolStrip.Size     = new System.Drawing.Size(243, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text     = "toolStrip2";
            //
            // triggerLabel
            //
            this.triggerLabel.Name = "triggerLabel";
            this.triggerLabel.Size = new System.Drawing.Size(42, 22);
            this.triggerLabel.Text = "trigger";
            //
            // trigger
            //
            this.trigger.Name       = "trigger";
            this.trigger.Size       = new System.Drawing.Size(50, 25);
            this.trigger.Text       = "0";
            this.trigger.textReady += new EventHandler(trigger_textReady);
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);

            //
            // sampleCountLabel
            //
            this.sampleCountLabel.Size = new System.Drawing.Size(54, 22);
            this.sampleCountLabel.Text = "time(ms)";

            //
            // sampleCountLabel
            //
            this.sampleCount.Size       = new System.Drawing.Size(54, 22);
            this.sampleCount.Text       = "20";
            this.sampleCount.textReady += new EventHandler(sampleCount_textReady);

            //set values
            oscillo.SetTriggerVoltage(byte.Parse(trigger.Text));
            oscillo.SetMeasuringTime(int.Parse(sampleCount.Text));
        }
コード例 #54
0
        protected void CreateSimpleMainMenuAndToolAndStatusBar()
        {
            this.toolBar             = new System.Windows.Forms.ToolStrip();
            this.mainMenu            = new System.Windows.Forms.MenuStrip();
            this.menuItemFile        = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemDict        = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemView        = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemTools       = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemWindow      = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemHelp        = new System.Windows.Forms.ToolStripMenuItem();
            this.menuItemLayouts     = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.saveDatabaseButton  = new System.Windows.Forms.ToolStripButton();


            this.statusBar = new System.Windows.Forms.StatusStrip();
            this.mainMenu.SuspendLayout();
            this.SuspendLayout();
            //
            // notificationTimer
            //
            this.notificationTimer.Enabled = true;
            //
            // dockPanel
            //
            this.dockPanel.Size = new System.Drawing.Size(771, 398);
            //
            // toolBar
            //
            this.toolBar.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.toolBar.Location         = new System.Drawing.Point(0, 28);
            this.toolBar.Name             = "toolBar";
            this.toolBar.Size             = new System.Drawing.Size(771, 25);
            this.toolBar.TabIndex         = 21;
            this.toolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.saveDatabaseButton
            });
            //
            // mainMenu
            //
            this.mainMenu.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.menuItemFile,
                this.menuItemLayouts,
                this.menuItemDict,
                this.menuItemView,
                this.menuItemTools,
                this.menuItemWindow,
                this.menuItemHelp
            });
            this.mainMenu.Location          = new System.Drawing.Point(0, 0);
            this.mainMenu.MdiWindowListItem = this.menuItemWindow;
            this.mainMenu.Name     = "mainMenu";
            this.mainMenu.Size     = new System.Drawing.Size(771, 28);
            this.mainMenu.TabIndex = 20;
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(63, 6);
            //
            // menuItemFile
            //
            this.menuItemFile.Name = "menuItemFile";
            this.menuItemFile.Size = new System.Drawing.Size(44, 24);
            this.menuItemFile.Text = FrwCRUDRes.File;
            //
            // menuItemDict
            //
            this.menuItemDict.Name = "menuItemDict";
            this.menuItemDict.Size = new System.Drawing.Size(100, 24);
            this.menuItemDict.Text = FrwCRUDRes.Dictionaries;
            //
            // menuItemView
            //
            this.menuItemView.MergeIndex = 1;
            this.menuItemView.Name       = "menuItemView";
            this.menuItemView.Size       = new System.Drawing.Size(53, 24);
            this.menuItemView.Text       = FrwCRUDRes.Menu_View;
            //
            // menuItemTools
            //
            this.menuItemTools.MergeIndex = 2;
            this.menuItemTools.Name       = "menuItemTools";
            this.menuItemTools.Size       = new System.Drawing.Size(56, 24);
            this.menuItemTools.Text       = FrwCRUDRes.Tools;
            //
            // menuItemWindow
            //
            this.menuItemWindow.MergeIndex = 2;
            this.menuItemWindow.Name       = "menuItemWindow";
            this.menuItemWindow.Size       = new System.Drawing.Size(76, 24);
            this.menuItemWindow.Text       = FrwCRUDRes.Window;
            //
            // menuItemHelp
            //
            this.menuItemHelp.MergeIndex = 3;
            this.menuItemHelp.Name       = "menuItemHelp";
            this.menuItemHelp.Size       = new System.Drawing.Size(53, 24);
            this.menuItemHelp.Text       = FrwCRUDRes.Help;
            //
            // menuItemLayouts
            //
            this.menuItemLayouts.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripSeparator1
            });
            this.menuItemLayouts.Name   = "menuItemLayouts";
            this.menuItemLayouts.Size   = new System.Drawing.Size(124, 24);
            this.menuItemLayouts.Text   = FrwCRUDRes.Layout;
            this.menuItemLayouts.Click += new System.EventHandler(this.menuItemLayouts_Click);
            //
            // saveDatabaseButton
            //
            this.saveDatabaseButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.saveDatabaseButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.saveDatabaseButton.Name   = "saveDatabaseButton";
            this.saveDatabaseButton.Image  = Properties.Resources.save;
            this.saveDatabaseButton.Size   = new System.Drawing.Size(23, 24);
            this.saveDatabaseButton.Text   = FrwCRUDRes.Save_all_entities_data;
            this.saveDatabaseButton.Click += new System.EventHandler(this.saveDatabaseButton_Click);
            //
            // statusBar
            //
            this.statusBar.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.statusBar.Location         = new System.Drawing.Point(0, 376);
            this.statusBar.Name             = "statusBar";
            this.statusBar.RightToLeft      = System.Windows.Forms.RightToLeft.Yes;
            this.statusBar.ShowItemToolTips = true;
            this.statusBar.Size             = new System.Drawing.Size(771, 22);
            this.statusBar.TabIndex         = 22;
            //
            // WebAccountMainForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(771, 398);
            this.Controls.Add(this.toolBar);
            this.Controls.Add(this.mainMenu);
            this.Controls.Add(this.statusBar);
            this.DocPanelBounds = new System.Drawing.Rectangle(19, 19, 789, 445);
            this.Name           = "MainForm";
            this.Text           = "MainForm";
            this.Controls.SetChildIndex(this.dockPanel, 0);
            this.Controls.SetChildIndex(this.statusBar, 0);
            this.Controls.SetChildIndex(this.mainMenu, 0);
            this.Controls.SetChildIndex(this.toolBar, 0);
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
コード例 #55
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.ButtonInsert = new System.Windows.Forms.Button();
     this.ButtonName   = new System.Windows.Forms.Button();
     this.Label10      = new System.Windows.Forms.Label();
     this.Label9       = new System.Windows.Forms.Label();
     this.GroupBox1    = new System.Windows.Forms.GroupBox();
     this.Label8       = new System.Windows.Forms.Label();
     this.Label7       = new System.Windows.Forms.Label();
     this.Label6       = new System.Windows.Forms.Label();
     this.Label4       = new System.Windows.Forms.Label();
     this.Label5       = new System.Windows.Forms.Label();
     this.btInsert     = new System.Windows.Forms.Button();
     this.txtName      = new System.Windows.Forms.TextBox();
     this.Label3       = new System.Windows.Forms.Label();
     this.txtIndex     = new System.Windows.Forms.TextBox();
     this.Label2       = new System.Windows.Forms.Label();
     this.btFolder     = new System.Windows.Forms.Button();
     this.Label1       = new System.Windows.Forms.Label();
     this.txtFolder    = new System.Windows.Forms.TextBox();
     this.Keyboard1    = new Limnor.InputDevice.Keyboard();
     this.ApplicationConfiguration1 = new Limnor.Application.ApplicationConfiguration();
     this.components                  = new System.ComponentModel.Container();
     this.NotifyIcon1                 = new System.Windows.Forms.NotifyIcon(this.components);
     this.mi1e23a49e                  = new System.Windows.Forms.ToolStripMenuItem();
     this.ShowSettingsMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.ContextMenuStrip1           = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.WindowsManager1             = new Limnor.Windows.WindowsManager(this.components);
     this.ToolStripMenuItem2147483646 = new System.Windows.Forms.ToolStripSeparator();
     this.ExitMenuItem                = new System.Windows.Forms.ToolStripMenuItem();
     this.GroupBox1.SuspendLayout();
     this.ContextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // ButtonInsert
     //
     this.ButtonInsert.Location = new System.Drawing.Point(256, 62);
     this.ButtonInsert.Name     = "ButtonInsert";
     this.ButtonInsert.Size     = new System.Drawing.Size(75, 23);
     this.ButtonInsert.TabIndex = 34;
     this.ButtonInsert.Text     = "Insert Slide";
     this.ButtonInsert.UseVisualStyleBackColor = true;
     this.ButtonInsert.Click += new System.EventHandler(this.Click_ad2f4fda);
     //
     // ButtonName
     //
     this.ButtonName.Anchor   = System.Windows.Forms.AnchorStyles.Right;
     this.ButtonName.Location = new System.Drawing.Point(341, 36);
     this.ButtonName.Name     = "ButtonName";
     this.ButtonName.Size     = new System.Drawing.Size(29, 23);
     this.ButtonName.TabIndex = 31;
     this.ButtonName.Text     = "...";
     this.ButtonName.UseVisualStyleBackColor = true;
     this.ButtonName.Click += new System.EventHandler(this.Click_a5d061c7);
     //
     // Label10
     //
     this.Label10.AutoSize = true;
     this.Label10.Location = new System.Drawing.Point(12, 128);
     this.Label10.Name     = "Label10";
     this.Label10.Size     = new System.Drawing.Size(215, 13);
     this.Label10.TabIndex = 30;
     this.Label10.Text     = "Slide # starts from 1 and sequentially go up..";
     //
     // Label9
     //
     this.Label9.AutoSize = true;
     this.Label9.Location = new System.Drawing.Point(12, 104);
     this.Label9.Name     = "Label9";
     this.Label9.Size     = new System.Drawing.Size(267, 13);
     this.Label9.TabIndex = 29;
     this.Label9.Text     = "In one slide-show, all slides have the same Slide Name.";
     //
     // GroupBox1
     //
     this.GroupBox1.Controls.Add(this.Label8);
     this.GroupBox1.Controls.Add(this.Label7);
     this.GroupBox1.Controls.Add(this.Label6);
     this.GroupBox1.Controls.Add(this.Label4);
     this.GroupBox1.Controls.Add(this.Label5);
     this.GroupBox1.Location = new System.Drawing.Point(15, 150);
     this.GroupBox1.Name     = "GroupBox1";
     this.GroupBox1.Size     = new System.Drawing.Size(348, 126);
     this.GroupBox1.TabIndex = 26;
     this.GroupBox1.TabStop  = false;
     this.GroupBox1.Text     = "How to create slides";
     //
     // Label8
     //
     this.Label8.AutoSize = true;
     this.Label8.Location = new System.Drawing.Point(6, 100);
     this.Label8.Name     = "Label8";
     this.Label8.Size     = new System.Drawing.Size(313, 13);
     this.Label8.TabIndex = 26;
     this.Label8.Text     = "3. Add texts, lines, arrows, etc., to the captured image as needed";
     //
     // Label7
     //
     this.Label7.AutoSize = true;
     this.Label7.Location = new System.Drawing.Point(16, 83);
     this.Label7.Name     = "Label7";
     this.Label7.Size     = new System.Drawing.Size(292, 13);
     this.Label7.TabIndex = 25;
     this.Label7.Text     = "You may cancel the clipping and redo the clipping if needed.";
     //
     // Label6
     //
     this.Label6.AutoSize = true;
     this.Label6.Location = new System.Drawing.Point(6, 66);
     this.Label6.Name     = "Label6";
     this.Label6.Size     = new System.Drawing.Size(278, 13);
     this.Label6.TabIndex = 24;
     this.Label6.Text     = "2. Use the mouse to clip the captured image, if you want. ";
     //
     // Label4
     //
     this.Label4.AutoSize = true;
     this.Label4.Location = new System.Drawing.Point(6, 27);
     this.Label4.Name     = "Label4";
     this.Label4.Size     = new System.Drawing.Size(298, 13);
     this.Label4.TabIndex = 20;
     this.Label4.Text     = "1. Keep the mouse over the window to be captured, press F3.";
     //
     // Label5
     //
     this.Label5.AutoSize = true;
     this.Label5.Location = new System.Drawing.Point(16, 48);
     this.Label5.Name     = "Label5";
     this.Label5.Size     = new System.Drawing.Size(202, 13);
     this.Label5.TabIndex = 23;
     this.Label5.Text     = "Or, press F4 to capture the whole screen.";
     //
     // btInsert
     //
     this.btInsert.Location = new System.Drawing.Point(175, 62);
     this.btInsert.Name     = "btInsert";
     this.btInsert.Size     = new System.Drawing.Size(75, 23);
     this.btInsert.TabIndex = 17;
     this.btInsert.Text     = "Edit Slide";
     this.btInsert.UseVisualStyleBackColor = true;
     this.btInsert.Click += new System.EventHandler(this.Click_9a8faed9);
     //
     // txtName
     //
     this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtName.Location = new System.Drawing.Point(100, 38);
     this.txtName.Name     = "txtName";
     this.txtName.Size     = new System.Drawing.Size(235, 20);
     this.txtName.TabIndex = 12;
     //
     // Label3
     //
     this.Label3.AutoSize = true;
     this.Label3.Location = new System.Drawing.Point(15, 45);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(64, 13);
     this.Label3.TabIndex = 11;
     this.Label3.Text     = "Slide Name:";
     //
     // txtIndex
     //
     this.txtIndex.Location = new System.Drawing.Point(100, 64);
     this.txtIndex.Name     = "txtIndex";
     this.txtIndex.Size     = new System.Drawing.Size(69, 20);
     this.txtIndex.TabIndex = 8;
     //
     // Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(15, 71);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(68, 13);
     this.Label2.TabIndex = 7;
     this.Label2.Text     = "Next Slide #:";
     //
     // btFolder
     //
     this.btFolder.Anchor   = System.Windows.Forms.AnchorStyles.Right;
     this.btFolder.Location = new System.Drawing.Point(341, 11);
     this.btFolder.Name     = "btFolder";
     this.btFolder.Size     = new System.Drawing.Size(29, 23);
     this.btFolder.TabIndex = 4;
     this.btFolder.Text     = "...";
     this.btFolder.UseVisualStyleBackColor = true;
     this.btFolder.Click += new System.EventHandler(this.Click_d2e530ca);
     //
     // Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(15, 21);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(79, 13);
     this.Label1.TabIndex = 3;
     this.Label1.Text     = "Save to Folder:";
     //
     // txtFolder
     //
     this.txtFolder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.txtFolder.Location = new System.Drawing.Point(100, 14);
     this.txtFolder.Name     = "txtFolder";
     this.txtFolder.Size     = new System.Drawing.Size(235, 20);
     this.txtFolder.TabIndex = 2;
     //
     // Keyboard1
     //
     this.Keyboard1.HotKeys  = ((Limnor.InputDevice.HotKeyList)(resources.GetObject("Keyboard1.HotKeys")));
     this.Keyboard1.Location = new System.Drawing.Point(249, 128);
     this.Keyboard1.Name     = "Keyboard1";
     this.Keyboard1.GetEventHolder("KeyPress_F4").Event += new System.EventHandler(this.KeyPress_F4_8b2ce384);
     this.Keyboard1.GetEventHolder("KeyPress_F3").Event += new System.EventHandler(this.KeyPress_F3_3b54cbf2);
     //
     // NotifyIcon1
     //
     this.NotifyIcon1.BalloonTipText   = "Catch screenshot";
     this.NotifyIcon1.BalloonTipTitle  = "Catch screenshot";
     this.NotifyIcon1.ContextMenuStrip = this.ContextMenuStrip1;
     this.NotifyIcon1.Icon             = ((System.Drawing.Icon)(resources.GetObject("NotifyIcon1.Icon")));
     this.NotifyIcon1.Text             = "ScreenShot";
     this.NotifyIcon1.Visible          = true;
     //
     // mi1e23a49e
     //
     this.mi1e23a49e.BackColor = System.Drawing.SystemColors.Window;
     this.mi1e23a49e.Name      = "mi1e23a49e";
     this.mi1e23a49e.Size      = new System.Drawing.Size(106, 20);
     this.mi1e23a49e.Text      = "ContextMenuStrip";
     //
     // ShowSettingsMenuItem
     //
     this.ShowSettingsMenuItem.Name   = "ShowSettingsMenuItem";
     this.ShowSettingsMenuItem.Size   = new System.Drawing.Size(148, 22);
     this.ShowSettingsMenuItem.Text   = "Show Settings";
     this.ShowSettingsMenuItem.Click += new System.EventHandler(this.Click_8f7ed9a5);
     //
     // ContextMenuStrip1
     //
     this.ContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.ShowSettingsMenuItem,
         this.ToolStripMenuItem2147483646,
         this.ExitMenuItem
     });
     this.ContextMenuStrip1.Name = "ContextMenuStrip1";
     this.ContextMenuStrip1.Size = new System.Drawing.Size(149, 54);
     //
     // WindowsManager1
     //
     this.WindowsManager1.FoundWindow    = System.IntPtr.Zero;
     this.WindowsManager1.WindowBounds   = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.WindowsManager1.WindowLocation = new System.Drawing.Point(0, 0);
     this.WindowsManager1.WindowSize     = new System.Drawing.Size(0, 0);
     //
     // ToolStripMenuItem2147483646
     //
     this.ToolStripMenuItem2147483646.Name = "ToolStripMenuItem2147483646";
     this.ToolStripMenuItem2147483646.Size = new System.Drawing.Size(145, 6);
     //
     // ExitMenuItem
     //
     this.ExitMenuItem.Name   = "ExitMenuItem";
     this.ExitMenuItem.Size   = new System.Drawing.Size(148, 22);
     this.ExitMenuItem.Text   = "E&xit";
     this.ExitMenuItem.Click += new System.EventHandler(this.Click_a3e4ba47);
     //
     // Form1
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.ClientSize    = new System.Drawing.Size(375, 288);
     this.Controls.Add(this.ButtonInsert);
     this.Controls.Add(this.ButtonName);
     this.Controls.Add(this.Label10);
     this.Controls.Add(this.Label9);
     this.Controls.Add(this.GroupBox1);
     this.Controls.Add(this.btInsert);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.txtIndex);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.btFolder);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.txtFolder);
     this.Controls.Add(this.Keyboard1);
     this.DrawingLayerList = ((Limnor.Drawing2D.DrawingLayerHeaderList)(resources.GetObject("$this.DrawingLayerList")));
     this.FormBorderStyle  = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Location         = new System.Drawing.Point(100, 100);
     this.MaximizeBox      = false;
     this.Name             = "Form1";
     this.StartPosition    = System.Windows.Forms.FormStartPosition.Manual;
     this.Text             = "Slides Maker";
     this.GroupBox1.ResumeLayout(false);
     this.GroupBox1.PerformLayout();
     this.ContextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
     this.SizeChanged += new System.EventHandler(this.SizeChanged_53e488c2);
     Limnor.Application.ApplicationConfiguration.LoadingConfigurations += new System.EventHandler(this.LoadingConfigurations_3165520d);
     this.Load        += new System.EventHandler(this.Load_e3a67207);
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormClosing_5a01dd65);
     Limnor.Application.ApplicationConfiguration.SavingConfigurations += new System.EventHandler(this.SavingConfigurations_7e20ca90);
 }
コード例 #56
0
        private void BuildDefaultContextMenu()
        {
            _defaultContextMenu = new ContextMenuStrip();
            //
            // showContextMenuItem
            //
            this._showMainWndMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this._showMainWndMenuItem.Text   = "&Open"; //Show Main Window";
            _showMainWndMenuItem.Font        = new Font(_showMainWndMenuItem.Font, _showMainWndMenuItem.Font.Style | System.Drawing.FontStyle.Bold);
            this._showMainWndMenuItem.Click += new System.EventHandler(this.showContextMenuItem_Click);

            this._sepContextMenuItem1      = new System.Windows.Forms.ToolStripSeparator();
            this._sepContextMenuItem1.Text = "-";
            //
            // alwaysOnTopContextMenuItem
            //
            this._alwaysOnTopContextMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this._alwaysOnTopContextMenuItem.Checked = ChoGlobalApplicationSettings.Me.ApplicationBehaviourSettings.AlwaysOnTop;
            this._alwaysOnTopContextMenuItem.Text    = "&Always on top";
            this._alwaysOnTopContextMenuItem.Click  += new System.EventHandler(this.alwaysOnTopContextMenuItem_Click);

            this._runAtStartupContextMenuItem         = new ChoUACToolStripMenuItem();
            this._runAtStartupContextMenuItem.Checked = ChoGlobalApplicationSettings.Me.ApplicationBehaviourSettings.RunOnceAtStartup;
            this._runAtStartupContextMenuItem.Text    = "Run at Systems &Startup";
            this._runAtStartupContextMenuItem.Click  += new System.EventHandler(this.runAtStartupContextMenuItem_Click);
            _runAtStartupContextMenuItem.SetUACShield(true);

            this._showInTaskbarContextMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
            this._showInTaskbarContextMenuItem.Checked = ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ShowInTaskbar;
            this._showInTaskbarContextMenuItem.Text    = "Show in &Taskbar";
            this._showInTaskbarContextMenuItem.Click  += new System.EventHandler(this.showInTaskbarContextMenuItem_Click);

            this._sepContextMenuItem2 = new System.Windows.Forms.ToolStripSeparator();

            //
            // helpContextMenuItem
            //
            this._aboutContextMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this._aboutContextMenuItem.Text   = "Abo&ut";
            this._aboutContextMenuItem.Click += new System.EventHandler(this.aboutContextMenuItem_Click);

            this._sepContextMenuItem3 = new System.Windows.Forms.ToolStripSeparator();

            //
            // helpContextMenuItem
            //
            this._helpContextMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this._helpContextMenuItem.Text   = "&Help";
            this._helpContextMenuItem.Click += new System.EventHandler(this.helpContextMenuItem_Click);
            //
            // exitContextMenuItem
            //
            this._exitContextMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
            this._exitContextMenuItem.Text   = "E&xit";
            this._exitContextMenuItem.Click += new System.EventHandler(this.exitContextMenuItem_Click);

            List <ToolStripItem> menuItems = new List <ToolStripItem>();

            if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings != null ||
                ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings != null)
            {
                if (_hasWindow)
                {
                    if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayShowMainWndMenuItem)
                    {
                        menuItems.Add(_showMainWndMenuItem);
                        menuItems.Add(_sepContextMenuItem1);
                    }
                }
                else if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayShowMainWndMenuItem)
                {
                    menuItems.Add(_showMainWndMenuItem);
                    menuItems.Add(_sepContextMenuItem1);
                }

                bool addSeperator = false;
                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayAlwaysOnTopMenuItem)
                {
                    if (_hasWindow)
                    {
                        addSeperator = true;
                        menuItems.Add(_alwaysOnTopContextMenuItem);
                    }
                }
                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayRunAtSystemsStartupMenuItem)
                {
                    addSeperator = true;
                    menuItems.Add(_runAtStartupContextMenuItem);
                }
                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayShowInTaskbarMenuItem)
                {
                    if (_hasWindow)
                    {
                        addSeperator = true;
                        menuItems.Add(_showInTaskbarContextMenuItem);
                    }
                }
                if (addSeperator)
                {
                    menuItems.Add(_sepContextMenuItem2);
                }

                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayAboutMenuItem)
                {
                    menuItems.Add(_aboutContextMenuItem);
                    menuItems.Add(_sepContextMenuItem3);
                }
                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayHelpMenuItem)
                {
                    menuItems.Add(_helpContextMenuItem);
                }
                if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayExitMenuItem)
                {
                    menuItems.Add(_exitContextMenuItem);
                }
            }

            _defaultContextMenu.Items.AddRange(menuItems.ToArray());
            _defaultContextMenu.Opening += _defaultContextMenu_Opening;
        }
コード例 #57
0
        public ServerNotifyIcon(ILogManager logManager,
                                IServerApplicationHost appHost,
                                IServerConfigurationManager configurationManager,
                                IUserManager userManager, ILibraryManager libraryManager,
                                IJsonSerializer jsonSerializer,
                                IItemRepository itemRepo, ILocalizationManager localization)
        {
            _logger               = logManager.GetLogger("MainWindow");
            _itemRepository       = itemRepo;
            _localization         = localization;
            _appHost              = appHost;
            _logManager           = logManager;
            _configurationManager = configurationManager;
            _userManager          = userManager;
            _libraryManager       = libraryManager;
            _jsonSerializer       = jsonSerializer;

            var components = new System.ComponentModel.Container();

            var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));

            contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components);
            notifyIcon1       = new System.Windows.Forms.NotifyIcon(components);

            cmdExit             = new System.Windows.Forms.ToolStripMenuItem();
            cmdCommunity        = new System.Windows.Forms.ToolStripMenuItem();
            cmdLogWindow        = new System.Windows.Forms.ToolStripMenuItem();
            toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            cmdRestart          = new System.Windows.Forms.ToolStripMenuItem();
            cmdLibraryExplorer  = new System.Windows.Forms.ToolStripMenuItem();
            toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            cmdConfigure        = new System.Windows.Forms.ToolStripMenuItem();
            cmdBrowse           = new System.Windows.Forms.ToolStripMenuItem();
            cmdApiDocs          = new System.Windows.Forms.ToolStripMenuItem();
            cmdSwagger          = new System.Windows.Forms.ToolStripMenuItem();
            cmdGtihub           = new System.Windows.Forms.ToolStripMenuItem();

            //
            // notifyIcon1
            //
            notifyIcon1.ContextMenuStrip = contextMenuStrip1;
            notifyIcon1.Icon             = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
            notifyIcon1.Text             = "Media Browser";
            notifyIcon1.Visible          = true;
            //
            // contextMenuStrip1
            //
            contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                cmdBrowse,
                cmdConfigure,
                toolStripSeparator2,
                cmdLibraryExplorer,
                cmdRestart,
                toolStripSeparator1,
                cmdApiDocs,
                cmdLogWindow,
                cmdCommunity,
                cmdExit
            });
            contextMenuStrip1.Name            = "contextMenuStrip1";
            contextMenuStrip1.ShowCheckMargin = true;
            contextMenuStrip1.ShowImageMargin = false;
            contextMenuStrip1.Size            = new System.Drawing.Size(209, 214);
            //
            // cmdExit
            //
            cmdExit.Name = "cmdExit";
            cmdExit.Size = new System.Drawing.Size(208, 22);
            //
            // cmdCommunity
            //
            cmdCommunity.Name = "cmdCommunity";
            cmdCommunity.Size = new System.Drawing.Size(208, 22);
            //
            // cmdLogWindow
            //
            cmdLogWindow.CheckOnClick = true;
            cmdLogWindow.Name         = "cmdLogWindow";
            cmdLogWindow.Size         = new System.Drawing.Size(208, 22);
            //
            // toolStripSeparator1
            //
            toolStripSeparator1.Name = "toolStripSeparator1";
            toolStripSeparator1.Size = new System.Drawing.Size(205, 6);
            //
            // cmdRestart
            //
            cmdRestart.Name = "cmdRestart";
            cmdRestart.Size = new System.Drawing.Size(208, 22);
            //
            // cmdLibraryExplorer
            //
            cmdLibraryExplorer.Name = "cmdLibraryExplorer";
            cmdLibraryExplorer.Size = new System.Drawing.Size(208, 22);
            //
            // toolStripSeparator2
            //
            toolStripSeparator2.Name = "toolStripSeparator2";
            toolStripSeparator2.Size = new System.Drawing.Size(205, 6);
            //
            // cmdConfigure
            //
            cmdConfigure.Name = "cmdConfigure";
            cmdConfigure.Size = new System.Drawing.Size(208, 22);
            //
            // cmdBrowse
            //
            cmdBrowse.Name = "cmdBrowse";
            cmdBrowse.Size = new System.Drawing.Size(208, 22);
            //
            // cmdApiDocs
            //
            cmdApiDocs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                cmdSwagger,
                cmdGtihub
            });
            cmdApiDocs.Name = "cmdApiDocs";
            cmdApiDocs.Size = new System.Drawing.Size(208, 22);
            //
            // cmdSwagger
            //
            cmdSwagger.Name = "cmdSwagger";
            cmdSwagger.Size = new System.Drawing.Size(136, 22);
            //
            // cmdGtihub
            //
            cmdGtihub.Name = "cmdGtihub";
            cmdGtihub.Size = new System.Drawing.Size(136, 22);

            cmdExit.Click            += cmdExit_Click;
            cmdRestart.Click         += cmdRestart_Click;
            cmdLogWindow.Click       += cmdLogWindow_Click;
            cmdConfigure.Click       += cmdConfigure_Click;
            cmdCommunity.Click       += cmdCommunity_Click;
            cmdBrowse.Click          += cmdBrowse_Click;
            cmdLibraryExplorer.Click += cmdLibraryExplorer_Click;

            cmdSwagger.Click += cmdSwagger_Click;
            cmdGtihub.Click  += cmdGtihub_Click;

            LoadLogWindow(null, EventArgs.Empty);
            _logManager.LoggerLoaded += LoadLogWindow;
            _configurationManager.ConfigurationUpdated += Instance_ConfigurationUpdated;

            LocalizeText();

            if (_appHost.IsFirstRun)
            {
                Action action = () => notifyIcon1.ShowBalloonTip(5000, "Media Browser", "Welcome to Media Browser Server!", ToolTipIcon.Info);

                contextMenuStrip1.Invoke(action);
            }
        }
コード例 #58
0
        public virtual System.Windows.Forms.ToolStripItem[] buildMenu(List <MySQL.Base.MenuItem> menuItems, System.EventHandler handler)
        {
            System.Windows.Forms.ToolStripItem[] itemlist = new System.Windows.Forms.ToolStripItem[menuItems.Count];
            int i = 0;

            // rebuild the menu
            foreach (MySQL.Base.MenuItem subitem in menuItems)
            {
                Keys shortcut = convertShortcut(subitem.get_shortcut());


                switch (subitem.get_type())
                {
                case MenuItemType.MenuAction:
                case MenuItemType.MenuUnavailable:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    if (subitem.get_type() == MenuItemType.MenuUnavailable)
                    {
                        smitem.Image   = Resources.menu_se;
                        smitem.Enabled = false;
                    }
                    smitem.Click += handler;
                    itemlist[i++] = smitem;
                    break;
                }

                case MenuItemType.MenuCheck:
                case MenuItemType.MenuRadio:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    smitem.Checked      = subitem.get_checked();
                    smitem.Click       += handler;
                    itemlist[i++]       = smitem;
                    break;
                }

                case MenuItemType.MenuSeparator:
                    itemlist[i++] = new System.Windows.Forms.ToolStripSeparator();
                    break;

                case MenuItemType.MenuCascade:
                {
                    System.Windows.Forms.ToolStripMenuItem smitem;

                    smitem              = new System.Windows.Forms.ToolStripMenuItem();
                    smitem.Name         = subitem.getInternalName();
                    smitem.Text         = subitem.get_caption();
                    smitem.ShortcutKeys = shortcut;
                    smitem.Enabled      = subitem.get_enabled();
                    buildSubmenu(smitem, subitem.getInternalName(), subitem.get_subitems(), handler);
                    itemlist[i++] = smitem;
                    break;
                }

                default:
                    throw new Exception("bad item type");
                }
            }
            return(itemlist);
        }
コード例 #59
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();
 }
コード例 #60
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.ToolStripSeparator m_TSMI_Separator1;
     System.Windows.Forms.ToolStripSeparator m_TSMI_Separator2;
     System.Windows.Forms.ToolStripSeparator m_TSMI_Separator3;
     System.Windows.Forms.ToolStripMenuItem  m_TSMI_Read;
     System.Windows.Forms.ToolStripMenuItem  m_TSMI_Write;
     this.m_ContextMenu              = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.m_TSMI_Connect             = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_ViewStatus          = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_EditOptions         = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_Disconnect          = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSM_Delete               = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_BrowseItems         = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_CreateSubscription  = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_CS_BrowseServer     = new System.Windows.Forms.ToolStripMenuItem();
     this.m_TSMI_CS_BrowseDictionary = new System.Windows.Forms.ToolStripMenuItem();
     m_TSMI_Separator1               = new System.Windows.Forms.ToolStripSeparator();
     m_TSMI_Separator2               = new System.Windows.Forms.ToolStripSeparator();
     m_TSMI_Separator3               = new System.Windows.Forms.ToolStripSeparator();
     m_TSMI_Read  = new System.Windows.Forms.ToolStripMenuItem();
     m_TSMI_Write = new System.Windows.Forms.ToolStripMenuItem();
     this.m_ContextMenu.SuspendLayout();
     //
     // m_TSMI_Separator1
     //
     m_TSMI_Separator1.Name = "m_TSMI_Separator1";
     m_TSMI_Separator1.Size = new System.Drawing.Size(188, 6);
     //
     // m_TSMI_Separator2
     //
     m_TSMI_Separator2.Name = "m_TSMI_Separator2";
     m_TSMI_Separator2.Size = new System.Drawing.Size(188, 6);
     //
     // m_TSMI_Separator3
     //
     m_TSMI_Separator3.Name = "m_TSMI_Separator3";
     m_TSMI_Separator3.Size = new System.Drawing.Size(188, 6);
     //
     // m_TSMI_Read
     //
     m_TSMI_Read.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_read_48;
     m_TSMI_Read.Name        = "m_TSMI_Read";
     m_TSMI_Read.Size        = new System.Drawing.Size(191, 22);
     m_TSMI_Read.Text        = "&Read...";
     m_TSMI_Read.ToolTipText = "Reads a set of items for the server.";
     m_TSMI_Read.Click      += new System.EventHandler(this.TSMI_Read_Click);
     //
     // m_TSMI_Write
     //
     m_TSMI_Write.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_write_48;
     m_TSMI_Write.Name        = "m_TSMI_Write";
     m_TSMI_Write.Size        = new System.Drawing.Size(191, 22);
     m_TSMI_Write.Text        = "&Write...";
     m_TSMI_Write.ToolTipText = "Writes a set of items to the server.";
     m_TSMI_Write.Click      += new System.EventHandler(this.TSMI_Write_Click);
     //
     // m_ContextMenu
     //
     this.m_ContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.m_TSMI_Connect,
         this.m_TSMI_ViewStatus,
         this.m_TSMI_EditOptions,
         this.m_TSMI_Disconnect,
         m_TSMI_Separator1,
         this.m_TSM_Delete,
         m_TSMI_Separator2,
         this.m_TSMI_BrowseItems,
         this.m_TSMI_CreateSubscription,
         m_TSMI_Separator3,
         m_TSMI_Read,
         m_TSMI_Write
     });
     this.m_ContextMenu.Name       = "m_Server_PopupMenu";
     this.m_ContextMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
     this.m_ContextMenu.Size       = new System.Drawing.Size(192, 220);
     this.m_ContextMenu.Opening   += new System.ComponentModel.CancelEventHandler(this.m_ContextMenu_Opening);
     //
     // m_TSMI_Connect
     //
     this.m_TSMI_Connect.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_connect_48;
     this.m_TSMI_Connect.Name        = "m_TSMI_Connect";
     this.m_TSMI_Connect.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_Connect.Text        = "Connect";
     this.m_TSMI_Connect.ToolTipText = "Connects to Server";
     this.m_TSMI_Connect.Click      += new System.EventHandler(this.TSMI_Connect_Click);
     //
     // m_TSMI_ViewStatus
     //
     this.m_TSMI_ViewStatus.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_info_48;
     this.m_TSMI_ViewStatus.Name        = "m_TSMI_ViewStatus";
     this.m_TSMI_ViewStatus.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_ViewStatus.Text        = "&View Status";
     this.m_TSMI_ViewStatus.ToolTipText = "Displays the server status in a modal dialog.";
     this.m_TSMI_ViewStatus.Click      += new System.EventHandler(this.TSMI_ViewStatus_Click);
     //
     // m_TSMI_EditOptions
     //
     this.m_TSMI_EditOptions.Name        = "m_TSMI_EditOptions";
     this.m_TSMI_EditOptions.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_EditOptions.Text        = "Edit &Options...";
     this.m_TSMI_EditOptions.ToolTipText = "Allows to edit the default options for the server.";
     this.m_TSMI_EditOptions.Click      += new System.EventHandler(this.TSMI_EditOptions_Click);
     //
     // m_TSMI_Disconnect
     //
     this.m_TSMI_Disconnect.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_disconnect_48;
     this.m_TSMI_Disconnect.Name        = "m_TSMI_Disconnect";
     this.m_TSMI_Disconnect.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_Disconnect.Text        = "&Disconnect";
     this.m_TSMI_Disconnect.ToolTipText = "Disconnects the server";
     this.m_TSMI_Disconnect.Click      += new System.EventHandler(this.TSMI_Disconnect_Click);
     //
     // m_TSM_Delete
     //
     this.m_TSM_Delete.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.delete;
     this.m_TSM_Delete.Name        = "m_TSM_Delete";
     this.m_TSM_Delete.Size        = new System.Drawing.Size(191, 22);
     this.m_TSM_Delete.Text        = "Delete";
     this.m_TSM_Delete.ToolTipText = "Disconnect from and delete the selected Server";
     this.m_TSM_Delete.Click      += new System.EventHandler(this.TSMI_Delete_Click);
     //
     // m_TSMI_BrowseItems
     //
     this.m_TSMI_BrowseItems.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.search;
     this.m_TSMI_BrowseItems.Name        = "m_TSMI_BrowseItems";
     this.m_TSMI_BrowseItems.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_BrowseItems.Text        = "&Browse Items...";
     this.m_TSMI_BrowseItems.ToolTipText = "Displays the address space of the server in a modal dialog.";
     this.m_TSMI_BrowseItems.Click      += new System.EventHandler(this.TSMI_BrowseItems_Click);
     //
     // m_TSMI_CreateSubscription
     //
     this.m_TSMI_CreateSubscription.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.m_TSMI_CS_BrowseServer,
         this.m_TSMI_CS_BrowseDictionary
     });
     this.m_TSMI_CreateSubscription.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.blok_danych_48;
     this.m_TSMI_CreateSubscription.Name        = "m_TSMI_CreateSubscription";
     this.m_TSMI_CreateSubscription.Size        = new System.Drawing.Size(191, 22);
     this.m_TSMI_CreateSubscription.Text        = "&Create Subscription...";
     this.m_TSMI_CreateSubscription.ToolTipText = "Creates a new subscription and adds it to the tree.";
     //
     // m_TSMI_CS_BrowseServer
     //
     this.m_TSMI_CS_BrowseServer.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.serwer_opc_48;
     this.m_TSMI_CS_BrowseServer.Name        = "m_TSMI_CS_BrowseServer";
     this.m_TSMI_CS_BrowseServer.Size        = new System.Drawing.Size(182, 22);
     this.m_TSMI_CS_BrowseServer.Text        = "Browse server...";
     this.m_TSMI_CS_BrowseServer.ToolTipText = "Create a new subscription and add it to the tree. Browse address space of the sel" +
                                               "ected server.";
     this.m_TSMI_CS_BrowseServer.Click += new System.EventHandler(this.TSMI_CreateSubscription_Click);
     //
     // m_TSMI_CS_BrowseDictionary
     //
     this.m_TSMI_CS_BrowseDictionary.Image       = global::CAS.Lib.OPCClientControlsLib.ImagesResources.dictionary;
     this.m_TSMI_CS_BrowseDictionary.Name        = "m_TSMI_CS_BrowseDictionary";
     this.m_TSMI_CS_BrowseDictionary.Size        = new System.Drawing.Size(182, 22);
     this.m_TSMI_CS_BrowseDictionary.Text        = "Browse dictionary...";
     this.m_TSMI_CS_BrowseDictionary.ToolTipText = "Create a new subscription and add it to the tree. Browse address space from a sel" +
                                                   "ected dictionary XML file.";
     this.m_TSMI_CS_BrowseDictionary.Click += new System.EventHandler(this.TSMI_CreateSubscription_Click);
     this.m_ContextMenu.ResumeLayout(false);
 }