Пример #1
0
        private void SelectCreatedDocumentButton_Click(object sender, EventArgs e)
        {
            ComboBox documentsBox = (ComboBox)Utils.FindControl(this, "createdDocumentsBox");
            Document document     = (Document)documentsBox.SelectedItem;

            if (document == null)
            {
                MessageBox.Show("Документ не выбран!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                DocumentInfoForm documentInfoForm = new DocumentInfoForm(document);
                documentInfoForm.Activate();
                documentInfoForm.ShowDialog();
            }
        }