Ejemplo n.º 1
0
        private void label9_Click(object sender, EventArgs e)
        {
            cashier c = new cashier();

            c.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            MemoryStream mmstream = new MemoryStream();
            Graphics     g        = this.CreateGraphics();

            bmp = new Bitmap(this.Size.Width, this.Size.Height, g);
            Graphics mg = Graphics.FromImage(bmp);

            //restrict image selection
            mg.CopyFromScreen(this.Location.X + 10, this.Location.Y + 40, 20, 75, this.Size);

            /*  bmp.Save(mmstream, ImageFormat.Png);
             * var png = mmstream.ToArray();
             * addimagetrans(png, loginfo.custId1);    */
            printPreviewDialog1.ShowDialog();
            cashier c = new cashier();

            c.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            try {
                loginfo.cname      = textBox1.Text;
                loginfo.paymentype = comboBox1.SelectedItem.ToString();
                MessageBox.Show("Registered Successful, WELCOME " + loginfo.cname);
                cashierHome yas = new cashierHome();
                yas.Close();
                cashier yown = new cashier();
                yown.Show();
                this.Close();
            }catch (Exception q)
            {
                MessageBox.Show(q.ToString());
            }

            /*String query = "insert into pos.customer values ('" +loginfo.custId2  + "','" + cname + "','" + paymentype + "','" + date + "')";
             * MySqlConnection myConn = new MySqlConnection(mycon.conn);
             * MySqlCommand myComm = new MySqlCommand(query, myConn);
             * MySqlDataReader myreader;
             * myConn.Open();
             * myreader = myComm.ExecuteReader();
             * myConn.Close();*/
        }