private void Main_Load(object sender, EventArgs e) { if (!_debugging) { Initiate(); } else { InitializeContractor(); _packetlogger.Show(); } }
private void Initiate() { if (InvokeRequired) { Invoke(_initiate); return; } _tanjiConnect.ShowDialog(); Text = string.Format(TanjiTitleFormat, Game.Host, Game.Port); ProtocolTxt.Text = string.Format(ProtocolFormat, Game.Protocol); if (_contractor == null) { _contractor = new Contractor(Game); ETanjiExtensionViewer.Contractor = _contractor; LoadTanjiExtensions(); } Show(); BringToFront(); _packetloggerF.Show(); _packetloggerF.BringToFront(); }