private void Init() { _viewModel = new UpdatingViewModel(); _duokeServer = new DuokeServer(); _duokeServer.ProcessOn += _duokeServer_ProcessOn; _duokeServer.ProcessDone += _duokeServer_ProcessDone; this.BindingContext = _viewModel; }
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"); }
//public UpdatingView(string msg) : this() //{ // TbMsg.Text = msg; //} public UpdatingView() { InitializeComponent(); DataContext = new UpdatingViewModel(this); }