/// <summary> /// 冻结 /// </summary> public void Freeze() { try { if (ButtonEnter.InvokeRequired) { FreezeDelegate d = Freeze; ButtonEnter.Invoke(d); } else { //冻结所有控件 ButtonEnter.Enabled = false; ButtonCancle.Enabled = true; input_name.Enabled = false; checkBox1.Enabled = checkBox2.Enabled = false; Browse.Enabled = false; InputPageNum.Enabled = InputStartPicNum.Enabled = InputMaxPicNum.Enabled = false; InputCookie.Enabled = false; } } catch { } }
/// <summary> /// 解冻 /// </summary> public void UnFreeze() { try { if (ButtonEnter.InvokeRequired) { UnFreezeDelegate d = UnFreeze; ButtonEnter.Invoke(d); } else { //解冻所有控件 ButtonEnter.Enabled = true; ButtonCancle.Enabled = false; input_name.Enabled = true; RadioButtonGallery.Enabled = RadioButtonScraps.Enabled = true; Browse.Enabled = true; InputPageNum.Enabled = InputStartPicNum.Enabled = true; } } catch { } }