//操作状态 private void SetStatus(opStatus opst) { ops = opst; switch (ops) { case opStatus.inSelect: toolStrip1.Enabled = true; //查询工具栏 groupBox1.Enabled = true; //查询结果 groupBox2.Enabled = false; //读者信息 break; case opStatus.inNew: toolStrip1.Enabled = false; groupBox1.Enabled = false; groupBox2.Enabled = true; btnAddReader.Enabled = true; //确认办证 btnUpdateReader.Enabled = false; //确认变更 break; case opStatus.inChange: toolStrip1.Enabled = false; groupBox1.Enabled = false; groupBox2.Enabled = true; btnAddReader.Enabled = false; btnUpdateReader.Enabled = true; break; } }
//操作状态 private void SetStatus(opStatus opst) { ops = opst; switch (ops) { case opStatus.inSelect: toolStrip1.Enabled = true;//查询工具栏 groupBox1.Enabled = true;//查询结果 groupBox2.Enabled = false;//读者信息 break; case opStatus.inNew: toolStrip1.Enabled = false; groupBox1.Enabled = false; groupBox2.Enabled = true; btnAddReader.Enabled = true;//确认办证 btnUpdateReader.Enabled = false;//确认变更 break; case opStatus.inChange: toolStrip1.Enabled = false; groupBox1.Enabled = false; groupBox2.Enabled = true; btnAddReader.Enabled = false; btnUpdateReader.Enabled = true; break; } }