Beispiel #1
0
        private void modify_Click(object sender, RoutedEventArgs e)
        {
            BoreholeServer server = new BoreholeServer(new BoreholeRepositoryForServer(new GeologyDbContext()));
            Borehole       obj    = new Borehole()
            {
                ID   = int.Parse(a.Text),
                Name = b.Text,
                Top  = int.Parse(c.Text),
            };

            output.Text += server.ModifyBorehole(obj) + "\r\n";
        }
Beispiel #2
0
        private void detele_Click(object sender, RoutedEventArgs e)
        {
            BoreholeServer server = new BoreholeServer(new BoreholeRepositoryForServer(new GeologyDbContext()));

            output.Text += server.DeteleBorehole(int.Parse(a.Text)) + "\r\n";
        }