public void Setup() { _storeWindow = WindowManager.Instance.GetWindow <PrimaryWindow>(WindowNames.StoreWindow); _progressWindow = WindowManager.Instance.GetWindow <ProgressWindow>(WindowNames.ProgressWindow); _purchaseJob = new Job(new Thread(delegate() { })); _requestData = new RequestData(new ProgressMessage { Header = PurchaseMessage, Body = ProcessingMessage }); _progressWindow.AddProgressData(_requestData); WindowManager.Instance.ChangeWindow(WindowNames.ProgressWindow, false); _referencedItem = _storeWindow.GetMenuItem(_displayName); _referencedItem.ChangeTitleImageColour(MenuItem.ActivatedColourIndx); Menu.AddOpenedItem(_requestData, _displayName); }
public void Setup() { _libraryWindow = WindowManager.Instance.GetWindow <PrimaryWindow>(WindowNames.LibraryWindow); _progressWindow = WindowManager.Instance.GetWindow <ProgressWindow>(WindowNames.ProgressWindow); _uninstallJob = new Job(new Thread(delegate() { MonoAssetIo.Instance.UninstallExperience(_fractal.Name); })); _requestData = new RequestData(new ProgressMessage { Header = UninstallMessage, Body = ProcessingMessage }); _progressWindow.AddProgressData(_requestData); WindowManager.Instance.ChangeWindow(WindowNames.ProgressWindow, false); _referencedItem = _libraryWindow.GetMenuItem(_displayName); _referencedItem.ChangeTitleImageColour(MenuItem.ActivatedColourIndx); Menu.AddOpenedItem(_requestData, _displayName); }