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; }
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; }
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(); } }
public void SetSettings(ICleanUpConversionSettings settings, BatchTaskMode taskMode) { }