Esempio n. 1
0
        /// <summary>
        /// 加载ComboBox内容
        ///
        /// </summary>
        public void LoadComboBox()
        {
            var TypeSource = TaskHandle.GetInOutType();

            ComboBox_TaskType.SetItemsSource(TypeSource);

            DataGrid.InOutType = TypeSource[0].InOutType;

            ComboBox_TaskType.SelectCallBack = (InOutType) =>
            {
                if (InOutType == null)
                {
                    return;
                }
                DataGrid.InOutType = InOutType.InOutType;
            };

            var AreaSource = TaskHandle.GetArea();

            ComboBox_TaskArea.SetItemsSource(AreaSource);

            DataGrid.Area = AreaSource[0].Area;

            ComboBox_TaskArea.SelectCallBack = (Area) =>
            {
                if (Area == null)
                {
                    return;
                }
                DataGrid.Area = Area.Area;
            };
        }
Esempio n. 2
0
        /// <summary>
        /// 加载ComboBox内容
        ///
        /// </summary>
        public void LoadComboBox()
        {
            var TypeSource = TaskHandle.GetInOutType();

            ComboBox_DeviceType.SetItemsSource(TypeSource);

            DataGrid.InOutType = TypeSource[0].InOutType;

            ComboBox_DeviceType.SelectCallBack = (InOutType) =>
            {
                if (InOutType == null)
                {
                    return;
                }
                DataGrid.InOutType = InOutType.InOutType;
            };
        }