Example #1
0
        public GBTradeLink()
        {
            TrackEnabled = Util.TrackUsage();
            Program      = PROGRAM;

            InitializeComponent();



            TradeLink.API.TLServer tls;
            if (Properties.Settings.Default.TLClientAddress == string.Empty)
            {
                tls = new TradeLink.Common.TLServer_WM();
            }
            else
            {
                tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort);
            }
            try
            {
                GB = new GrayBox(tls, this.lstStatusList, this.bt_Connect);
            }
            catch (Exception ex)
            {
                const string URL = @"http://code.google.com/p/tradelink/wiki/HoldBrosGrayBox";
                debug("problem connecting to graybox...");
                debug("please check guide at: " + URL);
                System.Diagnostics.Process.Start(URL);
                debug(ex.Message + ex.StackTrace);
            }


            UpdateLoginDetails();
            FormClosing += new FormClosingEventHandler(GBTradeLink_FormClosing);



            GB.Start();

            this.txtPasword.Focus();
        }
Example #2
0
        public GBTradeLink()
        {
            TrackEnabled = Util.TrackUsage();
            Program = PROGRAM;

            InitializeComponent();
           


            TradeLink.API.TLServer tls;
            if (Properties.Settings.Default.TLClientAddress == string.Empty)
                tls = new TradeLink.Common.TLServer_WM();
            else
                tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort);
            try
            {
            GB = new GrayBox(tls,this.lstStatusList,this.bt_Connect);
            }
            catch (Exception ex)
            {
                const string URL = @"http://code.google.com/p/tradelink/wiki/HoldBrosGrayBox";
                debug("problem connecting to graybox...");
                debug("please check guide at: " + URL);
                System.Diagnostics.Process.Start(URL);
                debug(ex.Message + ex.StackTrace);
            }


            UpdateLoginDetails();
            FormClosing += new FormClosingEventHandler(GBTradeLink_FormClosing);
           

             
            GB.Start();

            this.txtPasword.Focus() ;
            
        }