private MdApi() { this.login_cb = new MDLoginCallback(this.OnLogin); this.tick_cb = new MDTickCallback(this.OnTick); this.bar_cb = new MDBarCallback(this.OnBar); this.event_cb = new MDEventCallback(this.OnMdEvent); this.error_cb = new MDErrorCallback(this.OnError); NativeMethods.gm_md_set_login_callback(this.login_cb); NativeMethods.gm_md_set_tick_callback(this.tick_cb); NativeMethods.gm_md_set_bar_callback(this.bar_cb); NativeMethods.gm_md_set_event_callback(this.event_cb); NativeMethods.gm_md_set_error_callback(this.error_cb); }
public static extern void gm_md_set_login_callback(MDLoginCallback cb);