Пример #1
0
        private static void ToquesChanged_Callback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ucColocacao uc     = (ucColocacao)d;
            int         toques = (int)e.NewValue;

            uc.txtbToques.Text = toques.ToString() + ((toques > 1) ? " toques" : " toque");
        }
Пример #2
0
        private static void TempoChanged_Callback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ucColocacao uc    = (ucColocacao)d;
            string      tempo = string.Format("{0:mm:ss.f}", new DateTime(1, 1, 1, uc.Tempo.Hours, uc.Tempo.Minutes, uc.Tempo.Seconds, uc.Tempo.Milliseconds));

            uc.txtbTempo.Text = tempo;
        }
Пример #3
0
        private static void PosicaoChanged_Callback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ucColocacao uc = (ucColocacao)d;

            uc.txtbPosicao.Text = e.NewValue.ToString() + ".";
        }