コード例 #1
0
 private void Init()
 {
     _viewModel                = new UpdatingViewModel();
     _duokeServer              = new DuokeServer();
     _duokeServer.ProcessOn   += _duokeServer_ProcessOn;
     _duokeServer.ProcessDone += _duokeServer_ProcessDone;
     this.BindingContext       = _viewModel;
 }
コード例 #2
0
        public GenericUpdater(AddonInfoFromYaml addon, IConfigurationManager configurationManager)
        {
            _fileSystemManager    = new FileSystemManager();
            _addonName            = addon.folder_name;
            _addonInfo            = addon;
            _configurationManager = configurationManager;
            _viewModel            = UpdatingViewModel.GetInstance;

            _addonExpandedPath = Path.Combine(Path.GetTempPath(), _addonName);
            _addonInstallPath  = Path.Combine(configurationManager.UserConfig.GamePath, "addons");
        }
コード例 #3
0
        //public UpdatingView(string msg) : this()
        //{
        //    TbMsg.Text = msg;
        //}

        public UpdatingView()
        {
            InitializeComponent();
            DataContext = new UpdatingViewModel(this);
        }