Beispiel #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSubscribe_Click(object sender, EventArgs e)
 {
     // Make sure the pool is okay
     if (!_pool.Connection.IsConnected)
     {
         PoolConnectionLost(this, EventArgs.Empty);
     }
     else
     {
         if (this._reportParameters.ContainsKey("reportName"))
         {
             this._reportParameters.Remove("reportName");
         }
         this._reportParameters.Add("reportName", this._reportInfo.ReportFile.Split('.')[0]);
         WlbReportSubscriptionDialog rpSubDialog = new WlbReportSubscriptionDialog(this._reportInfo.ReportName, this._reportParameters, _pool);
         if (rpSubDialog.ShowDialog() == DialogResult.OK)
         {
             OnChangeOK(this, e);
         }
     }
 }
        private void btnChange_Click(object sender, EventArgs e)
        {
            // Make sure the pool is okay
            if (!_pool.Connection.IsConnected)
            {
                PoolConnectionLost(this, EventArgs.Empty);
            }
            else
            {

                WlbReportSubscriptionDialog rpSubDialog = new WlbReportSubscriptionDialog(this._subscription.ReportDisplayName, _subscription, _pool);
                DialogResult dr = rpSubDialog.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    // Update treeView
                    OnChangeOK(this, e);
                }
            }
        }