Beispiel #1
0
        private static void OnWorkspaceXmlChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            BeamToolWindowsFormsHost beamToolWindowsFormsHost = o as BeamToolWindowsFormsHost;

            if (beamToolWindowsFormsHost != null)
            {
                beamToolWindowsFormsHost.OnWorkspaceXmlChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
Beispiel #2
0
        private static void OnShowToolBarChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            BeamToolWindowsFormsHost beamToolWindowsFormsHost = o as BeamToolWindowsFormsHost;

            if (beamToolWindowsFormsHost != null)
            {
                beamToolWindowsFormsHost.OnShowToolBarChanged((bool)e.OldValue, (bool)e.NewValue);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
        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;
            }
        }
Beispiel #5
0
        private static object OnCoerceWorkspaceXml(DependencyObject o, object value)
        {
            BeamToolWindowsFormsHost beamToolWindowsFormsHost = o as BeamToolWindowsFormsHost;

            if (beamToolWindowsFormsHost != null)
            {
                return(beamToolWindowsFormsHost.OnCoerceWorkspaceXml((string)value));
            }
            else
            {
                return(value);
            }
        }
Beispiel #6
0
        private static object OnCoerceShowToolBar(DependencyObject o, object value)
        {
            BeamToolWindowsFormsHost beamToolWindowsFormsHost = o as BeamToolWindowsFormsHost;

            if (beamToolWindowsFormsHost != null)
            {
                return(beamToolWindowsFormsHost.OnCoerceShowToolBar((bool)value));
            }
            else
            {
                return(value);
            }
        }
Beispiel #7
0
 private void OnWorkspaceFileInfoChanged(object host, string propertyName, object fileInfo)
 {
     BeamToolWindowsFormsHost theHost = host as BeamToolWindowsFormsHost;
 }
Beispiel #8
0
 private void OnWorkspaceXmlChanged(object host, string propertyName, object workspaceXml)
 {
     BeamToolWindowsFormsHost theHost = host as BeamToolWindowsFormsHost;
 }
Beispiel #9
0
 private void OnShowToolBarChanged(object host, string propertyName, object value)
 {
     BeamToolWindowsFormsHost theHost = host as BeamToolWindowsFormsHost;
 }