예제 #1
0
        private void UplaodDetails_Click(object sender, EventArgs e)
        {
            string email = comboBox1.Text.ToString();
            if (comboBox1.Text.ToString() == "   -----SELECT-----")
            {
                MessageBox.Show("Please Select Emailid from dropdrow list");

            }
            else
            {

                Globaltxtemail.txtemail = email;
                Cursor.Current = Cursors.WaitCursor;

                btnSubmit.Visible = true;
                count++;

                //  for (int i = 0; i < 10; i++)
                // {

                com.unitedcarexchange.CarsService objService = new com.unitedcarexchange.CarsService();

                IList<com.unitedcarexchange.UsedCarsInfo> obUsedCarsInfo = new List<com.unitedcarexchange.UsedCarsInfo>();
                obUsedCarsInfo = objService.FindCarID(txtCarID.Text);

                //List<com.unitedcarexchange.UsedCarsInfo> obUsedCarsInfo = new List<com.unitedcarexchange.UsedCarsInfo>();
                //UsedCarsSearch obj = new UsedCarsSearch();
                //obUsedCarsInfo = (List<com.unitedcarexchange.UsedCarsInfo>)obj.FindCarID(txtCarID.Text);

                if (Website == "CarPosts")
                {

                    popform.popform1.BringToFront();

                    IWebSites objClass = new CarPosts();
                    label31.Font = new System.Drawing.Font("Verdana", 8.0f,
                 System.Drawing.FontStyle.Bold);

                    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                    UplaodDetails.Enabled = false;
                    Cursor.Current = Cursors.Default;
                }
                else if (Website == "JustgoodCars")
                {
                    UplaodDetails.Enabled = false;
                    popform.popform2.BringToFront();
                    Cursor.Current = Cursors.WaitCursor;

                    if (count == 3)
                    {

                        if (webBrowser1.Url.ToString() == "http://www.justgoodcars.com/members/advertise1.php")
                        {
                            UplaodDetails.Enabled = false;
                        }
                    }

                    if (count == 4)
                    {

                //        label12.Font = new System.Drawing.Font("Verdana", 8.0f,
                //System.Drawing.FontStyle.Bold);
                //        btnSubmit.Enabled = true;
                      UplaodDetails.Enabled = false;
                    }
                    // btnSubmit.Visible = false;

                    // if( webBrowser1.Url.ToString() == "http://www.justgoodcars.com/members/members_index.php")

                    //     if (webBrowser1.Url.ToString() == "http://www.justgoodcars.com/members/members_index.php")
                    //     {
                    //         label26.Font = new System.Drawing.Font("Verdana", 8.0f,
                    //System.Drawing.FontStyle.Bold);

                    //     }
                    if (webBrowser1.Url.ToString() == "http://www.justgoodcars.com/members/advertise.php")
                    {
                        label6.Font = new System.Drawing.Font("Verdana", 8.0f,
                System.Drawing.FontStyle.Bold);

                        btnSubmit.Visible = false;

                    }
                    if (webBrowser1.Url.ToString() == "http://www.justgoodcars.com/members/advertise1.php")
                    {
                        label8.Font = new System.Drawing.Font("Verdana", 8.0f,
               System.Drawing.FontStyle.Bold);

                        btnSubmit.Visible = true;
                        // UplaodDetails.Enabled = false;

                    }

                    //MessageBox.Show(buttonCount.ToString());
                    if (webBrowser1.Url.ToString() == "http://www.justgoodcars.com/sign-in.php")
                    {

                        label31.Font = new System.Drawing.Font("Verdana", 8.0f,
                   System.Drawing.FontStyle.Bold);

                    }
                    //  if (i == 0)
                    //  {
                    if (count == 1)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                        webBrowser1.Navigate("http://www.justgoodcars.com/members/advertise.php");
                    }
                    //}
                    // if (i == 1)
                    // {
                    if (count == 1)
                    {
                        webBrowser1.Navigate("http://www.justgoodcars.com/members/advertise.php");
                        btnSubmit.Visible = false;
                        UplaodDetails.Enabled = true;
                    }
                    // }
                    // if (i == 2)
                    // {
                    if (count == 2)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                        UplaodDetails.Enabled = true;
                    }
                    // }
                    //  if (i == 3)
                    //  {
                    if (count == 3)
                    {

                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    }
                    //}
                    // if (i == 4)
                    // {
                    if (count == 4)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    }
                    // }

                    // if (i == 5)
                    //  {
                    if (count == 5)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    }
                    //  }

                    // if (i == 6)
                    // {
                    if (count == 6)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    }
                    //}

                    // if (i == 7)
                    // {
                    if (count == 7)
                    {
                        IWebSites objClass = new JustgoodCars();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    }
                    // }
                    Cursor.Current = Cursors.Default;
                }
                //else if (Website == "classifiedsforfree")
                //{
                //    IWebSites objClass = new ClassifiedsForFree();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}
                else if (Website == "clazorg")
                {
                    popform.popform4.BringToFront();

                    Cursor.Current = Cursors.WaitCursor;

                    IWebSites objClass = new ClazOrg();
                    if (webBrowser1.Url.ToString() == "http://claz.org/classifieds/post")
                    {
                        label31.Font = new System.Drawing.Font("Verdana", 8.0f,
                   System.Drawing.FontStyle.Bold);
                        btnSubmit.Visible = true;
                        UplaodDetails.Enabled = false;

                    }

                    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    Cursor.Current = Cursors.Default;

                }
                //else if (Website == "americanclassifieds")
                //{
                //    IWebSites objClass = new AmericanClassifieds();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "postfreeadshere")
                //{
                //    IWebSites objClass = new PostFreeAdshere();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                else if (Website == "Usadsciti")
                {
                    popform.popform5.BringToFront();

                    Cursor.Current = Cursors.WaitCursor;

                    //  if (i == 0)
                    //  {
                    IWebSites objClass = new Usadsciti();

                    label31.Font = new System.Drawing.Font("Verdana", 8.0f,
                  System.Drawing.FontStyle.Bold);

                    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    btnSubmit.Visible = true;
                    Cursor.Current = Cursors.Default;
                    UplaodDetails.Enabled = false;
                    // }

                }
                else if (Website == "UsNetads")
                {
                    popform.popform3.BringToFront();
                    Cursor.Current = Cursors.WaitCursor;

                    //  if (i == 0)
                    // {
                    IWebSites objClass = new UsnetAds();

                    label31.Font = new System.Drawing.Font("Verdana", 8.0f,
                  System.Drawing.FontStyle.Bold);

                    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                    btnSubmit.Visible = true;
                    btnSubmit.Enabled = true;
                    UplaodDetails.Enabled = false;
                    Cursor.Current = Cursors.Default;
                    // }

                }

                //else if (Website == "FreeAutoShopper")
                //{

                //    IWebSites objClass = new FreeAutoShopper();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "Locate Any Auto")
                //{
                //    IWebSites objClass = new LocateAnyAuto();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "FreeAddList")
                //{
                //    IWebSites objClass = new FreeAddList();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "autoii")
                //{
                //    IWebSites objClass = new Autoii();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "ebayclassifieds")
                //{
                //    IWebSites objClass = new ebayclassifieds();

                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "biggestclassifieds")
                //{
                //    IWebSites objClass = new biggestclassifieds();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "ClassifiedAds")
                //{
                //    IWebSites objClass = new ClassifiedAdds();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "Locanto")
                //{
                //    IWebSites objClass = new Locanto();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "75vn")
                //{
                //    IWebSites objClass = new Vn75();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "adoos")
                //{
                //    IWebSites objClass = new adoos();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "fastautosale")
                //{
                //    IWebSites objClass = new fastautosales();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "Sell.com")
                //{
                //    IWebSites objClass = new Sell();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}
                //else if (Website == "Sellmycar")
                //{
                //    IWebSites objClass = new Sellmycar();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "recycler")
                //{
                //    IWebSites objClass = new Recycler();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "classifiedsciti")
                //{
                //    IWebSites objClass = new classifiedsciti();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "classifiedsvalley")
                //{
                //    IWebSites objClass = new classifiedsvalley();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "collectorcarads")
                //{
                //    IWebSites objClass = new collectorcarads();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                ////else if (Website == "cardaddy")
                ////{
                ////    IWebSites objClass = new cardaddy();
                ////    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                ////}
                //else if (Website == "a1classiccars")
                //{
                //    IWebSites objClass = new a1classiccars();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "usa.motoseller.com")
                //{
                //    IWebSites objClass = new Motoseller();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "list2click")
                //{
                //    IWebSites objClass = new list2click();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "us.boss33.com")
                //{
                //    IWebSites objClass = new Boss33();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "carsforsale")
                //{
                //    IWebSites objClass = new carsforsale();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "cathaylist")
                //{
                //    IWebSites objClass = new cathaylist();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "backpage")
                //{
                //    IWebSites objClass = new backpage();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}

                //else if (Website == "adlandpro")
                //{
                //    IWebSites objClass = new adlandpro();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                //else if (Website == "highlandclassifieds")
                //{
                //    IWebSites objClass = new highlandclassifieds();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}
                //else if (Website == "glasyads")
                //{
                //    IWebSites objClass = new glasyads();
                //    objClass.carpostfunc(webBrowser1, obUsedCarsInfo);

                //}
                //else if (Website == "epage")
                //{
                //   IWebSites objepage = new epage();
                //   objepage.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}
                //else if (Website == "kedna")
                //{
                //    IWebSites objkedna = new kedna();
                //    objkedna.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}
                //else if (Website == "freeadsinus")
                //{
                //    IWebSites objkedna = new freeadsinus();
                //    objkedna.carpostfunc(webBrowser1, obUsedCarsInfo);
                //}

                // }
            }
        }
예제 #2
0
        private void btnpostupload_Click(object sender, EventArgs e)
        {
            textBox7.Focus();
            textBox2.Focus();
            if (comboBox2.Text != "")
            {
                try
                {
                   count = 0;
                    count++;
                    Cursor.Current = Cursors.WaitCursor;
                    com.unitedcarexchange.CarsService objService = new com.unitedcarexchange.CarsService();
                    IList<com.unitedcarexchange.UsedCarsInfo> obUsedCarsInfo = new List<com.unitedcarexchange.UsedCarsInfo>();
                    obUsedCarsInfo = objService.FindCarID(label10.Text);
                    Globaltxtemail.txtemail = comboBox2.Text;
                    Globalpwd.pwd = textBox2.Text;
                    if (comboBox1.Text == "pinterest")
                    {
                        if (webBrowser1.Url.ToString() == "http://www.pinterest.com/vinayy5544/boards/" || webBrowser1.Url.ToString() == "http://www.pinterest.com/vinayy5544/boards/#")
                        {

                                // GeneralFunction.LinkInvoke(webBrowser1, "Create a board");
                                // GeneralFunction.LinkInvokeCollectorCarsPic(webBrowser1);

                                //GeneralFunction.LinkInvokepintrest(webBrowser1, "BoardCreateRep Module");

                                //com.unitedcarexchange.CarsService objService = new com.unitedcarexchange.CarsService();
                                //IList<com.unitedcarexchange.UsedCarsInfo> obUsedCarsInfo = new List<com.unitedcarexchange.UsedCarsInfo>();
                                //obUsedCarsInfo = objService.FindCarID(label10.Text);

                                IWebSites objClass = new Pintrest();

                                objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                                circularProgressControl2.Stop();
                                circularProgressControl2.Visible = false;
                                panel2.Visible = false;
                            //}

                        }
                    }
                    if (Website == "CarPosts")
                    {
                        IWebSites objClass = new CarPosts();
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        Cursor.Current = Cursors.Default;
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        btnpostupload.Enabled = false;
                    }
                    if (Website == "clazorg")
                    {
                        clz++;
                        clz1++;
                        Cursor.Current = Cursors.WaitCursor;
                        IWebSites objClass = new ClazOrg();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        Cursor.Current = Cursors.Default;
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        btnpostupload.Enabled = false;
                    }
                    if (Website == "JustgoodCars")
                    {
                        Cursor.Current = Cursors.WaitCursor;
                        if (count == 1)
                        {
                            IWebSites objClass = new JustgoodCars();
                            objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                            webBrowser1.Navigate("http://www.justgoodcars.com/members/advertise.php");
                        }
                        if (count == 1)
                        {
                            webBrowser1.Navigate("http://www.justgoodcars.com/members/advertise.php");
                            label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                            btnpostupload.Enabled = false;
                        }
                        Cursor.Current = Cursors.Default;
                    }
                    if (Website == "Usadsciti")
                    {
                        // adsty++;
                        Cursor.Current = Cursors.WaitCursor;
                        IWebSites objClass = new Usadsciti();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        Cursor.Current = Cursors.Default;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Enabled = true;
                        btnpostsubmit.Visible = true;
                    }
                    if (Website == "www.adsciti.com")
                    {
                        // adsty++;
                        Cursor.Current = Cursors.WaitCursor;
                        IWebSites objClass = new Usadsciti();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        Cursor.Current = Cursors.Default;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Enabled = true;
                        btnpostsubmit.Visible = true;
                    }
                    else if (Website == "UsNetads")
                    {
                        Cursor.Current = Cursors.WaitCursor;
                        IWebSites objClass = new UsnetAds();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        Cursor.Current = Cursors.Default;
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Enabled = true;
                       btnpostsubmit.Visible = true;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                    else if (Website == " kugli")
                    {
                        Kug = 0;
                        Kug++;
                        IWebSites objClass = new Kugli();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                    }
                    else if (Website == "jeanza")
                    {
                        IWebSites objClass = new Jeanza();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        btnpostupload.Enabled = false;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                    }
                    else if (Website == "classifiedsvalley")
                    {
                        circularProgressControl2.Start();
                        panel2.Visible = true;
                        circularProgressControl2.Visible = true;
                        IWebSites objClass = new classifiedsvalley();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        btnpostupload.Enabled = false;
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                   else if (Website == "classifiedsciti")
                    {
                        IWebSites objClass = new classifiedsciti();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Enabled = true;
                        btnpostsubmit.Visible = true;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                    else if (Website == "usa.motoseller.com")
                    {
                        IWebSites objClass = new Motoseller();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostupload.Enabled = false;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        motosl = 0;
                        circularProgressControl2.Start();
                        panel2.Visible = true;
                        circularProgressControl2.Visible = true;
                        label49.Visible = true;
                    }
                    else if (Website == "americanclassifieds")
                    {
                        IWebSites objClass = new AmericanClassifieds();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                    else if (Website == "classifiedsforfree")
                    {
                        IWebSites objClass = new ClassifiedsForFree();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                    else if (Website == "epage")
                    {
                        IWebSites objClass = new epage();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        btnpostupload.Enabled = false;
                        circularProgressControl2.Start();
                        circularProgressControl2.Visible = true;
                        panel2.Visible = true;
                    }
                    else if (Website == "highlandclassifieds")
                    {
                        //GeneralFunction.LinkInvoke(webBrowser1, "Cars and Trucks");
                        IWebSites objClass = new highlandclassifieds();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        btnpostupload.Enabled = false;
                        circularProgressControl2.Start();
                        circularProgressControl2.Visible = true;
                        panel2.Visible = true;
                    }
                    else if (Website == "classifiededition")
                    {
                        circularProgressControl2.Start();
                        panel2.Visible = true;
                        circularProgressControl2.Visible = true;
                        IWebSites objClass = new ClassifiedEditor();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        btnpostupload.Enabled = false;
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                    }
                    else if (Website == "www.autoii.com")
                    {
                        IWebSites objClass = new Autoii();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        btnpostupload.Enabled = false;
                    }
                    else if (Website == "www.postfreeadshere.com")
                    {
                        IWebSites objClass = new PostFreeAdshere();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        btnpostupload.Enabled = false;
                        btnpostsubmit.Enabled = true;
                        btnpostsubmit.Visible = true;
                    }
                    else if (Website == " www.freeadlists.com")
                    {
                        IWebSites objClass = new FreeAddList();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                    }
                   else if (Website == "adsriver")
                    {
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        //GeneralFunction.LinkInvoke(webBrowser1, "Automotive");
                        Cursor.Current = Cursors.Default;
                        circularProgressControl2.Stop();
                        circularProgressControl2.Visible = false;
                        panel2.Visible = true;
                        circularProgressControl2.Visible = true;
                        btnpostsubmit.Visible = true;
                        btnpostsubmit.Enabled = true;
                        btnpostupload.Enabled = false;
                    }
                    else if (Website == "anunico")
                    {
                        textBox7.Focus();
                        anupic = 0;
                        circularProgressControl2.Start();
                        panel2.Visible = true;
                        circularProgressControl2.Visible = true;
                        btnpostupload.Enabled = false;
                        IWebSites objClass = new anunico();
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        label27.ForeColor = System.Drawing.Color.Red;
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                    }
                    else if (Website == "classifieds4me")
                    {
                        cls4me = 0;

                        //               circularProgressControl2.Start();
                        //               panel2.Visible = true;
                        //               circularProgressControl2.Visible = true;
                        //               IWebSites objClass = new classifieds4me();
                        //               label27.Font = new System.Drawing.Font("Verdana", 8.0f,
                        //System.Drawing.FontStyle.Bold);
                        //               objClass.carpostfunc(webBrowser1, obUsedCarsInfo,rb_Trucks.Checked);
                        string suburl = webBrowser1.Url.ToString();
                        if (suburl.Contains("-classified-ads-"))
                        {
                            string split = suburl.ToString();
                            int index1 = split.IndexOf(".com/");
                            int end1 = split.IndexOf("-classified");
                            string c4mCity = split.ToString().Substring(index1, end1 - index1);
                            c4mCity = c4mCity.Replace(".com/", "");
                            string split1 = suburl.ToString();
                            int index2 = split1.IndexOf("ads-");
                            int end2 = split.Length;
                            string c4mCityId = split.ToString().Substring(index2, end2 - index2);
                            c4mCityId = c4mCityId.Replace("/", "");
                            c4mCityId = c4mCityId.Replace("ads-", "");
                            if (webBrowser1.Url.ToString() == "http://www.classifieds4me.com/" + c4mCity + "-classified-ads-" + c4mCityId + "/")
                            {
                                GeneralFunction.LinkInvoke(webBrowser1, "Post a FREE Classified Ad");
                            }
                        }
                    }
                    else if (Website == "myadmonster")
                    {
                        myads = 0;
                        circularProgressControl2.Start();
                        circularProgressControl2.Visible = true;
                        panel2.Visible = true;
                        GeneralFunction.SetDropDownNameandValue(webBrowser1, "sel_action", "post_1");
                        GeneralFunction.ButtonClickBYTypeAndValue(webBrowser1, " Select And Continue ");
                    }
                    else if (Website == "99localsearch")
                    {
                        IWebSites objClass = new local99search();
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                    }
                    else if (Website == "freead1.net")
                    {
                        IWebSites objClass = new freead1();
                        label27.Font = new System.Drawing.Font("Verdana", 8.0f,System.Drawing.FontStyle.Bold);
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                    }
                    else if (Website == "facebook")
                    {
                        GeneralFunction.ButtonClickBYTypeAndValue(webBrowser1, "Log In");
                    }
                    else if (Website == "adpost us")
                    {
                        GeneralFunction.LinkInvoke(webBrowser1, "United States");
                    }
                    //           else if (Website == "classifiedads")
                    //           {
                    //               IWebSites objClass = new ClassifiedAdds();
                    //               label27.Font = new System.Drawing.Font("Verdana", 8.0f,
                    //System.Drawing.FontStyle.Bold);
                    //               objClass.carpostfunc(webBrowser1, obUsedCarsInfo,rb_Trucks.Checked);
                    //           }
                    else if (Website == "webcosmo")
                    {
                        // adsty++;
                        IWebSites objClass = new WebCosmo();
                        objClass.carpostfunc(webBrowser1, obUsedCarsInfo, rb_Trucks.Checked);
                        GeneralFunction.ButtonClickInvoke(webBrowser1, "ctl00$cphContent$ibContinue");
                        Cursor.Current = Cursors.WaitCursor;
                        Cursor.Current = Cursors.Default;
                        //label27.Font = new System.Drawing.Font("Verdana", 8.0f, System.Drawing.FontStyle.Bold);
                        //label27.ForeColor = System.Drawing.Color.Red;
                        //btnpostupload.Enabled = false;
                        //btnpostsubmit.Enabled = true;
                        //btnpostsubmit.Visible = true;
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Temporarly Server is not Connecting .Please try after some times", "", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
            }
            else
            {
                MessageBox.Show("Email text is empty;");
            }
            textBox7.Focus();
        }