Exemple #1
0
        private void cmdTel_Click(object sender, RoutedEventArgs e)
        {
            Window1 w1 = new Window1();

            w1.ShowDialog();
            lblTel.Content = w1.txt1.Text + " " + w1.txt2.Text + " " + w1.txt3.Text + " " + w1.txt4.Text + " " + w1.txt5.Text;
            w1.Close();
        }
Exemple #2
0
        private void clearBtn_Click(object sender, RoutedEventArgs e)
        {
            Window1 win1 = new Window1();

            this.IsEnabled = false;
            win1.ShowDialog();
            if (Window1.agreed == true)
            {
                Window1.agreed = false;

                using (var ctx = new JTTTdbcontext())
                {
                    ctx.Database.ExecuteSqlCommand("TRUNCATE TABLE [JTTTdbs]");
                    ctx.SaveChanges();
                }
                updateList();
            }
            win1.Close();
            this.IsEnabled = true;
        }