예제 #1
0
        private void exportNow_Click(object sender, RoutedEventArgs e)
        {
            var preferences = new IniFile("preferences.ini");

            DLC_XML.GenerateDLCList(GetCheckedDLCs(), useModFolder: UseMods(), now: true);
            GetCheckedDLCs();
        }
예제 #2
0
 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");
         }
     }
 }
예제 #3
0
        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);
            }
        }
예제 #4
0
 private void copyClipboard_Click(object sender, RoutedEventArgs e)
 {
     DLC_XML.CopyDLCToCLipboard(GetCheckedDLCs());
 }