コード例 #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            formPeta FormPeta = new formPeta();

            FormPeta.Show();
            this.Close();
        }
コード例 #2
0
ファイル: FormPeta.cs プロジェクト: ifaliefya/GazeThru2ndUI
 public static formPeta getInstance()
 {
     if (Instance == null || Instance.IsDisposed)
     {
         Instance = new formPeta();
     }
     else
     {
         Instance.BringToFront();
     }
     return(Instance);
 }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }