Ejemplo n.º 1
0
        public static void SetParent(Form1 parent)
        {
            Parent = parent;

            // Laddar in färgerna, kanke inte rätt ställe att göra så ?
            colorFactory = ColorHandler.Instance;

            colors = colorFactory.GetColorTheme();
        }
Ejemplo n.º 2
0
        public Form1()
        {
            tournament = new SingleElimination();

            IRule bestof1 = new BestOf(1);
            IRule bestof3 = new BestOf(3);
            IRule BestOf5 = new BestOf(5);

            InitializeComponent();


            RulesBox.Items.Add(bestof1);
            RulesBox.Items.Add(bestof3);
            RulesBox.Items.Add(BestOf5);
            MatchVisualizer.SetParent(this);


            //Set current colors for application
            colorFactory = ColorHandler.Instance;
            colors       = colorFactory.GetColorTheme();
        }