Esempio n. 1
0
        private void OnMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (sender != FilesListBox)
            {
                return;
            }

            int Index = FilesListBox.IndexFromPoint(e.Location);

            if (Index >= 0 && Index < FilesListBox.Items.Count)
            {
                FileName     = (string)FilesListBox.Items[Index];
                DialogResult = DialogResult.OK;
                Close();
            }
            return;
        }