}// ----------------------------------------- // ========================================== // FORM ACTIONS // ========================================== /// <summary> /// LOCK parts of the form /// </summary> /// <param name="_section">input,action,all</param> /// <param name="_lock"></param> public void form_lockSection(string _section, bool _lock) { switch (_section) { case "action": btn_CRUSH.Enabled = !_lock; break; case "all": chk_encodedCue.Enabled = !_lock; input_in.Enabled = !_lock; btn_input_in.Enabled = !_lock; btn_input_out.Enabled = !_lock; input_out.Enabled = !_lock; //-- info_cdtitle.Enabled = !_lock; combo_audio_q.Enabled = !_lock; combo_audio_c.Enabled = !_lock; pictureBox1.Enabled = !_lock; form_lockSection("action", _lock); FormMain.sendLock(_lock); break; } }// -----------------------------------------
}// ----------------------------------------- /// <summary> /// LOCK parts of the form /// </summary> /// <param name="_section">input,action,all</param> /// <param name="_lock"></param> public void form_lockSection(string _section, bool _lock) { switch (_section) { case "action": btn_RESTORE.Enabled = !_lock; break; case "all": input_in.Enabled = !_lock; btn_input_in.Enabled = !_lock; btn_input_out.Enabled = !_lock; input_out.Enabled = !_lock; toggle_single.Enabled = !_lock; toggle_subf.Enabled = !_lock; form_lockSection("action", _lock); FormMain.sendLock(_lock); break; } }// -----------------------------------------