Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
CreateDocumentUserControl.xaml.cs
3using System.Windows.Input;
6
8{
12 public partial class CreateDocumentUserControl : UserControl
13 {
14 public CreateDocumentUserControl()
15 {
16 InitializeComponent();
17 }
18
22 public ICommand CreateDocumentCommand
23 {
24 get => (ICommand)GetValue(CreateDocumentCommandProperty);
25 set => SetValue(CreateDocumentCommandProperty, value);
26 }
27 public static readonly DependencyProperty CreateDocumentCommandProperty = DependencyProperty.Register(nameof(CreateDocumentCommand), typeof(ICommand), typeof(CreateDocumentUserControl));
28
33 {
34 get { return (DocumentCreationStatus)GetValue(CreationStatusProperty); }
35 set { SetValue(CreationStatusProperty, value); }
36 }
37 public static readonly DependencyProperty CreationStatusProperty = DependencyProperty.Register(nameof(CreationStatus), typeof(DocumentCreationStatus), typeof(CreateDocumentUserControl));
38
43 {
44 get { return (DocumentCreationConfig)GetValue(CreationConfigProperty); }
45 set { SetValue(CreationConfigProperty, value); }
46 }
47 public static readonly DependencyProperty CreationConfigProperty = DependencyProperty.Register(nameof(CreationConfig), typeof(DocumentCreationConfig), typeof(CreateDocumentUserControl));
48
52 public string ButtonText
53 {
54 get => (string)GetValue(ButtonTextProperty);
55 set => SetValue(ButtonTextProperty, value);
56 }
57 public static readonly DependencyProperty ButtonTextProperty = DependencyProperty.Register(nameof(ButtonText), typeof(string), typeof(CreateDocumentUserControl));
58
62 public string ButtonIconGlyph
63 {
64 get => (string)GetValue(IconGlyphProperty);
65 set => SetValue(IconGlyphProperty, value);
66 }
67 public static readonly DependencyProperty IconGlyphProperty = DependencyProperty.Register(nameof(ButtonIconGlyph), typeof(string), typeof(CreateDocumentUserControl));
68
72 public string SuccessText
73 {
74 get => (string)GetValue(SuccessTextProperty);
75 set => SetValue(SuccessTextProperty, value);
76 }
77 public static readonly DependencyProperty SuccessTextProperty = DependencyProperty.Register(nameof(SuccessText), typeof(string), typeof(CreateDocumentUserControl));
78
84 {
85 get => (int)GetValue(NumberCreatedDocumentsProperty);
86 set => SetValue(NumberCreatedDocumentsProperty, value);
87 }
88 public static readonly DependencyProperty NumberCreatedDocumentsProperty = DependencyProperty.Register(nameof(NumberCreatedDocuments), typeof(int), typeof(CreateDocumentUserControl));
89
93 public DataTemplateSelector FilterParameterEditorTemplateSelector
94 {
95 get { return (DataTemplateSelector)GetValue(FilterParameterEditorTemplateSelectorProperty); }
96 set { SetValue(FilterParameterEditorTemplateSelectorProperty, value); }
97 }
98 public static readonly DependencyProperty FilterParameterEditorTemplateSelectorProperty = DependencyProperty.Register(nameof(FilterParameterEditorTemplateSelector), typeof(DataTemplateSelector), typeof(CreateDocumentUserControl), new PropertyMetadata(null));
99
100
101 private void btn_openDocument_Click(object sender, RoutedEventArgs e)
102 {
103 if(System.IO.File.Exists(CreationStatus.LastDocumentFilePath))
104 {
105 Core.Helpers.FilePathHelper.OpenWithDefaultProgram(CreationStatus.LastDocumentFilePath);
106 }
107 }
108 }
109}
Class combining configuration infos used while document creation.
Class combining informations used while document creation.
Interaktionslogik für CreateDocumentUserControl.xaml.
string ButtonIconGlyph
Glyph for the button icon, typically a font icon glyph.
DocumentCreationConfig CreationConfig
DocumentCreationConfig used for the document creation.
DocumentCreationStatus CreationStatus
DocumentCreationStatus used for the document creation.
DataTemplateSelector FilterParameterEditorTemplateSelector
DataTemplateSelector used to decide which DataTemplate is used to edit the ItemFilterParameter
string ButtonText
Text to display on the button that triggers document creation.
string SuccessText
Text to display when the document creation is successful.