Example #1
0
        private void UpdateBindings()
        {
            MyBindingSource.ResetBindings(false);

            attachmentListBox.Refresh();
            attachmentListBox.Update();
        }
Example #2
0
        private void ShowFilePathCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (showFilePathCheckBox.Checked)
            {
                MyBindingSource.DataSource = AttachmentFilePaths;
            }
            else
            {
                MyBindingSource.DataSource = AttachmentFileNames;
            }

            MyBindingSource.ResetBindings(true);
        }