-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] Added columns to the cosplans table: ErstelltAm, Anzeigebild, E…
…rledigtAm [NEW] Checks for database updates at every start [NEW] The window for cosplans will now get filled with data [NEW] Pictures can now be added to a cosplan [NEW] Added pictures will be shown in the cosplan window [NEW] A frameless window to show a picture in its full size [IMPR] New static class that contains all constants
- Loading branch information
Showing
19 changed files
with
445 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ACP | ||
{ | ||
public static class Constants | ||
{ | ||
public const string MessageBoxDeleteFranchise = "Soll das ausgewählte Franchise wirklich gelöscht werden? Alle zugehörigen Cospläne werden dabei unwiderruflich gelöscht."; | ||
public const string MessageBoxDeleteCosplan = "Soll das ausgewählte Cosplan wirklich gelöscht werden?"; | ||
public const string CaptionDelete = "Löschen?"; | ||
public const string PictureIcon = @"\Resources\Icons\picture.ico"; | ||
public const string Arrow_UpIcon = @"\Resources\Icons\arrow_up.ico"; | ||
public const string Arrow_DownIcon = @"\Resources\Icons\arrow_down.ico"; | ||
public const string MessageBoxResetCosplanNummer = "Nummern wurden zurückgesetzt."; | ||
public const string CaptionCosplanNummer = "Fertig"; | ||
public const string MessageBoxUpdateVerfuegbar = "Es ist eine neue Version verfügbar. Wollen Sie sie jetzt herunterladen und installieren?"; | ||
public const string CaptionUpdateVerfuegbar = "Update erforderlich"; | ||
public const string OpenFileDialogBilder = "Bitte wählen Sie ein oder mehere Bild/er aus."; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,47 @@ | ||
namespace ACP | ||
{ | ||
using ApS; | ||
using ApS.Databases.Firebird; | ||
|
||
public class Updater : ApS.Update.Updater | ||
{ | ||
public void UpdateDatabase() | ||
{ | ||
//if (!Core.CoreSettings.GetSetting("Version02Updated").ToBoolean()) | ||
//{ | ||
// this.UpdateDatabase(Versionen.Version02); | ||
//} | ||
if (!UserSettings.Settings.GetSetting("V0_1_3_Updated").ToBoolean()) | ||
{ | ||
this.UpdateDatabase(Versionen.V0_1_3); | ||
} | ||
} | ||
|
||
private void UpdateDatabase(Versionen vers) | ||
{ | ||
//switch (vers) | ||
//{ | ||
// case Versionen.Version02: | ||
// Datenbankversionen.Version02 v02 = new Datenbankversionen.Version02(); | ||
// v02.ErrorOccured += VersionenErrorOccured; | ||
// v02.RunStatements(); | ||
// v02.ErrorOccured -= VersionenErrorOccured; | ||
// CoreSettings.SetSetting("Version02Updated", true); | ||
// break; | ||
// default: | ||
// break; | ||
//} | ||
this.Error = false; | ||
switch (vers) | ||
{ | ||
case Versionen.V0_1_3: | ||
Datenbankversionen.Version_0_1_3 v013 = new Datenbankversionen.Version_0_1_3(); | ||
v013.ErrorOccured += VersionenErrorOccured; | ||
v013.RunStatements(); | ||
v013.ErrorOccured -= VersionenErrorOccured; | ||
if (!this.Error) | ||
{ | ||
UserSettings.Settings.SetSetting("V0_1_3_Updated", true); | ||
} | ||
break; | ||
default: | ||
break; | ||
} | ||
} | ||
|
||
private void VersionenErrorOccured(object sender, ErrorInUpdate e) | ||
{ | ||
ApS.Services.WriteErrorLog(e.ErrorMessage); | ||
this.Error = true; | ||
Services.WriteErrorLog(e.ErrorMessage); | ||
} | ||
|
||
public enum Versionen | ||
{ | ||
|
||
V0_1_3 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.