Exemple #1
0
        private void loginB_Click(object sender, EventArgs e)
        {
            businesslayer   bl = new businesslayer();
            MySqlDataReader dr = bl.profit(firstDate.Value.ToString("yyyy-MM-dd"), endDate.Value.ToString("yyyy-MM-dd"));

            if (dr.Read())
            {
                if (!dr.IsDBNull(0))
                {
                    String temp = dr.GetString(0);
                    proftext.Text = temp + "L.E.";
                }
                else
                {
                    proftext.Text = "0 L.E.";
                }
            }
            else
            {
                proftext.Text = "0 L.E.";
            }
        }