private void OnWorkspaceFileInfoChanged(object host, string propertyName, object fileInfo) { BeamToolWindowsFormsHost theHost = host as BeamToolWindowsFormsHost; BeamToolView beamToolView = theHost.Child as BeamToolView; if (beamToolView != null) { beamToolView.WorkspaceOpen((FileInfo)fileInfo); } }
private void OnShowToolBarChanged(object host, string propertyName, object value) { BeamToolWindowsFormsHost theHost = host as BeamToolWindowsFormsHost; BeamToolView beamToolView = theHost.Child as BeamToolView; if (beamToolView != null) { beamToolView.ShowToolbar = theHost.ShowToolBar; } }