private void ShowOptionsWindow()
 {
     try
     {
         var list             = new List <IOptionsTabPage>();
         var mainOptionsPanel = new MainOptionsPanel();
         mainOptionsPanel.SetViewModel(new MainOptionsViewModel(_options));
         list.Add(new MainTabPage("一般", mainOptionsPanel));
         list.Add(_siteContext.TabPanel);
         MessengerInstance.Send(new ShowOptionsViewMessage(list));
     }
     catch (Exception ex)
     {
         _logger.LogException(ex);
     }
 }
Ejemplo n.º 2
0
 public MainTabPage(string displayName, MainOptionsPanel panel)
 {
     HeaderText = displayName;
     _panel     = panel;
 }