コード例 #1
0
        /// <summary>
        /// Called when SelectedEntity is changed.
        /// </summary>
        /// <param name="o">The dependency object.</param>
        /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnSelectedEntityChanged(DependencyObject o, DependencyPropertyChangedEventArgs args)
        {
            SilView me = o as SilView;

            me.UpdateDocumentText();

            me.ViewModel.UpdateBreadcrumbs(me.SelectedEntity);

            me.FireOnEntitySelected(me.SelectedEntity);
        }
コード例 #2
0
        public SilViewHost()
        {
            InitializeComponent();

            //  Create the Sil View.
            SilView = new SilView();
            SilView.OnEntitySelected  += SilView_OnEntitySelected;
            SilView.ShowBreadcrumbsBar = true;

            //  Add it to the WPF element host.
            elementHost.Child = SilView;
        }
コード例 #3
0
 public void InitialiseView(IDisassemblyProvider disassemblyProvider, DisassemblyTarget disassemblyTarget)
 {
     SilView.InitialiseView(disassemblyProvider, disassemblyTarget);
 }
コード例 #4
0
 /// <summary>
 /// Called when ShowAssemblyTree is changed.
 /// </summary>
 /// <param name="o">The dependency object.</param>
 /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
 private static void OnShowAssemblyTreeChanged(DependencyObject o, DependencyPropertyChangedEventArgs args)
 {
     SilView me = o as SilView;
 }
コード例 #5
0
        /// <summary>
        /// Called when ShowComments is changed.
        /// </summary>
        /// <param name="o">The dependency object.</param>
        /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnShowCommentsChanged(DependencyObject o, DependencyPropertyChangedEventArgs args)
        {
            SilView me = o as SilView;

            me.UpdateDocumentText();
        }
コード例 #6
0
 /// <summary>
 /// Called when ShowBreadcrumbsBar is changed.
 /// </summary>
 /// <param name="o">The dependency object.</param>
 /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
 private static void OnShowBreadcrumbsBarChanged(DependencyObject o, DependencyPropertyChangedEventArgs args)
 {
     SilView me = o as SilView;
 }