예제 #1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            var dlg = new PingDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                //
            }
        }
예제 #2
0
        public bool ShowDialog()
        {
            var di = new PingDialog();

            if (di.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return(true);
            }

            return(false);
        }