Beispiel #1
0
        public AddLogicalDisk()
        {
            InitializeComponent();
            ResilienceType.Items.Add("simple");
            ResilienceType.Items.Add("mirror");
            ResilienceType.Items.Add("parity");
            Spaces pool = new Spaces();
            var listOfPools = pool.GetListOfAvailablePools();

            if (listOfPools.Count > 0)
            {
                foreach (string element in listOfPools)
                {
                    PoolSelection2.Items.Add(element);
                }
            }

            List<char> availableLetters = pool.GetListOfAvailableLetters();
            if (availableLetters.Count > 0)
            {
                foreach (char letter in availableLetters)
                {
                    DriveLetter.Items.Add(letter);
                }
            }
        }
Beispiel #2
0
        public DeletePool()
        {
            InitializeComponent();

            Spaces pool = new Spaces();
            var listOfPools = pool.GetListOfAvailablePools();

            if (listOfPools.Count > 0)
            {
                foreach (string element in listOfPools)
                {
                    PoolSelection.Items.Add(element);
                }
            }

            var listOfDisks = pool.GetListOfLogicalDisks();

            if (listOfDisks.Count > 0)
            {
                foreach (string element in listOfDisks)
                {
                    LogicalDiskSelect.Items.Add(element);
                }
            }
        }
Beispiel #3
0
        //List<string> availablePools = new List<string>();
        public void FillComboBox()
        {
            Spaces pool = new Spaces();
            var availablePools = pool.GetListOfAvailablePools();

            if (availablePools.Count > 0)
            {
                foreach (string element in availablePools)
                {
                    if (!AvailablePools.Items.Contains(element))
                    {
                        AvailablePools.Items.Add(element);
                    }
                }
            }
            else
            {
                AvailablePools.Items.Clear();
            }
        }