private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            Operatory         opCur   = (Operatory)gridMain.ListGridRows[e.Row].Tag;
            FormOperatoryEdit FormOE  = new FormOperatoryEdit(opCur);
            List <Operatory>  listOld = new List <Operatory>();

            foreach (Operatory op in _listOps)
            {
                listOld.Add(op.Copy());
            }
            FormOE.ListOps = _listOps;
            FormOE.ShowDialog();
            if (FormOE.DialogResult == DialogResult.OK)
            {
                Operatories.Sync(_listOps, listOld);
                FillGrid();
                DataValid.SetInvalid(InvalidType.Operatories);
            }
        }
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormOperatoryEdit FormOE = new FormOperatoryEdit(new Operatory());

            FormOE.IsNew = true;
            List <Operatory> listOld = new List <Operatory>();

            foreach (Operatory op in _listOps)
            {
                listOld.Add(op.Copy());
            }
            FormOE.ListOps = _listOps;
            FormOE.ShowDialog();
            if (FormOE.DialogResult == DialogResult.OK)
            {
                Operatories.Sync(_listOps, listOld);
                FillGrid();
                DataValid.SetInvalid(InvalidType.Operatories);
            }
        }