コード例 #1
0
 public GraphCodeWindowRegistrar(Lifetime lifetime, ToolWindowManager toolWindowManager,
                                     GraphCodeToolWindow descriptor, UIApplication environment)
 {
     _environment = environment;
     _lifetime = lifetime;
     
     _toolWindowClass = toolWindowManager.Classes[descriptor];
     //_toolWindowClass.RegisterEmptyContent(
     //  lifetime,
     //  lt =>
     //  {
     //      var graphs = (new GraphLoader()).Load();
     //      var tabControl = new System.Windows.Controls.TabControl();
     //      var zcontrols = new List<ZoomControl>();
     //      foreach (var graph in graphs)
     //      {
     //          var gArea = InitializeGraphArea.Initialize(graph);
     //          var zcontrol = new ZoomControl();
     //          zcontrol.Content = gArea;
     //          zcontrols.Add(zcontrol);
     //      }
     //      tabControl.ItemsSource = zcontrols;
     //      return (new EitherControl(tabControl)).BindToLifetime(lt);
     //  });
 }
コード例 #2
0
        public GraphCodeWindowRegistrar(Lifetime lifetime, ToolWindowManager toolWindowManager,
                                        GraphCodeToolWindow descriptor, UIApplication environment)
        {
            _environment = environment;
            _lifetime    = lifetime;

            _toolWindowClass = toolWindowManager.Classes[descriptor];
            //_toolWindowClass.RegisterEmptyContent(
            //  lifetime,
            //  lt =>
            //  {
            //      var graphs = (new GraphLoader()).Load();
            //      var tabControl = new System.Windows.Controls.TabControl();
            //      var zcontrols = new List<ZoomControl>();
            //      foreach (var graph in graphs)
            //      {
            //          var gArea = InitializeGraphArea.Initialize(graph);
            //          var zcontrol = new ZoomControl();
            //          zcontrol.Content = gArea;
            //          zcontrols.Add(zcontrol);
            //      }
            //      tabControl.ItemsSource = zcontrols;
            //      return (new EitherControl(tabControl)).BindToLifetime(lt);
            //  });
        }