private async void JoinWorkButton_Click(object sender, EventArgs e) { Enabled = false; await DomainJoin.Leave(); Enabled = true; }
private async void ReCAL_Click(object sender, EventArgs e) { Enabled = false; await Misc.InstallScheduledTask(Properties.Resources.SuperCALPhaseTwo, "2"); await DomainJoin.Leave(); await Misc.SetAutoLogon(false); if (await Wipe.Do()) { await McrsCalSrvc.Start(); CenterToScreen(); Left = Left - 440; } Enabled = true; }