Ejemplo n.º 1
0
        private void mailbtn_Click(object sender, EventArgs e)
        {
            if (emailtxt.Text == string.Empty || emailtxt.Text == "New customer")
            {
                MessageBox.Show("User not registered or email not given.", "Error");
            }
            else if (check == false)
            {
                MessageBox.Show("Please click on 'Check Email' and obtain the email first.", "Error");
            }
            else
            {
                dialogcontainer dg = new dialogcontainer();
                promomail       pm = new promomail(emailtxt.Text, dg, "", "");
                pm.TopLevel      = false;
                dg.Size          = new Size(700, 715);
                pm.epnl.Location = new Point(-300, 1);
                pm.elistlbl.Text = "";

                dg.dialogpnl.Controls.Add(pm);
                pm.loadingdg();
                pm.opnl.Visible = true;
                pm.bodytxt.Text = "Dear " + nametxt.Text + ",\r\nThank you for contacting Lalchowk.\r\nHere is the procedure to sell books with us:\r\n\r\n1.Drop your books at our office i.e ( Hotel Bombay Gujrat, Palladium Lane - Lalchowk).\r\n2.Quality and condition check would be done on the book(s) and a new suitable price would be set for the book(s).\r\n3.After setting the price, we will charge flat 40% from the new fixed amount.\r\n4.Once the book(s) are sold, you will get a notification regarding the purchase and the said amount would be transferred through a preferable mode.\r\n5.Delivery process will be covered by our team.\r\nFor further queries please contact on 9906523492\r\n\r\nTeam Lalchowk";
                pm.subtxt.Text  = "Here is how you can sell with Lalchowk";
                dg.Text         = "Send Email";

                dg.Show();

                pm.Show();
            }
        }
Ejemplo n.º 2
0
        private void mailbtn_Click(object sender, EventArgs e)
        {
            if (emailtxt.Text == string.Empty || emailtxt.Text == "New customer")
            {
                MessageBox.Show("User not registered or email not given.", "Error");
            }
            else if (check == false)
            {
                MessageBox.Show("Please click on 'Check Email' and obtain the email first.", "Error");
            }
            else
            {
                dialogcontainer dg = new dialogcontainer();
                promomail       pm = new promomail(emailtxt.Text, dg, nametxt.Text, booknametxt.Text);
                pm.TopLevel      = false;
                dg.Size          = new Size(700, 715);
                pm.epnl.Location = new Point(-300, 1);
                pm.elistlbl.Text = "";

                dg.dialogpnl.Controls.Add(pm);
                pm.loadingdg();
                pm.opnl.Visible = true;
                dg.Text         = "Send Email";

                dg.Show();

                pm.Show();
            }
        }
Ejemplo n.º 3
0
        private void emailbtn_Click(object sender, EventArgs e)
        {
            try
            {
                dialogcontainer dg = new dialogcontainer();
                promomail       pm = new promomail(email, dg, name, "");
                pm.TopLevel      = false;
                dg.Size          = new Size(700, 715);
                pm.epnl.Location = new Point(-300, 1);
                pm.elistlbl.Text = "";

                dg.dialogpnl.Controls.Add(pm);
                pm.loadingdg();
                pm.opnl.Visible = true;
                pm.subtxt.Text  = "How was your shopping experience with us?";
                pm.bodytxt.Text = "Dear " + name + ",\r\n\r\nHope you had a nice shopping experience with www.lalchowk.in\r\nWe would love to read your reviews on our Google play store link here: bit.ly/lalchowkonline or our social media handles @lalchowkonline.\r\nYou can also contact us on our Office/WhatsApp number: 9906523492\r\n\r\nThanks and warm regards,\r\nTeam Lalchowk";


                dg.Text = "Send Email";

                dg.Show();

                pm.Show();
            }
            catch
            {
                obj.closeConnection();
            }
        }
Ejemplo n.º 4
0
        private void viewpbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            dg.Text = "View Products";
            dg.Size = new Size(1000, 715);
            viewproducts vp = new viewproducts(dg);

            vp.TopLevel = false;
            dg.dialogpnl.Controls.Add(vp);
            dg.Show();
            vp.Show();
        }
Ejemplo n.º 5
0
        private void newbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            addproducts apr = new addproducts(hp, this, dg);

            apr.TopLevel = false;
            dg.dialogpnl.Controls.Clear();
            dg.dialogpnl.Controls.Add(apr);
            dg.Size = new Size(1206, 734);
            dg.Show();
            apr.Show();
        }
Ejemplo n.º 6
0
        private void chkbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            dg.lbl.Text = "";
            inventory inv = new inventory(hp, dg);

            inv.TopLevel = false;
            dg.dialogpnl.Controls.Clear();
            dg.dialogpnl.Controls.Add(inv);
            dg.Size = new Size(1206, 732);
            dg.Show();
            inv.Show();
        }
Ejemplo n.º 7
0
        private void addpics_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            dg.Text = "Add Pictures";
            dg.Size = new Size(800, 735);
            addpictures ap = new addpictures(dg);

            ap.TopLevel = false;
            dg.dialogpnl.Controls.Clear();
            dg.dialogpnl.Controls.Add(ap);
            dg.Show();
            ap.Show();
        }
Ejemplo n.º 8
0
        private void ftpbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            dg.Text = "Lalchowk FTP";
            dg.Size = new Size(1000, 715);
            lalchowkftp ftp = new lalchowkftp(dg);

            ftp.TopLevel = false;
            dg.dialogpnl.Controls.Add(ftp);
            dg.Show();
            ftp.Show();
            dg.lbl.Text = "Lalchowk FTP";
        }
Ejemplo n.º 9
0
        private void sqlbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();

            dg.Text = "SQL Executor";
            dg.Size = new Size(1000, 715);
            sql sql = new sql(dg);

            sql.TopLevel = false;
            dg.dialogpnl.Controls.Add(sql);
            dg.Show();
            sql.Show();
            dg.lbl.Text = "SQL Executor";
        }
Ejemplo n.º 10
0
        private void profitlbl2_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();
            ordersdetails   od = new ordersdetails(mf, dg);

            od.TopLevel = false;

            dg.dialogpnl.Controls.Add(od);
            dg.Text = "Profit Earned";
            od.loadingdg();
            od.bgworker4.RunWorkerAsync();
            dg.Show();
            od.Show();
        }
Ejemplo n.º 11
0
        private void caboutbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();
            terms           tr = new terms(this, dg);

            tr.TopLevel = false;
            dg.Size     = new Size(900, 715);
            dg.dialogpnl.Controls.Add(tr);
            tr.loadingdg();
            dg.Text = "Policies";


            dg.Show();
            tr.Show();
        }
Ejemplo n.º 12
0
        private void wishbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg   = new dialogcontainer();
            wishlist        wish = new wishlist(dg);

            wish.TopLevel = false;
            dg.dialogpnl.Controls.Add(wish);
            wish.loadingdg();
            dg.lbl.Text = "Loading";
            dg.Text     = "Wishlist Items";
            dg.Size     = new Size(830, 720);

            dg.Show();
            wish.Show();
        }
Ejemplo n.º 13
0
        private void smsbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg  = new dialogcontainer();
            sendsms         sms = new sendsms(contxt.Text, booknametxt.Text, nametxt.Text);

            sms.TopLevel = false;
            dg.dialogpnl.Controls.Add(sms);
            dg.lbl.Text         = "Send SMS";
            dg.Text             = "Send SMS";
            dg.Size             = new Size(600, 600);
            sms.numbertxt.Font  = new Font("MS Sans Serif", 9, FontStyle.Regular);
            sms.smsnpnl.Visible = false;
            sms.txtpnl.Location = new Point(35, 10);
            dg.Show();
            sms.Show();
        }
Ejemplo n.º 14
0
        private void costlbl_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();
            ordersdetails   od = new ordersdetails(mf, dg);

            od.TopLevel = false;

            dg.dialogpnl.Controls.Add(od);
            od.loadingdg();
            od.bgworker5.RunWorkerAsync();
            dg.Text = "Purchasing Cost";


            dg.Show();
            od.Show();
        }
Ejemplo n.º 15
0
        private void ship_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();
            ordersdetails   od = new ordersdetails(mf, dg);

            od.TopLevel = false;

            dg.dialogpnl.Controls.Add(od);
            od.loadingdg();
            od.bgworker3.RunWorkerAsync();
            dg.Text = "Shipping Charges";


            dg.Show();
            od.Show();
        }
Ejemplo n.º 16
0
        private void smsbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg  = new dialogcontainer();
            sendsms         sms = new sendsms(contactlbl, "", name);

            sms.TopLevel = false;
            dg.dialogpnl.Controls.Add(sms);
            dg.lbl.Text         = "Send SMS";
            dg.Text             = "Send SMS";
            dg.Size             = new Size(600, 600);
            sms.numbertxt.Font  = new Font("MS Sans Serif", 9, FontStyle.Regular);
            sms.smstxt.Text     = "Dear " + name + ", We would love to hear from you regarding your recent purchase and our services. Please click on the following link and leave your feedback on our Appstores. https://bit.ly/GetLalchowk or our social media handles.";
            sms.smsnpnl.Visible = false;
            sms.txtpnl.Location = new Point(35, 10);
            dg.Show();
            sms.Show();
        }
Ejemplo n.º 17
0
        private void mailbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg = new dialogcontainer();
            promomail       pm = new promomail(emaillbl.Text, dg, "", "");

            pm.TopLevel      = false;
            dg.Size          = new Size(700, 715);
            pm.epnl.Location = new Point(-300, 1);
            pm.elistlbl.Text = "";

            dg.dialogpnl.Controls.Add(pm);
            pm.loadingdg();
            dg.Text = "Send Email";

            dg.Show();

            pm.Show();
        }
Ejemplo n.º 18
0
        private void smsbtn_Click(object sender, EventArgs e)
        {
            dialogcontainer dg  = new dialogcontainer();
            sendsms         sms = new sendsms(contxt.Text, "", "");

            sms.TopLevel = false;
            dg.dialogpnl.Controls.Add(sms);
            dg.lbl.Text         = "Send SMS";
            dg.Text             = "Send SMS";
            dg.Size             = new Size(600, 600);
            sms.numbertxt.Font  = new Font("MS Sans Serif", 9, FontStyle.Regular);
            sms.smsnpnl.Visible = false;
            sms.txtpnl.Location = new Point(35, 10);
            sms.smstxt.Text     = "Thank you for contacting Lalchowk. Here is the procedure to sell books with us:\r\n1.Drop your books at our office i.e ( Hotel Bombay Gujrat, Palladium Lane - Lalchowk).\r\n2.Quality and condition check would be done on the book(s) and a new suitable price would be set for the book(s).\r\n3.After setting the price, we will charge flat 40% from the new fixed amount.\r\n4.Once the book(s) are sold, you will get a notification regarding the purchase and the said amount would be transferred through a preferable mode.\r\n5.Delivery process will be covered by our team.\r\nFor further queries please contact on 9906523492";
            dg.Show();
            sms.Show();
            try
            {
                Cursor = Cursors.WaitCursor;
                BackgroundWorker bg = new BackgroundWorker();
                bg.DoWork += (o, a) =>
                {
                    string cmd = "update sellbookrequests set sms_sent='1' where id='" + id + "'";
                    obj.nonQuery(cmd);
                    con.Close();

                    readreqs();
                };
                bg.RunWorkerCompleted += (o, b) =>
                {
                    selldataview.DataSource = bsource;
                    Cursor = Cursors.Arrow;
                };
                bg.RunWorkerAsync();
            }
            catch { Cursor = Cursors.Arrow; }
        }
Ejemplo n.º 19
0
        private void emailbtn_Click(object sender, EventArgs e)
        {
            if (email == null)
            {
                MessageBox.Show("Please select a user first.");
            }
            else
            {
                dialogcontainer dg = new dialogcontainer();
                promomail       pm = new promomail(email, dg, "", "");
                pm.TopLevel      = false;
                dg.Size          = new Size(700, 715);
                pm.epnl.Location = new Point(-300, 1);
                pm.elistlbl.Text = "";

                dg.dialogpnl.Controls.Add(pm);
                pm.loadingdg();
                dg.Text = "Send Email";

                dg.Show();

                pm.Show();
            }
        }
Ejemplo n.º 20
0
        private void billaddbtn_Click(object sender, EventArgs e)
        {
            if (!Regex.IsMatch(dtxt.Text, @"^([0-9-]+)$") && dtxt.Text != "" || dtxt.Text == string.Empty)
            {
                MessageBox.Show("Please enter date in the following format DD-MM-YYYY");
            }
            else
            {
                try
                {
                    Cursor = Cursors.WaitCursor;
                    string date = Convert.ToDateTime(dtxt.Text).ToString("yyyy-MM-dd HH:mm:ss tt");
                    cmd = "update orders set status='Delivered', deliverdate='" + date + "', in_transit='0' where orderid='" + otxt.Text + "'";
                    obj.nonQuery(cmd);
                    obj.closeConnection();

                    aconn.Open();
                    mysqlcmd = new MySqlCommand("insert into billing(`orderid`, `user`, `amount`,`deliverydate`,`billno`) values ('" + otxt.Text + "','" + utxt.Text + "','" + atxt.Text + "','" + dtxt.Text + "','bill" + btxt.Text + "')", aconn);
                    mysqlcmd.ExecuteNonQuery();
                    mysqlcmd = new MySqlCommand("insert into deliveries(`orderid`, `email`, `amount`,`status`,`date`,`contact`,`shipping`) values ('" + otxt.Text + "','" + utxt.Text + "','" + atxt.Text + "','Delivered','" + dtxt.Text + "','" + contacttxt.Text + "','" + shiptxt.Text + "')", aconn);
                    mysqlcmd.ExecuteNonQuery();
                    aconn.Close();

                    MessageBox.Show("Bill added.");
                }
                catch (Exception ex)
                {
                    aconn.Close();
                    MessageBox.Show("Something happened, please try again.\n\n" + ex.Message.ToString(), "Error!");
                }

                DialogResult dgr = MessageBox.Show("Do you want to send feedback SMS?", "Confirm", MessageBoxButtons.YesNo);
                {
                    if (dgr == DialogResult.Yes)
                    {
                        dialogcontainer dg  = new dialogcontainer();
                        sendsms         sms = new sendsms(contacttxt.Text, "", "");
                        sms.TopLevel = false;
                        dg.dialogpnl.Controls.Add(sms);
                        dg.lbl.Text         = "Send SMS";
                        dg.Text             = "Send SMS";
                        dg.Size             = new Size(600, 600);
                        sms.numbertxt.Font  = new Font("MS Sans Serif", 9, FontStyle.Regular);
                        sms.smstxt.Text     = "Dear " + cname + ", We would love to hear from you regarding your recent purchase and our services. Please click on the following link and leave your feedback. https://bit.ly/GetLalchowk";
                        sms.smsnpnl.Visible = false;
                        sms.txtpnl.Location = new Point(35, 10);
                        dg.Show();
                        sms.Show();


                        //dialogcontainer dg = new dialogcontainer();
                        //promomail pm = new promomail(utxt.Text, dg);
                        //pm.TopLevel = false;
                        //dg.Size = new Size(700, 715);
                        //pm.epnl.Location = new Point(-300, 1);
                        //pm.attachtxt.Visible = true;
                        //pm.elistlbl.Text = "";
                        //pm.checkattach.Checked = true;
                        //dg.dialogpnl.Controls.Add(pm);
                        //pm.loadingdg();
                        //dg.Text = "Send Email";

                        //dg.Show();

                        //pm.Show();
                    }
                    else
                    {
                        Close();
                    }
                }
                Cursor = Cursors.Arrow;
                Close();
            }
        }