private bool IsMatrixOpened(DataMatrix matrix) { return(!matrix.Contains(Element.ElementType.Undefined)); }