public static void DeleteForecastCategoryInstrument(ForecastCategoryInstrument t) { DaoFactory.GetDaoFactory().CreateForecastCategoryInstrumentDao().Delete(t); }
public static void SaveOrUpdateForecastCategoryInstrument(ForecastCategoryInstrument forecastCategoryInstrument) { DaoFactory.GetDaoFactory().CreateForecastCategoryInstrumentDao().SaveOrUpdate(forecastCategoryInstrument); }
private void lbtAddins_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FrmSelectInstrument frm = new FrmSelectInstrument(_fCategoryInstrument,1); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { List<TestingArea> TaInSelectedIns = new List<TestingArea>(); foreach (Instrument i in frm.SelectedInstruments) { ForecastCategoryInstrument si = new ForecastCategoryInstrument(); si.Instrument = i; si.TestRunPercentage = 100; si.ForecastId = _Fid; _fCategoryInstrument.Add(si); // DataRepository.SaveOrUpdateForecastCategoryInstrument(si); } PopInstruments(); //if (OnDataUsageEdit != null) //{ // OnDataUsageEdit(this, new EventArgs()); //} } }