// 编辑用户 private void EditUser() { User u = GetSelectedUser(); if (u == null) return; DevUser win = new DevUser(u); m_main_window.OpenForm(win); }
// 新建用户 private void tsbNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DevUser win = new DevUser(); m_main_window.OpenForm(win); }