コード例 #1
0
		private static void bgw_DoWork(object sender, DoWorkEventArgs e)
		{
			var myUpdater = new Updater("http://goo.gl/FtiO31",
					"http://goo.gl/P4UNE6", Localversion);
			if (myUpdater.NeedUpdate)
			{
				Chat.Print("UltimateCarry is Updating ...");
				Chat.Print("-- Using trellis Updater --");
				if (myUpdater.Update())
				{
					Chat.Print("UltimateCarry is Updateed, Reload Please.");
					Properties.Settings.Default.Reset();
				}
			}
			else
				Chat.Print(string.Format("UltimateCarry ( Version: {0} ) loaded!", Localversion));
		}