Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var number  = comboBox1.SelectedItem.ToString();
            var context = new IllusionsPerceptionContext();
            var model   = new Settings()
            {
                Id = 6, Name = "Коэфициент", Value = number
            };

            context.Entry(model).State = EntityState.Modified;
            context.SaveChanges();

            OutputOfImage(double.Parse(number));
        }
Example #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            var number  = comboBox3.SelectedItem.ToString();
            var context = new IllusionsPerceptionContext();
            var model   = new Settings()
            {
                Id = 3, Name = "Контрольная", Value = number
            };

            context.Entry(model).State = EntityState.Modified;
            context.SaveChanges();

            WriteInformation();
        }