本文整理汇总了C#中ActionType类的典型用法代码示例。如果您正苦于以下问题:C# ActionType类的具体用法?C# ActionType怎么用?C# ActionType使用的例子? 这里精选的类代码示例或许可以为您提供帮助。
示例1: AddEditStaff
public AddEditStaff(string name, string staffID, string email, DateTime renewPasswordDate, DateTime dateOfBirth, DateTime joinDate, string gender, string position, string contact, bool defaultPassword, bool blocked)
{
InitializeComponent();
lblStaffID.Text = staffID;
txtName.Text = name;
txtEmail.Text = email;
dtpPswExpirateDate.Value = renewPasswordDate;
dtpDoB.Value = dateOfBirth;
dtpJoinDate.Value = joinDate;
cbGender.Text = gender;
isDefaultPassword = defaultPassword;
cbGender.DropDownStyle = ComboBoxStyle.DropDown;
cbPosition.DropDownStyle = ComboBoxStyle.DropDown;
cbPosition.Text = position;
txtContact.Text = contact;
chkDefaultPsw.Checked = defaultPassword;
chkBlocked.Checked = blocked;
txtName.Enabled = false;
txtEmail.Enabled = false;
dtpPswExpirateDate.Enabled = false;
dtpDoB.Enabled = false;
dtpJoinDate.Enabled = false;
cbGender.Enabled = false;
if (defaultPassword == true)
{
chkDefaultPsw.Enabled = false;
}
currentAction = ActionType.Edit;
}
原文链接:
http://www.jxszl.com/biancheng/C/556462.html