private void method_8() { FormSplashHelper.MsgWait("正在准备系统主界面..."); base.WindowState = FormWindowState.Maximized; Rectangle rectangle = PropertyUtil.GetRectangle("Site", new Rectangle(10, 10, base.Width, base.Height)); rectangle.X = (rectangle.X < 100) ? 0 : rectangle.X; rectangle.Y = (rectangle.Y < 100) ? 0 : rectangle.Y; base.StartPosition = FormStartPosition.Manual; base.Bounds = rectangle; base.FormClosing += new FormClosingEventHandler(this.NormalMainForm_FormClosing); this.navigatePage_0 = new NavigatePage(); this.navigatePage_0.Dock = DockStyle.Left; base.Controls.Add(this.navigatePage_0); TreeLoader.Load(this.navigatePage_0, this.dockPanel1, "/Aisino/Tree", false); this.navigateToolScrip_0 = new NavigateToolScrip(); this.navigateToolScrip_0.Dock = DockStyle.Top; base.Controls.Add(this.navigateToolScrip_0); this.navigateToolScrip_0.Load(this.method_9("1"), this.navigatePage_0.Nodes); this.navigateToolScrip_0.ItemAdd += new EventHandler(this.navigateToolScrip_0_ItemAdd); this.contextMenuStrip_0 = new ContextMenuStrip(); MenuLoader.Load(this.contextMenuStrip_0.Items, this.dockPanel1, "/Aisino/Menu"); if (this.contextMenuStrip_0.Items.Count > 0) { base._menu = this.contextMenuStrip_0; } base.Controls.Add(base.statusStrip1); FormSplashHelper.MsgWait(); }
internal static PlugIn smethod_0(string string_1) { PlugIn in2; try { if (dictionary_0 == null) { dictionary_0 = new Dictionary <string, string>(); dictionary_0.Add("Auto", "/Aisino/Auto"); dictionary_0.Add("Toolbar", "/Aisino/Toolbar"); dictionary_0.Add("Menu", "/Aisino/Menu"); dictionary_0.Add("Tree", "/Aisino/Tree"); } FormSplashHelper.MsgWait("正在加载插件:" + string_1); byte[] sourceArray = Convert.FromBase64String("7Na8rAMiwkrjjdD3ovBEp1+7a77N+o8nsrh3X6B/K99RYmTt2+X7j7sk0z2WhONH"); byte[] destinationArray = new byte[0x20]; Array.Copy(sourceArray, 0, destinationArray, 0, 0x20); byte[] buffer3 = new byte[0x10]; Array.Copy(sourceArray, 0x20, buffer3, 0, 0x10); byte[] buffer4 = AES_Crypt.Decrypt(Convert.FromBase64String("eqxLBR2DaUHwhQe5q4IYbBEPnlYiMBApixEZLPuKEP5GBTIJsWDHiTZLIa1KTjxql1eMbyDXPUn4BhJVyaLdfA=="), destinationArray, buffer3, null); byte[] buffer5 = new byte[0x20]; Array.Copy(buffer4, 0, buffer5, 0, 0x20); byte[] buffer6 = new byte[0x10]; Array.Copy(buffer4, 0x20, buffer6, 0, 0x10); FileStream stream = new FileStream(string_1, FileMode.Open); byte[] buffer = new byte[stream.Length]; stream.Read(buffer, 0, buffer.Length); stream.Close(); XmlTextReader reader = new XmlTextReader(new MemoryStream(AES_Crypt.Decrypt(buffer, buffer5, buffer6, null))); PlugIn @in = smethod_1(reader, Path.GetDirectoryName(string_1)); @in.method_1(string_1); @in.method_6(true); reader.Close(); in2 = @in; } catch (Exception exception) { throw exception; } return(in2); }
private void method_8() { FormSplashHelper.MsgWait("正在准备系统主界面..."); base.WindowState = FormWindowState.Maximized; Rectangle rectangle = PropertyUtil.GetRectangle("Site", new Rectangle(10, 10, base.Width, base.Height)); rectangle.X = (rectangle.X < 100) ? 0 : rectangle.X; rectangle.Y = (rectangle.Y < 100) ? 0 : rectangle.Y; base.StartPosition = FormStartPosition.Manual; base.Bounds = rectangle; base.FormClosing += new FormClosingEventHandler(this.MDIMainForm_FormClosing); this.menuStrip_0 = new MenuStrip(); this.menuStrip_0.Font = new Font("黑体", 10f); MenuLoader.Load(this.menuStrip_0.Items, this, "/Aisino/Menu"); ToolStripMenuItem item2 = new ToolStripMenuItem { Name = "Menu_Help", Text = "帮助" }; ToolStripMenuItem item3 = new ToolStripMenuItem { Name = "Menu_Online", Text = "在线支持" }; item3.Click += new EventHandler(this.tsbOnline_Click); item2.DropDownItems.Add(item3); ToolStripMenuItem item4 = new ToolStripMenuItem { Name = "Menu_OnlineLogin", Text = "登录【增值税发票查询系统】" }; item4.Click += new EventHandler(this.method_14); item2.DropDownItems.Add(item4); ToolStripMenuItem item5 = new ToolStripMenuItem { Name = "Menu_Help", Text = "帮助" }; item5.Click += new EventHandler(this.tsbHelp_Click); item2.DropDownItems.Add(item5); ToolStripMenuItem item6 = new ToolStripMenuItem { Name = "Menu_AboutUS", Text = "关于" }; item6.Click += new EventHandler(this.method_15); item2.DropDownItems.Add(item6); this.menuStrip_0.Items.Add(item2); if (this.menuStrip_0.Items.Count > 0) { base.Controls.Add(this.menuStrip_0); base.MainMenuStrip = this.menuStrip_0; } base.Controls.Add(base.statusStrip1); this.list_1.Add("Menu.Xtsz"); this.list_1.Add("Menu.Xtsz.Bmgl"); this.list_1.Add("Menu.Fpgl"); this.list_1.Add("Menu.Fplygl"); this.list_1.Add("Menu.Hzfp"); this.list_1.Add("Menu.Bsgl"); this.list_1.Add("Menu.Bsgl.Jskgl"); this.list_1.Add("Menu.Bsgl.InvData"); this.list_1.Add("Menu.Xtwh"); this.list_1.Add("Menu.Wbjk"); foreach (ToolStripItem item in this.menuStrip_0.Items) { item.Image = null; MenuLabel label = item as MenuLabel; if ((label != null) && this.list_1.Contains(label.FunctionID)) { this.list_0.Add(label.FunctionID); } } FormSplashHelper.MsgWait(); this.tsbPublish.Visible = false; this.tsbPublish.Enabled = false; }