private void chkLocked_CheckStateChanged2(object sender, EventArgs e) { FlashPoint = false; if (_currentPoint != null) { ReadOnly = chkLocked.Checked; #region Trigger Event //Trigger Event if (OnLocked_CheckedChanged != null) { LockStateEventArgs e2 = new LockStateEventArgs(); e2.Locked = chkLocked.Checked; OnLocked_CheckedChanged(this, e2); } #endregion } }
private void pointInfoCtrl_OnLocked_CheckedChanged(object sender, LockStateEventArgs e) { pointInfoCtrl_OnLocked_CheckedChanged2(sender, e); }
private void pointInfoCtrl_OnLocked_CheckedChanged2(object sender, LockStateEventArgs e) { LockControls(e.Locked); }