private void saveState(
            IPersistentPairStorage storage)
        {
            PersistanceHelper.SaveValue(
                storage,
                @"autoTranslateForm.prefixTextBox.Text",
                prefixTextBox.Text);

            PersistanceHelper.SaveValue(
                storage,
                @"autoTranslateForm.prefixCheckBox.Checked",
                prefixCheckBox.Checked);

            PersistanceHelper.SaveValue(
                storage,
                @"autoTranslateForm.useExistingTranslationsCheckBox.Checked",
                useExistingTranslationsCheckBox.Checked);

            PersistanceHelper.SaveValue(
                storage,
                @"autoTranslateForm.useOnlyExistingTranslationsCheckEdit.Checked",
                useOnlyExistingTranslationsCheckEdit.Checked);

            PersistanceHelper.SaveValue(
                storage,
                @"autoTranslateForm.referenceLanguageComboBoxEdit.SelectedIndex",
                referenceLanguageGroupBox.SelectedIndex);

            DevExpressExtensionMethods.PersistSettings(
                languagesToTranslateCheckListBox,
                storage,
                @"autoTranslateForm.languagesToTranslateCheckListBox");
        }
Exemple #2
0
        protected override void FillControlsToItem()
        {
            base.FillControlsToItem();

            var storage =
                MainForm.Current.ProjectFilesControl.Project.DynamicSettingsGlobalHierarchical;

            DevExpressExtensionMethods.PersistSettings(
                destinationLanguagesListBox,
                storage,
                @"AddNewFileGroupForm.destinationLanguagesListBox");
            PersistanceHelper.SaveValue(
                storage,
                @"AddNewFileGroupForm.extensionComboBoxEdit",
                extensionComboBoxEdit.SelectedIndex.ToString(CultureInfo.InvariantCulture));

            PersistanceHelper.SaveValue(
                storage,
                @"AddNewFileGroupForm.baseFolderTextEdit.Text",
                baseFolderTextEdit.Text);

            PersistanceHelper.SaveValue(
                storage,
                @"AddNewFileGroupForm.baseFileNameTextEdit.Text",
                baseFileNameTextEdit.Text);
        }
Exemple #3
0
        private void saveState(
            IPersistentPairStorage storage)
        {
            using (new SilentProjectStoreGuard(_project))
            {
                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.destinationFilePathTextEdit.Text",
                    destinationFileTextEdit.Text);

                DevExpressExtensionMethods.PersistSettings(
                    fileGroupsListBox,
                    storage,
                    @"sendFileToTranslator.fileGroupsListBox");

                DevExpressExtensionMethods.PersistSettings(
                    languagesToExportCheckListBox,
                    storage,
                    @"sendFileToTranslator.languagesToExportCheckListBox");

                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.referenceLanguageComboBoxEdit.SelectedIndex",
                    referenceLanguageGroupBox.SelectedIndex);

                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.openFileAfterGeneratingCheckEdit.Checked",
                    openFileAfterGeneratingCheckEdit.Checked);
                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.openAfterGeneratingCheckEdit.Checked",
                    openAfterGeneratingCheckEdit.Checked);

                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.eliminateDuplicateRowsCheckEdit.Checked",
                    eliminateDuplicateRowsCheckEdit.Checked);

                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.exportWithoutDestinationTranslationOnlyCheckEdit.Checked",
                    exportWithoutDestinationTranslationOnlyCheckEdit.Checked);

                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.exportGroupsAsOneWorkSheetCheckEdit.Checked",
                    exportGroupsAsOneWorkSheetCheckEdit.Checked);
                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.exportLanguageColumnsOnlyCheckEdit.Checked",
                    exportLanguageColumnsOnlyCheckEdit.Checked);
                FormHelper.SaveValue(
                    storage,
                    @"sendFileToTranslator.exportGroupsAsWorkSheetsCheckEdit.Checked",
                    exportGroupsAsWorkSheetsCheckEdit.Checked);
            }
        }
        protected override void FillControlsToItem()
        {
            base.FillControlsToItem();

            var storage =
                (MainForm.Current.ProjectFilesControl.Project ?? Project.Empty).DynamicSettingsGlobalHierarchical;

            DevExpressExtensionMethods.PersistSettings(
                destinationLanguagesListBox,
                storage,
                @"DeleteLanguageForm.destinationLanguagesListBox");
        }
        private void saveState(
            IPersistentPairStorage storage)
        {
            PersistanceHelper.SaveValue(
                storage,
                @"receiveFileFromTranslator.sourceFilePathTextEdit.Text",
                sourceFileTextEdit.Text);

            DevExpressExtensionMethods.PersistSettings(
                fileGroupsListBox,
                storage,
                @"receiveFileFromTranslator.fileGroupsListBox");

            DevExpressExtensionMethods.PersistSettings(
                languagesToImportCheckListBox,
                storage,
                @"receiveFileFromTranslator.languagesToImportCheckListBox");
        }
        protected override void FillControlsToItem()
        {
            base.FillControlsToItem();

            var storage =
                (MainForm.Current.ProjectFilesControl.Project ?? Project.Empty).DynamicSettingsGlobalHierarchical;

            PersistanceHelper.SaveValue(
                storage,
                @"CreateNewFilesForm.prefixTextBox.Text",
                prefixTextBox.Text);

            PersistanceHelper.SaveValue(
                storage,
                @"CreateNewFilesForm.prefixCheckBox.Checked",
                prefixCheckBox.Checked);

            PersistanceHelper.SaveValue(
                storage,
                @"CreateNewFilesForm.referenceLanguageComboBox.SelectedIndex",
                referenceLanguageComboBox.SelectedIndex);

            DevExpressExtensionMethods.PersistSettings(
                destinationLanguagesListBox,
                storage,
                @"CreateNewFilesForm.destinationLanguagesListBox");

            PersistanceHelper.SaveValue(
                storage,
                @"CreateNewFilesForm.copyTextsCheckBox.Checked",
                copyTextsCheckBox.Checked);

            PersistanceHelper.SaveValue(
                storage,
                @"CreateNewFilesForm.automaticallyTranslateCheckBox.Checked",
                automaticallyTranslateCheckBox.Checked);
        }