Пример #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();
        }
Пример #2
0
 internal void LagreLogg(Logg l)
 {
     dataProvider.LagreLogg(l);
 }
Пример #3
0
 //FERDIG
 public void LagreLogg(Logg v)
 {
     db.Logg.Add(v);
     db.SaveChanges();
 }