コード例 #1
0
        private void sendReportViaEmailToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool Isopen = false;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "Send_Report")
                {
                    Isopen = true;
                    f.BringToFront();
                    break;
                }
            }

            if (Isopen == false)
            {
                Send_Report sr = new Send_Report();
                sr.Show();
            }
        }
コード例 #2
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Send_Report ssr = new Send_Report();

            ssr.Show();
        }