public void InitializePackage()
 {
     AssemblyLoadingGuard.Protect();
     AssemblyLoadingGuard.LoadXpfLibraries();
     Options             = SerializeHelper.DeSerializeSettings();
     GenerateMenuHelper  = new GenerateMenuItemsHelper(this, dte);
     ToolWindowViewModel = new ToolWindowViewModel(dte, Options, GenerateMenuHelper, GetBlameWindow);
     GenerateNavigationMenu();
 }
Esempio 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);
        }
Esempio n. 3
0
 public void Initialize(ToolWindowViewModel viewModel)
 {
     model = viewModel;
     viewModel.Update();
     Control.DataContext = viewModel;
 }
Esempio n. 4
0
 public void ShowBlameWindow()
 {
     ToolWindowViewModel.ShowBlame();
 }