Example #1
0
        /// <summary>
        /// 应用
        /// </summary>
        private void Apply()
        {
            String         layoutID         = "";
            List <GridRow> selectedRows     = m_gridLayouts.SelectedRows;
            int            selectedRowsSize = selectedRows.Count;

            if (selectedRowsSize > 0)
            {
                layoutID = selectedRows[0].GetCell(0).Text;
            }
            IndicatorLayout indicatorLayout = new IndicatorLayout();

            if (m_indicatorLayoutService.GetLayoutByID(layoutID, ref indicatorLayout))
            {
                m_chart.SetIndicatorLayout(indicatorLayout.m_layoutID, indicatorLayout.m_text);
            }
        }