Esempio n. 1
0
        private async void JoinWorkButton_Click(object sender, EventArgs e)
        {
            Enabled = false;
            await DomainJoin.Leave();

            Enabled = true;
        }
Esempio n. 2
0
        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;
        }