Пример #1
0
        public PersonalArea(string mail)
        {
            pc    = new PackageControler();
            email = mail;
            InitializeComponent();
            DataTable dt = pc.searchAdByEmail(email);

            dataGridView2.DataSource = dt;
            DataTable dt2 = pc.userDetail(email);
        }
Пример #2
0
        public Everything4rent()
        {
            control        = new Control();
            packageControl = new PackageControler();
            InitializeComponent();
            personalArea.Enabled = false;
            string    path = Directory.GetCurrentDirectory();
            DataTable dt   = packageControl.getallAdsByDate();

            dataGridView1.DataSource = dt;
            personalArea.Enabled     = false;
            dataGridView1.ReadOnly   = true;
            // dataGridView1.Enabled = false;
            isLogin = false;
        }
Пример #3
0
        public order(DataGridViewRow dataGridViewRow)
        {
            dataGridViewRow1 = dataGridViewRow;
            packageControl   = new PackageControler();
            InitializeComponent();
            DataTable dtVehicle = packageControl.ProductsInPackage("Vehicle", Int32.Parse(dataGridViewRow.Cells[0].Value.ToString()));

            VehicleView.DataSource = dtVehicle;
            DataTable dtPets = packageControl.ProductsInPackage("Pets", Int32.Parse(dataGridViewRow.Cells[0].Value.ToString()));

            PetsView.DataSource = dtPets;
            DataTable dtSecond = packageControl.ProductsInPackage("SecondHand", Int32.Parse(dataGridViewRow.Cells[0].Value.ToString()));

            SecondHandView.DataSource = dtSecond;
            DataTable dtReal = packageControl.ProductsInPackage("RealEstate", Int32.Parse(dataGridViewRow.Cells[0].Value.ToString()));

            RealEstateView.DataSource = dtReal;
        }
Пример #4
0
 public CreateAd(PackageControler pc)
 {
     InitializeComponent();
     this.pc = pc;
 }
Пример #5
0
 public UpdateAd(int num, PackageControler pc)
 {
     InitializeComponent();
     this.pc  = pc;
     this.num = num;
 }