Esempio n. 1
0
 protected override void OnDestroyed()
 {
     ctx.Dispose();
     OnUnload();
     dashboardwidget.Destroy();
     base.OnDestroyed();
 }
Esempio n. 2
0
 protected override void DisposeManagedResources()
 {
     base.DisposeManagedResources();
     ctx.Dispose();
     ctx = null;
     BarChart.Dispose();
     BarChart   = null;
     Limitation = null;
 }
Esempio n. 3
0
 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
 }
Esempio n. 4
0
 protected override void OnDestroyed()
 {
     ctx.Dispose();
     OnUnload();
     dashboardsStore.Dispose();
     dashboardwidget.Destroy();
     dashboardseditortreeview.Destroy();
     base.OnDestroyed();
 }
Esempio n. 5
0
 public virtual void Dispose()
 {
     if (null != BindingContext)
     {
         BindingContext.Dispose();
         BindingContext = null;
         ViewModelProperty.OnValueChanged = null;
     }
     dictBind.Dispose();
 }
Esempio n. 6
0
        protected override void OnDestroyed()
        {
            Log.Verbose($"Destroying {GetType ()}");
            ViewModel = null;
            ctx.Dispose();
            ctx = null;
            base.OnDestroyed();

            Disposed = true;
        }
Esempio n. 7
0
        protected override void OnDestroyed()
        {
            Log.Verbose($"Destroying {GetType ()}");

            ctx.Dispose();
            ctx = null;
            sizegroupLeft.Dispose();
            sizegroupLeft = null;
            sizegroupRight.Dispose();
            sizegroupRight = null;
            base.OnDestroyed();

            Disposed = true;
        }
Esempio n. 8
0
        //public void ApplyFilter()
        //{ }

        public virtual void Dispose()
        {
            lock (syncRoot)
            {
                if (!IsDisposed)
                {
                    if (BindingContext != null)
                    {
                        BindingContext.Dispose();
                    }
                    BindingContext = null;
                    IsDisposed     = true;
                }
            }
        }
Esempio n. 9
0
        protected override void OnDestroyed()
        {
            Log.Verbose($"Destroying {GetType ()}");

            OnUnload();

            // Dispose things here
            blackboard.Dispose();
            ViewModel = null;
            ctx?.Dispose();
            ctx = null;

            base.OnDestroyed();

            Disposed = true;
        }
Esempio n. 10
0
 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);
     }
 }
Esempio n. 11
0
 protected override void OnDestroyed()
 {
     ctx.Dispose();
     tagger.Dispose();
     base.OnDestroyed();
 }
Esempio n. 12
0
 protected override void Dispose(bool disposing)
 {
     BindingContext.Dispose();
 }