Beispiel #1
0
        private void BTNClose_Click(object sender, EventArgs e)
        {
            this.Close();
            FormTutorial tutorial = new FormTutorial();

            tutorial.Show();
        }
Beispiel #2
0
        //eventhandler tombol Misi menggunakan interaksi klik
        private void BtnMisi_Click(object sender, EventArgs e)
        {
            SFXSeleksi();
            FormTutorial FormGame = new FormTutorial();

            FormGame.Show();
            this.Hide();
        }
Beispiel #3
0
 public static FormTutorial getInstance()
 {
     if (Instance == null)
     {
         Instance = new FormTutorial();
     }
     else
     {
         Instance.BringToFront();
     }
     return(Instance);
 }
Beispiel #4
0
        //eventhandler tombol Tahukah kamu menggunakan interaksi eyetracking
        private void TombolTahukahKamu(ArgumenKendaliTombol eawal)
        {
            if (eawal.CekMata)
            {
                PresenceCheck.Visible = true;
            }
            if (eawal.status)
            {
                FormTutorial FormGame = FormTutorial.getInstance();
                FormGame.Show();
                this.Hide();
                TimerTombol.Stop();
                TimerTombol.Tick -= TimerTombol_Tick;
            }

            BtnTahu.BackColor  = Color.FromArgb(eawal.DataKor, 0, 150, 185);
            progressBar2.Value = eawal.DataKor;
        }
Beispiel #5
0
        //eventhandler tombol Misi menggunakan interaksi eyetracking
        private void TombolMisiTekan(ArgumenKendaliTombol eawal)
        {
            PresenceCheck.Visible = false;
            if (eawal.CekMata)
            {
                PresenceCheck.Visible = true;
            }
            if (eawal.status)
            {
                FormTutorial FormGame = FormTutorial.getInstance();
                FormGame.Show();
                this.Hide();
                TimerTombol.Stop();
                TimerTombol.Tick -= TimerTombol_Tick;
            }

            BtnMisi.BackColor  = Color.FromArgb(eawal.DataKor, 0, 150, 185);   //untuk opacity
            progressBar1.Value = eawal.DataKor;                                //untuk progressbar
        }