private void SetServiceAddresses()
 {
     if (DesignMode == false && DesignerConfigSection.Instance != null)
     {
         foreach (ValueConfigElement reportService in DesignerConfigSection.Instance.ReportServices)
         {
             ServiceUrlEdit.AddItem(reportService.Key, reportService.Value);
         }
     }
 }
        private void InvokeService <TResult>(Func <TResult> work, Action <TResult> success = null, Action error = null)
        {
            var address = ServiceUrlEdit.SelectedValue;

            if (string.IsNullOrWhiteSpace(address))
            {
                Resources.ServiceUrlCannotBeNullOrWhiteSpace.ShowError();
                ServiceUrlEdit.Focus();
            }
            else
            {
                _reportService.Address = address;

                MainPanel.AsyncAction(work, success, error);
            }
        }