protected override void OnDestroyed() { ctx.Dispose(); OnUnload(); dashboardwidget.Destroy(); base.OnDestroyed(); }
protected override void DisposeManagedResources() { base.DisposeManagedResources(); ctx.Dispose(); ctx = null; BarChart.Dispose(); BarChart = null; Limitation = null; }
public void SaveTask() { context.Fetch(); // re-populates with updated values currentTask.Name = taskDialog.Name; currentTask.Notes = taskDialog.Notes; TaskManager.SaveTask(currentTask); NavigationController.PopViewControllerAnimated(true); context.Dispose(); // per documentation }
protected override void OnDestroyed() { ctx.Dispose(); OnUnload(); dashboardsStore.Dispose(); dashboardwidget.Destroy(); dashboardseditortreeview.Destroy(); base.OnDestroyed(); }
public virtual void Dispose() { if (null != BindingContext) { BindingContext.Dispose(); BindingContext = null; ViewModelProperty.OnValueChanged = null; } dictBind.Dispose(); }
protected override void OnDestroyed() { Log.Verbose($"Destroying {GetType ()}"); ViewModel = null; ctx.Dispose(); ctx = null; base.OnDestroyed(); Disposed = true; }
protected override void OnDestroyed() { Log.Verbose($"Destroying {GetType ()}"); ctx.Dispose(); ctx = null; sizegroupLeft.Dispose(); sizegroupLeft = null; sizegroupRight.Dispose(); sizegroupRight = null; base.OnDestroyed(); Disposed = true; }
//public void ApplyFilter() //{ } public virtual void Dispose() { lock (syncRoot) { if (!IsDisposed) { if (BindingContext != null) { BindingContext.Dispose(); } BindingContext = null; IsDisposed = true; } } }
protected override void OnDestroyed() { Log.Verbose($"Destroying {GetType ()}"); OnUnload(); // Dispose things here blackboard.Dispose(); ViewModel = null; ctx?.Dispose(); ctx = null; base.OnDestroyed(); Disposed = true; }
public virtual void CreateBindingContext(object dataSource) { try { if (BindingContext != null) { BindingContext.Dispose(); BindingContext = null; } if (dataSource != null) { List <IFilterDefinition> templatedFilters = RootBindingFilter.CreateInstances(this, dataSource); BindingContext = new Context.BindingContext(null, this, this.TemplateDefinition, dataSource, templatedFilters); } } catch (Exception ex) { string message = $"Binding template '{TemplateDefinition.Name}', 'SetDataSource' failed. {ex.Message}"; throw new EtkException(message); } }
protected override void OnDestroyed() { ctx.Dispose(); tagger.Dispose(); base.OnDestroyed(); }
protected override void Dispose(bool disposing) { BindingContext.Dispose(); }