//bloqueo public void bloqueo() { Taskbar.Hide(); KillCtrlAltDelete(); Dispatcher.Invoke(() => { // Set property or change UI compomponents. this.Show(); txt_cuenta.Focus(); }); }
//desbloqueo public void desbloqueo(int id) { //formState.Restore(this); Taskbar.Show(); EnableCTRLALTDEL(); Dispatcher.Invoke(() => { // Set property or change UI compomponents. this.Hide(); Displaynotify(id); }); //Application.Current.Shutdown(); }