/// <summary> /// 历史日志查询类 /// </summary> public LogHistory(Login.UserType usertype) { InitializeComponent(); SetMyCustomFormat(); usertypestat = usertype; //comboBox_date.Items.Add.Menu; }
private void Menu_set_station_Click(object sender, EventArgs e) { Login.UserType userType = Login.UserType.USER_ADMIN;//Login.GetUserType; if (userType == Login.UserType.USER_ADMIN) { //管理员 SetStationAdmin setStationAdmin = new SetStationAdmin(); setStationAdmin.StartPosition = FormStartPosition.CenterParent; setStationAdmin.ShowDialog(); } else if (userType == Login.UserType.USER_ORIDNARY) { //普通用户 SetStation setStation = new SetStation(); setStation.StartPosition = FormStartPosition.CenterParent; setStation.ShowDialog(); } }