Skip to content

Commit 700c185

Browse files
author
LoneWandererProductions
committed
Cleanup my SQlite Editor a bit more.
1 parent 7375d17 commit 700c185

19 files changed

Lines changed: 54 additions & 39 deletions

SqlLiteGui/AddTableWindow.xaml.cs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/AddTableWindow.xaml.cs
4+
* FILE: AddTableWindow.xaml.cs
55
* PURPOSE: Add new Tables
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
@@ -91,7 +91,7 @@ internal AddTableWindow(string title, string tableNameLbl, string btnExecute, st
9191
/// <summary>
9292
/// Gets the table info.
9393
/// </summary>
94-
internal static TableObject TableInfos { get; private set; }
94+
internal static TableObject? TableInfos { get; private set; }
9595

9696
/// <summary>
9797
/// Get the basics in Place
@@ -131,7 +131,7 @@ private void BtnExecute_Click(object sender, RoutedEventArgs e)
131131
return;
132132
}
133133

134-
var tbl = new TableObject { Header = TxtBoxTableName.Text };
134+
var tbl = new TableObject(TxtBoxTableName.Text, default);
135135
var dct = new DictionaryTableColumns();
136136

137137
foreach (var table in TableElements)
@@ -195,20 +195,4 @@ private void BtnDelete_Click(object sender, RoutedEventArgs e)
195195
_ = TableElements.Remove(selectedItem);
196196
}
197197
}
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-
}
214198
}

SqlLiteGui/DataOverview.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/DataOverview.xaml.cs
4+
* FILE: DataOverview.xaml.cs
55
* PURPOSE: SqlLite graphical Front-end, User-control for the Display Part
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

SqlLiteGui/DataOverviewViewModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/DataOverviewViewModel.cs
4+
* FILE: DataOverviewViewModel.cs
55
* PURPOSE: DataOverview View Model
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
@@ -24,6 +24,9 @@ public sealed class DataOverviewViewModel : ViewModelBase
2424
/// </summary>
2525
private string _currentTable;
2626

27+
/// <summary>
28+
/// The raw
29+
/// </summary>
2730
private DataView _raw;
2831

2932
/// <summary>

SqlLiteGui/DbInfo.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/DbInfo.xaml.cs
4+
* FILE: DbInfo.xaml.cs
55
* PURPOSE: Display Database Infos
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

SqlLiteGui/DbInfoViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/DbInfoViewModel.cs
4+
* FILE: DbInfoViewModel.cs
55
* PURPOSE: DbInfo View Model
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

SqlLiteGui/Dialogs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/Dialogs.cs
4+
* FILE: Dialogs.cs
55
* PURPOSE: Reused for SQLiteGui Project only
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

SqlLiteGui/InputBinaryWindow.xaml.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/InputBinaryWindow.xaml.cs
4+
* FILE: InputBinaryWindow.xaml.cs
55
* PURPOSE: Set custom Input, right now: where Clause,Copy Table
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
@@ -94,9 +94,12 @@ internal InputBinaryWindow(string title, string description, string first, strin
9494
}
9595

9696
/// <summary>
97-
/// Gets the Parameter clause.
97+
/// Gets the Parameter clause.
9898
/// </summary>
99-
internal static Binary ParamsClause { get; private set; }
99+
/// <value>
100+
/// The parameters clause.
101+
/// </value>
102+
internal static Binary? ParamsClause { get; private set; }
100103

101104
/// <summary>
102105
/// Get the basics in Place

SqlLiteGui/InputUpdateWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/InputUpdateWindow.xaml.cs
4+
* FILE: InputUpdateWindow.xaml.cs
55
* PURPOSE: Update Window
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
@@ -42,7 +42,7 @@ internal InputUpdateWindow(IEnumerable<UpdateItem> items)
4242
/// <summary>
4343
/// Gets the table row.
4444
/// </summary>
45-
internal static TableSet TableRow { get; private set; }
45+
internal static TableSet? TableRow { get; private set; }
4646

4747
/// <summary>
4848
/// Set the data.

SqlLiteGui/LogsWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/InputBinaryWindow.xaml.cs
4+
* FILE: InputBinaryWindow.xaml.cs
55
* PURPOSE: Show all Logs from the current Connection
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

SqlLiteGui/ObservableObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: SQLiteGui
4-
* FILE: SQLiteGui/ObservableObject.cs
4+
* FILE: ObservableObject.cs
55
* PURPOSE: Reused for SQLiteGui Project only
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

0 commit comments

Comments
 (0)