Esempio n. 1
0
        private void listFiles_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listFiles.SelectedIndex < 0 || _IsBusy)
            {
                return;
            }
            int index = listFiles.SelectedIndex;

            try
            {
                DataMessage data   = _DataMessage[index];
                ViewUI      editor = _Editor.TransferData(data);
                if (!editor.Visible)
                {
                    editor.Show();
                }
            }
            catch (Exception err)
            {
                MessageBox.Show($"An error occurred:\n\n{err.Message}", _MessageBoxTitle);
            }
        }
Esempio n. 2
0
 protected Editor()
 {
     _Editor = new ViewUI();
     _Editor.dataGridView.DefaultCellStyle.Font = new Font("Consolas", 8.5F);
 }