Example #1
0
 /// <summary>
 /// Возвращает экземпляр конфигов
 /// </summary>
 /// <returns></returns>
 public static L2gConfig getInstance()
 {
     if (instance == null)
     {
         instance = new L2gConfig();
     }
     return instance;
 }
Example #2
0
 /// <summary>
 /// Возвращает экземпляр конфигов
 /// </summary>
 /// <returns></returns>
 public static L2gConfig getInstance()
 {
     if (instance == null)
     {
         instance = new L2gConfig();
     }
     return(instance);
 }
Example #3
0
        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);
        }
Example #4
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     L2gConfig.getInstance().ClickType = L2gConfig.CLICKTYPE_POST_MESSAGE;
     toolStripMenuItem2.Checked = true;
     toolStripMenuItem3.Checked = false;
 }