mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-22 11:26:11 +00:00
75 lines
2.4 KiB
C#
75 lines
2.4 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: mini.My.MySettings
|
|||
|
// Assembly: mini, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|||
|
// MVID: 952B6C26-6BED-4AA4-A7C3-6C9D321E8DF3
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan.Win32.Fsysna.diom-a5ef4d55c96aca6699873bba5d26645f4e3270ab2122ef8929a443cfb34a5a45.exe
|
|||
|
|
|||
|
using Microsoft.VisualBasic.ApplicationServices;
|
|||
|
using Microsoft.VisualBasic.CompilerServices;
|
|||
|
using System;
|
|||
|
using System.CodeDom.Compiler;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Configuration;
|
|||
|
using System.Diagnostics;
|
|||
|
using System.Runtime.CompilerServices;
|
|||
|
using System.Threading;
|
|||
|
|
|||
|
namespace mini.My
|
|||
|
{
|
|||
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
|||
|
[CompilerGenerated]
|
|||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|||
|
internal sealed class MySettings : ApplicationSettingsBase
|
|||
|
{
|
|||
|
private static MySettings defaultInstance = (MySettings) SettingsBase.Synchronized((SettingsBase) new MySettings());
|
|||
|
private static bool addedHandler;
|
|||
|
private static object addedHandlerLockObject = RuntimeHelpers.GetObjectValue(new object());
|
|||
|
|
|||
|
[DebuggerNonUserCode]
|
|||
|
public MySettings()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|||
|
[DebuggerNonUserCode]
|
|||
|
private static void AutoSaveSettings(object sender, EventArgs e)
|
|||
|
{
|
|||
|
if (!MyProject.Application.SaveMySettingsOnExit)
|
|||
|
return;
|
|||
|
MySettingsProperty.Settings.Save();
|
|||
|
}
|
|||
|
|
|||
|
public static MySettings Default
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (!MySettings.addedHandler)
|
|||
|
{
|
|||
|
object handlerLockObject = MySettings.addedHandlerLockObject;
|
|||
|
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
|
|||
|
Monitor.Enter(handlerLockObject);
|
|||
|
try
|
|||
|
{
|
|||
|
if (!MySettings.addedHandler)
|
|||
|
{
|
|||
|
MyProject.Application.Shutdown += (ShutdownEventHandler) ((sender, e) =>
|
|||
|
{
|
|||
|
if (!MyProject.Application.SaveMySettingsOnExit)
|
|||
|
return;
|
|||
|
MySettingsProperty.Settings.Save();
|
|||
|
});
|
|||
|
MySettings.addedHandler = true;
|
|||
|
}
|
|||
|
}
|
|||
|
finally
|
|||
|
{
|
|||
|
Monitor.Exit(handlerLockObject);
|
|||
|
}
|
|||
|
}
|
|||
|
MySettings defaultInstance = MySettings.defaultInstance;
|
|||
|
return defaultInstance;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|