public override void Initialize() { base.Initialize(); state = new FoundationDataFileState { BaseDirectory = ParentControl.SourceLocation }; Debug.Print(ParentControl.SourceLocation); outputDestinationTextBox.Text = ApplicationConfiguration.GetSetting(ApplicationConfiguration.OUTPOUT_PATH_KEY); try { //Bind Foundation List RequestQuery.RefreshFoundationData(); foundationIdComboBox.DataSource = RequestQuery.FoundationData; foundationIdComboBox.DisplayMember = "FoundationDisplayText"; foundationIdComboBox.ValueMember = "FoundationId"; //Bind File Types /* fileTypeComboBox.DataSource = new BindingSource(ApplicationConfiguration.FileMaskSettings, null); * fileTypeComboBox.DisplayMember = "Key"; * fileTypeComboBox.ValueMember = "Value";*/ } catch (Exception eError) { MessageBox.Show(this, string.Format(FILE_COPY_ERROR_FORMAT, eError.Message), FILE_COPY_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public override void Initialize() { base.Initialize(); fileOutput = new StringBuilder(); state = new FoundationDataFileState { BaseDirectory = ParentControl.SourceLocation }; moveLocationTextBox.Text = ApplicationConfiguration.GetSetting(ApplicationConfiguration.OUTPOUT_PATH_KEY); moveFilesButton.Enabled = !string.IsNullOrWhiteSpace(moveLocationTextBox.Text) && state.SequesterFiles.Any(); moveFilesBackButton.Enabled = false; try { RequestQuery.RefreshFoundationData(); foundationIdComboBox.DataSource = RequestQuery.FoundationData; foundationIdComboBox.DisplayMember = "FoundationDisplayText"; foundationIdComboBox.ValueMember = "FoundationId"; } catch (Exception eError) { MessageBox.Show(this, string.Format(FILE_MOVE_ERROR_FORMAT, eError.Message), FILE_MOVE_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error); } }