Exemple #1
0
        public void SetSettings(ICleanUpConversionSettings settings, BatchTaskMode taskMode)
        {
            SettingsBinder.DataBindSetting <bool>(convCheckGroupBox, "Checked", settings.Settings,
                                                  nameof(settings.UseConversionSettings));

            SettingsBinder.DataBindSetting <bool>(useOnTranslatableCheckBox, "Checked", settings.Settings,
                                                  nameof(settings.ApplyToNonTranslatables));

            Settings  = settings;
            _taskMode = taskMode;
        }
Exemple #2
0
        public ConversionFileView(ICleanUpConversionSettings settings)
        {
            this.settings = settings;

            InitializeComponent();

            saveAsButton.Click       += SaveAsButton_Click;
            saveButton.Click         += SaveButton_Click;
            dataGridView.RowsAdded   += DataGridView_RowsAdded;
            dataGridView.RowsRemoved += DataGridView_RowsRemoved;
            searchTextBox.KeyUp      += SearchTextBox_KeyUp;
            replaceTextBox.KeyUp     += ReplaceTextBox_KeyUp;
            descriptionTextBox.KeyUp += DescriptionTextBox_KeyUp;
        }
Exemple #3
0
        public static T Create <T>(ICleanUpConversionSettings settings, ConversionFileViewMode viewMode, BatchTaskMode taskMode)
        {
            if (typeof(T) == typeof(IConversionFileView))
            {
                IConversionFileView view = new ConversionFileView(settings);
                view.SetPresenter(new ConversionFileViewPresenter(view, new FileDialog(), viewMode, taskMode));

                return((T)view);
            }
            else
            {
                throw new NotImplementedException();
            }
        }
Exemple #4
0
 public void SetSettings(ICleanUpConversionSettings settings, BatchTaskMode taskMode)
 {
 }