Exemplo n.º 1
0
        private void RestartMemcacheAction(object sender, RoutedEventArgs e)
        {
            // Disable button
            RestartMemcache.IsEnabled = false;

            // Stop Memcache
            StopMemcache.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));

            // Start Memcache
            StartMemcache.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));

            // Enable button
            RestartMemcache.IsEnabled = true;
        }
Exemplo n.º 2
0
        private void StartAll(object sender, RoutedEventArgs e)
        {
            // Start nginx
            if (!nginx)
            {
                StartNginx.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
            }

            // Start PHP
            if (!php)
            {
                StartPHP.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
            }

            // Start MongoDB
            if (!mongodb)
            {
                StartMongoDB.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
            }

            // Start memcache
            if (!memcache)
            {
                StartMemcache.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
            }

            // Start redis
            if (!redis)
            {
                StartRedis.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
            }

            // Disable start all button, enable stop all button
            StartAllButton.IsEnabled = false;
            StopAllButton.IsEnabled  = true;
        }