Ejemplo n.º 1
0
        public FileBookmark(String aURL, String aTitle)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            mNameField.Text     = aTitle;
            mLocationField.Text = aURL;

            //
            // Button XP Theme support.
            //
            mOKButton.FlatStyle         = FlatStyle.System;
            mCancelButton.FlatStyle     = FlatStyle.System;
            mUseDefaultButton.FlatStyle = FlatStyle.System;
            mNewFolderButton.FlatStyle  = FlatStyle.System;

            //
            // folderTree
            //
            mFolderTree        = new BookmarksTreeView("BookmarksRoot");
            mFolderTree.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                   | System.Windows.Forms.AnchorStyles.Left)
                                  | System.Windows.Forms.AnchorStyles.Right);
            mFolderTree.ImageIndex         = -1;
            mFolderTree.Location           = new System.Drawing.Point(64, 88);
            mFolderTree.Name               = "folderTree";
            mFolderTree.SelectedImageIndex = -1;
            mFolderTree.Size               = new System.Drawing.Size(208, 144);
            mFolderTree.TabIndex           = 5;

            // Only show folders in this |TreeView|
            mFolderTree.AddCriteria(new String[] { "container", "true" });

            Controls.Add(mFolderTree);
            mFolderTree.Build();

            Bitmap bmp = new Bitmap(@"resources\bookmark.png");

            bmp.MakeTransparent(ColorTranslator.FromOle(0x00FF00));
//      this.Icon = new Icon(
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            mStatusBar      = new StatusBar();
            mStatusBarPanel = new StatusBarPanel();
            ((ISupportInitialize)mStatusBarPanel).BeginInit();
            SuspendLayout();

            mStatusBar.Name = "statusBar";
            mStatusBar.Panels.Add(mStatusBarPanel);
            mStatusBar.TabIndex  = 0;
            mStatusBar.Text      = "";
            mStatusBarPanel.Text = "";
            Controls.Add(mStatusBar);

            mBookmarksTree                    = new BookmarksTreeView("BookmarksRoot");
            mBookmarksTree.Dock               = DockStyle.Fill;
            mBookmarksTree.ImageIndex         = -1;
            mBookmarksTree.Name               = "bookmarksTree";
            mBookmarksTree.SelectedImageIndex = -1;
            mBookmarksTree.Size               = new System.Drawing.Size(584, 409);
            mBookmarksTree.TabIndex           = 1;

            mBookmarksTree.AfterSelect += new TreeViewEventHandler(OnTreeAfterSelect);
            mBookmarksTree.DoubleClick += new EventHandler(OnTreeDoubleClick);

            Controls.Add(mBookmarksTree);
            mBookmarksTree.Build();


            AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            ClientSize        = new System.Drawing.Size(584, 429);
            Name = "BookmarksWindow";
            Text = Environment.UserName + "'s Bookmarks";
            ((ISupportInitialize)(mStatusBarPanel)).EndInit();
            ResumeLayout(false);
        }
Ejemplo n.º 3
0
        public FileBookmark(String aURL, String aTitle)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

              mNameField.Text = aTitle;
              mLocationField.Text = aURL;

              //
              // Button XP Theme support.
              //
              mOKButton.FlatStyle = FlatStyle.System;
              mCancelButton.FlatStyle = FlatStyle.System;
              mUseDefaultButton.FlatStyle = FlatStyle.System;
              mNewFolderButton.FlatStyle = FlatStyle.System;

              //
              // folderTree
              //
              mFolderTree = new BookmarksTreeView("BookmarksRoot");
              mFolderTree.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right);
              mFolderTree.ImageIndex = -1;
              mFolderTree.Location = new System.Drawing.Point(64, 88);
              mFolderTree.Name = "folderTree";
              mFolderTree.SelectedImageIndex = -1;
              mFolderTree.Size = new System.Drawing.Size(208, 144);
              mFolderTree.TabIndex = 5;

              // Only show folders in this |TreeView|
              mFolderTree.AddCriteria(new String[] {"container", "true"});

              Controls.Add(mFolderTree);
              mFolderTree.Build();

              Bitmap bmp = new Bitmap(@"resources\bookmark.png");
              bmp.MakeTransparent(ColorTranslator.FromOle(0x00FF00));
            //      this.Icon = new Icon(
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            mStatusBar = new StatusBar();
              mStatusBarPanel = new StatusBarPanel();
              ((ISupportInitialize)mStatusBarPanel).BeginInit();
              SuspendLayout();

              mStatusBar.Name = "statusBar";
              mStatusBar.Panels.Add(mStatusBarPanel);
              mStatusBar.TabIndex = 0;
              mStatusBar.Text = "";
              mStatusBarPanel.Text = "";
              Controls.Add(mStatusBar);

              mBookmarksTree = new BookmarksTreeView("BookmarksRoot");
              mBookmarksTree.Dock = DockStyle.Fill;
              mBookmarksTree.ImageIndex = -1;
              mBookmarksTree.Name = "bookmarksTree";
              mBookmarksTree.SelectedImageIndex = -1;
              mBookmarksTree.Size = new System.Drawing.Size(584, 409);
              mBookmarksTree.TabIndex = 1;

              mBookmarksTree.AfterSelect += new TreeViewEventHandler(OnTreeAfterSelect);
              mBookmarksTree.DoubleClick += new EventHandler(OnTreeDoubleClick);

              Controls.Add(mBookmarksTree);
              mBookmarksTree.Build();

              AutoScaleBaseSize = new System.Drawing.Size(5, 13);
              ClientSize = new System.Drawing.Size(584, 429);
              Name = "BookmarksWindow";
              Text = Environment.UserName + "'s Bookmarks";
              ((ISupportInitialize)(mStatusBarPanel)).EndInit();
              ResumeLayout(false);
        }