private void btnBack_Click(object sender, EventArgs e) { formPeta FormPeta = new formPeta(); FormPeta.Show(); this.Close(); }
public static formPeta getInstance() { if (Instance == null || Instance.IsDisposed) { Instance = new formPeta(); } else { Instance.BringToFront(); } return(Instance); }
private void PetaTekan(ArgumenKendaliTombol e) { //Console.WriteLine(e.korelasiX + " " + e.korelasiY + " " + e.mataX + " " + e.mataY); if (e.mataX == null || e.mataY == null) { kendaliuser.NoLook(); } if (e.status) { formPeta FormPeta = formPeta.getInstance(); FormPeta.Show(); kendaliuser.Close(); timer1.Stop(); this.Close(); } progressBarPeta.Value = e.DataKor; }
private void TombolBackTekan(ArgumenKendaliTombol e) { PresenceCheck.Visible = false; if (e.CekMata) { PresenceCheck.Visible = true; } if (e.mataX == null || e.mataY == null) { kendali.NoLook(); } if (e.status) { formPeta FormPeta = formPeta.getInstance(); FormPeta.Show(); timer1.Stop(); kendali.Close(); this.Close(); } progressBarBack.Value = e.DataKor; }