Exemple #1
0
 public Temporary(ConnectAPI api, StringBuilder sb, string key) : base(key)
 {
     Temp            = sb;
     this.api        = api;
     api.SendQuotes += OnReceiveMemorize;
     api.SendDatum  += OnReceiveMemorize;
 }
Exemple #2
0
        public static ConnectAPI Get()
        {
            if (api == null)
            {
                api = new ConnectAPI();
            }

            return(api);
        }
Exemple #3
0
        public static ConnectAPI GetInstance(string key, int delay)
        {
            if (OpenAPI == null)
            {
                OpenAPI = new ConnectAPI(key, delay);
            }

            return(OpenAPI);
        }
Exemple #4
0
 Temporary(ConnectAPI api, string key) : base(key)
 {
     Temp              = new StringBuilder(1024);
     api.SendMemorize += OnReceiveMemorize;
 }
Exemple #5
0
 internal void SetConnection(ConnectAPI api, string key)
 {
     api.SendQuotes -= OnReceiveMemorize;
     api.SendDatum  -= OnReceiveMemorize;
     new Temporary(api, key);
 }
Exemple #6
0
 private ConfirmOrder()
 {
     InitializeComponent();
     api              = ConnectAPI.Get();
     api.SendConfirm += OnReceiveIdentify;
 }
Exemple #7
0
 public Temporary()
 {
     memo = new List <string>(32768);
     ConnectAPI.Get().SendMemorize += OnReceiveMemorize;
 }
Exemple #8
0
 public TemporaryStorage(SqlConnection sql)
 {
     this.sql = sql;
     ConnectAPI.Get().SendMemorize += OnReceiveMemorize;
 }