Ejemplo n.º 1
0
        private void RefreshData(object sender, QtyEventArgs e)
        {
//            _pageIndex = 1;
//            cbPage.Text = _currentPage.ToString();
            try
            {
                DataRefreshed?.Invoke(sender, e);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Ejemplo n.º 2
0
        public void RefreshData()
        {
            if (_lockLoadingData)
            {
                return;
            }
            _lockLoadingData = true;

            string cmd = "docker-machine ls";

            DisplayConsolCommand(cmd);
            ParseMachineList(ExecuteCommand(cmd));
            if (_machines.Count > 0)
            {
                _currentMachine = _machines[0].Name;
            }
            else
            {
                _machines = null;
            }
            DataRefreshed?.Invoke(null);

            _lockLoadingData = false;
        }