Exemplo n.º 1
0
        private void RefreshBanner()
        {
            if (xaSession.session.IsConnected())
            {
                KeyValuePair <string, string> kvp = (KeyValuePair <string, string>)comboDate.SelectedItem;

                this.Title = String.Format("{0} 옵션 시세 전광판", kvp.Key);
                string date = kvp.Value;

                gridSidebar.IsHitTestVisible = false;
                stackCheck.Children.Clear();
                gridMain.Children.Clear();

                xaQuery           = new QueryControl("t2301", "");
                xaQuery.Response += xaQuery_Response;
                xaQuery.query.SetFieldData("t2301InBlock", "yyyymm", 0, date);
                xaQuery.query.Request(false);
            }
        }
Exemplo n.º 2
0
        public CustomDataGrid(string title, string code)
        {
            InitializeComponent();

            this.textTitle.Text = title;
            this.ShortCode      = code;

            query           = new QueryControl("t2203", code);
            query.Title     = title;
            query.Response += DateQuery_Response;

            query.query.SetFieldData("t2203InBlock", "shcode", 0, code);
            query.query.SetFieldData("t2203InBlock", "cnt", 0, "20");

            query.real.ResFileName = String.Format(".\\res\\OC0.res");
            query.real.SetFieldData("InBlock", "optcode", code);
            query.ResponseAdvise += query_ResponseAdvise;
            query.real.AdviseRealData();

            query.query.Request(false);
        }