private void PerformActions()
        {
            switch (pumpaction)
            {
            case "Start":
                webFarmController.StartPump(pumpduration);
                break;

            case "Stop":
                webFarmController.StopPump();
                break;

            default:
                break;
            }
            pumpaction = String.Empty;
        }
        private void btn_Start_Click(object sender, RoutedEventArgs e)
        {
            int theduration = 0;

            try
            {
                theduration = Convert.ToInt16(this.txt_Duration.Text);
                if (theduration > 0)
                {
                    MyFarmController.StartPump(theduration);
                    txt_Info.Text = "Starting";
                }
            }
            catch
            {
                theduration   = 0;
                txt_Info.Text = "Stopped Incorrect Value";
            }



            UpdateStatus();
        }