|
1 | 1 | /* |
2 | 2 | * COPYRIGHT: See COPYING in the top level directory |
3 | 3 | * PROJECT: SQLiteGui |
4 | | - * FILE: SQLiteGui/AddTableWindow.xaml.cs |
| 4 | + * FILE: AddTableWindow.xaml.cs |
5 | 5 | * PURPOSE: Add new Tables |
6 | 6 | * PROGRAMER: Peter Geinitz (Wayfarer) |
7 | 7 | */ |
@@ -91,7 +91,7 @@ internal AddTableWindow(string title, string tableNameLbl, string btnExecute, st |
91 | 91 | /// <summary> |
92 | 92 | /// Gets the table info. |
93 | 93 | /// </summary> |
94 | | - internal static TableObject TableInfos { get; private set; } |
| 94 | + internal static TableObject? TableInfos { get; private set; } |
95 | 95 |
|
96 | 96 | /// <summary> |
97 | 97 | /// Get the basics in Place |
@@ -131,7 +131,7 @@ private void BtnExecute_Click(object sender, RoutedEventArgs e) |
131 | 131 | return; |
132 | 132 | } |
133 | 133 |
|
134 | | - var tbl = new TableObject { Header = TxtBoxTableName.Text }; |
| 134 | + var tbl = new TableObject(TxtBoxTableName.Text, default); |
135 | 135 | var dct = new DictionaryTableColumns(); |
136 | 136 |
|
137 | 137 | foreach (var table in TableElements) |
@@ -195,20 +195,4 @@ private void BtnDelete_Click(object sender, RoutedEventArgs e) |
195 | 195 | _ = TableElements.Remove(selectedItem); |
196 | 196 | } |
197 | 197 | } |
198 | | - |
199 | | - /// <summary> |
200 | | - /// Helper Object to feed into Sqlite Helper |
201 | | - /// </summary> |
202 | | - internal sealed class TableObject |
203 | | - { |
204 | | - /// <summary> |
205 | | - /// Gets or sets the header. |
206 | | - /// </summary> |
207 | | - public string Header { get; init; } |
208 | | - |
209 | | - /// <summary> |
210 | | - /// Gets or sets the columns. |
211 | | - /// </summary> |
212 | | - public DictionaryTableColumns Columns { get; set; } |
213 | | - } |
214 | 198 | } |
0 commit comments