private void btnTiga_Click(object sender, EventArgs e) { formLantai1 FormLantai1 = formLantai1.getInstance(); this.Close(); FormLantai1.Show(); FormLantai1.GetLantaiPic(3); FormLantai1.LoadPointer(3); }
private void btnDua_Click(object sender, EventArgs e) { formLantai1 FormLantai1 = new formLantai1(); this.Close(); FormLantai1.Show(); FormLantai1.GetLantaiPic(2); FormLantai1.LoadPointer(2); }
public static formLantai1 getInstance() { if (Instance == null || Instance.IsDisposed) { Instance = new formLantai1(); } else { Instance.BringToFront(); } return(Instance); }
private void TombolTigaTekan(ArgumenKendaliTombol e) { if (e.mataX == null || e.mataY == null) { kendali.NoLook(); } if (e.status) { formLantai1 FormLantai1 = formLantai1.getInstance(); FormLantai1.Show(); FormLantai1.GetLantaiPic(3); FormLantai1.LoadPointer(3); timer1.Stop(); kendali.Close(); this.Close(); } progressBarTiga.Value = e.DataKor; }