Exemplo n.º 1
0
 public void InitializePackage()
 {
     AssemblyLoadingGuard.Protect();
     AssemblyLoadingGuard.LoadXpfLibraries();
     Options             = SerializeHelper.DeSerializeSettings();
     GenerateMenuHelper  = new GenerateMenuItemsHelper(this, dte);
     ToolWindowViewModel = new ToolWindowViewModel(dte, Options, GenerateMenuHelper, GetBlameWindow);
     GenerateNavigationMenu();
 }
Exemplo n.º 2
0
        public DXVcsTools_VSIXPackage()
        {
            var dte = GetGlobalService(typeof(DTE)) as DTE;

            Options = SerializeHelper.DeSerializeSettings();
            Menu    = new MenuViewModel();
            Menu.DoConnect(dte);
            GenerateMenuHelper  = new GenerateMenuItemsHelper(this, dte);
            ToolWindowViewModel = new ToolWindowViewModel(dte, Options, GenerateMenuHelper);
        }
Exemplo n.º 3
0
 public void Initialize(ToolWindowViewModel viewModel)
 {
     model = viewModel;
     viewModel.Update();
     Control.DataContext = viewModel;
 }
Exemplo n.º 4
0
 public void ShowBlameWindow()
 {
     ToolWindowViewModel.ShowBlame();
 }