Пример #1
0
        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();
            }
        }
Пример #2
0
 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();
     }
 }