public TeleportForm(TeleportHelper teleportHelper) { helper = teleportHelper; InitializeComponent(); UpdateAll(); }
public override void Initialize() { GameHooks.Update += GameHooks_Update; GameHooks.WorldConnect += GameHooks_WorldConnect; ClientHooks.Chat += ClientHooks_Chat; DrawHooks.EndDraw += DrawHooks_EndDraw; string path = Path.Combine(Program.PluginSettingsPath, SettingsFilename); ThreadPool.QueueUserWorkItem(state => helper = SettingsHelper.Load <TeleportHelper>(path)); }
public override void Initialize() { GameHooks.Update += GameHooks_Update; GameHooks.WorldConnect += GameHooks_WorldConnect; ClientHooks.Chat += ClientHooks_Chat; DrawHooks.EndDraw += DrawHooks_EndDraw; string path = Path.Combine(Program.PluginSettingsPath, SettingsFilename); ThreadPool.QueueUserWorkItem(state => helper = SettingsHelper.Load<TeleportHelper>(path)); }