Beispiel #1
0
        public MatchItem(Model.API.matches_match oMatch)
        {
            InitializeComponent();
            Match = oMatch;

            labelBlueWorld.Content  = oMatch.worlds.Find(x => x.color == "Blue").name;
            labelRedWorld.Content   = oMatch.worlds.Find(x => x.color == "Red").name;
            labelGreenWorld.Content = oMatch.worlds.Find(x => x.color == "Green").name;
        }
        public MapObjectiveItem(Model.API.objective oObjective, List <Model.XML.Objective> oLstObjectives, Model.API.matches_match oMatch, LogWriter oLogWriter)
        {
            InitializeComponent();

            Objective        = oObjective;
            m_oLstObjectives = oLstObjectives;
            m_oMatch         = oMatch;
            m_oLogWriter     = oLogWriter;

            Init();
        }
Beispiel #3
0
        public SiegeTimerItem(Model.SiegeTimer oSiegeTimer, LogWriter oLogWriter, Model.API.matches_match oMatch)
        {
            TimeSpan oTimespanToGo;

            InitializeComponent();
            SiegeTimer   = oSiegeTimer;
            m_oLogWriter = oLogWriter;
            Match        = oMatch;

            labelObjectiveMapName.Content = SiegeTimer.Map.Identifier;
            labelObjectiveName.Content    = SiegeTimer.XMLObjective.Name;
            imageObjectiveType.Source     = new BitmapImage(this.GetIconUri(SiegeTimer.XMLObjective, SiegeTimer.APIObjective.current_owner.color));

            oTimespanToGo = SiegeTimer.End - DateTime.Now;

            Countdown((int)oTimespanToGo.TotalSeconds, TimeSpan.FromSeconds(1), cur => labelTimer.Content = string.Format("{0:%m}:{0:ss}", new TimeSpan(0, 0, cur)));
        }
Beispiel #4
0
 public MatchSelectedEventArgs(Model.API.matches_match oMatch, Model.API.world oWorld)
 {
     Match = oMatch;
     World = oWorld;
 }