private void exportNow_Click(object sender, RoutedEventArgs e) { var preferences = new IniFile("preferences.ini"); DLC_XML.GenerateDLCList(GetCheckedDLCs(), useModFolder: UseMods(), now: true); GetCheckedDLCs(); }
private void exportAs_Click(object sender, RoutedEventArgs e) { using (FolderBrowserDialog dialog = new FolderBrowserDialog()) { if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var preferences = new IniFile("preferences.ini"); DLC_XML.GenerateDLCList(GetCheckedDLCs(), UseMods(), dialog.SelectedPath + @"\dlclist.xml"); } } }
public void UpdateFolderPanel(bool isChecked) { rightPanel.Children.Clear(); ToggleSwitch DLCSwitch; var preferences = new IniFile("preferences.ini"); foreach (string folder in Directory.GetDirectories(DLC_XML.GetDLCPacks(preferences.Read("GamePath"), UseMods()))) { DLCSwitch = new MahApps.Metro.Controls.ToggleSwitch(); DLCSwitch.Tag = System.IO.Path.GetFileName(folder); DLCSwitch.Content = System.IO.Path.GetFileName(folder); Thickness margin = DLCSwitch.Margin; margin.Top = 10; DLCSwitch.Margin = margin; DLCSwitch.IsChecked = isChecked; AddDLCSwitch(DLCSwitch); } }
private void copyClipboard_Click(object sender, RoutedEventArgs e) { DLC_XML.CopyDLCToCLipboard(GetCheckedDLCs()); }