Пример #1
0
        //добавление выключателя в проект
        private void InsertCbr(string connectionNumber)
        {
            ProjectEquipment pe = EquipServices.AttachCbr(_project, bs_Cbr.Current as CurrentBreaker, connectionNumber);

            bs_CbrPrj.DataSource    = EquipServices.GetProjectCbr(_project, false);
            bs_CbrEquip.DataSource  = EquipServices.GetAllEquipCbr(_project, false);
            bs_EquipNote.DataSource = EquipServices.GetAllProjectNote();

            if (EquipServices.GetCbrAnalog(pe, bs_Cbr.Current as CurrentBreaker))
            {
                AnalogDataSourceLoad(DefaultForeColor, string.Empty);
            }
            else
            {
                AnalogDataSourceLoad(Color.Red, "не найдено");
            }
        }