diff --git a/BookmarkEditForm.Designer.cs b/BookmarkEditForm.Designer.cs index f9c7c92..5fd0a71 100644 --- a/BookmarkEditForm.Designer.cs +++ b/BookmarkEditForm.Designer.cs @@ -28,20 +28,18 @@ namespace bzit.bomg /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.label3 = new System.Windows.Forms.Label(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.button2 = new RyzStudio.Windows.ThemedForms.Button(); - this.button1 = new RyzStudio.Windows.ThemedForms.Button(); this.label5 = new System.Windows.Forms.Label(); - this.horizontalSeparator1 = new RyzStudio.Windows.Forms.HorizontalSeparator(); - this.textBox1 = new RyzStudio.Windows.ThemedForms.TextBox(); - this.textBox2 = new RyzStudio.Windows.ThemedForms.TextBox(); this.memoBox1 = new RyzStudio.Windows.ThemedForms.MemoBox(); + this.textBox2 = new RyzStudio.Windows.ThemedForms.TextBox(); + this.textBox1 = new RyzStudio.Windows.ThemedForms.TextBox(); + this.horizontalSeparator1 = new RyzStudio.Windows.Forms.HorizontalSeparator(); + this.button1 = new RyzStudio.Windows.ThemedForms.Button(); + this.button2 = new RyzStudio.Windows.ThemedForms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); @@ -66,11 +64,6 @@ namespace bzit.bomg this.label2.TabIndex = 4; this.label2.Text = "Address"; // - // toolTip1 - // - this.toolTip1.Active = false; - this.toolTip1.BackColor = System.Drawing.Color.IndianRed; - // // label3 // this.label3.AutoSize = true; @@ -102,27 +95,72 @@ namespace bzit.bomg this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.pictureBox1.ErrorImage = null; this.pictureBox1.InitialImage = null; - this.pictureBox1.Location = new System.Drawing.Point(287, 237); + this.pictureBox1.Location = new System.Drawing.Point(286, 217); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(32, 32); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox1.TabIndex = 60; this.pictureBox1.TabStop = false; // - // button2 + // label5 // - this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.button2.BackColor = System.Drawing.Color.Transparent; - this.button2.DefaultImage = null; - this.button2.DownImage = null; - this.button2.LabelText = "&Save"; - this.button2.Location = new System.Drawing.Point(325, 237); - this.button2.Name = "button2"; - this.button2.OverImage = null; - this.button2.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); - this.button2.Size = new System.Drawing.Size(107, 32); - this.button2.TabIndex = 4; - this.button2.Click += new System.EventHandler(this.button2_Click); + this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label5.ForeColor = System.Drawing.Color.OrangeRed; + this.label5.Location = new System.Drawing.Point(9, 217); + this.label5.Margin = new System.Windows.Forms.Padding(3); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(271, 32); + this.label5.TabIndex = 64; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // memoBox1 + // + this.memoBox1.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.memoBox1.BackColor = System.Drawing.Color.Transparent; + this.memoBox1.Location = new System.Drawing.Point(96, 103); + this.memoBox1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.memoBox1.Name = "memoBox1"; + this.memoBox1.Padding = new System.Windows.Forms.Padding(10, 10, 3, 9); + this.memoBox1.Size = new System.Drawing.Size(336, 83); + this.memoBox1.TabIndex = 69; + // + // textBox2 + // + this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox2.BackColor = System.Drawing.Color.Transparent; + this.textBox2.Location = new System.Drawing.Point(96, 59); + this.textBox2.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.textBox2.Name = "textBox2"; + this.textBox2.Padding = new System.Windows.Forms.Padding(10, 10, 9, 9); + this.textBox2.Size = new System.Drawing.Size(259, 32); + this.textBox2.TabIndex = 67; + // + // textBox1 + // + this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox1.BackColor = System.Drawing.Color.Transparent; + this.textBox1.Location = new System.Drawing.Point(96, 15); + this.textBox1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.textBox1.Name = "textBox1"; + this.textBox1.Padding = new System.Windows.Forms.Padding(10, 10, 9, 9); + this.textBox1.Size = new System.Drawing.Size(259, 32); + this.textBox1.TabIndex = 66; + // + // horizontalSeparator1 + // + this.horizontalSeparator1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.horizontalSeparator1.Location = new System.Drawing.Point(12, 202); + this.horizontalSeparator1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 10); + this.horizontalSeparator1.MaximumSize = new System.Drawing.Size(4920, 2); + this.horizontalSeparator1.Name = "horizontalSeparator1"; + this.horizontalSeparator1.Size = new System.Drawing.Size(420, 2); + this.horizontalSeparator1.TabIndex = 65; // // button1 // @@ -139,71 +177,26 @@ namespace bzit.bomg this.button1.TabIndex = 2; this.button1.Click += new System.EventHandler(this.button1_Click); // - // label5 + // button2 // - this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.label5.ForeColor = System.Drawing.Color.OrangeRed; - this.label5.Location = new System.Drawing.Point(9, 237); - this.label5.Margin = new System.Windows.Forms.Padding(3); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(272, 32); - this.label5.TabIndex = 64; - this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // horizontalSeparator1 - // - this.horizontalSeparator1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.horizontalSeparator1.Location = new System.Drawing.Point(12, 222); - this.horizontalSeparator1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 10); - this.horizontalSeparator1.MaximumSize = new System.Drawing.Size(4920, 2); - this.horizontalSeparator1.Name = "horizontalSeparator1"; - this.horizontalSeparator1.Size = new System.Drawing.Size(420, 2); - this.horizontalSeparator1.TabIndex = 65; - // - // textBox1 - // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.BackColor = System.Drawing.Color.Transparent; - this.textBox1.Location = new System.Drawing.Point(96, 15); - this.textBox1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); - this.textBox1.Name = "textBox1"; - this.textBox1.Padding = new System.Windows.Forms.Padding(10, 10, 9, 9); - this.textBox1.Size = new System.Drawing.Size(259, 32); - this.textBox1.TabIndex = 66; - // - // textBox2 - // - this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox2.BackColor = System.Drawing.Color.Transparent; - this.textBox2.Location = new System.Drawing.Point(96, 59); - this.textBox2.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); - this.textBox2.Name = "textBox2"; - this.textBox2.Padding = new System.Windows.Forms.Padding(10, 10, 9, 9); - this.textBox2.Size = new System.Drawing.Size(259, 32); - this.textBox2.TabIndex = 67; - // - // memoBox1 - // - this.memoBox1.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.memoBox1.BackColor = System.Drawing.Color.Transparent; - this.memoBox1.Location = new System.Drawing.Point(96, 103); - this.memoBox1.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); - this.memoBox1.Name = "memoBox1"; - this.memoBox1.Padding = new System.Windows.Forms.Padding(10, 10, 3, 9); - this.memoBox1.Size = new System.Drawing.Size(336, 103); - this.memoBox1.TabIndex = 69; + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button2.BackColor = System.Drawing.Color.Transparent; + this.button2.DefaultImage = null; + this.button2.DownImage = null; + this.button2.LabelText = "&Save"; + this.button2.Location = new System.Drawing.Point(324, 217); + this.button2.Name = "button2"; + this.button2.OverImage = null; + this.button2.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); + this.button2.Size = new System.Drawing.Size(108, 32); + this.button2.TabIndex = 4; + this.button2.Click += new System.EventHandler(this.button2_Click); // // BookmarkEditForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(444, 281); + this.ClientSize = new System.Drawing.Size(444, 261); this.Controls.Add(this.memoBox1); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); @@ -236,7 +229,6 @@ namespace bzit.bomg private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; - private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.Label label3; private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox pictureBox1; diff --git a/BookmarkEditForm.cs b/BookmarkEditForm.cs index a3bd390..5771874 100644 --- a/BookmarkEditForm.cs +++ b/BookmarkEditForm.cs @@ -11,29 +11,25 @@ namespace bzit.bomg { public partial class BookmarkEditForm : Form { - protected BackgroundWorker threadWorker1 = null; + protected BackgroundWorker threadWorker = null; protected BookmarkItemModel itemModel = null; protected BookmarkTreeView treeView = null; - //protected TreeNode treeNode = null; - //public BookmarkEditForm(ref TreeNode node) : base() public BookmarkEditForm(BookmarkTreeView treeview) : base() { InitializeComponent(); treeView = treeview; - //treeNode = node; - this.StartPosition = FormStartPosition.WindowsDefaultLocation; - if (threadWorker1 == null) + if (threadWorker == null) { - threadWorker1 = new BackgroundWorker(); - threadWorker1.WorkerReportsProgress = threadWorker1.WorkerSupportsCancellation = true; - threadWorker1.DoWork += threadWorker1_DoWork; - threadWorker1.RunWorkerCompleted += threadWorker1_RunWorkerCompleted; + threadWorker = new BackgroundWorker(); + threadWorker.WorkerReportsProgress = threadWorker.WorkerSupportsCancellation = true; + threadWorker.DoWork += threadWorker1_DoWork; + threadWorker.RunWorkerCompleted += threadWorker1_RunWorkerCompleted; } } @@ -78,30 +74,6 @@ namespace bzit.bomg updateViewModel(bookmarkItem); } } - - - //if (parentNode.Tag != null) - //{ - // if (parentNode.Tag is BookmarkItem) - // { - // bookmarkItem = (BookmarkItem)parentNode.Tag; - // tbxName.Text = bookmarkItem.GetName(); - // tbxAddress.Text = bookmarkItem.SiteAddress; - // tbxDescription.Text = bookmarkItem.Description; - - // if (parentNode.TreeView.ImageList != null) - // { - // if (parentNode.ImageIndex >= 0) - // { - // pbxIcon.Image = parentNode.TreeView.ImageList.Images[parentNode.ImageIndex]; - // } - // else - // { - // pbxIcon.Image = parentNode.TreeView.ImageList.Images[parentNode.ImageKey]; - // } - // } - // } - //} } protected override void OnClosing(CancelEventArgs e) @@ -116,7 +88,7 @@ namespace bzit.bomg protected bool IsBusy { - get => threadWorker1.IsBusy; + get => threadWorker.IsBusy; set { textBox1.Enabled = textBox2.Enabled = memoBox1.Enabled = !value; @@ -152,7 +124,7 @@ namespace bzit.bomg this.IsBusy = true; - threadWorker1.RunWorkerAsync(); + threadWorker.RunWorkerAsync(); } private void button2_Click(object sender, EventArgs e) @@ -175,51 +147,5 @@ namespace bzit.bomg this.Close(); } - - - - - // private void btnSave_Click(object sender, EventArgs e) - // { - // if (this.IsBusy) - // { - // return; - // } - - // if (itemModel == null) - // { - // itemModel = new BookmarkItemModel(); - // } - - // itemModel.SiteName = textBox1.Text?.Trim(); - // itemModel.SiteAddress = textBox2.Text?.Trim(); - // itemModel.SiteDescription = memoBox1.Text?.Trim(); - - // treeView?.AddOrUpdateItem_OnSelectedNode(itemModel.ToViewModel()); - - //// if (bookmarkItem == null) - //// { - //// bookmarkItem = new BookmarkItem(); - //// } - - //// bookmarkItem.ChangeName(textBox1.Text.Trim()); - //// bookmarkItem.SiteAddress = textBox2.Text.Trim(); - //// bookmarkItem.Description = memoBox1.Text.Trim(); - - //// parentNode.Text = textBox1.Text.Trim(); - //////// parentNode.ImageIndex = parentNode.SelectedImageIndex = 3; - //// parentNode.ToolTipText = string.Concat(bookmarkItem.SiteAddress, Environment.NewLine, bookmarkItem.Description).Trim(); - //// parentNode.Tag = bookmarkItem; - - //// BookmarkTreeView bookmarkTreeView = (BookmarkTreeView)parentNode.TreeView; - //// if (bookmarkTreeView != null) - //// { - //// //##parentNode.ImageIndex = parentNode.SelectedImageIndex = bookmarkTreeView.AddToIconList(bookmarkItem); - //// } - - // this.Close(); - // } - - } } \ No newline at end of file diff --git a/BookmarkEditForm.resx b/BookmarkEditForm.resx index 9d9bc4d..d58980a 100644 --- a/BookmarkEditForm.resx +++ b/BookmarkEditForm.resx @@ -117,7 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 17, 17 - \ No newline at end of file diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index 3b6f0a2..7366db7 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -44,7 +44,6 @@ namespace bzit.bomg this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel(); this.oToolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.newFileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -92,8 +91,6 @@ namespace bzit.bomg this.openMenuBarItem = new System.Windows.Forms.ToolStripButton(); this.saveMenuBarItem = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.rootTreeNodeMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem17 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem18 = new System.Windows.Forms.ToolStripMenuItem(); @@ -110,9 +107,9 @@ namespace bzit.bomg this.toolStrip2.SuspendLayout(); this.rootTreeNodeMenu.SuspendLayout(); this.SuspendLayout(); - // + // // pageTreeNodeMenu - // + // this.pageTreeNodeMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem4, this.toolStripSeparator3, @@ -123,54 +120,54 @@ namespace bzit.bomg this.moveFileToToolStripMenuItem}); this.pageTreeNodeMenu.Name = "listViewMenu"; this.pageTreeNodeMenu.Size = new System.Drawing.Size(139, 126); - // + // // toolStripMenuItem4 - // + // this.toolStripMenuItem4.Name = "toolStripMenuItem4"; this.toolStripMenuItem4.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem4.Text = "&Open"; this.toolStripMenuItem4.Click += new System.EventHandler(this.openContextMenu_Click); - // + // // toolStripSeparator3 - // + // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(135, 6); - // + // // toolStripMenuItem8 - // + // this.toolStripMenuItem8.Name = "toolStripMenuItem8"; this.toolStripMenuItem8.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem8.Text = "E&dit"; this.toolStripMenuItem8.Click += new System.EventHandler(this.editContextMenu3_Click); - // + // // toolStripMenuItem6 - // + // this.toolStripMenuItem6.Name = "toolStripMenuItem6"; this.toolStripMenuItem6.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem6.Text = "D&elete"; this.toolStripMenuItem6.Click += new System.EventHandler(this.deleteContextMenu2_Click); - // + // // toolStripSeparator2 - // + // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(135, 6); - // + // // listViewMenuItem1 - // + // this.listViewMenuItem1.Name = "listViewMenuItem1"; this.listViewMenuItem1.Size = new System.Drawing.Size(138, 22); this.listViewMenuItem1.Text = "Move &Up"; this.listViewMenuItem1.Click += new System.EventHandler(this.moveUpContextMenu2_Click); - // + // // moveFileToToolStripMenuItem - // + // this.moveFileToToolStripMenuItem.Name = "moveFileToToolStripMenuItem"; this.moveFileToToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.moveFileToToolStripMenuItem.Text = "Move &Down"; this.moveFileToToolStripMenuItem.Click += new System.EventHandler(this.moveDownContextMenu2_Click); - // + // // statusBar1 - // + // this.statusBar1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.statusBar1.Location = new System.Drawing.Point(0, 634); this.statusBar1.Name = "statusBar1"; @@ -181,32 +178,20 @@ namespace bzit.bomg this.statusBar1.Size = new System.Drawing.Size(304, 20); this.statusBar1.SizingGrip = false; this.statusBar1.TabIndex = 9; - // + // // statusBarPanel1 - // + // this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.statusBarPanel1.Name = "statusBarPanel1"; this.statusBarPanel1.Width = 204; - // + // // statusBarPanel2 - // + // this.statusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center; this.statusBarPanel2.Name = "statusBarPanel2"; - // - // imageList1 - // - this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; - this.imageList1.Images.SetKeyName(0, "transmit_blue.png"); - this.imageList1.Images.SetKeyName(1, "folder.png"); - this.imageList1.Images.SetKeyName(2, "folder_explore.png"); - this.imageList1.Images.SetKeyName(3, "page_blue.png"); - this.imageList1.Images.SetKeyName(4, "page.png"); - this.imageList1.Images.SetKeyName(5, "page_green.png"); - this.imageList1.Images.SetKeyName(6, "page_red.png"); - // + // // toolStrip1 - // + // this.toolStrip1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -223,9 +208,9 @@ namespace bzit.bomg this.toolStrip1.Size = new System.Drawing.Size(304, 25); this.toolStrip1.TabIndex = 25; this.toolStrip1.Text = "toolStrip1"; - // + // // toolStripDropDownButton1 - // + // this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newFileMenuItem, @@ -244,89 +229,89 @@ namespace bzit.bomg this.toolStripDropDownButton1.ShowDropDownArrow = false; this.toolStripDropDownButton1.Size = new System.Drawing.Size(29, 22); this.toolStripDropDownButton1.Text = "&File"; - // + // // newFileMenuItem - // + // this.newFileMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newFileMenuItem.Image"))); this.newFileMenuItem.Name = "newFileMenuItem"; this.newFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.newFileMenuItem.Size = new System.Drawing.Size(186, 22); this.newFileMenuItem.Text = "&New"; this.newFileMenuItem.Click += new System.EventHandler(this.newMenuItem_Click); - // + // // openFileMenuItem - // + // this.openFileMenuItem.Image = global::bzit.bomg.Properties.Resources.folder_page; this.openFileMenuItem.Name = "openFileMenuItem"; this.openFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.openFileMenuItem.Size = new System.Drawing.Size(186, 22); this.openFileMenuItem.Text = "&Open"; this.openFileMenuItem.Click += new System.EventHandler(this.openMenuItem_Click); - // + // // toolStripSeparator1 - // + // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(183, 6); - // + // // closeFileMenuItem - // + // this.closeFileMenuItem.Name = "closeFileMenuItem"; this.closeFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W))); this.closeFileMenuItem.Size = new System.Drawing.Size(186, 22); this.closeFileMenuItem.Text = "&Close"; this.closeFileMenuItem.Click += new System.EventHandler(this.closeMenuItem_Click); - // + // // toolStripSeparator4 - // + // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(183, 6); - // + // // saveFileMenuItem - // + // this.saveFileMenuItem.Image = global::bzit.bomg.Properties.Resources.disk; this.saveFileMenuItem.Name = "saveFileMenuItem"; this.saveFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.saveFileMenuItem.Size = new System.Drawing.Size(186, 22); this.saveFileMenuItem.Text = "&Save"; this.saveFileMenuItem.Click += new System.EventHandler(this.importSnapshotToolStripMenuItem_Click); - // + // // saveAsFileMenuItem - // + // this.saveAsFileMenuItem.Image = global::bzit.bomg.Properties.Resources.page_white_disk; this.saveAsFileMenuItem.Name = "saveAsFileMenuItem"; - this.saveAsFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) + this.saveAsFileMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.S))); this.saveAsFileMenuItem.Size = new System.Drawing.Size(186, 22); this.saveAsFileMenuItem.Text = "Save &As"; this.saveAsFileMenuItem.Click += new System.EventHandler(this.exportSnapshotToolStripMenuItem_Click); - // + // // toolStripSeparator8 - // + // this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new System.Drawing.Size(183, 6); - // + // // exportFileMenuItem - // + // this.exportFileMenuItem.Enabled = false; this.exportFileMenuItem.Name = "exportFileMenuItem"; this.exportFileMenuItem.Size = new System.Drawing.Size(186, 22); this.exportFileMenuItem.Text = "&Export"; this.exportFileMenuItem.Click += new System.EventHandler(this.toolStripMenuItem7_Click); - // + // // toolStripSeparator6 - // + // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(183, 6); - // + // // exitFileMenuItem - // + // this.exitFileMenuItem.Name = "exitFileMenuItem"; this.exitFileMenuItem.Size = new System.Drawing.Size(186, 22); this.exitFileMenuItem.Text = "E&xit"; this.exitFileMenuItem.Click += new System.EventHandler(this.exitMenuItem_Click); - // + // // toolStripDropDownButton2 - // + // this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.findEditMenuItem}); @@ -335,18 +320,18 @@ namespace bzit.bomg this.toolStripDropDownButton2.ShowDropDownArrow = false; this.toolStripDropDownButton2.Size = new System.Drawing.Size(31, 22); this.toolStripDropDownButton2.Text = "&Edit"; - // + // // findEditMenuItem - // + // this.findEditMenuItem.Image = global::bzit.bomg.Properties.Resources.magnifier; this.findEditMenuItem.Name = "findEditMenuItem"; this.findEditMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F))); - this.findEditMenuItem.Size = new System.Drawing.Size(137, 22); + this.findEditMenuItem.Size = new System.Drawing.Size(180, 22); this.findEditMenuItem.Text = "&Find"; this.findEditMenuItem.Click += new System.EventHandler(this.toolStripButton5_Click); - // + // // toolStripDropDownButton3 - // + // this.toolStripDropDownButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.expandAllViewMenuItem, @@ -356,25 +341,25 @@ namespace bzit.bomg this.toolStripDropDownButton3.ShowDropDownArrow = false; this.toolStripDropDownButton3.Size = new System.Drawing.Size(36, 22); this.toolStripDropDownButton3.Text = "&View"; - // + // // expandAllViewMenuItem - // + // this.expandAllViewMenuItem.Enabled = false; this.expandAllViewMenuItem.Name = "expandAllViewMenuItem"; - this.expandAllViewMenuItem.Size = new System.Drawing.Size(136, 22); + this.expandAllViewMenuItem.Size = new System.Drawing.Size(180, 22); this.expandAllViewMenuItem.Text = "&Expand All"; this.expandAllViewMenuItem.Click += new System.EventHandler(this.expandAllToolStripMenuItem_Click); - // + // // collapseAllViewMenuItem - // + // this.collapseAllViewMenuItem.Enabled = false; this.collapseAllViewMenuItem.Name = "collapseAllViewMenuItem"; - this.collapseAllViewMenuItem.Size = new System.Drawing.Size(136, 22); + this.collapseAllViewMenuItem.Size = new System.Drawing.Size(180, 22); this.collapseAllViewMenuItem.Text = "&Collapse All"; this.collapseAllViewMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click); - // + // // toolStripDropDownButton4 - // + // this.toolStripDropDownButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton4.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.updateIconsToolMenuItem, @@ -385,31 +370,31 @@ namespace bzit.bomg this.toolStripDropDownButton4.ShowDropDownArrow = false; this.toolStripDropDownButton4.Size = new System.Drawing.Size(39, 22); this.toolStripDropDownButton4.Text = "&Tools"; - // + // // updateIconsToolMenuItem - // + // this.updateIconsToolMenuItem.Name = "updateIconsToolMenuItem"; - this.updateIconsToolMenuItem.Size = new System.Drawing.Size(143, 22); + this.updateIconsToolMenuItem.Size = new System.Drawing.Size(180, 22); this.updateIconsToolMenuItem.Text = "&Update Icons"; this.updateIconsToolMenuItem.Click += new System.EventHandler(this.toolStripMenuItem1_Click); - // + // // toolStripSeparator14 - // + // this.toolStripSeparator14.Name = "toolStripSeparator14"; - this.toolStripSeparator14.Size = new System.Drawing.Size(140, 6); - // + this.toolStripSeparator14.Size = new System.Drawing.Size(177, 6); + // // optionsToolMenuItem - // + // this.optionsToolMenuItem.Enabled = false; this.optionsToolMenuItem.Image = global::bzit.bomg.Properties.Resources.cog; this.optionsToolMenuItem.Name = "optionsToolMenuItem"; this.optionsToolMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F12; - this.optionsToolMenuItem.Size = new System.Drawing.Size(143, 22); + this.optionsToolMenuItem.Size = new System.Drawing.Size(180, 22); this.optionsToolMenuItem.Text = "&Options"; this.optionsToolMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem1_Click); - // + // // toolStripDropDownButton5 - // + // this.toolStripDropDownButton5.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton5.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.viewHelpHelpMenuItem, @@ -420,31 +405,31 @@ namespace bzit.bomg this.toolStripDropDownButton5.ShowDropDownArrow = false; this.toolStripDropDownButton5.Size = new System.Drawing.Size(36, 22); this.toolStripDropDownButton5.Text = "&Help"; - // + // // viewHelpHelpMenuItem - // + // this.viewHelpHelpMenuItem.Image = global::bzit.bomg.Properties.Resources.help; this.viewHelpHelpMenuItem.Name = "viewHelpHelpMenuItem"; this.viewHelpHelpMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; - this.viewHelpHelpMenuItem.Size = new System.Drawing.Size(146, 22); + this.viewHelpHelpMenuItem.Size = new System.Drawing.Size(180, 22); this.viewHelpHelpMenuItem.Text = "View &Help"; this.viewHelpHelpMenuItem.Click += new System.EventHandler(this.documentationToolStripMenuItem_Click); - // + // // toolStripSeparator12 - // + // this.toolStripSeparator12.Name = "toolStripSeparator12"; - this.toolStripSeparator12.Size = new System.Drawing.Size(143, 6); - // + this.toolStripSeparator12.Size = new System.Drawing.Size(177, 6); + // // aboutHelpMenuItem - // + // this.aboutHelpMenuItem.Image = global::bzit.bomg.Properties.Resources.comment; this.aboutHelpMenuItem.Name = "aboutHelpMenuItem"; - this.aboutHelpMenuItem.Size = new System.Drawing.Size(146, 22); + this.aboutHelpMenuItem.Size = new System.Drawing.Size(180, 22); this.aboutHelpMenuItem.Text = "&About"; this.aboutHelpMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem1_Click); - // + // // toolStripDropDownButton7 - // + // this.toolStripDropDownButton7.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripDropDownButton7.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.alwaysOnTopToolStripMenuItem}); @@ -454,23 +439,23 @@ namespace bzit.bomg this.toolStripDropDownButton7.Size = new System.Drawing.Size(16, 22); this.toolStripDropDownButton7.Text = "&?"; this.toolStripDropDownButton7.Visible = false; - // + // // alwaysOnTopToolStripMenuItem - // + // this.alwaysOnTopToolStripMenuItem.Name = "alwaysOnTopToolStripMenuItem"; this.alwaysOnTopToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F11))); this.alwaysOnTopToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.alwaysOnTopToolStripMenuItem.Text = "Always On Top"; this.alwaysOnTopToolStripMenuItem.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click); - // + // // openFileDialog - // + // this.openFileDialog.DefaultExt = "ryz"; this.openFileDialog.Filter = "Bookmarks files|*.ryz"; this.openFileDialog.Title = "Open bookmarks file"; - // + // // folderTreeNodeMenu - // + // this.folderTreeNodeMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem15, this.toolStripMenuItem16, @@ -485,104 +470,102 @@ namespace bzit.bomg this.toolStripMenuItem13}); this.folderTreeNodeMenu.Name = "listViewMenu"; this.folderTreeNodeMenu.Size = new System.Drawing.Size(139, 198); - // + // // toolStripMenuItem15 - // + // this.toolStripMenuItem15.Name = "toolStripMenuItem15"; this.toolStripMenuItem15.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem15.Text = "Add &Page"; this.toolStripMenuItem15.Click += new System.EventHandler(this.addPageContextMenu2_Click); - // + // // toolStripMenuItem16 - // + // this.toolStripMenuItem16.Name = "toolStripMenuItem16"; this.toolStripMenuItem16.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem16.Text = "Add &Folder"; this.toolStripMenuItem16.Click += new System.EventHandler(this.addFolderContextMenu2_Click); - // + // // toolStripSeparator5 - // + // this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(135, 6); - // + // // toolStripMenuItem14 - // + // this.toolStripMenuItem14.Name = "toolStripMenuItem14"; this.toolStripMenuItem14.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem14.Text = "&Open All"; this.toolStripMenuItem14.Click += new System.EventHandler(this.openAllContextMenu_Click); - // + // // toolStripMenuItem9 - // + // this.toolStripMenuItem9.Name = "toolStripMenuItem9"; this.toolStripMenuItem9.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem9.Text = "Edi&t"; this.toolStripMenuItem9.Click += new System.EventHandler(this.editContextMenu2_Click); - // + // // toolStripMenuItem11 - // + // this.toolStripMenuItem11.Name = "toolStripMenuItem11"; this.toolStripMenuItem11.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem11.Text = "D&elete"; this.toolStripMenuItem11.Click += new System.EventHandler(this.deleteContextMenu_Click); - // + // // toolStripSeparator7 - // + // this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(135, 6); - // + // // sortToolStripMenuItem - // + // this.sortToolStripMenuItem.Name = "sortToolStripMenuItem"; this.sortToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.sortToolStripMenuItem.Text = "&Sort"; this.sortToolStripMenuItem.Click += new System.EventHandler(this.sortContextMenu2_Click); - // + // // toolStripSeparator11 - // + // this.toolStripSeparator11.Name = "toolStripSeparator11"; this.toolStripSeparator11.Size = new System.Drawing.Size(135, 6); - // + // // toolStripMenuItem12 - // + // this.toolStripMenuItem12.Name = "toolStripMenuItem12"; this.toolStripMenuItem12.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem12.Text = "Move &Up"; this.toolStripMenuItem12.Click += new System.EventHandler(this.moveUpContextMenu_Click); - // + // // toolStripMenuItem13 - // + // this.toolStripMenuItem13.Name = "toolStripMenuItem13"; this.toolStripMenuItem13.Size = new System.Drawing.Size(138, 22); this.toolStripMenuItem13.Text = "Move &Down"; this.toolStripMenuItem13.Click += new System.EventHandler(this.moveDownContextMenu_Click); - // + // // saveFileDialog - // + // this.saveFileDialog.DefaultExt = "ryz"; this.saveFileDialog.Filter = "Bookmarks file|*.ryz|Bookmarks file (password protected)|*.ryz"; this.saveFileDialog.Title = "Save bookmarks file"; - // + // // toolStrip2 - // + // this.toolStrip2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.toolStrip2.CanOverflow = false; this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newMenuBarItem, this.openMenuBarItem, this.saveMenuBarItem, - this.toolStripSeparator9, - this.toolStripButton1, - this.toolStripButton2}); + this.toolStripSeparator9}); this.toolStrip2.Location = new System.Drawing.Point(0, 25); this.toolStrip2.Name = "toolStrip2"; this.toolStrip2.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; this.toolStrip2.Size = new System.Drawing.Size(304, 25); this.toolStrip2.TabIndex = 26; this.toolStrip2.Text = "toolStrip2"; - // + // // newMenuBarItem - // + // this.newMenuBarItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.newMenuBarItem.Image = ((System.Drawing.Image)(resources.GetObject("newMenuBarItem.Image"))); this.newMenuBarItem.ImageTransparentColor = System.Drawing.Color.Magenta; @@ -591,9 +574,9 @@ namespace bzit.bomg this.newMenuBarItem.Text = "toolStripButton1"; this.newMenuBarItem.ToolTipText = "New"; this.newMenuBarItem.Click += new System.EventHandler(this.newMenuItem_Click); - // + // // openMenuBarItem - // + // this.openMenuBarItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.openMenuBarItem.Image = global::bzit.bomg.Properties.Resources.folder_page; this.openMenuBarItem.ImageTransparentColor = System.Drawing.Color.Magenta; @@ -602,9 +585,9 @@ namespace bzit.bomg this.openMenuBarItem.Text = "toolStripButton2"; this.openMenuBarItem.ToolTipText = "Open"; this.openMenuBarItem.Click += new System.EventHandler(this.openMenuItem_Click); - // + // // saveMenuBarItem - // + // this.saveMenuBarItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.saveMenuBarItem.Image = global::bzit.bomg.Properties.Resources.disk; this.saveMenuBarItem.ImageTransparentColor = System.Drawing.Color.Magenta; @@ -613,32 +596,14 @@ namespace bzit.bomg this.saveMenuBarItem.Text = "toolStripButton3"; this.saveMenuBarItem.ToolTipText = "Save"; this.saveMenuBarItem.Click += new System.EventHandler(this.importSnapshotToolStripMenuItem_Click); - // + // // toolStripSeparator9 - // + // this.toolStripSeparator9.Name = "toolStripSeparator9"; this.toolStripSeparator9.Size = new System.Drawing.Size(6, 25); - // - // toolStripButton1 - // - this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); - this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(23, 22); - this.toolStripButton1.Text = "toolStripButton1"; - // - // toolStripButton2 - // - this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); - this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton2.Name = "toolStripButton2"; - this.toolStripButton2.Size = new System.Drawing.Size(23, 22); - this.toolStripButton2.Text = "toolStripButton2"; - // + // // rootTreeNodeMenu - // + // this.rootTreeNodeMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem17, this.toolStripMenuItem18, @@ -648,51 +613,50 @@ namespace bzit.bomg this.toolStripMenuItem22}); this.rootTreeNodeMenu.Name = "listViewMenu"; this.rootTreeNodeMenu.Size = new System.Drawing.Size(133, 104); - // + // // toolStripMenuItem17 - // + // this.toolStripMenuItem17.Name = "toolStripMenuItem17"; this.toolStripMenuItem17.Size = new System.Drawing.Size(132, 22); this.toolStripMenuItem17.Text = "Add &Page"; this.toolStripMenuItem17.Click += new System.EventHandler(this.addPageContextMenu_Click); - // + // // toolStripMenuItem18 - // + // this.toolStripMenuItem18.Name = "toolStripMenuItem18"; this.toolStripMenuItem18.Size = new System.Drawing.Size(132, 22); this.toolStripMenuItem18.Text = "Add &Folder"; this.toolStripMenuItem18.Click += new System.EventHandler(this.addFolderContextMenu_Click); - // + // // toolStripSeparator10 - // + // this.toolStripSeparator10.Name = "toolStripSeparator10"; this.toolStripSeparator10.Size = new System.Drawing.Size(129, 6); - // + // // toolStripMenuItem20 - // + // this.toolStripMenuItem20.Name = "toolStripMenuItem20"; this.toolStripMenuItem20.Size = new System.Drawing.Size(132, 22); this.toolStripMenuItem20.Text = "Edi&t"; this.toolStripMenuItem20.Click += new System.EventHandler(this.editContextMenu_Click); - // + // // toolStripSeparator13 - // + // this.toolStripSeparator13.Name = "toolStripSeparator13"; this.toolStripSeparator13.Size = new System.Drawing.Size(129, 6); - // + // // toolStripMenuItem22 - // + // this.toolStripMenuItem22.Name = "toolStripMenuItem22"; this.toolStripMenuItem22.Size = new System.Drawing.Size(132, 22); this.toolStripMenuItem22.Text = "&Sort"; this.toolStripMenuItem22.Click += new System.EventHandler(this.sortContextMenu_Click); - // + // // treeView1 - // + // this.treeView1.AllowDrop = true; this.treeView1.BackColor = System.Drawing.Color.White; this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.treeView1.HasChanged = false; this.treeView1.HideSelection = false; this.treeView1.HotTracking = true; this.treeView1.ImageIndex = 0; @@ -704,11 +668,11 @@ namespace bzit.bomg this.treeView1.Size = new System.Drawing.Size(304, 584); this.treeView1.TabIndex = 24; this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick); - this.treeView1.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView2_NodeMouseDoubleClick); + this.treeView1.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseDoubleClick); this.treeView1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.treeView1_PreviewKeyDown); - // + // // MainForm - // + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(304, 654); @@ -764,7 +728,6 @@ namespace bzit.bomg private System.Windows.Forms.ToolStripMenuItem viewHelpHelpMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator12; private System.Windows.Forms.ToolStripMenuItem aboutHelpMenuItem; - private System.Windows.Forms.ImageList imageList1; private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton7; private System.Windows.Forms.ToolStripMenuItem alwaysOnTopToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem openFileMenuItem; @@ -806,8 +769,6 @@ namespace bzit.bomg private System.Windows.Forms.ToolStripMenuItem findEditMenuItem; private System.Windows.Forms.ToolStripMenuItem updateIconsToolMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator14; - private System.Windows.Forms.ToolStripButton toolStripButton1; - private System.Windows.Forms.ToolStripButton toolStripButton2; } } diff --git a/MainForm.cs b/MainForm.cs index 203181a..11846ff 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -64,20 +64,20 @@ namespace bzit.bomg sessionFileFormat = new SessionFileFormat(this); this.ApplicationMode = AppMode.Clear; - treeView1.OnNodeCountUpdate = delegate (ulong v) { - statusBarPanel2.Text = v.ToString(); - }; - treeView1.OnChanged = delegate (object sender, EventArgs ev) { - if (this.ApplicationMode == AppMode.New) - { - saveMenuBarItem.Enabled = saveFileMenuItem.Enabled = false; - } - else - { - saveMenuBarItem.Enabled = saveFileMenuItem.Enabled = treeView1.HasChanged; - } + //treeView1.OnNodeCountUpdate = delegate (ulong v) { + // statusBarPanel2.Text = v.ToString(); + //}; + //treeView1.OnChanged = delegate (object sender, EventArgs ev) { + // if (this.ApplicationMode == AppMode.New) + // { + // saveMenuBarItem.Enabled = saveFileMenuItem.Enabled = false; + // } + // else + // { + // saveMenuBarItem.Enabled = saveFileMenuItem.Enabled = treeView1.HasChanged; + // } - }; + //}; } protected override void OnShown(EventArgs e) @@ -265,15 +265,22 @@ namespace bzit.bomg #region Toolbar #1 + /// + /// File New + /// + /// + /// private void newMenuItem_Click(object sender, EventArgs e) { NewSessionForm newSessionForm = new NewSessionForm(this); newSessionForm.ShowDialog(); } - /* - * File -> Open - */ + /// + /// File Open + /// + /// + /// private void openMenuItem_Click(object sender, EventArgs e) { if (openFileDialog.ShowDialog() == DialogResult.OK) @@ -483,7 +490,7 @@ namespace bzit.bomg #endregion - #region TreeView Menu - item + //#region TreeView Menu - item /** * Node -> Open @@ -518,7 +525,7 @@ namespace bzit.bomg // treeView1.DeleteNode(); //} - #endregion + //#endregion //#region TreeView Menu - folder @@ -654,63 +661,9 @@ namespace bzit.bomg default: break; } - - //BookmarkEditForm editForm = new BookmarkEditForm(treeView1); - //editForm.ShowDialog(); - - return; - - - if (e.Node == null) - { - return; - } - - if (e.Node.Text.Equals("")) - { - return; - } - - // view ui - expandAllViewMenuItem.Enabled = false; - collapseAllViewMenuItem.Enabled = false; - if (e.Node != null) - { - if (e.Node.Tag == null) - { - expandAllViewMenuItem.Enabled = true; - collapseAllViewMenuItem.Enabled = true; - } - } - - if (e.Button == MouseButtons.Right) - { - // folder - if (e.Node.Tag == null) - { - if (e.Node.Equals(e.Node.TreeView.Nodes[0])) - { - rootTreeNodeMenu.Show(Cursor.Position); - } - else - { - folderTreeNodeMenu.Show(Cursor.Position); - } - } - else - { - if (!(e.Node.Tag is BookmarkItem)) - { - return; - } - - BookmarkItem bi = (BookmarkItem)e.Node.Tag; - pageTreeNodeMenu.Show(Cursor.Position); - } - } } - private void treeView2_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { openBookmark(e.Node); } + private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) => openBookmark(e.Node); private void treeView1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { @@ -880,7 +833,6 @@ namespace bzit.bomg //} } - #region root context menu private void addPageContextMenu_Click(object sender, EventArgs e) => (new BookmarkEditForm(treeView1)).ShowDialog(); diff --git a/MainForm.resx b/MainForm.resx index 6cef617..c2e0424 100644 --- a/MainForm.resx +++ b/MainForm.resx @@ -123,118 +123,6 @@ 17, 17 - - 333, 17 - - - - AAEAAAD/////AQAAAAAA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PIZibT6h+Aur3dx0K4AYMhzsF + P4ffFr4MrPuyDo8Qxx8hL792hKPEBDThi3SXaIso/IwzOk2jBfl8/uau4F/Q7jVndPrvJOnnsflBt0AU + 3qHX2aQM/3vD6SOSBFvvA4V7+v4ABhqcM6lhVZQAAAAASUVORK5CYII= diff --git a/NewSessionForm.Designer.cs b/NewSessionForm.Designer.cs index 0a35947..367e2f3 100644 --- a/NewSessionForm.Designer.cs +++ b/NewSessionForm.Designer.cs @@ -28,74 +28,85 @@ namespace bzit.bomg /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewSessionForm)); - this.label1 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.btnSave = new RyzStudio.Windows.Forms.BigButton(); + this.textBox2 = new RyzStudio.Windows.ThemedForms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.horizontalSeparator1 = new RyzStudio.Windows.Forms.HorizontalSeparator(); + this.button2 = new RyzStudio.Windows.ThemedForms.Button(); this.SuspendLayout(); // - // label1 + // textBox2 // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 12); - this.label1.Margin = new System.Windows.Forms.Padding(3); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(132, 13); - this.label1.TabIndex = 0; - this.label1.Text = "Enter a new session name"; - // - // textBox1 - // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Location = new System.Drawing.Point(12, 31); - this.textBox1.MaxLength = 128; - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(280, 21); - this.textBox1.TabIndex = 0; - this.textBox1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBox1_PreviewKeyDown); + this.textBox2.BackColor = System.Drawing.Color.Transparent; + this.textBox2.Location = new System.Drawing.Point(96, 15); + this.textBox2.Margin = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.textBox2.Name = "textBox2"; + this.textBox2.Padding = new System.Windows.Forms.Padding(10, 10, 9, 9); + this.textBox2.Size = new System.Drawing.Size(276, 33); + this.textBox2.TabIndex = 68; // - // btnSave + // label2 // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.BackColor = System.Drawing.Color.WhiteSmoke; - this.btnSave.Location = new System.Drawing.Point(196, 67); - this.btnSave.MaximumSize = new System.Drawing.Size(120, 32); - this.btnSave.MinimumSize = new System.Drawing.Size(32, 32); - this.btnSave.Name = "btnSave"; - this.btnSave.Padding = new System.Windows.Forms.Padding(4); - this.btnSave.Size = new System.Drawing.Size(96, 32); - this.btnSave.TabIndex = 22; - this.btnSave.Value = "&OK"; - this.btnSave.Click += new System.EventHandler(this.button2_Click); + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 25); + this.label2.Margin = new System.Windows.Forms.Padding(3); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(34, 13); + this.label2.TabIndex = 67; + this.label2.Text = "Name"; + // + // horizontalSeparator1 + // + this.horizontalSeparator1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.horizontalSeparator1.Location = new System.Drawing.Point(12, 63); + this.horizontalSeparator1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 10); + this.horizontalSeparator1.MaximumSize = new System.Drawing.Size(4920, 2); + this.horizontalSeparator1.Name = "horizontalSeparator1"; + this.horizontalSeparator1.Size = new System.Drawing.Size(360, 2); + this.horizontalSeparator1.TabIndex = 69; + // + // button2 + // + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button2.BackColor = System.Drawing.Color.Transparent; + this.button2.DefaultImage = null; + this.button2.DownImage = null; + this.button2.LabelText = "&OK"; + this.button2.Location = new System.Drawing.Point(264, 78); + this.button2.Name = "button2"; + this.button2.OverImage = null; + this.button2.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); + this.button2.Size = new System.Drawing.Size(108, 32); + this.button2.TabIndex = 70; + this.button2.Click += new System.EventHandler(this.button2_Click); // // NewSessionForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(304, 111); - this.Controls.Add(this.btnSave); - this.Controls.Add(this.textBox1); - this.Controls.Add(this.label1); + this.ClientSize = new System.Drawing.Size(384, 122); + this.Controls.Add(this.button2); + this.Controls.Add(this.horizontalSeparator1); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.label2); this.Font = new System.Drawing.Font("Tahoma", 8.25F); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NewSessionForm"; + this.ShowIcon = false; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "New"; this.ResumeLayout(false); this.PerformLayout(); } #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox textBox1; - private RyzStudio.Windows.Forms.BigButton btnSave; + private RyzStudio.Windows.ThemedForms.TextBox textBox2; + private System.Windows.Forms.Label label2; + private RyzStudio.Windows.Forms.HorizontalSeparator horizontalSeparator1; + private RyzStudio.Windows.ThemedForms.Button button2; } } \ No newline at end of file diff --git a/NewSessionForm.cs b/NewSessionForm.cs index e7890ba..74ebd4f 100644 --- a/NewSessionForm.cs +++ b/NewSessionForm.cs @@ -10,7 +10,7 @@ namespace bzit.bomg public NewSessionForm(MainForm form) { InitializeComponent(); - + parentForm = form; } @@ -21,20 +21,18 @@ namespace bzit.bomg return; } - if (string.IsNullOrEmpty(textBox1.Text)) + if (string.IsNullOrEmpty(textBox2.Text)) { return; } - + parentForm.treeView1.Clear(); - parentForm.treeView1.Nodes.Add("", textBox1.Text.Trim(), 0, 0); + parentForm.treeView1.Nodes.Add("", textBox2.Text.Trim(), 0, 0); parentForm.ApplicationMode = MainForm.AppMode.New; this.Close(); } -#region behaviour - private void textBox1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { switch (e.KeyCode) @@ -49,7 +47,5 @@ namespace bzit.bomg } } -#endregion - } } \ No newline at end of file diff --git a/NewSessionForm.resx b/NewSessionForm.resx index f427d71..d58980a 100644 --- a/NewSessionForm.resx +++ b/NewSessionForm.resx @@ -117,29 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAB0AAAA0AAAANgAAADYAAAA2AAAANgAAADYAAAA2AAAANgAAADYAAAA2AAAANgAA - ADMAAAAdAAAAAAAAAAAAAAA0+fn59fz8/P38/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8 - /P35+fnzAAAAMwAAAAAAAAABAAAANvz8/P78/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8 - /P/8/Pz//Pz8/QAAADYAAAAAAAAAAQAAADb8/Pz//Pz8//z8/P/8/Pz//Pz8//v7+//7+/v/+/v7//v7 - +//7+/v/+/v7//z8/P8AAAA2AAAAAD3K814np8+g7Pj8/+z4+/+E1/f/q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KxBgACsQcAA - rEHAAaxBwAOsQQ== - - \ No newline at end of file diff --git a/UpdateIconForm.cs b/UpdateIconForm.cs index 05830dd..105375f 100644 --- a/UpdateIconForm.cs +++ b/UpdateIconForm.cs @@ -27,12 +27,12 @@ namespace bzit.bomg { base.OnShown(e); - int nodeCount = (int)parentForm.treeView1.NodeCountCalc; - progressBar1.Minimum = 0; - progressBar1.Value = 0; - progressBar1.Maximum = nodeCount; + //##int nodeCount = (int)parentForm.treeView1.NodeCountCalc; + //progressBar1.Minimum = 0; + //progressBar1.Value = 0; + //progressBar1.Maximum = nodeCount; - label2.Text = string.Concat("0", "/", nodeCount.ToString()); + //label2.Text = string.Concat("0", "/", nodeCount.ToString()); } protected override void OnClosing(CancelEventArgs e) diff --git a/Windows/Forms/BookmarkTreeView.cs b/Windows/Forms/BookmarkTreeView.cs index 0da84f9..8099ca9 100644 --- a/Windows/Forms/BookmarkTreeView.cs +++ b/Windows/Forms/BookmarkTreeView.cs @@ -32,16 +32,16 @@ namespace RyzStudio.Windows.Forms protected IconDatabase iconDatabase = null; - public delegate void NodeCountUpdated(ulong v); + //public delegate void NodeCountUpdated(ulong v); - public EventHandler OnChanged = null; - public NodeCountUpdated OnNodeCountUpdate = null; + //public EventHandler OnChanged = null; + //public NodeCountUpdated OnNodeCountUpdate = null; protected const char pathSeparator = '|'; protected TreeNode draggingNode = null; - //protected bool allowBeginEdit = false; - protected ulong nodeCount = 0; + protected bool allowBeginEdit = false; + //protected ulong nodeCount = 0; protected bool hasChanged = false; public BookmarkTreeView() : base() @@ -87,34 +87,34 @@ namespace RyzStudio.Windows.Forms } } - [Browsable(false)] - public ulong NodeCount - { - get - { - return nodeCount; - } - } + //[Browsable(false)] + //public ulong NodeCount + //{ + // get + // { + // return nodeCount; + // } + //} - [Browsable(false)] - public ulong NodeCountCalc - { - get - { - ulong rv = 0; - if (this.Nodes.Count <= 0) - { - return rv; - } + //[Browsable(false)] + //public ulong NodeCountCalc + //{ + // get + // { + // ulong rv = 0; + // if (this.Nodes.Count <= 0) + // { + // return rv; + // } - foreach (TreeNode tn in this.Nodes) - { - traverseNodeCount(ref rv, tn); - } + // foreach (TreeNode tn in this.Nodes) + // { + // traverseNodeCount(ref rv, tn); + // } - return rv; - } - } + // return rv; + // } + //} [Browsable(false)] public bool HasChanged @@ -124,7 +124,7 @@ namespace RyzStudio.Windows.Forms { hasChanged = value; - OnChanged?.Invoke(null, null); + //OnChanged?.Invoke(null, null); } } @@ -183,6 +183,8 @@ namespace RyzStudio.Windows.Forms TreeNode tn2 = addFolderPath(viewModel.TreeviewPath); tn2.Nodes.Add(tn); + + this.HasChanged = true; } public void AddOrUpdateItem_OnSelectedNode(BookmarkItemViewModel viewModel) @@ -192,9 +194,13 @@ namespace RyzStudio.Windows.Forms case NodeType.Root: case NodeType.Folder: addItem_OnSelectedNode(viewModel); + + this.HasChanged = true; break; case NodeType.Page: updateItem_OnSelectedNode(viewModel); + + this.HasChanged = true; break; default: break; @@ -227,25 +233,6 @@ namespace RyzStudio.Windows.Forms } } - - //public void EditNode() - //{ - // this.SNode. - - // //this.HasChanged = true; - - // //if (this.SelectedNode == null) - // //{ - // // return; - // //} - - // //if (!this.SelectedNode.IsEditing) - // //{ - // // allowBeginEdit = true; - // // this.SelectedNode.BeginEdit(); - // //} - //} - public string GetNodeFullPath(TreeNode node) { string rv = PathEncode(node.Text); @@ -343,8 +330,8 @@ namespace RyzStudio.Windows.Forms public void Clear() { - nodeCount = 0; - NodeCountUpdate(nodeCount); + //nodeCount = 0; + //NodeCountUpdate(nodeCount); this.Nodes.Clear(); this.HasChanged = true; @@ -420,15 +407,17 @@ namespace RyzStudio.Windows.Forms protected override void OnBeforeLabelEdit(NodeLabelEditEventArgs e) { - //if (!allowBeginEdit) - //{ - // e.CancelEdit = true; - // return; - //} + if (!allowBeginEdit) + { + allowBeginEdit = false; - //this.HasChanged = true; + e.CancelEdit = true; + return; + } - //base.OnBeforeLabelEdit(e); + this.HasChanged = true; + + base.OnBeforeLabelEdit(e); //if (e.Node == null) //{ @@ -470,7 +459,7 @@ namespace RyzStudio.Windows.Forms // e.CancelEdit = true; //} - //allowBeginEdit = false; + allowBeginEdit = false; } protected override void OnPreviewKeyDown(PreviewKeyDownEventArgs e) @@ -502,6 +491,8 @@ namespace RyzStudio.Windows.Forms break; case Keys.F2: + allowBeginEdit = true; + this.SNode.Edit(); break; case Keys.Up: @@ -521,13 +512,13 @@ namespace RyzStudio.Windows.Forms default: break; } - //base.OnPreviewKeyDown(e); + base.OnPreviewKeyDown(e); } - protected virtual void NodeCountUpdate(ulong v) - { - this.OnNodeCountUpdate?.Invoke(v); - } + //protected virtual void NodeCountUpdate(ulong v) + //{ + // this.OnNodeCountUpdate?.Invoke(v); + //} #endregion @@ -700,9 +691,9 @@ namespace RyzStudio.Windows.Forms - protected virtual void OnAddFolderNode(TreeNode node) { } + //protected virtual void OnAddFolderNode(TreeNode node) { } - protected virtual void OnAddItemNode(TreeNode node) { } + //protected virtual void OnAddItemNode(TreeNode node) { } ////protected string PathEncode(string text) { return RyzStudio.String.EncodeTo64(text); }