コード例 #1
0
        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;
        }
コード例 #2
0
 public UpdateTaskHelper()
 {
     _manager = UpdateManager.Instance;
     this.GetUpdateTaskInfo();
     this.CurrentVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
 }