示例#1
0
        //Does not support var_get. *var will take actual value as string *var results as 'var'. [2] is where vars start
        public bool do_bitfx(ref string[] command)
        {
            bool success;

            Console.ForegroundColor = ConsoleColor.Yellow;

            try
            {
                Do_on.write_cui(">> Executing function: " + command[0]);
                this.GetType().GetMethod(command[0], System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance).Invoke(this, new object[] { command });
                success = true;
            }
            catch (Exception e) { Do_on.write_error("An error occured: " + e.Message); success = false; }
            Do_on.var_stringarray_dispose(ref command);
            return(success);
        }
示例#2
0
 public Scorpion_BITFX_BITPANDA(Scorpion fm1)
 {
     Do_on = fm1;
     Do_on.write_cui("Use the start function in order to initialize an exchange:\n\nstart::*exchange *name\n***************************************************\n");
     return;
 }