コード例 #1
0
    private void LoadControls(string code)
    {
        int BankId = int.Parse(code);

        dtable = datafile.GetBankDetailsByID(BankId);
        if (dtable.Rows.Count > 0)
        {
            lblCode.Text  = dtable.Rows[0]["RecordID"].ToString();
            txtname.Text  = dtable.Rows[0]["BankName"].ToString();
            txtemail.Text = dtable.Rows[0]["Email"].ToString();
            txtphone.Text = dtable.Rows[0]["Phone"].ToString();
            bool IsActive = bool.Parse(dtable.Rows[0]["Active"].ToString());
            chkIsActive.Checked = IsActive;
            ShowMessage(".", true);
        }
    }