private void SetCorrentPage(Page newCorrentPage) { if (сorrentPage != null) { l.Debug("Удаляю страницу " + сorrentPage.GetType().ToString() ); this.Controls.Remove(сorrentPage); settings = сorrentPage.GetSetting(); } сorrentPage = newCorrentPage; if (сorrentPage != null) { l.Debug("Добавляю страницу " + сorrentPage.GetType().ToString()); this.Controls.Add(сorrentPage); try { сorrentPage.SetSetting(settings); } catch (Exception e) { l.Error("Необробатываемое исключение в " + сorrentPage.GetType() + " " + e); } buttonNext.Enabled = сorrentPage.NextExists(); buttonPrevious.Enabled = сorrentPage.PreviousExists(); } else { buttonNext.Enabled = false; buttonPrevious.Enabled = false; } }
public FinamTreeViewPage(Page previous) { InitializeComponent(); this.previous = previous; this.next = new DownloadPage(this); }
public DownloadPage(Page previous) { InitializeComponent(); this.previous = previous; }
public Page(Page previous) { this.previous = previous; }