Ejemplo n.º 1
0
 public Add()
 {
     InitializeComponent();
     this.Business         = new Logiclayer();
     this.btnsave.Click   += btnsave_Click;
     this.btncancel.Click += btncancel_Click;
 }
Ejemplo n.º 2
0
 public FindPlayer(string name)
 {
     InitializeComponent();
     this.Load            += FindPlayer_Load;
     this.btncancel.Click += btncancel_Click;
     PlayerName            = name;
     business              = new Logiclayer();
 }
Ejemplo n.º 3
0
 public Edit(int id)
 {
     InitializeComponent();
     this.Business         = new Logiclayer();
     this.PlayerId         = id;
     this.Load            += Edit_Load;
     this.btnsave.Click   += btnsave_Click;
     this.btncancel.Click += btncancel_Click;
 }
Ejemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();
            this.Business = new Logiclayer();

            this.btnlogin.Click  += btnlogin_Click;
            this.btncancel.Click += btncancel_Click;
            this.cbshowpassword.CheckedChanged += cbshowpassword_CheckedChanged;
        }
Ejemplo n.º 5
0
        public Index()

        {
            InitializeComponent();
            this.Business               = new Logiclayer();
            this.Load                  += Index_Load;
            this.btnadd.Click          += btnadd_Click;
            this.btndelete.Click       += btndelete_Click;
            this.grdplayer.DoubleClick += grdplayer_DoubleClick;
            LoadAllPlayer();
            this.btnsearch.Click += btnsearch_Click;
        }
Ejemplo n.º 6
0
        void Edit_Load(object sender, EventArgs e)
        {
            var business  = new Logiclayer();
            var oldPlayer = business.GetPlayer(this.PlayerId);

            this.txttencauthu.Text = oldPlayer.TenCauThu;
            this.txtgioitinh.Text  = oldPlayer.Gioi_Tinh;
            this.dtpngaysinh.Value = oldPlayer.NgaySinh;
            this.txtnickname.Text  = oldPlayer.Nickname;
            this.txtquequan.Text   = oldPlayer.Quequan;
            this.txtchieucao.Text  = oldPlayer.Chieucao;
            this.txtvitri.Text     = oldPlayer.Vitri;
            this.txtsoao.Text      = oldPlayer.Soao;
            this.txtclb.Text       = oldPlayer.clb;
        }
Ejemplo n.º 7
0
        void btnsave_Click(object sender, EventArgs e)
        {
            var business  = new Logiclayer();
            var TenCauThu = this.txttencauthu.Text;
            var Gioitinh  = this.txtgioitinh.Text;
            var NgaySinh  = this.dtpngaysinh.Value;
            var Nickname  = this.txtnickname.Text;
            var Quequan   = this.txtquequan.Text;
            var ChieuCao  = this.txtchieucao.Text;
            var Vitri     = this.txtvitri.Text;
            var Soao      = this.txtsoao.Text;
            var clb       = this.txtclb.Text;

            this.Business.EditPlayer(this.PlayerId, TenCauThu, Gioitinh, NgaySinh, Nickname, Quequan, ChieuCao, Vitri, Soao, clb);
            MessageBox.Show("Edit player Successfully");
            this.Close();
        }