private void lblAdd_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FormUser form = new FormUser(null); //form.Parent = this; form.StartPosition = FormStartPosition.CenterParent; form.OnRefresh += form_OnRefresh; form.ShowDialog(); }
protected void EditUser(Bean.UserBean bean) { FormUser form = new FormUser(bean); form.StartPosition = FormStartPosition.CenterParent; form.OnRefresh += form_OnRefresh; form.ShowDialog(); }