Esempio n. 1
0
        private void monthlyButton_Click(object sender, EventArgs e)
        {
            Totalammountpanel t = new Totalammountpanel();

            t.Total_consumption = Convert.ToInt32(consumptionBox.Text);
            t.Total_sell        = Convert.ToInt32(sellBox.Text);
            t.Benifit           = Convert.ToInt32(benefitBox.Text);
            t.Loss = Convert.ToInt32(lossBox.Text);
            db.Totalammountpanels.InsertOnSubmit(t);
            db.SubmitChanges();
            MessageBox.Show("Data Inseretd Succesfully");
        }
 partial void UpdateTotalammountpanel(Totalammountpanel instance);
 partial void DeleteTotalammountpanel(Totalammountpanel instance);
 partial void InsertTotalammountpanel(Totalammountpanel instance);