コード例 #1
0
        private void btn_EditFormat_Click(object sender, EventArgs e)
        {
            DialogResult dr = new DialogResult();
            var ConfigFormat = new FormConfigFormat();
            dr=ConfigFormat.ShowDialog();

            //if (dr == DialogResult.OK)
            //    MessageBox.Show("User clicked OK button");
            //else if (dr == DialogResult.Cancel)
            //    MessageBox.Show("User clicked Cancel button");

            ConfigFormat.Dispose();
        }
コード例 #2
0
        private void btn_EditFormat_Click(object sender, EventArgs e)
        {
            DialogResult dr           = new DialogResult();
            var          ConfigFormat = new FormConfigFormat();

            dr = ConfigFormat.ShowDialog();

            //if (dr == DialogResult.OK)
            //    MessageBox.Show("User clicked OK button");
            //else if (dr == DialogResult.Cancel)
            //    MessageBox.Show("User clicked Cancel button");

            ConfigFormat.Dispose();
        }