private void lbtAddnew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ForecastInfo finfo = new ForecastInfo(); finfo.Methodology = _methoEnum.ToString(); if (_methoEnum == MethodologyEnum.CONSUMPTION) { ConsumptionForm frm = new ConsumptionForm(finfo, MdiParentForm); frm.ShowDialog(); } else if (_methoEnum == MethodologyEnum.SERVICE_STATISTIC) { ServiceForm frm = new ServiceForm(finfo, MdiParentForm); frm.ShowDialog(); } }
public override void EditSelectedItem() { if (_methoEnum == MethodologyEnum.CONSUMPTION) { ConsumptionForm frm = new ConsumptionForm(GetSelectedConsumption(), MdiParentForm); frm.ShowDialog(); } else if (_methoEnum == MethodologyEnum.SERVICE_STATISTIC) { ServiceForm frm = new ServiceForm(GetSelectedConsumption(), MdiParentForm); frm.ShowDialog(); } }