Example #1
0
        private FrameworkElement CreateTab()
        {
            var chat = new ChatFiltersComponent(_app);
            _components.Add(chat);
            var chatTab = new TabItem();
            chatTab.Header = "Global Chat";
            chatTab.Content = chat.RootControl;

            var frag = new FragSequenceFiltersComponent(_app);
            _components.Add(frag);
            var fragTab = new TabItem();
            fragTab.Header = "Frag Sequences";
            fragTab.Content = frag.RootControl;

            var midAir = new MidAirFiltersComponent(_app);
            _components.Add(midAir);
            var midAirTab = new TabItem();
            midAirTab.Header = "Mid-Air Frags";
            midAirTab.Content = midAir.RootControl;

            var multiRail = new MultiRailFiltersComponent(_app);
            _components.Add(multiRail);
            var multiRailTab = new TabItem();
            multiRailTab.Header = "Multi-Frag Rails";
            multiRailTab.Content = multiRail.RootControl;

            var flagCapture = new FlagCaptureFilterComponent(_app);
            _components.Add(flagCapture);
            var flagCaptureTab = new TabItem();
            flagCaptureTab.Header = "Flag Captures";
            flagCaptureTab.Content = flagCapture.RootControl;

            var flickRail = new FlickRailFiltersComponent(_app);
            _components.Add(flickRail);
            var flickRailTab = new TabItem();
            flickRailTab.Header = "Flick Rails";
            flickRailTab.Content = flickRail.RootControl;

            var tabControl = new TabControl();
            tabControl.HorizontalAlignment = HorizontalAlignment.Stretch;
            tabControl.VerticalAlignment = VerticalAlignment.Stretch;
            tabControl.Margin = new Thickness(5);
            tabControl.Items.Add(chatTab);
            tabControl.Items.Add(fragTab);
            tabControl.Items.Add(midAirTab);
            tabControl.Items.Add(multiRailTab);
            tabControl.Items.Add(flagCaptureTab);
            tabControl.Items.Add(flickRailTab);

            return tabControl;
        }
Example #2
0
        private FrameworkElement CreateTab()
        {
            var chat = new ChatFiltersComponent(_app);

            _components.Add(chat);
            var chatTab = new TabItem();

            chatTab.Header  = "Chat";
            chatTab.Content = chat.RootControl;

            var frag = new FragSequenceFiltersComponent(_app);

            _components.Add(frag);
            var fragTab = new TabItem();

            fragTab.Header  = "Frag Sequences";
            fragTab.Content = frag.RootControl;

            var midAir = new MidAirFiltersComponent(_app);

            _components.Add(midAir);
            var midAirTab = new TabItem();

            midAirTab.Header  = "Mid-Air Frags";
            midAirTab.Content = midAir.RootControl;

            var multiRail = new MultiRailFiltersComponent(_app);

            _components.Add(multiRail);
            var multiRailTab = new TabItem();

            multiRailTab.Header  = "Multi-Frag Rails";
            multiRailTab.Content = multiRail.RootControl;

            var flagCapture = new FlagCaptureFilterComponent(_app);

            _components.Add(flagCapture);
            var flagCaptureTab = new TabItem();

            flagCaptureTab.Header  = "Flag Captures";
            flagCaptureTab.Content = flagCapture.RootControl;

            var flickRail = new FlickRailFiltersComponent(_app);

            _components.Add(flickRail);
            var flickRailTab = new TabItem();

            flickRailTab.Header  = "Flick Rails";
            flickRailTab.Content = flickRail.RootControl;

            var match = new MatchFilterComponent(_app);

            _components.Add(match);
            var matchTab = new TabItem();

            matchTab.Header  = "Matches";
            matchTab.Content = match.RootControl;

            var tabControl = new TabControl();

            tabControl.HorizontalAlignment = HorizontalAlignment.Stretch;
            tabControl.VerticalAlignment   = VerticalAlignment.Stretch;
            tabControl.Margin = new Thickness(5);
            tabControl.Items.Add(chatTab);
            tabControl.Items.Add(fragTab);
            tabControl.Items.Add(midAirTab);
            tabControl.Items.Add(multiRailTab);
            tabControl.Items.Add(flagCaptureTab);
            tabControl.Items.Add(flickRailTab);
            tabControl.Items.Add(matchTab);

            return(tabControl);
        }