public wndLogin() { InitializeComponent(); LemonEnvironment.loginWnd = this; EnableLoginButton = new _BoolToControl(this.Enablelogin); ShowMainWnd = new _BoolToControl(this.showMainWnd); }
public wndMain() { InitializeComponent(); #region Delegate thread-safe function initialization this.SetServerConnected = new _BoolToControl(this.ServerConnected); this.SetClientConnected = new _BoolToControl(this.ClientConnected); this.SetCryptoState = new _BoolToControl(this.CryptoActive); this.SetHabboID = new _TextToControl(this.HabboID); this.SetSSOTicket = new _TextToControl(this.SSOTicket); this.SetFlashVersion = new _TextToControl(this.FlashVersion); this.AddToServer = new _TextToControl(this.ServerPackets); this.AddToClient = new _TextToControl(this.ClientPackets); this.SetKbIn = new _IntToControl(this.KbIn); this.SetKbOut = new _IntToControl(this.KbOut); this.SendToken = new _HaxMovie(this.sendTokenToHax); this.SendServerKey = new _HaxMovie(this.sendServerKeyToHax); this.SendClientKey = new _HaxMovie(this.sendClientKeyToHax); LemonEnvironment.mainWnd = this; #endregion #region SWF hax trickery byte[] haxSwf = Properties.Resources.HaxSwf_protected; MemoryStream stm = new MemoryStream(); BinaryWriter writer = new BinaryWriter(stm); writer.Write(8 + haxSwf.Length); writer.Write(0x55665566); writer.Write(haxSwf.Length); writer.Write(haxSwf); stm.Seek(0, SeekOrigin.Begin); this.haxMovie.OcxState = new AxHost.State(stm, 1, false, null); writer.Close(); stm.Close(); #endregion }