Compare commits

..

No commits in common. "a8ecd88fd3a86ebccc4c17342e09ce3241b23123" and "527c87889e092983ec77d0b7547c9fe259d2849e" have entirely different histories.

5 changed files with 47 additions and 23 deletions

View File

@ -14,7 +14,7 @@
<Copyright>Ray Lam</Copyright> <Copyright>Ray Lam</Copyright>
<AssemblyVersion>1.0.0.0</AssemblyVersion> <AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion> <FileVersion>1.0.0.0</FileVersion>
<Version>0.6.0.1042</Version> <Version>0.6.0.972</Version>
<PackageId>bukkubuddy</PackageId> <PackageId>bukkubuddy</PackageId>
<RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis> <RunAnalyzersDuringLiveAnalysis>True</RunAnalyzersDuringLiveAnalysis>
<SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion>
@ -120,8 +120,8 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.61" /> <PackageReference Include="HtmlAgilityPack" Version="1.11.61" />
<PackageReference Include="RyzStudio" Version="8.1.2.324" /> <PackageReference Include="RyzStudio" Version="8.1.2.249" />
<PackageReference Include="RyzStudio.Windows.Forms" Version="8.1.3.632" /> <PackageReference Include="RyzStudio.Windows.Forms" Version="8.1.3.614" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -20,6 +20,7 @@ namespace FizzyLauncher
private Label label4; private Label label4;
private ThHiButtonTextBox textBox2; private ThHiButtonTextBox textBox2;
private PictureBox pictureBox1; private PictureBox pictureBox1;
private PictureBox pictureBox2;
private ToolTip toolTip1; private ToolTip toolTip1;
private System.ComponentModel.IContainer components; private System.ComponentModel.IContainer components;
private ThClearableTextBox textBox3; private ThClearableTextBox textBox3;
@ -67,7 +68,7 @@ namespace FizzyLauncher
private void InitializeComponent() private void InitializeComponent()
{ {
components = new Container(); components = new System.ComponentModel.Container();
label1 = new Label(); label1 = new Label();
textBox1 = new ThClearableTextBox(); textBox1 = new ThClearableTextBox();
label2 = new Label(); label2 = new Label();
@ -77,11 +78,13 @@ namespace FizzyLauncher
textBox2 = new ThHiButtonTextBox(); textBox2 = new ThHiButtonTextBox();
pictureBox1 = new PictureBox(); pictureBox1 = new PictureBox();
toolTip1 = new ToolTip(components); toolTip1 = new ToolTip(components);
pictureBox2 = new PictureBox();
textBox3 = new ThClearableTextBox(); textBox3 = new ThClearableTextBox();
thUserControl1 = new ThUserControl(); thUserControl1 = new ThUserControl();
label5 = new Label(); label5 = new Label();
dialogFooter1 = new RyzStudio.Windows.ThemedForms.Composite.DialogFooter(); dialogFooter1 = new RyzStudio.Windows.ThemedForms.Composite.DialogFooter();
((ISupportInitialize)pictureBox1).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
((System.ComponentModel.ISupportInitialize)pictureBox2).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// label1 // label1
@ -202,6 +205,19 @@ namespace FizzyLauncher
pictureBox1.TabStop = false; pictureBox1.TabStop = false;
pictureBox1.MouseDoubleClick += pictureBox1_MouseDoubleClick; pictureBox1.MouseDoubleClick += pictureBox1_MouseDoubleClick;
// //
// pictureBox2
//
pictureBox2.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
pictureBox2.BackColor = Color.Transparent;
pictureBox2.ErrorImage = null;
pictureBox2.InitialImage = null;
pictureBox2.Location = new Point(10, 396);
pictureBox2.Name = "pictureBox2";
pictureBox2.Size = new Size(32, 32);
pictureBox2.SizeMode = PictureBoxSizeMode.CenterImage;
pictureBox2.TabIndex = 202;
pictureBox2.TabStop = false;
//
// textBox3 // textBox3
// //
textBox3.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; textBox3.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
@ -248,7 +264,6 @@ namespace FizzyLauncher
dialogFooter1.Button1Text = "&OK"; dialogFooter1.Button1Text = "&OK";
dialogFooter1.Dialog = this; dialogFooter1.Dialog = this;
dialogFooter1.Dock = DockStyle.Bottom; dialogFooter1.Dock = DockStyle.Bottom;
dialogFooter1.IsBusy = false;
dialogFooter1.Location = new Point(0, 437); dialogFooter1.Location = new Point(0, 437);
dialogFooter1.Name = "dialogFooter1"; dialogFooter1.Name = "dialogFooter1";
dialogFooter1.Size = new Size(384, 84); dialogFooter1.Size = new Size(384, 84);
@ -261,6 +276,7 @@ namespace FizzyLauncher
ClientSize = new Size(384, 521); ClientSize = new Size(384, 521);
Controls.Add(dialogFooter1); Controls.Add(dialogFooter1);
Controls.Add(textBox3); Controls.Add(textBox3);
Controls.Add(pictureBox2);
Controls.Add(pictureBox1); Controls.Add(pictureBox1);
Controls.Add(textBox2); Controls.Add(textBox2);
Controls.Add(memoBox1); Controls.Add(memoBox1);
@ -275,7 +291,8 @@ namespace FizzyLauncher
MinimumSize = new Size(400, 560); MinimumSize = new Size(400, 560);
Name = "EditBookmarkForm"; Name = "EditBookmarkForm";
Text = "Edit Bookmark"; Text = "Edit Bookmark";
((ISupportInitialize)pictureBox1).EndInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
((System.ComponentModel.ISupportInitialize)pictureBox2).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
@ -335,7 +352,7 @@ namespace FizzyLauncher
UIControl.SetEnable(textBox1, !this.IsBusy); UIControl.SetEnable(textBox1, !this.IsBusy);
UIControl.SetEnable(textBox2, !this.IsBusy); UIControl.SetEnable(textBox2, !this.IsBusy);
UIControl.SetEnable(textBox3, !this.IsBusy); UIControl.SetEnable(textBox3, !this.IsBusy);
dialogFooter1.IsBusy = _isBusy; UIControl.SetValue(pictureBox2, (this.IsBusy ? RyzStudio.Windows.ThemedForms.Resource2.loading_block : null));
UIControl.SetEnable(memoBox1, !this.IsBusy); UIControl.SetEnable(memoBox1, !this.IsBusy);
} }
} }

View File

@ -750,15 +750,6 @@ namespace FizzyLauncher
this.CurrentSession.Height = this.Height; this.CurrentSession.Height = this.Height;
var nodeList = treeView1.ToNodeList<BookmarkModel>() ?? new List<KeyValuePair<TreeNode, BookmarkModel>>(); var nodeList = treeView1.ToNodeList<BookmarkModel>() ?? new List<KeyValuePair<TreeNode, BookmarkModel>>();
foreach (var node in nodeList)
{
node.Value.Path = treeView1.GetNodePath(node.Key);
if (node.Value.Path.Contains('\n'))
{
node.Value.Path = node.Value.Path.Substring(0, node.Value.Path.LastIndexOf('\n'));
}
}
this.CurrentSession.Items = nodeList.Select(x => x.Value).ToList(); this.CurrentSession.Items = nodeList.Select(x => x.Value).ToList();

View File

@ -17,6 +17,7 @@ namespace FizzyLauncher
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private RyzStudio.Windows.Forms.THorizontalSeparator tHorizontalSeparator2; private RyzStudio.Windows.Forms.THorizontalSeparator tHorizontalSeparator2;
private Label label2; private Label label2;
private PictureBox pictureBox2;
private ThYesNoPickerBox pickerBox1; private ThYesNoPickerBox pickerBox1;
private ThButton button2; private ThButton button2;
private RyzStudio.Windows.ThemedForms.ThProgressBar progressBar1; private RyzStudio.Windows.ThemedForms.ThProgressBar progressBar1;
@ -50,6 +51,7 @@ namespace FizzyLauncher
label1 = new Label(); label1 = new Label();
tHorizontalSeparator2 = new THorizontalSeparator(); tHorizontalSeparator2 = new THorizontalSeparator();
label2 = new Label(); label2 = new Label();
pictureBox2 = new PictureBox();
pickerBox1 = new ThYesNoPickerBox(); pickerBox1 = new ThYesNoPickerBox();
button2 = new ThButton(); button2 = new ThButton();
progressBar1 = new ThProgressBar(); progressBar1 = new ThProgressBar();
@ -58,6 +60,7 @@ namespace FizzyLauncher
button3 = new ThButton(); button3 = new ThButton();
progressBar2 = new ThProgressBar(); progressBar2 = new ThProgressBar();
dialogFooter1 = new RyzStudio.Windows.ThemedForms.Composite.DialogFooter(); dialogFooter1 = new RyzStudio.Windows.ThemedForms.Composite.DialogFooter();
((ISupportInitialize)pictureBox2).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// label1 // label1
@ -103,6 +106,19 @@ namespace FizzyLauncher
label2.Text = "Retrieve supported icons from bookmarks."; label2.Text = "Retrieve supported icons from bookmarks.";
label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// pictureBox2
//
pictureBox2.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
pictureBox2.BackColor = System.Drawing.Color.Transparent;
pictureBox2.ErrorImage = null;
pictureBox2.InitialImage = null;
pictureBox2.Location = new System.Drawing.Point(402, 294);
pictureBox2.Name = "pictureBox2";
pictureBox2.Size = new System.Drawing.Size(32, 32);
pictureBox2.SizeMode = PictureBoxSizeMode.CenterImage;
pictureBox2.TabIndex = 202;
pictureBox2.TabStop = false;
//
// pickerBox1 // pickerBox1
// //
pickerBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right; pickerBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
@ -221,9 +237,8 @@ namespace FizzyLauncher
// //
dialogFooter1.BackColor = System.Drawing.Color.FromArgb(240, 240, 240); dialogFooter1.BackColor = System.Drawing.Color.FromArgb(240, 240, 240);
dialogFooter1.Button1Text = "&Close"; dialogFooter1.Button1Text = "&Close";
dialogFooter1.Dialog = this; dialogFooter1.Dialog = null;
dialogFooter1.Dock = DockStyle.Bottom; dialogFooter1.Dock = DockStyle.Bottom;
dialogFooter1.IsBusy = false;
dialogFooter1.Location = new System.Drawing.Point(0, 437); dialogFooter1.Location = new System.Drawing.Point(0, 437);
dialogFooter1.Name = "dialogFooter1"; dialogFooter1.Name = "dialogFooter1";
dialogFooter1.Size = new System.Drawing.Size(444, 84); dialogFooter1.Size = new System.Drawing.Size(444, 84);
@ -242,6 +257,7 @@ namespace FizzyLauncher
Controls.Add(progressBar1); Controls.Add(progressBar1);
Controls.Add(button2); Controls.Add(button2);
Controls.Add(pickerBox1); Controls.Add(pickerBox1);
Controls.Add(pictureBox2);
Controls.Add(label2); Controls.Add(label2);
Controls.Add(tHorizontalSeparator2); Controls.Add(tHorizontalSeparator2);
Controls.Add(label1); Controls.Add(label1);
@ -249,6 +265,7 @@ namespace FizzyLauncher
MinimumSize = new System.Drawing.Size(460, 560); MinimumSize = new System.Drawing.Size(460, 560);
Name = "UpdateIconsForm"; Name = "UpdateIconsForm";
Text = "Update Icons"; Text = "Update Icons";
((ISupportInitialize)pictureBox2).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
@ -302,8 +319,7 @@ namespace FizzyLauncher
{ {
button3.LabelText = (this.IsBusy ? "&Stop" : "Clear &All"); button3.LabelText = (this.IsBusy ? "&Stop" : "Clear &All");
}); });
UIControl.SetValue(pictureBox2, (this.IsBusy ? RyzStudio.Windows.ThemedForms.Resource2.loading_block : null));
dialogFooter1.IsBusy = _isBusy;
} }
} }

View File

@ -281,7 +281,7 @@ namespace RyzStudio.Windows.Forms
public TreeNode AddNode(BookmarkModel model) public TreeNode AddNode(BookmarkModel model)
{ {
var parentNode = this.CreateNodePath(model?.Path?.Trim() ?? string.Empty, (int)NodeIcon.Folder1, (int)NodeIcon.Folder2); var parentNode = this.CreateNodePath(model.Path, (int)NodeIcon.Folder1, (int)NodeIcon.Folder2);
int iconIndex = (int)NodeIcon.Default; int iconIndex = (int)NodeIcon.Default;
// Add custom favicon // Add custom favicon
@ -304,7 +304,7 @@ namespace RyzStudio.Windows.Forms
} }
} }
TreeNode newNode = new TreeNode(model?.Title?.Trim() ?? string.Empty, iconIndex, iconIndex); TreeNode newNode = new TreeNode(model.Title, iconIndex, iconIndex);
newNode.Tag = model; newNode.Tag = model;
newNode.ToolTipText = model.ToString(); newNode.ToolTipText = model.ToString();