public override void Finish() { base.Finish(); View.Hide(); MarketView.PanelTabChanged -= OnTabChanged; IFormWithItems formWithItems = View as IFormWithItems; if (formWithItems != null) { formWithItems.ItemClicked -= OnItemClicked; } }
public override void Start(object[] args = null) { base.Start(args); View = Controller.GetForm <TFormView>(); if (View.Model == null) { View.ApplyModel(new TFormModel()); } View.Show(); if (IsNeedChangeTabOnStart) { MarketView.ApplyActivePanelTab(MarketTab); } MarketView.PanelTabChanged += OnTabChanged; IFormWithItems formWithItems = View as IFormWithItems; if (formWithItems != null) { formWithItems.ItemClicked += OnItemClicked; } }