///// <summary> ///// Инициировать подготовку к расчету ///// , выполнить расчет ///// , актуализировать таблицы с временными значениями ///// </summary> ///// <param name="type">Тип требуемого расчета</param> //protected override void btnRun_onClick(HandlerDbTaskCalculate.TaskCalculate.TYPE type) //{ // throw new NotImplementedException(); //} /// <summary> /// Удалить сессию (+ очистить реквизиты сессии) /// </summary> protected override void deleteSession() { base.deleteSession(); int err = -1; HandlerDb.InitSession(out err); }
//protected override void initialize() //{ // base.initialize(); // //eventAddPutParameter += new Action<PUT_PARAMETER> ((PanelManagement as PanelManagementTaskTepValues).AddParameter); //} public override bool Activate(bool activate) { bool bRes = base.Activate(activate); int err = 0; if (bRes == true) { if (activate == true) { if (IsFirstActivated == false) { // подтвердить наличие сессии расчета HandlerDb.InitSession(out err); if (err < 0) { clear(); } else { ; } } else { ; } } else { ; } } else { ; } return(bRes); }