Ignore:
Timestamp:
Aug 19, 2010, 6:26:01 AM (11 years ago)
Author:
matkovic
Message:

-added Fullscreen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Container/WorkSpaceEditorView.xaml.cs

    r1807 r1835  
    3838        private CryptoLineView dummyLine = new CryptoLineView();
    3939        private Point point;
     40        private PluginContainerView currentFullViewContainer;
    4041
    4142        public EditorState State;
     
    9495                PluginContainerView newPluginContainerView = new PluginContainerView(model);
    9596                newPluginContainerView.Delete += new EventHandler<PluginContainerViewDeleteViewEventArgs>(PluginDelete);
    96                 newPluginContainerView.ShowSettings += new EventHandler<PluginContainerViewSettingsViewEventArgs>(shape_ShowSettings);
     97                newPluginContainerView.FullScreen += new EventHandler<PluginContainerViewFullScreenViewEventArgs>(shape_FullScreen);
    9798                newPluginContainerView.ConnectorMouseLeftButtonDown += new EventHandler<ConnectorViewEventArgs>(shape_OnConnectorMouseLeftButtonDown);
    9899                newPluginContainerView.MouseLeftButtonDown += new MouseButtonEventHandler(shape_MouseLeftButtonDown);
     
    107108        }
    108109
    109         void shape_ShowSettings(object sender, PluginContainerViewSettingsViewEventArgs e)
     110        void shape_FullScreen(object sender, PluginContainerViewFullScreenViewEventArgs e)
    110111        {
    111112            this.InformationPanel.Visibility = Visibility.Visible;
     113            e.container.PresentationPanel.Child = null;
     114            this.FullPresentation.Children.Add(e.container.Model.PluginPresentation);
     115            this.currentFullViewContainer = e.container;
    112116        }
    113117
     
    312316        private void CloseSettingsButton_Click(object sender, RoutedEventArgs e)
    313317        {
    314             this.InformationPanel.Visibility = Visibility.Hidden;
     318            this.InformationPanel.Visibility = Visibility.Collapsed;
     319            this.FullPresentation.Children.Clear();
     320            this.currentFullViewContainer.PresentationPanel.Child = currentFullViewContainer.Model.PluginPresentation;
     321            this.currentFullViewContainer = null;
    315322        }
    316323
     
    355362
    356363            newPluginContainerView.Delete += new EventHandler<PluginContainerViewDeleteViewEventArgs>(PluginDelete);
    357             newPluginContainerView.ShowSettings += new EventHandler<PluginContainerViewSettingsViewEventArgs>(shape_ShowSettings);
     364            newPluginContainerView.FullScreen += new EventHandler<PluginContainerViewFullScreenViewEventArgs>(shape_FullScreen);
    358365            newPluginContainerView.ConnectorMouseLeftButtonDown += new EventHandler<ConnectorViewEventArgs>(shape_OnConnectorMouseLeftButtonDown);
    359366            newPluginContainerView.MouseLeftButtonDown += new MouseButtonEventHandler(shape_MouseLeftButtonDown);
Note: See TracChangeset for help on using the changeset viewer.