XCore.MultiPane.OnPropertyChanged C# (CSharp) Method

OnPropertyChanged() public method

public OnPropertyChanged ( string name ) : void
name string
return void
		public void OnPropertyChanged(string name)
		{
			CheckDisposed();
			if (m_mediator.PropertyTable.GetStringProperty("ToolForAreaNamed_lexicon", null) != toolName)
			{
				return;
			}
			if (name == "ActiveClerkSelectedObject" || name == "ToolForAreaNamed_lexicon")
			{
				SetFocusInDefaultControl();
			}
			if (name == m_propertyControllingVisibilityOfFirstPane)
			{
				bool fShowFirstPane = m_mediator.PropertyTable.GetBoolProperty(m_propertyControllingVisibilityOfFirstPane, true);
				if (fShowFirstPane == m_showingFirstPane)
					return; // just in case it didn't really change

				m_showingFirstPane = fShowFirstPane;

				Panel1Collapsed = !fShowFirstPane;

				if (ShowFirstPaneChanged != null)
					ShowFirstPaneChanged(this, new EventArgs());
			}

		}