示例#1
0
        private void DeleteUser_Click(object sender, EventArgs e)
        {
            DateTime dt = new DateTime();

            RecieverPeople tasf = new RecieverPeople();
            //   tasf.Proj = this.textBox3.Text;
            //   tasf.ProjectID = this.textBox5.Text;

            String RecieverIdtext = this.textBox1.Text;
            //    String ProjectIdtext = this.textBox5.Text;

            // tasf.ProposedDate = Convert.ToDateTime(this.textBox1.Text);



            //bList.Add(bd);

            AeMployeeRepisotary depkRepof = new AeMployeeRepisotary();

            if (depkRepof.DeleteReciever(RecieverIdtext))
            {
                MessageBox.Show("dElete Success", "dElete");
                AeMployeeRepisotary accRepo = new AeMployeeRepisotary();

                List <RecieverPeople> bList = accRepo.GetallRecieverPeople();
                this.MemberListGridView1.DataSource = bList;
            }
            else
            {
                MessageBox.Show("Can Not dElete", "dElete Error");
            }
        }
示例#2
0
        private void loadEmpBtn_Click(object sender, EventArgs e)
        {
            //  string text = this.ProjectListGridView1.Text;
            AeMployeeRepisotary   accRepo = new AeMployeeRepisotary();
            List <RecieverPeople> accList = accRepo.GetallRecieverPeople();

            this.MemberListGridView1.DataSource = accList;
        }