Esempio n. 1
0
 private void ButtonDeleteScreenLock_Click(object sender, RoutedEventArgs e)
 {
     ux.DeleteScreenLock(_currentDevInfo);
     //if (!((MainWindow)App.Current.MainWindow).DevInfoPanel.CurrentDeviceIsRoot)
     //{
     //    if (BoxHelper.ShowChoiceDialog("Warning", "warrningNeedRootAccess").ToBool() == false) return;
     //}
     //bool _continue = await Task.Run(() =>
     //{
     //    return BoxHelper.ShowChoiceDialog("Warning", "msgDelScreenLock").ToBool();
     //});
     //if (!_continue) return;
     //var screenLockDeleter = new Basic.Flows.ScreenLockDeleter();
     //screenLockDeleter.Init(new FlowArgs()
     //{
     //    DevBasicInfo = _currentDevInfo,
     //});
     //screenLockDeleter.RunAsync();
     //BoxHelper.ShowLoadingDialog(screenLockDeleter);
 }
Esempio n. 2
0
 private void ButtonDeleteScreenLock_Click(object sender, RoutedEventArgs e)
 {
     ux.DeleteScreenLock(_currentDevInfo);
 }