Exemplo n.º 1
0
        private void AddHourCode(object parameter)
        {
            var codeAndName = parameter.ToString();
            var split       = codeAndName.Split(new[] { ':' });

            if (split.Length < 2)
            {
                return;
            }
            var code = split[0];
            var name = split[1];

            HourCode = _hourCodeProvider.Add(code, name);
        }
Exemplo n.º 2
0
 private void AddCode(object obj)
 {
     CurrentCode = _hourCodeProvider.Add("000", "NewCode");
 }