public override void ViewDidDisappear(bool animated) { base.ViewDidDisappear(animated); if (this.IsMovingFromParentViewController) { _source?.Dispose(); _source = null; MemoryUtility.ReleaseUIViewWithChildren(this.View); } }
private void SetupTableView() { _source = new RegisterSource(_tableView, _backgroundView, ViewModel.FormModelList, ViewModel.AgreementLabel); _tableView.BackgroundColor = Colors.MainBlue4; _tableView.Source = _source; _tableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; _tableView.ReloadData(); _source.AgreementToogleEvent -= OnSource_AgreementToogleEvent; _source.AgreementToogleEvent += OnSource_AgreementToogleEvent; _source.ReadAgreementEvent -= OnSource_ReadAgreementEvent; _source.ReadAgreementEvent += OnSource_ReadAgreementEvent; }
public void Load(Register subject, Register @base, Register offset = null) { Source source; if (offset == null) { source = new ImmediateSource(0); } else { source = new RegisterSource(offset); } AddLine(new Line(new LoadInstruction { Destination = subject, MemoryAddress = new IndexedAddress(@base, source) })); }
public void SendToRegisterScreenEvent(RegisterSource source) { string label; switch (source) { case RegisterSource.Feedback: label = "Feedback"; break; case RegisterSource.Reports: label = "Reports"; break; default: #if DEBUG throw new ArgumentException("Invalid value", "registerSource"); #else return; #endif } SendEvent("NoUser", "ToRegisterScreen", label); }
public void SendToRegisterScreenEvent (RegisterSource source) { string label; switch (source) { case RegisterSource.Feedback: label = "Feedback"; break; case RegisterSource.Reports: label = "Reports"; break; default: #if DEBUG throw new ArgumentException ("Invalid value", "registerSource"); #else return; #endif } SendEvent ("NoUser", "ToRegisterScreen", label); }