Beispiel #1
0
 public UserControl1(CJatekos j)
 {
     InitializeComponent();
     jatekos          = j;
     nevLabel.Content = jatekos.nev;
     fafeltoltes();
     if (AllapotValtoTimer == null)
     {
         AllapotValtoTimer = new System.Timers.Timer();
     }
     AllapotValtoTimer.Elapsed += AllapotValtoTimer_Tick;
     AllapotValtoTimer.Interval = 1010;
     AllapotValtoTimer.Start();
     //RecursiveFaBejaras((TreeViewItem)treeView1.Items[0], "barakk2");
 }
Beispiel #2
0
        public System.Windows.Media.SolidColorBrush getVonalszín(CJatekos j)
        {
            switch (j.szin)
            {
            case ESzin.piros:
                return(System.Windows.Media.Brushes.BlueViolet);

                break;

            case ESzin.kek:
                return(System.Windows.Media.Brushes.DarkBlue);

                break;

            case ESzin.sarga:
                return(System.Windows.Media.Brushes.Gold);

                break;
            }
            return(System.Windows.Media.Brushes.Black);
        }
Beispiel #3
0
        public System.Windows.Media.SolidColorBrush getSzin(CJatekos j)
        {
            switch (j.szin)
            {
            case ESzin.piros:
                return(System.Windows.Media.Brushes.PaleVioletRed);

                break;

            case ESzin.kek:
                return(System.Windows.Media.Brushes.LightBlue);

                break;

            case ESzin.sarga:
                return(System.Windows.Media.Brushes.LightYellow);

                break;
            }
            return(System.Windows.Media.Brushes.Black);
        }