Example #1
0
        public bool AddPartition(TapePartition partition)
        {
            if (partition.Number == 0)
            {
                return(true);
            }

            ErrorMessage = "Unsupported feature";
            return(false);
        }
Example #2
0
        public bool AddPartition(TapePartition partition)
        {
            if (TapePartitions.Any(f => f.Number == partition.Number))
            {
                TapePartition removeMe = TapePartitions.FirstOrDefault(f => f.Number == partition.Number);
                TapePartitions.Remove(removeMe);
            }

            TapePartitions.Add(partition);
            return(true);
        }