コード例 #1
0
        private void UserInfo_Load(object sender, EventArgs e)
        {
            //databaseName = dbMySql.GetDatabaseName();//
            UserFatherWindow = (account)this.Owner;

            DataTable table = UserFatherWindow.LoadUser();

            dtUser = table;
            if (strOwnParam == "insert")
            {
                UserRow = dtUser.NewRow();
            }
            else
            {
                UserRow = (UserFatherWindow.dataGridView1.CurrentRow.DataBoundItem as DataRowView).Row as DataRow;
                ShowAll();
            }
        }