Exemple #1
0
 void btnAdd_ItemClick(object sender, ItemClickEventArgs e)
 {
     FmUserInfo fmUserInfo = new FmUserInfo();
     fmUserInfo.ShowDialog();
 }
Exemple #2
0
        void btnUpdate_ItemClick(object sender, ItemClickEventArgs e)
        {
            var selectedRows = userGridView.GetSelectedRows();
            if (selectedRows.Count() == 0)
            {
                MessageBox.Show("请选择要修改的用户");
                return;
            }
            UserShopRoleInfo curSelUser = userGridView.GetRow(selectedRows.FirstOrDefault()) as UserShopRoleInfo;

            Form fmUserInfo = new FmUserInfo(curSelUser);
            fmUserInfo.ShowDialog();
        }