Roaming handling entfernt
- Funktion zum Speichern im Roaming entfernt
This commit is contained in:
parent
ec8c00b805
commit
2fc462dc80
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -148,11 +148,6 @@ namespace Eugen.ESystem
|
||||
/// </summary>
|
||||
public static string LogFile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the roaming file
|
||||
/// </summary>
|
||||
public static string FileNameRoaming { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Password for encryption
|
||||
/// </summary>
|
||||
@ -391,25 +386,25 @@ namespace Eugen.ESystem
|
||||
/// Saves a license value to the roaming area
|
||||
/// </summary>
|
||||
/// <param name="value">A valid string</param>
|
||||
/// <exception cref="UnableToSaveLicenseBundleException">Unable to save license value</exception>
|
||||
public void SaveValueToRoaming(string value, string key)
|
||||
{
|
||||
string password = Environment.GetEnvironmentVariable("USERNAME");
|
||||
var cryption = new Cryption();
|
||||
///// <exception cref="UnableToSaveLicenseBundleException">Unable to save license value</exception>
|
||||
//public void SaveValueToRoaming(string value, string key)
|
||||
//{
|
||||
// string password = Environment.GetEnvironmentVariable("USERNAME");
|
||||
// var cryption = new Cryption();
|
||||
|
||||
try
|
||||
{
|
||||
var roaming = new Roaming();
|
||||
roaming.MainKey = "NX-Portal";
|
||||
roaming.Key = key;
|
||||
roaming.Value = cryption.EncryptString(value, password);
|
||||
roaming.WriteKey();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw new UnableToSaveLicenseBundleException();
|
||||
}
|
||||
}
|
||||
// try
|
||||
// {
|
||||
// var roaming = new Roaming();
|
||||
// roaming.MainKey = "NX-Portal";
|
||||
// roaming.Key = key;
|
||||
// roaming.Value = cryption.EncryptString(value, password);
|
||||
// roaming.WriteKey();
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// throw new UnableToSaveLicenseBundleException();
|
||||
// }
|
||||
//}
|
||||
|
||||
private void ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@ -421,13 +416,6 @@ namespace Eugen.ESystem
|
||||
|
||||
CheckMenuItem(MenuItem.Text); //Ausgewähltes Menu selektieren
|
||||
|
||||
//License Bundle ins Roaming schreiben
|
||||
if (!String.IsNullOrEmpty(FileNameRoaming))
|
||||
{
|
||||
SaveValueToRoaming(MenuItem.Text, FileNameRoaming); //In Roaming speichern
|
||||
log.WriteMessage("The license value was saved to roaming", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben
|
||||
}
|
||||
|
||||
OnDynamicMenuItemEvent(EventArgs.Empty); //Das eigene Event aufrufen
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -16,10 +16,6 @@ H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.CopyComplete
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.exe
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.pdb
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\hecryption.dll
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\heroaming.dll
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\hecryption.pdb
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\heroaming.pdb
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\hedynmeit.dll
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\helogwri.dll
|
||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\helogwri.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user