private void SaveClick(object sender, RoutedEventArgs e) { App.saveData = new EpicData { toolPath = toolPathText.Text, orgId = orgText.Text, clientId = clientText.Text, secret = secretText.Text }; EpicData.Save(App.saveData, "data"); }
private void RemoveProductClick(object sender, RoutedEventArgs e) { if (productList.SelectedValue == null) { return; } ProductData.Remove((ProductData)productList.SelectedValue); EpicData.Save(App.productData, "products"); }
private void LoadClick(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == true) { App.saveData = EpicData.Load <EpicData>(openFileDialog.FileName); RefreshUI(); EpicData.Save(App.saveData, "data"); } }
private void LoadProductsClick(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == true) { foreach (ProductData productData in EpicData.Load <ObservableCollection <ProductData> >(openFileDialog.FileName)) { ProductData.Add(productData); } EpicData.Save(App.productData, "products"); } }
private void UploadClick(object sender, RoutedEventArgs e) { taskbarItemInfo.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Normal; uploadButton.IsEnabled = false; buildData.staging = true; ComboBoxItem item = liveBox.SelectedItem as ComboBoxItem; if (item != null) { buildData.staging = item.Content.ToString() != "Live"; } buildData.buildRoot = buildRootText.Text; buildData.cloudDir = cloudDirText.Text; buildData.buildVersion = buildVersionText.Text; buildData.appLaunch = appLaunchText.Text; buildData.appArgs = appArgsText.Text; EpicData.Save(buildData, productData.realName); EpicApi.uploadProgress += UploadProgress; EpicApi.Run(EpicApi.BuildPatchGenCommand(App.saveData, productData, buildData)); }
private void AddProductClick(object sender, RoutedEventArgs e) { new AddProduct().ShowDialog(); EpicData.Save(App.productData, "products"); }