Exemplo n.º 1
0
        //public void UpdateView()
        //{
        //  if (window == null)
        //    Activate();
        //  //window.UpdateView();
        //}

        public void Close()
        {
            if (window == null)
            {
                window = package.FindToolWindow(typeof(ChartPoints.CPChartViewTW), 0, true) as CPChartViewTW;
            }
            IVsWindowFrame frame = window?.Frame as IVsWindowFrame;

            frame?.CloseFrame((uint)__FRAMECLOSE.FRAMECLOSE_NoSave);
        }
Exemplo n.º 2
0
 public void Activate()
 {
     window = package.FindToolWindow(typeof(ChartPoints.CPChartViewTW), 0, true) as CPChartViewTW;
     Show();
     window?.Clear();
 }