示例#1
0
        public void RunClientCode()
        {
            Console.WriteLine("***** START CHAIN OF RESPONSIBILITY *****");
            var root = new PassHandler();

            root
            .SetNext(new PassHandler())
            .SetNext(new PassHandler())
            .SetNext(new CrossHandler())
            .SetNext(new ShootHandler())
            .SetNext(new GoalHandler());

            root.Handle();

            Console.WriteLine("***** END CHAIN OF RESPONSIBILITY *****");
        }
示例#2
0
        public Form1()
        {
            StringBuilder userid1 = new StringBuilder(256);
            StringBuilder password1 = new StringBuilder(256);

            InitializeComponent();
            DataPool.Form1 = this;
            GetPrivateProfileString("user", "username","" ,userid1,256,".\\THMconfig.ini");
            GetPrivateProfileString("user","password","" ,password1,256,".\\THMconfig.ini");

            textBox1.Text = Convert.ToString(userid1);
            textBox2.Text = Convert.ToString(password1);

            //flag = 1;
            checkBox1.Checked = true;
            psHd = Dummy;
            psCt = Dummy;
        }
示例#3
0
 private void textBox_TextChanged(object sender, EventArgs e)
 {
     psHd = MD5kamiro;
     psCt = MD5Create;
 }