Exemple #1
0
        private void ExportForm_Load(object sender, EventArgs e)
        {
            outputFormatComboBox.Items.Clear();
            outputFormatComboBox.Items.AddRange(_exportOps.FormatTypes);
            outputFormatComboBox.Sorted = true;

            outputFormatComboBox.SelectedIndex = _profile.GetSetting(XMLProfileSettings.SettingType.AppSettings, string.Format("{0}/ExportFormat", Name), exportTypeDefault);
            resolutionComboBox.SelectedIndex   = _profile.GetSetting(XMLProfileSettings.SettingType.AppSettings, string.Format("{0}/ExportResolution", Name), exportResolutionDefault);
            chkGenerateControllerInfo.Checked  = _profile.GetSetting(XMLProfileSettings.SettingType.AppSettings, $"{Name}/GenerateUniverse", false);
            radio2x.Checked     = _profile.GetSetting(XMLProfileSettings.SettingType.AppSettings, $"{Name}/Universe2x", true);
            radio1x.Checked     = !radio2x.Checked;
            chkCompress.Checked = _profile.GetSetting(XMLProfileSettings.SettingType.AppSettings, $"{Name}/Compress", true);
            chkCompress.Enabled = _exportOps.CanCompress(outputFormatComboBox.SelectedItem.ToString());

            buttonStop.Enabled = false;
            UpdateNetworkList();

            networkListView.DragDrop    += networkListView_DragDrop;
            networkListView.ItemChecked += NetworkListView_ItemChecked;
        }