Пример #1
0
        private TabItem AddTabItem()
        {
            int count = _tabcount;
            Debug.WriteLine(count);
            // create new tab item
            var tab = new TabItem
            {
                Header = "C:\\",
                Name = $"tab{count}",
                HeaderTemplate = tabDynamic.FindResource("TabHeader") as DataTemplate
            };



            var view = new ExploreView {Name = "Explore"};
            view.FillView(@"C:\");
            view.VerticalAlignment = VerticalAlignment.Stretch;
            view.HorizontalAlignment = HorizontalAlignment.Stretch;

            tab.Content = view;

            // insert tab item right before the last (+) tab item
            _tabItems.Insert(_tabItems.Count-1, tab);
            _tabcount += 1;
            return tab;
        }
Пример #2
0
        public TeamFoundationView() : base()
        {
            this.ContentName = "Team Foundation Browser";
            this.IsViewOnly  = true;

            exploreView = new ExploreView(this, 50);
            exploreView.ShowChangeset += MyShowChangesetEventHandler;
            exploreView.ShowFile      += MyShowFileEventHandler;

            exploreView.ShowAll();
        }
Пример #3
0
    public override void Run()
    {
        Application.Init();

        Gtk.Window frame = new Gtk.Window("OpenTF Explorer");

        exploreView = new ExploreView(Driver, OptionStopAfter);
        exploreView.ShowChangeset += MyShowChangesetEventHandler;
        exploreView.ShowFile      += MyShowFileEventHandler;

        frame.Add(exploreView);
        frame.DeleteEvent     += new DeleteEventHandler(DeleteEvent);
        frame.KeyReleaseEvent += MyKeyReleaseHandler;

        int x, y, width, height, depth;

        frame.RootWindow.GetGeometry(out x, out y, out width, out height, out depth);
        frame.SetDefaultSize(Convert.ToInt32(width * .9), Convert.ToInt32(height * .9));

        frame.ShowAll();
        Application.Run();
    }
Пример #4
0
 public TeamFoundationPad() : base("Team Foundation Browser")
 {
     exploreView = new ExploreView(this, 50);
     exploreView.ShowAll();
 }