public FrmFileLogDetail(int actionType, int type, Model.FileLogModel fileLog) { InitializeComponent(); this.type = type; this.fileLog = fileLog; this.forder = new BLL.ForderBll().GetModel(fileLog.FileID); //文件夹 if (type == 1) { this.skinRadioButton_file.Enabled = false; this.skinRadioButton_forder.Select(); } else { this.skinRadioButton_forder.Enabled = false; this.skinRadioButton_file.Select(); } if (fileLog.ActionType == ActionType.RENAMEFORDER.ToString()) { this.skinRadioButton_file.Enabled = false; this.skinRadioButton_forder.Select(); } InitUiView(); ///如果是属性查看,禁止所有可修改控件 if (actionType == 0) { //this.btnOK.Enabled = false; this.skinTextBox_addTime.SkinTxt.ReadOnly = true; this.skinTextBox_modifyTime.SkinTxt.ReadOnly = true; this.skinTextBox_name.SkinTxt.ReadOnly = true; this.skinTextBox_clientPath.SkinTxt.ReadOnly = true; } }