private void frmImportFromAzMan_Load(object sender, EventArgs e)
 {
     this.DialogResult = DialogResult.None;
     NetSqlAzMan.SnapIn.Globalization.ResourcesManager.CollectResources(this);
     using (wcf.CacheServiceClient csc = new NetSqlAzMan.SnapIn.wcf.CacheServiceClient())
     {
         this.txtWCFCacheServiceEndPoint.Text = csc.Endpoint.Address.ToString();
         ((IDisposable)csc).Dispose();
     }
 }
 private void frmImportFromAzMan_Load(object sender, EventArgs e)
 {
     this.DialogResult = DialogResult.None;
     NetSqlAzMan.SnapIn.Globalization.ResourcesManager.CollectResources(this);
     using (wcf.CacheServiceClient csc = new NetSqlAzMan.SnapIn.wcf.CacheServiceClient())
     {
         this.txtWCFCacheServiceEndPoint.Text = csc.Endpoint.Address.ToString();
         ((IDisposable)csc).Dispose();
     }
 }
 private void btnInvalidateCache_Click(object sender, EventArgs e)
 {
     try
     {
         using (wcf.CacheServiceClient csc = new NetSqlAzMan.SnapIn.wcf.CacheServiceClient())
         {
             csc.Endpoint.Address = new System.ServiceModel.EndpointAddress(this.txtWCFCacheServiceEndPoint.Text);
             csc.Open();
             csc.InvalidateCache();
             ((IDisposable)csc).Dispose();
         }
         this.DialogResult = DialogResult.OK;
     }
     catch (Exception ex)
     {
         this.HourGlass(false);
         this.ShowError(ex.Message, Globalization.MultilanguageResource.GetString("MMC_Msg20"));
     }
 }
 private void btnInvalidateCache_Click(object sender, EventArgs e)
 {
     try
     {
         using (wcf.CacheServiceClient csc = new NetSqlAzMan.SnapIn.wcf.CacheServiceClient())
         {
             csc.Endpoint.Address = new System.ServiceModel.EndpointAddress(this.txtWCFCacheServiceEndPoint.Text);
             csc.Open();
             csc.InvalidateCache();
             ((IDisposable)csc).Dispose();
         }
         this.DialogResult = DialogResult.OK;
     }
     catch (Exception ex)
     {
         this.HourGlass(false);
         this.ShowError(ex.Message, Globalization.MultilanguageResource.GetString("MMC_Msg20"));
     }
 }