Exemplo n.º 1
0
        /// <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"));
            }
        }
Exemplo n.º 2
0
        /// <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("路由器重启失败");
            }
        }