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); }
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. "); }