/// <summary> /// Возвращает экземпляр конфигов /// </summary> /// <returns></returns> public static L2gConfig getInstance() { if (instance == null) { instance = new L2gConfig(); } return instance; }
/// <summary> /// Возвращает экземпляр конфигов /// </summary> /// <returns></returns> public static L2gConfig getInstance() { if (instance == null) { instance = new L2gConfig(); } return(instance); }
public void Emulate(IntPtr hWnd, int key) { string methodName = "emulate" + L2gConfig.getInstance().ClickType; MethodInfo mi = this.GetType().GetMethod(methodName); object[] parametersArray = new object[] { hWnd, key }; mi.Invoke(this, parametersArray); //emulateShellExecute(hWnd, key); }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { L2gConfig.getInstance().ClickType = L2gConfig.CLICKTYPE_POST_MESSAGE; toolStripMenuItem2.Checked = true; toolStripMenuItem3.Checked = false; }