예제 #1
0
    /// <summary>
    /// Disposes the notes whats new data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeNotesWhatsNewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        WhatsNewRequest <IHistory> dataSource = e.ObjectInstance as WhatsNewRequest <IHistory>;

        // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
예제 #2
0
        /// <summary />
        protected virtual void OnObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            e.Cancel = true;
        }
예제 #3
0
    protected void ResultsObjectDataSource_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        Agents agents = e.ObjectInstance as Agents;

        if (Session["AgentsViewState"] as Agents == null)
        {
            Session["AgentsViewState"] = agents;
        }

        e.Cancel = true;
    }
예제 #4
0
 protected void DisposeUserGroupsDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
예제 #5
0
 protected void ODS_Details_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     MESPageService = e.ObjectInstance as Disassociate;
     e.Cancel       = true;
 }
    /// <summary>
    /// Disposes the notes whats new data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeNotesWhatsNewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        WhatsNewRequest<IHistory> dataSource = e.ObjectInstance as WhatsNewRequest<IHistory>;

        // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
예제 #7
0
 /// <summary>
 /// Disposes the targets view data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
 protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
     e.Cancel = true;
 }
 /// <summary>
 /// Disposes the targets view data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
 protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
     e.Cancel = true;
 }
예제 #9
0
    /// <summary>
    /// Disposes the targets view data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        TargetsViewDataSource dataSource = e.ObjectInstance as TargetsViewDataSource;

        // Cancel the event, so that the object will
        // not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
예제 #10
0
 protected void MovimentosObjectData_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
예제 #11
0
 protected void DisposeApplicationLogDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
예제 #12
0
 protected void ObjectDataSource1_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
 }