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>
|
/// </summary>
|
||||||
public static string LogFile { get; set; }
|
public static string LogFile { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Name of the roaming file
|
|
||||||
/// </summary>
|
|
||||||
public static string FileNameRoaming { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Password for encryption
|
/// Password for encryption
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -391,25 +386,25 @@ namespace Eugen.ESystem
|
|||||||
/// Saves a license value to the roaming area
|
/// Saves a license value to the roaming area
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="value">A valid string</param>
|
/// <param name="value">A valid string</param>
|
||||||
/// <exception cref="UnableToSaveLicenseBundleException">Unable to save license value</exception>
|
///// <exception cref="UnableToSaveLicenseBundleException">Unable to save license value</exception>
|
||||||
public void SaveValueToRoaming(string value, string key)
|
//public void SaveValueToRoaming(string value, string key)
|
||||||
{
|
//{
|
||||||
string password = Environment.GetEnvironmentVariable("USERNAME");
|
// string password = Environment.GetEnvironmentVariable("USERNAME");
|
||||||
var cryption = new Cryption();
|
// var cryption = new Cryption();
|
||||||
|
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
var roaming = new Roaming();
|
// var roaming = new Roaming();
|
||||||
roaming.MainKey = "NX-Portal";
|
// roaming.MainKey = "NX-Portal";
|
||||||
roaming.Key = key;
|
// roaming.Key = key;
|
||||||
roaming.Value = cryption.EncryptString(value, password);
|
// roaming.Value = cryption.EncryptString(value, password);
|
||||||
roaming.WriteKey();
|
// roaming.WriteKey();
|
||||||
}
|
// }
|
||||||
catch (Exception)
|
// catch (Exception)
|
||||||
{
|
// {
|
||||||
throw new UnableToSaveLicenseBundleException();
|
// throw new UnableToSaveLicenseBundleException();
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
private void ToolStripMenuItem_Click(object sender, EventArgs e)
|
private void ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@ -421,13 +416,6 @@ namespace Eugen.ESystem
|
|||||||
|
|
||||||
CheckMenuItem(MenuItem.Text); //Ausgewähltes Menu selektieren
|
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
|
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.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.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\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\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.dll
|
||||||
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\helogwri.pdb
|
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