public UpdateWindow() { _updateManager = UpdateManager.Instance; _helper = new UpdateTaskHelper(); InitializeComponent(); var iconStream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("AppUpdate.updateicon.ico"); if (iconStream != null) this.Icon = new IconBitmapDecoder(iconStream, BitmapCreateOptions.None, BitmapCacheOption.Default).Frames[0]; this.DataContext = _helper; }
public UpdateTaskHelper() { _manager = UpdateManager.Instance; this.GetUpdateTaskInfo(); this.CurrentVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); }