📄 a.cs
字号:
using Microsoft.VisualBasic;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
internal class a : IDisposable
{
private IContainer a;
private NotifyIcon b;
private ContextMenuStrip c;
private ToolStripMenuItem d;
private ToolStripSeparator e;
private ToolStripMenuItem f;
private Icon g;
private bool h;
private bool i;
private string j;
private string k;
private FileVersionInfo l;
private string m;
private string n;
private string o;
private string p;
private bool q;
internal a(bool A_0, string A_1, string A_2, FileVersionInfo A_3, string A_4, string A_5, string A_6, string A_7)
{
this.a((NotifyIcon) null);
this.c = null;
this.b(null);
this.a((ToolStripSeparator) null);
this.a((ToolStripMenuItem) null);
this.g = null;
this.h = false;
this.i = false;
this.j = "";
this.k = "";
this.l = null;
this.m = "";
this.q = false;
this.i = A_0;
this.j = A_1;
this.k = A_2;
this.l = A_3;
this.m = A_4;
this.n = A_5;
this.o = A_6;
this.p = A_7;
}
private void a()
{
string prompt = "";
string str5 = this.l.FileMajorPart.ToString();
string str6 = this.l.FileMinorPart.ToString();
string str4 = this.l.FileBuildPart.ToString();
string comments = this.l.Comments;
string legalCopyright = this.l.LegalCopyright;
if (this.i)
{
prompt = comments + " (Version " + str5 + "." + str6 + "." + str4 + ")\r\n" + legalCopyright + "\r\nhttp://www.logixmobile.com\r\n\r\nRegistered To: " + this.j + "\r\nLicense Type: " + this.k;
}
else
{
prompt = comments + " (Version " + str5 + "." + str6 + "." + str4 + ")\r\n" + legalCopyright + "\r\n\r\n" + this.a("\x0013SB)BS6\x0014ue\rl.dk");
}
Interaction.MsgBox(prompt, MsgBoxStyle.Information, "About...");
}
protected virtual void a(bool A_0)
{
if (!this.q && A_0)
{
if (this.a != null)
{
this.a.Dispose();
}
if (this.l != null)
{
this.l = null;
}
if (this.g != null)
{
this.g = null;
}
if (this.d() != null)
{
this.b(null);
}
if (this.c() != null)
{
this.a((ToolStripSeparator) null);
}
if (this.b() != null)
{
this.a((ToolStripMenuItem) null);
}
}
this.q = true;
}
private string a(string A_0)
{
int num2 = 0 - A_0.Length;
string str = "";
VBMath.Rnd((float) num2);
int length = A_0.Length;
for (int i = 1; i <= length; i++)
{
str = str + Strings.ChrW(Strings.AscW(Strings.Mid(A_0, i)) ^ ((int) ((long) Math.Round((double) (VBMath.Rnd() * 99f))))).ToString();
}
return str;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
private void a(NotifyIcon A_0)
{
if (this.b != null)
{
this.b.DoubleClick -= new EventHandler(this.a);
}
this.b = A_0;
if (this.b != null)
{
this.b.DoubleClick += new EventHandler(this.a);
}
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
private void a(ToolStripMenuItem A_0)
{
if (this.f != null)
{
this.f.Click -= new EventHandler(this.c);
}
this.f = A_0;
if (this.f != null)
{
this.f.Click += new EventHandler(this.c);
}
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
private void a(ToolStripSeparator A_0)
{
this.e = A_0;
}
private void a(object A_0, EventArgs A_1)
{
this.a();
}
internal void a(bool A_0, string A_1, string A_2, FileVersionInfo A_3, string A_4, string A_5, string A_6, string A_7)
{
this.i = A_0;
this.j = A_1;
this.k = A_2;
this.l = A_3;
this.m = A_4;
this.n = A_5;
this.o = A_6;
this.p = A_7;
if (this.e() != null)
{
this.c = new ContextMenuStrip(this.a);
this.g = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("mCore.mCoreIcon.ico"));
this.b(new ToolStripMenuItem("About"));
this.a(new ToolStripSeparator());
this.a(new ToolStripMenuItem("What's this?"));
this.c.SuspendLayout();
this.c.Name = "cmsSysTray";
Size size = new Size(0x93, 0x62);
this.c.Size = size;
this.d().Name = "csiAbout";
size = new Size(0x92, 0x16);
this.d().Size = size;
this.c().Name = "csiSeparator";
size = new Size(0x8f, 6);
this.c().Size = size;
this.b().Name = "csiWhatsThis";
size = new Size(0x92, 0x16);
this.b().Size = size;
this.c.Items.AddRange(new ToolStripItem[] { this.d(), this.c(), this.b() });
this.e().Icon = this.g;
if (this.i)
{
this.e().Text = this.l.ProductName + "\r\nSTANDARD LICENSE";
}
else
{
this.e().Text = this.l.ProductName + "\r\nTRIAL VERSION";
}
this.e().ContextMenuStrip = this.c;
this.c.ResumeLayout(false);
this.e().Visible = true;
if (this.i)
{
this.e().ShowBalloonTip(0x7d0, this.l.ProductName, "Registered To: " + this.j + "\r\nLicense Type: " + this.k + "\r\nRight-click here for more information", ToolTipIcon.Info);
}
else
{
this.e().ShowBalloonTip(0x1388, this.l.ProductName, "TRIAL VERSION\r\nRight-click here for more information", ToolTipIcon.Info);
}
}
}
[DebuggerNonUserCode]
private ToolStripMenuItem b()
{
return this.f;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
private void b(ToolStripMenuItem A_0)
{
if (this.d != null)
{
this.d.Click -= new EventHandler(this.b);
}
this.d = A_0;
if (this.d != null)
{
this.d.Click += new EventHandler(this.b);
}
}
internal void b(object A_0, EventArgs A_1)
{
this.a();
}
[DebuggerNonUserCode]
private ToolStripSeparator c()
{
return this.e;
}
internal void c(object A_0, EventArgs A_1)
{
string prompt = "";
if (this.m == this.n)
{
prompt = "This notification icon is displayed in the SysTray because one of the application running presently on this computer is using TRIAL VERSION of " + this.l.ProductName + ".\r\n\r\nPurchasing DISTRIBUTION License (LITE or PRO) will remove the icon from the systray.\r\n\r\nPurchasing STANDARD License (LITE or PRO) will still display this icon, but the trial version message will be replaced with license information.\r\n\r\nFor more information please visit http://www.logixmobile.com";
}
else if (this.m == this.o)
{
prompt = "This notification icon is displayed in the SysTray because one of the application presently running on this computer is using '" + this.l.ProductName + "' (LITE-STANDARD License).\r\n\r\nDISTRIBUTION License (LITE or PRO) removes the icon from the SysTray.\r\n\r\nFor more information please visit http://www.logixmobile.com";
}
else if (this.m == this.p)
{
prompt = "This notification icon is displayed in the SysTray because one of the application presently running on this computer is using '" + this.l.ProductName + "' (PRO-STANDARD License).\r\n\r\nDISTRIBUTION License (LITE or PRO) removes the icon from the SysTray.\r\n\r\nFor more information please visit http://www.logixmobile.com";
}
Interaction.MsgBox(prompt, MsgBoxStyle.Information, "What's this?");
}
[DebuggerNonUserCode]
private ToolStripMenuItem d()
{
return this.d;
}
[DebuggerNonUserCode]
private NotifyIcon e()
{
return this.b;
}
internal bool f()
{
this.a = new Container();
this.a(new NotifyIcon(this.a));
this.c = new ContextMenuStrip(this.a);
this.g = new Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("mCore.mCoreIcon.ico"));
this.b(new ToolStripMenuItem("About"));
this.a(new ToolStripSeparator());
this.a(new ToolStripMenuItem("What's this?"));
this.c.SuspendLayout();
this.c.Name = "cmsSysTray";
Size size = new Size(0x93, 0x62);
this.c.Size = size;
this.d().Name = "csiAbout";
size = new Size(0x92, 0x16);
this.d().Size = size;
this.c().Name = "csiSeparator";
size = new Size(0x8f, 6);
this.c().Size = size;
this.b().Name = "csiWhatsThis";
size = new Size(0x92, 0x16);
this.b().Size = size;
this.c.Items.AddRange(new ToolStripItem[] { this.d(), this.c(), this.b() });
this.e().Icon = this.g;
if (this.i)
{
this.e().Text = this.l.ProductName + "\r\nSTANDARD LICENSE";
}
else
{
this.e().Text = this.l.ProductName + "\r\nTRIAL VERSION";
}
this.e().ContextMenuStrip = this.c;
this.c.ResumeLayout(false);
this.e().Visible = true;
if (this.i)
{
this.e().ShowBalloonTip(0x7d0, this.l.ProductName, "Registered To: " + this.j + "\r\nLicense Type: " + this.k + "\r\nRight-click here for more information", ToolTipIcon.Info);
}
else
{
this.e().ShowBalloonTip(0x1388, this.l.ProductName, "TRIAL VERSION\r\nRight-click here for more information", ToolTipIcon.Info);
}
return true;
}
protected override void g()
{
this.a(false);
base.Finalize();
}
public void h()
{
this.a(true);
GC.SuppressFinalize(this);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -