Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var l = new Logg
            {
                Text = LogText.Text,
                LoggTid = DateTime.Now
            };

            Mc.LagreLogg(l);
            var a = LogText.Text;
            LogText.SelectionColor = Color.Black;
            LogText.ForeColor = Color.Black;
            LogText.Text = "";
            LogText.SelectedText = "";
            LogText.SelectedText = a;
            ResetTime();
        }
Esempio n. 2
0
 internal void LagreLogg(Logg l)
 {
     dataProvider.LagreLogg(l);
 }
Esempio n. 3
0
 //FERDIG
 public void LagreLogg(Logg v)
 {
     db.Logg.Add(v);
     db.SaveChanges();
 }