private void uxSave_Click(object sender, EventArgs e)
        {
            production          = IWellFactories.GetFactory(IWellType.Production).CreateIWell();
            production.Id       = Convert.ToInt32(uxProductionID.Text);
            production.SpudDate = uxDate.Value.Date;
            ProductionWell prod = production as ProductionWell;

            prod.DailyProduction = new List <IOilProduction>();

            var ID      = Convert.ToInt32(uxWellPad.SelectedValue);
            var WellPad = FacilityManager.FacilityMng.FindWell(ID);

            WellPad.Wells.Add(production);
            FacilityManager.FacilityMng.SaveData();
            RefreshGridData();
        }
        private void uxSave_Click(object sender, EventArgs e)
        {
            inject          = IWellFactories.GetFactory(IWellType.Injection).CreateIWell();
            inject.Id       = Convert.ToInt32(uxInjectionID.Text);
            inject.SpudDate = uxDate.Value.Date;
            InjectionWell inj = inject as InjectionWell;

            inj.WaterType = (WaterType)uxWaterType.SelectedIndex;

            var ID      = Convert.ToInt32(uxWellPad.SelectedValue);
            var wellPad = FacilityManager.FacilityMng.FindWell(ID);

            wellPad.Wells.Add(inject);
            FacilityManager.FacilityMng.SaveData();

            RefreshGridData();
        }