Пример #1
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            _windowData = new MainWindowData();

            _windowData.Document = new Data.WidgetDocument();
            _windowData.Document.IsDirtyChanged += OnDocumentDirtyFlagChanged;
            _windowData.Document.Load();

            widgetContainer.Source = _windowData.Document.Root;

            this.Loaded += new RoutedEventHandler(OnLoaded);
            this.Closing += OnClosing;
        }
Пример #2
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            _windowData = new MainWindowData();

            _windowData.Document = new Data.WidgetDocument();
            _windowData.Document.IsDirtyChanged += OnDocumentDirtyFlagChanged;
            _windowData.Document.Load();

            widgetContainer.Source = _windowData.Document.Root;

            this.Loaded  += new RoutedEventHandler(OnLoaded);
            this.Closing += OnClosing;
        }