protected override void OnDestroyed() { Log.Verbose($"Destroying {GetType ()}"); ViewModel = null; ViewModel?.Dispose(); ctx.Dispose(); ctx = null; treeview.Dispose(); treeview = null; base.OnDestroyed(); Disposed = true; }
public JobsManagerView() { this.Build(); treeview = new JobsTreeView(); treeview.ShowAll(); treeviewbox.PackStart(treeview, true, true, 0); cancelbutton.Visible = false; retrybutton.Visible = false; acceptButton.Clicked += async(sender, e) => await App.Current.StateController.MoveBack(); Bind(); }