Example #1
0
        private void InitCustom()
        {
            var userName = UserHelper.GetUserName();

            FillNumberData(userName);

            Consumo consumo = new Consumo(Parameter, OptimizedTime);

            DataContext = new ConsumoViewModel(consumo);

            txtMola.Text = OptimizedTime - Int32.Parse(Parameter) > 0? (OptimizedTime - Int32.Parse(Parameter)).ToString() + " dakika sonra mola verin" : "Hemen mola verin";
        }
Example #2
0
 public ConsumoViewModel(Consumo consumo)
 {
     Consumo = new List <Consumo>();
     Consumo.Add(consumo);
 }