Inheritance: Nui.Utility.Windows.NotifyPropertyChangedDispatcherBase, IDisposable
 protected override void OnClosing(CancelEventArgs e)
 {
     if (m_model != null)
     {
         m_model.Dispose();
         m_model = null;
     }
 }
        public MainWindow()
        {
            m_model = new MainWindowModel(Path.Combine(Directory.GetCurrentDirectory(), @"Images"));
            DataContext = m_model;

            InitializeComponent();

            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }