Beispiel #1
0
        /// <summary>
        /// Adds al the mainunits and the matrix tab
        /// </summary>
        private async void AddMainUnitsToTab()
        {
            if (!LibraryData.SystemIsOpen)
            {
                return;
            }

            TabCollection.Clear();
            await Task.Delay(150);

            foreach (var m in LibraryData.FuturamaSys.MainUnits)
            {
                TabCollection.Add(new MainUnitViewModel(m, this));
            }
            SelectedTab = TabCollection.FirstOrDefault(i => i.Id == 0);

            TabCollection.Add(new PanelViewModel(this));
            TabCollection.Add(_comViewModel);
        }