Ejemplo n.º 1
0
        private void WindowTraceLogClosingHandler(object sender, CancelEventArgs args)
        {
            WorkDocumentCollection.StoreWindowProperties(this);

            args.Cancel = true;
            Hide();
        }
        private void StoreWindowConfiguration()
        {
            _customProperties =
                new Dictionary <string, double>
            {
                { SessionDataGridHeightProperty, RowDefinitionSessionDataGrid.ActualHeight }
            };

            _sessionDetailViewer?.StoreConfiguration(_customProperties);

            WorkDocumentCollection.StoreWindowProperties(this, _customProperties);
        }
Ejemplo n.º 3
0
        internal void SaveWorkingDocuments()
        {
            foreach (var document in AllDocuments)
            {
                document.SaveWorkingDocument();
                document.WorkDocument.TabIndex = DocumentTabControl.Items.IndexOf(document.TabItem);
            }

            WorkDocumentCollection.StoreWindowProperties(this);
            WorkDocumentCollection.Save();

            TraceLog.WriteLine($"Working document collection saved. ");
        }