Esempio n. 1
0
        internal static RehersalViewModel GetBasicRehersal()
        {
            BasicRehersal basicRehersalData = new BasicRehersal();
            var           basicTimeBarData  = basicRehersalData.TimeBars.FirstOrDefault();

            var basicRehersalInstance = new RehersalViewModel()
            {
                Name     = basicRehersalData.Name,
                TimeBars = new ObservableCollection <TimeBarViewModel>()
                {
                    GetBasicTimeBar("1")
                }
            };

            return(basicRehersalInstance);
        }
Esempio n. 2
0
        private static TimeBarViewModel GetBasicTimeBar(string name)
        {
            BasicRehersal basicRehersalData = new BasicRehersal();
            TimeBarModel  basicTimeBarData  = basicRehersalData.TimeBars.FirstOrDefault();

            if (name == null)
            {
                name = basicTimeBarData.Name;
            }

            return(new TimeBarViewModel()
            {
                Name = name,
                Tempo = basicTimeBarData.Tempo,
                TicksCount = basicTimeBarData.TicksCount,
                TickTimeValue = basicTimeBarData.TickTimeValue,
                Repeats = basicTimeBarData.Repeats
            });
        }