private void ButtonUserInfoClick(object sender, RoutedEventArgs e) { var frmUserInfo = new FormUserInfo( Component.UserName, Component.LoginName, Component.RoleInTrial, Component.NumberWithinRoleInTrial); if (frmUserInfo.ShowDialog() == DialogResult.OK) { Component.UserName = frmUserInfo.UserName; Component.LoginName = frmUserInfo.LoginName; Component.RoleInTrial = frmUserInfo.RoleInTrial; Component.NumberWithinRoleInTrial = frmUserInfo.NumberWithinRoleInTrial; } }
private void _btnUserInfo_Click(object sender, EventArgs e) { var frmUserInfo = new FormUserInfo( _component.UserName, _component.LoginName, _component.RoleInTrial, _component.NumberWithinRoleInTrial); if (frmUserInfo.ShowDialog() == DialogResult.OK) { _component.UserName = frmUserInfo.UserName; _component.LoginName = frmUserInfo.LoginName; _component.RoleInTrial = frmUserInfo.RoleInTrial; _component.NumberWithinRoleInTrial = frmUserInfo.NumberWithinRoleInTrial; } }