private void btnSelectContainer_Click(object sender, EventArgs e) { if (m_ContainerSelector.IsActive) { m_ContainerSelector.Deactivate(); btnSelectContainer.BackgroundImage = Resources.Pointer; } else { m_ContainerSelector.Activate(); btnSelectContainer.BackgroundImage = Resources.DoneIcon; } }
private void zDisableSelectMode() { if (m_ElementSelector.Deactivate()) { if (m_ElementSelectMode == ElementSelectMode.Get) { btnSelectGetElement.BackgroundImage = Resources.GetValueIcon; btnSelectSetElement.Enabled = true; } else { btnSelectSetElement.BackgroundImage = Resources.SetValueIcon; btnSelectGetElement.Enabled = true; } } }