Beispiel #1
0
        public OpenDealsBlotter(string TOKEN, string USERID)
        {
            this.TOKEN  = TOKEN;
            this.USERID = USERID;
            DATABASE    = new DataBase(USERID);

            string[] SArray = Directory.GetFiles(DATABASE.Directory_Deals);

            foreach (string s in SArray)
            {
                string DealID = Path.GetFileNameWithoutExtension(s);
                Deals  Ds     = DATABASE.Load_Deals(DealID);

                if (Ds != null && Ds.DealReference == DealID)
                {
                    DATA.Add(Ds);
                }
            }
        }
Beispiel #2
0
        public Form1()
        {
            DATABASE = new DataBase(USERID);

            ACCOUNT = DATABASE.Load_Account(USERID);
            if (ACCOUNT == null)
            {
                ACCOUNT = new Account();
            }

            CEDA_Authentyficator.ApplicationName = APPNAME;
            CEDA_Authentyficator.IPAddress       = "demorates.efxnow.com";// "87.205.102.39";
            CEDA_Authentyficator.Language        = "English";
            CEDA_Authentyficator.MachineName     = "EUROCOM";


            this.StartConnection();



            InitializeComponent();



            PSBlotter = new ProductsSettingsBlotter(TOKEN);
            ODBlotter = new OpenDealsBlotter(TOKEN, USERID);
            ORBlotter = new OpenRatesBlotter();


            this.SendString(TOKEN + "\r");
            this.UpdateDeals();
            this.UpdateAccount();



            TimrStartup.Enabled = true;
        }
Beispiel #3
0
 public Archive(string TOKEN, string USERID, List <string> LSProducts)
 {
     this.TOKEN      = TOKEN;
     DATABASE        = new DataBase(USERID);
     this.LSProducts = LSProducts;
 }