示例#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, 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();
            }
        }
示例#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, "", "");
                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();
            }
        }
示例#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();
            }
        }
示例#4
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();
        }
示例#5
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();
            }
        }