예제 #1
0
        private void Query()
        {
            if (Check())
            {
                DataTable tbl = GetData();
                H.DataSource = tbl;
                H.Bind();

                H2.DataSource = this.DeviceFormulaCollectionMap.FormulaCollection;
                H2.Bind();

                if (this.DeviceFormulaCollectionMap.FormulaCollection.Count > 0)
                {
                    this.panelFormula.Visible   = true;
                    this.panelNoFormula.Visible = false;
                }
                else
                {
                    this.panelFormula.Visible   = false;
                    this.panelNoFormula.Visible = true;
                }
            }
        }