private void MiDesign_Click(object sender, EventArgs e) { FormPrint fp = new FormPrint(); fp.Owner = this; fp.Text = "Дизайнер"; fp.ShowDialog(); }
private void PrintButton_Click(object sender, EventArgs e) { if (File.Exists(Application.StartupPath + "\\combit.ListLabel15.dll")) { FormPrint fp = new FormPrint(); fp.Owner = this; fp.Text = "Печать"; fp.ShowDialog(); } else { MessageBox.Show("Печать недоступна!", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }