Ejemplo n.º 1
0
        private void AddMeasurement(object sender, EventArgs e)
        {
            FormNewMeasurment f = new FormNewMeasurment(DB.GetSiteCatalog());

            if (f.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    DB.SuspendTreeUpdates();
                    var mid = DB.Hydrography.NewMeasurement(f.SiteID, f.DateTime, f.Flow,
                                                            f.Stage, f.Quality, f.Party, f.Notes);
                }
                finally
                {
                    DB.ResumeTreeUpdates();
                    DatabaseChanged();
                }
            }
        }
Ejemplo n.º 2
0
        private void AddMeasurement(object sender, EventArgs e)
        {
            FormNewMeasurment f = new FormNewMeasurment( DB.GetSiteCatalog());
            if( f.ShowDialog() == DialogResult.OK)
            {
                try
                {

                    DB.SuspendTreeUpdates();
                    var mid = DB.Hydrography.NewMeasurement(f.SiteID, f.DateTime, f.Flow,
                         f.Stage, f.Quality, f.Party, f.Notes);
                }
                finally
                {
                    DB.ResumeTreeUpdates();
                    DatabaseChanged();

                }
            }
        }