private void UpdateBindings() { MyBindingSource.ResetBindings(false); attachmentListBox.Refresh(); attachmentListBox.Update(); }
private void ShowFilePathCheckBox_CheckedChanged(object sender, EventArgs e) { if (showFilePathCheckBox.Checked) { MyBindingSource.DataSource = AttachmentFilePaths; } else { MyBindingSource.DataSource = AttachmentFileNames; } MyBindingSource.ResetBindings(true); }