示例#1
0
        public void AddDigit(string Digit)
        {
            if (Digit == "." && TxtInput.Text.Contains(Digit))
            {
                return;
            }


            if (!isAction)
            {
                if (TxtInput.Text == "0" && Digit != ".")
                {
                    TxtInput.Text = Digit;
                }
                else
                {
                    TxtInput.AppendText(Digit);
                }
            }
            else
            {
                ClearScreen();
                AddDigit(Digit);
            }
        }
示例#2
0
        public void end(String pR)
        {
            TxtInput.AppendText(pR + "\n");
            WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();

            wplayer.URL = @"C:\Users\Proprietaire\Documents\Projet_Perso\PROJET\BCA_MakingAnIA\BCA_MakingAnIA\Commands\NonOrdinateur.mp3";
            wplayer.controls.play();
            wake = false;
        }