Exemplo n.º 1
0
        private void AddButtonClick(object sender, RoutedEventArgs e)
        {
            Check          c = Core.core.newCheck();
            NewCheckWindow w = new NewCheckWindow();

            w.selectid = c;
            w.Show();
            this.Close();
        }
Exemplo 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();
            }
        }