Ejemplo n.º 1
0
        private void ClouseButtonClick(object sender, RoutedEventArgs e)
        {
            Core.core.ClouseCheck(selectid);
            CheckWindow w = new CheckWindow();

            w.reloadList();
            w.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void OpenDateBaseButtonClick(object sender, RoutedEventArgs e)
        {
            OpenFileDialog d = new OpenFileDialog();

            d.Filter = "Data Base file (*.db)|*.db";
            if (d.ShowDialog() == true)
            {
                Core.init(d.FileName);
                Check c = Core.core.getOpenCheck();
                if (c == null)
                {
                    CheckWindow a = new CheckWindow();
                    a.Show();
                }
                else
                {
                    NewCheckWindow a = new NewCheckWindow();
                    a.selectid = c;
                    a.Show();
                }
                this.Close();
            }
        }