private void OnTextChanged(object sender, RoutedEventArgs e)
        {
            EditableTextBlockEventArgs Args = (EditableTextBlockEventArgs)e;

            if (TestEscape == 5)
            {
                Args.Cancel();
            }
        }
        private void OnEditEnter(object sender, RoutedEventArgs e)
        {
            EditableTextBlockEventArgs Args = (EditableTextBlockEventArgs)e;

            if (TestEscape == 4)
            {
                Args.Cancel();
            }

            else if (TestEscape > 0)
            {
                EscapeTimer = new Timer(new TimerCallback(EscapeTimerCallback), this, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2));
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invoked when the user changes the device name.
 /// Will send the new name to the server.
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event data</param>
 private void DeviceName_Edited(object sender, EditableTextBlockEventArgs e)
 {
     ServiceManager.DeviceName = e.NewText;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Invoked when the user changes the device name.
 /// Will send the new name to the server.
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event data</param>
 private void DeviceName_Edited(object sender, EditableTextBlockEventArgs e)
 {
     ServiceManager.DeviceName = e.NewText;
 }