Exemplo n.º 1
0
 public Shell()
 {
     InitializeComponent();
     regions = new Dictionary <Type, UIElement>
     {
         { GetType(), this },
         { typeof(Window), this },
         { StatusBar.GetType(), StatusBar },
         { Menu.GetType(), Menu },
         { DockManager.GetType(), DockManager },
         { Tabs.GetType(), Tabs },
         { ResizingPanel.GetType(), ResizingPanel },
         { ButtonBar.GetType(), ButtonBar },
         { TaskBarIcon.GetType(), TaskBarIcon },
         { StockWatch.GetType(), StockWatch },
     };
     DockManager.Loaded += (o, e) =>
     {
         if (File.Exists(settings_file))
         {
             DockManager.RestoreLayout(settings_file);
         }
     };
     Closing += (o, e) => DockManager.SaveLayout(settings_file);
     Closing += (o, e) => TaskBarIcon.Dispose();
     Loaded  += (o, e) =>
     {
         TaskBarIcon.Icon = UIIcon.Application.AsIcon();
     };
 }
Exemplo n.º 2
0
 public ShellWindow()
 {
     InitializeComponent();
     regions = new Dictionary <Type, UIElement>
     {
         { GetType(), this },
         { typeof(Window), this },
         { Tabs.GetType(), Tabs },
         { StatusBar.GetType(), StatusBar },
         { Menu.GetType(), Menu },
         { SelectedFamilyMember.GetType(), SelectedFamilyMember },
     };
 }