コード例 #1
0
ファイル: MongoDBForm.cs プロジェクト: rioka/nfx
        private void btnLoad_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(edtID.Text))
            {
                return;
            }

            try
            {
                record.Load(new NameValueDataStoreKey(record.fldID.FieldName, edtID.Text));
            }
            catch (Exception error)
            {
                record.CancelLoad();
                MessageBox.Show("Could not load data for supplied id. Driver said: \n\n" + error.Message);
                return;
            }
        }