void m_ExportLayout_Click(object sender, RoutedEventArgs e) { ObjectSaveAsDialog dlg = new ObjectSaveAsDialog(GetStorageManager()) { ContentType = StorageContentTypes.ValueCopySettings }; dlg.DialogOk += new EventHandler(SaveAsDialog_DialogOk); dlg.Show(); }
void ExportSettings(object tag) { ObjectSaveAsDialog dlg = new ObjectSaveAsDialog(StorageManager) { ContentType = StorageContentTypes.CustomCellStyles }; dlg.DialogOk += new EventHandler(SaveAsDialog_DialogOk); dlg.Show(); dlg.Tag = tag; }