コード例 #1
0
 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;
     }
 }
コード例 #2
0
 public FinamTreeViewPage(Page previous)
 {
     InitializeComponent();
     this.previous = previous;
     this.next = new DownloadPage(this);
 }
コード例 #3
0
 public DownloadPage(Page previous)
 {
     InitializeComponent();
     this.previous = previous;
 }
コード例 #4
0
ファイル: Page.cs プロジェクト: vvsur/open-wealth-project
 public Page(Page previous)
 {
     this.previous = previous;
 }