예제 #1
0
        public TradeProvider(DataAgent DataAgent)
        {
            try
            {
                _DataEncode = true;

                _DataAgent = DataAgent;


                _SAEA        = _DataAgent.SAEAServer;
                _AccountCore = _DataAgent.AccountCore;



                SignVerifyExcute = new SignVerifyHandler(SignVerify);
            }
            catch (Exception ex)
            {
                WriteLog("DataAgentLog", "TradeStringHandler:" + ex.Message + ex.StackTrace.ToString() + ex.Source.ToString());
            }
        }
예제 #2
0
        public MainForm()
        {
            InitializeComponent();

            this.Text += "(V" + Application.ProductVersion + ")";
            UIProvider DI = new UIProvider();

            DI.frmMainForm    = this;
            DI.lstSysMsg      = this.lstSysMsg;
            DI.lstConnections = this.lstConnections;
            DI.DgvStatus      = this.dgvStatus;

            this._DataAgent = new DataAgent(DI);

            DataTable dt = new DataTable();

            dt.Columns.Add("ConnectionName");
            dt.Columns.Add("ConnectionIp");

            dt.Columns.Add("ConnectionStatus");
            dt.Columns.Add("ConnectionRemark");

            dt.PrimaryKey             = new DataColumn[] { dt.Columns["ConnectionName"] };
            this.dgvStatus.DataSource = dt;
            this.dgvStatus.Columns["ConnectionName"].Width      = 200;
            this.dgvStatus.Columns["ConnectionName"].HeaderText = "名稱";
            this.dgvStatus.Columns["ConnectionIp"].Width        = 100;
            this.dgvStatus.Columns["ConnectionIp"].HeaderText   = "位置";

            this.dgvStatus.Columns["ConnectionStatus"].Width      = 150;
            this.dgvStatus.Columns["ConnectionStatus"].HeaderText = "狀態";
            this.dgvStatus.Columns["ConnectionRemark"].Width      = 500;
            this.dgvStatus.Columns["ConnectionRemark"].HeaderText = "說明";
            this.dgvStatus.ReadOnly           = true;
            this.dgvStatus.AllowUserToAddRows = false;
            initdata();
            form = this;
        }