release/0.6.1 #4
50
AppResource.Designer.cs
generated
50
AppResource.Designer.cs
generated
@ -126,16 +126,6 @@ namespace BookmarkManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap file {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("file", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -166,16 +156,6 @@ namespace BookmarkManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap help_circle {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("help_circle", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -196,36 +176,6 @@ namespace BookmarkManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap save {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("save", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap search {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("search", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap settings {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("settings", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -139,9 +139,6 @@
|
|||||||
<data name="bookmark" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="bookmark" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\bookmark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\bookmark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="file" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>Resources\file.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="file_text" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="file_text" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\file-text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\file-text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@ -151,24 +148,12 @@
|
|||||||
<data name="folder_explore" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="folder_explore" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\folder_explore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\folder_explore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="help_circle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>Resources\help-circle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="hexagon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="hexagon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\hexagon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\hexagon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="icon_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="icon_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\icon-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\icon-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>Resources\save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="search" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>Resources\search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>Resources\settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="trash" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="trash" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>Resources\trash.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>Resources\trash.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -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.1.0244</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.366" />
|
||||||
<PackageReference Include="RyzStudio.Windows.Forms" Version="8.1.3.632" />
|
<PackageReference Include="RyzStudio.Windows.Forms" Version="8.1.3.689" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using BookmarkManager.Services;
|
using BookmarkManager.Services;
|
||||||
using bzit.bomg.Models;
|
using bzit.bomg.Models;
|
||||||
@ -54,11 +55,16 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (model.Icon.Width > 16)
|
||||||
|
{
|
||||||
|
model.Icon = RyzStudio.Drawing.ImageEditor.Resize(model.Icon, 16, 16);
|
||||||
|
}
|
||||||
|
|
||||||
pictureBox1.Image = model.Icon;
|
pictureBox1.Image = model.Icon;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// do nothing
|
pictureBox1.Image = model.Icon = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
memoBox1.Text = model.Notes?.Trim() ?? string.Empty;
|
memoBox1.Text = model.Notes?.Trim() ?? string.Empty;
|
||||||
@ -343,35 +349,7 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
private async void textBox2_OnButtonClick(object sender, EventArgs e)
|
private async void textBox2_OnButtonClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(textBox2.Text))
|
await InvalidateWebPage(textBox2.Text, true, true, true);
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.IsBusy)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.IsBusy = true;
|
|
||||||
|
|
||||||
if (!textBox2.Text.StartsWith("http://", StringComparison.CurrentCultureIgnoreCase) && !textBox2.Text.StartsWith("https://", StringComparison.CurrentCultureIgnoreCase))
|
|
||||||
{
|
|
||||||
textBox2.Text = "http://" + textBox2.Text;
|
|
||||||
}
|
|
||||||
|
|
||||||
var document = await _webProvider.RetrieveHtmlDocument(textBox2.Text);
|
|
||||||
if (document == null)
|
|
||||||
{
|
|
||||||
this.IsBusy = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
textBox1.Text = _webProvider.ParseTitle(document);
|
|
||||||
textBox3.Text = _webProvider.ParseMetaDescription(document);
|
|
||||||
pictureBox1.Image = await _webProvider.RetrieveImage(document);
|
|
||||||
|
|
||||||
this.IsBusy = false;
|
|
||||||
|
|
||||||
textBox2.Focus();
|
textBox2.Focus();
|
||||||
}
|
}
|
||||||
@ -380,7 +358,13 @@ namespace FizzyLauncher
|
|||||||
{
|
{
|
||||||
if (e.Button == MouseButtons.Left)
|
if (e.Button == MouseButtons.Left)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(textBox2.Text))
|
await InvalidateWebPage(textBox2.Text, false, false, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task InvalidateWebPage(string url, bool updateTitle, bool updateDescription, bool updateIcon)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(url))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -392,23 +376,47 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
this.IsBusy = true;
|
this.IsBusy = true;
|
||||||
|
|
||||||
if (!textBox2.Text.StartsWith("http://", StringComparison.CurrentCultureIgnoreCase) && !textBox2.Text.StartsWith("https://", StringComparison.CurrentCultureIgnoreCase))
|
if (!url.StartsWith("http://", StringComparison.CurrentCultureIgnoreCase) && !url.StartsWith("https://", StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
textBox2.Text = "http://" + textBox2.Text;
|
url = "http://" + url;
|
||||||
}
|
}
|
||||||
|
|
||||||
var document = await _webProvider.RetrieveHtmlDocument(textBox2.Text);
|
var document = await _webProvider.RetrieveHtmlDocument(url);
|
||||||
if (document == null)
|
if (document == null)
|
||||||
{
|
{
|
||||||
this.IsBusy = false;
|
this.IsBusy = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (updateTitle)
|
||||||
|
{
|
||||||
|
textBox1.Text = _webProvider.ParseTitle(document);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateDescription)
|
||||||
|
{
|
||||||
|
textBox3.Text = _webProvider.ParseMetaDescription(document);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (updateIcon)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
pictureBox1.Image = await _webProvider.RetrieveImage(document);
|
pictureBox1.Image = await _webProvider.RetrieveImage(document);
|
||||||
|
|
||||||
|
if (pictureBox1.Image.Width > 16)
|
||||||
|
{
|
||||||
|
pictureBox1.Image = RyzStudio.Drawing.ImageEditor.Resize(pictureBox1.Image, 16, 16);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
pictureBox1.Image = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.IsBusy = false;
|
this.IsBusy = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
34
MainForm.Designer.cs
generated
34
MainForm.Designer.cs
generated
@ -120,7 +120,7 @@ namespace FizzyLauncher
|
|||||||
//
|
//
|
||||||
// newToolStripMenuItem
|
// newToolStripMenuItem
|
||||||
//
|
//
|
||||||
newToolStripMenuItem.Image = BookmarkManager.AppResource.file;
|
newToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
newToolStripMenuItem.Name = "newToolStripMenuItem";
|
newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||||
newToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N;
|
newToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N;
|
||||||
newToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
newToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||||
@ -129,7 +129,7 @@ namespace FizzyLauncher
|
|||||||
//
|
//
|
||||||
// openToolStripMenuItem
|
// openToolStripMenuItem
|
||||||
//
|
//
|
||||||
openToolStripMenuItem.Image = BookmarkManager.AppResource.folder;
|
openToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
openToolStripMenuItem.Name = "openToolStripMenuItem";
|
openToolStripMenuItem.Name = "openToolStripMenuItem";
|
||||||
openToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O;
|
openToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O;
|
||||||
openToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
openToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||||
@ -155,7 +155,7 @@ namespace FizzyLauncher
|
|||||||
//
|
//
|
||||||
// saveToolStripMenuItem
|
// saveToolStripMenuItem
|
||||||
//
|
//
|
||||||
saveToolStripMenuItem.Image = BookmarkManager.AppResource.save;
|
saveToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||||
saveToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S;
|
saveToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S;
|
||||||
saveToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
saveToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||||
@ -190,10 +190,10 @@ namespace FizzyLauncher
|
|||||||
//
|
//
|
||||||
// findToolStripMenuItem
|
// findToolStripMenuItem
|
||||||
//
|
//
|
||||||
findToolStripMenuItem.Image = BookmarkManager.AppResource.search;
|
findToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
findToolStripMenuItem.Name = "findToolStripMenuItem";
|
findToolStripMenuItem.Name = "findToolStripMenuItem";
|
||||||
findToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F;
|
findToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F;
|
||||||
findToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
|
findToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
findToolStripMenuItem.Text = "&Find";
|
findToolStripMenuItem.Text = "&Find";
|
||||||
findToolStripMenuItem.Click += findToolStripMenuItem_Click;
|
findToolStripMenuItem.Click += findToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -207,26 +207,26 @@ namespace FizzyLauncher
|
|||||||
// expandAllToolStripMenuItem
|
// expandAllToolStripMenuItem
|
||||||
//
|
//
|
||||||
expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem";
|
expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem";
|
||||||
expandAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
expandAllToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
expandAllToolStripMenuItem.Text = "&Expand All";
|
expandAllToolStripMenuItem.Text = "&Expand All";
|
||||||
expandAllToolStripMenuItem.Click += expandAllToolStripMenuItem_Click;
|
expandAllToolStripMenuItem.Click += expandAllToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// collapseAllToolStripMenuItem
|
// collapseAllToolStripMenuItem
|
||||||
//
|
//
|
||||||
collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem";
|
collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem";
|
||||||
collapseAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
collapseAllToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
collapseAllToolStripMenuItem.Text = "&Collapse All";
|
collapseAllToolStripMenuItem.Text = "&Collapse All";
|
||||||
collapseAllToolStripMenuItem.Click += collapseAllToolStripMenuItem_Click;
|
collapseAllToolStripMenuItem.Click += collapseAllToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// toolStripSeparator1
|
// toolStripSeparator1
|
||||||
//
|
//
|
||||||
toolStripSeparator1.Name = "toolStripSeparator1";
|
toolStripSeparator1.Name = "toolStripSeparator1";
|
||||||
toolStripSeparator1.Size = new System.Drawing.Size(149, 6);
|
toolStripSeparator1.Size = new System.Drawing.Size(177, 6);
|
||||||
//
|
//
|
||||||
// alwaysOnTopToolStripMenuItem
|
// alwaysOnTopToolStripMenuItem
|
||||||
//
|
//
|
||||||
alwaysOnTopToolStripMenuItem.Name = "alwaysOnTopToolStripMenuItem";
|
alwaysOnTopToolStripMenuItem.Name = "alwaysOnTopToolStripMenuItem";
|
||||||
alwaysOnTopToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
alwaysOnTopToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
alwaysOnTopToolStripMenuItem.Text = "Always On &Top";
|
alwaysOnTopToolStripMenuItem.Text = "Always On &Top";
|
||||||
alwaysOnTopToolStripMenuItem.Click += alwaysOnTopToolStripMenuItem_Click;
|
alwaysOnTopToolStripMenuItem.Click += alwaysOnTopToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -240,21 +240,21 @@ namespace FizzyLauncher
|
|||||||
// toolStripMenuItem9
|
// toolStripMenuItem9
|
||||||
//
|
//
|
||||||
toolStripMenuItem9.Name = "toolStripMenuItem9";
|
toolStripMenuItem9.Name = "toolStripMenuItem9";
|
||||||
toolStripMenuItem9.Size = new System.Drawing.Size(168, 22);
|
toolStripMenuItem9.Size = new System.Drawing.Size(180, 22);
|
||||||
toolStripMenuItem9.Text = "Update &Icons";
|
toolStripMenuItem9.Text = "Update &Icons";
|
||||||
toolStripMenuItem9.Click += toolStripMenuItem9_Click;
|
toolStripMenuItem9.Click += toolStripMenuItem9_Click;
|
||||||
//
|
//
|
||||||
// toolStripSeparator2
|
// toolStripSeparator2
|
||||||
//
|
//
|
||||||
toolStripSeparator2.Name = "toolStripSeparator2";
|
toolStripSeparator2.Name = "toolStripSeparator2";
|
||||||
toolStripSeparator2.Size = new System.Drawing.Size(165, 6);
|
toolStripSeparator2.Size = new System.Drawing.Size(177, 6);
|
||||||
//
|
//
|
||||||
// optionsToolStripMenuItem
|
// optionsToolStripMenuItem
|
||||||
//
|
//
|
||||||
optionsToolStripMenuItem.Image = BookmarkManager.AppResource.settings;
|
optionsToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
||||||
optionsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F12;
|
optionsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F12;
|
||||||
optionsToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
|
optionsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
optionsToolStripMenuItem.Text = "&Options";
|
optionsToolStripMenuItem.Text = "&Options";
|
||||||
optionsToolStripMenuItem.Click += optionsToolStripMenuItem_Click;
|
optionsToolStripMenuItem.Click += optionsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -267,22 +267,22 @@ namespace FizzyLauncher
|
|||||||
//
|
//
|
||||||
// viewHelpToolStripMenuItem1
|
// viewHelpToolStripMenuItem1
|
||||||
//
|
//
|
||||||
viewHelpToolStripMenuItem1.Image = BookmarkManager.AppResource.help_circle;
|
viewHelpToolStripMenuItem1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||||
viewHelpToolStripMenuItem1.Name = "viewHelpToolStripMenuItem1";
|
viewHelpToolStripMenuItem1.Name = "viewHelpToolStripMenuItem1";
|
||||||
viewHelpToolStripMenuItem1.ShortcutKeys = System.Windows.Forms.Keys.F1;
|
viewHelpToolStripMenuItem1.ShortcutKeys = System.Windows.Forms.Keys.F1;
|
||||||
viewHelpToolStripMenuItem1.Size = new System.Drawing.Size(146, 22);
|
viewHelpToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||||
viewHelpToolStripMenuItem1.Text = "&View Help";
|
viewHelpToolStripMenuItem1.Text = "&View Help";
|
||||||
viewHelpToolStripMenuItem1.Click += viewHelpToolStripMenuItem1_Click;
|
viewHelpToolStripMenuItem1.Click += viewHelpToolStripMenuItem1_Click;
|
||||||
//
|
//
|
||||||
// toolStripMenuItem16
|
// toolStripMenuItem16
|
||||||
//
|
//
|
||||||
toolStripMenuItem16.Name = "toolStripMenuItem16";
|
toolStripMenuItem16.Name = "toolStripMenuItem16";
|
||||||
toolStripMenuItem16.Size = new System.Drawing.Size(143, 6);
|
toolStripMenuItem16.Size = new System.Drawing.Size(177, 6);
|
||||||
//
|
//
|
||||||
// aboutToolStripMenuItem1
|
// aboutToolStripMenuItem1
|
||||||
//
|
//
|
||||||
aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
|
aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
|
||||||
aboutToolStripMenuItem1.Size = new System.Drawing.Size(146, 22);
|
aboutToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||||
aboutToolStripMenuItem1.Text = "&About";
|
aboutToolStripMenuItem1.Text = "&About";
|
||||||
aboutToolStripMenuItem1.Click += aboutToolStripMenuItem1_Click;
|
aboutToolStripMenuItem1.Click += aboutToolStripMenuItem1_Click;
|
||||||
//
|
//
|
||||||
|
22
MainForm.cs
22
MainForm.cs
@ -31,6 +31,14 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
this.Text = Application.ProductName;
|
this.Text = Application.ProductName;
|
||||||
|
|
||||||
|
newToolStripMenuItem.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("a", Color.Black, 2);
|
||||||
|
openToolStripMenuItem.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("b", Color.Black, 2);
|
||||||
|
saveToolStripMenuItem.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("c", Color.Black, 2);
|
||||||
|
findToolStripMenuItem.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("d", Color.Black, 2);
|
||||||
|
optionsToolStripMenuItem.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("i", Color.Black, 2);
|
||||||
|
viewHelpToolStripMenuItem1.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("j", Color.Black, 2);
|
||||||
|
//aboutToolStripMenuItem1.Image = RyzStudio.Windows.ThemedForms.DefaultVisualStyle.GetImage("k", Color.Black, 2);
|
||||||
|
|
||||||
_fileSessionManager = new FileSessionManager();
|
_fileSessionManager = new FileSessionManager();
|
||||||
_fileSessionManager.OpenFileDialog = openFileDialog1;
|
_fileSessionManager.OpenFileDialog = openFileDialog1;
|
||||||
_fileSessionManager.SaveFileDialog = saveFileDialog1;
|
_fileSessionManager.SaveFileDialog = saveFileDialog1;
|
||||||
@ -1010,6 +1018,18 @@ namespace FizzyLauncher
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (item.Icon.Width <= 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
zipEntry = archive.CreateEntry(key, CompressionLevel.SmallestSize);
|
zipEntry = archive.CreateEntry(key, CompressionLevel.SmallestSize);
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -1024,6 +1044,8 @@ namespace FizzyLauncher
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
zipEntry.Delete();
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -356,14 +356,27 @@ namespace FizzyLauncher
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var newModel = item.Value;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var image = await _webProvider.RetrieveImage(document);
|
var image = await _webProvider.RetrieveImage(document);
|
||||||
if (image == null)
|
if (image == null)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var newModel = item.Value;
|
if (image.Width > 16)
|
||||||
|
{
|
||||||
|
image = RyzStudio.Drawing.ImageEditor.Resize(image, 16, 16);
|
||||||
|
}
|
||||||
|
|
||||||
newModel.Icon = image;
|
newModel.Icon = image;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
newModel.Icon = null;
|
||||||
|
}
|
||||||
|
|
||||||
_treeView.UpdateNode(item.Key, newModel);
|
_treeView.UpdateNode(item.Key, newModel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user