-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #22 Check for updates on FXB start
- Loading branch information
Jonas Rapp
committed
Mar 17, 2015
1 parent
abe3ef7
commit c5cc598
Showing
6 changed files
with
451 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Diagnostics; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Windows.Forms; | ||
|
||
namespace Cinteros.Xrm.FetchXmlBuilder.Forms | ||
{ | ||
public partial class NewVersionForm : Form | ||
{ | ||
private const string style = "<style>*{font-family:Segoe UI;}</style>"; | ||
private Uri download; | ||
|
||
public NewVersionForm(string currentVersion, string newVersion, string description, Uri downloadurl) | ||
{ | ||
InitializeComponent(); | ||
download = downloadurl; | ||
lblCurrentVersion.Text = string.Format(lblCurrentVersion.Text, currentVersion); | ||
lblNewVersion.Text = string.Format(lblNewVersion.Text, newVersion); | ||
webBrowser1.DocumentText = style + description; | ||
webBrowser1.ScriptErrorsSuppressed = true; | ||
} | ||
|
||
private void btnClose_Click(object sender, EventArgs e) | ||
{ | ||
Close(); | ||
} | ||
|
||
private void btnDownload_Click(object sender, EventArgs e) | ||
{ | ||
Process.Start(download.ToString()); | ||
} | ||
} | ||
} |
Oops, something went wrong.