/// <summary> /// 重启路由器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void RebootYes_Clicked(object sender, RoutedEventArgs e) { notification.Dismiss(); var res = await RouterAPI.Reboot(); if (res) { notification.Show(Utils.AppResources.GetString("RouterRebootSuccess")); } else { notificationError.Show(Utils.AppResources.GetString("RouterRebootError")); } }
/// <summary> /// 重启路由器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void RebootYes_Clicked(object sender, RoutedEventArgs e) { notification.Dismiss(); var res = await RouterAPI.Reboot(); if (res) { notification.Show("路由器正在重启"); } else { notificationError.Show("路由器重启失败"); } }