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"); }
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); }
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); }