Beispiel #1
0
        private void btnCheck_Click(object sender, EventArgs e)
        {
            var dlg = new AccMessageDlg(myGridViewBinding1.GetSelectedValues <long>("amId").FirstOrDefault());

            dlg.StartPosition = FormStartPosition.CenterParent;
            dlg.SetReadOnly(true);
            dlg.ShowDialog(this);
        }
Beispiel #2
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            var dlg = new AccMessageDlg(0);

            dlg.StartPosition = FormStartPosition.CenterParent;
            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                myGridViewBinding1.BindTo(dlg.DlgResult, Commons.BindFlag.Update, "amId");
            }
        }