示例#1
0
        void frmGroupSelect_OnFormBtnOkClick(object sender, EventArgsFrmSelectTimeTable args)
        {
            var tmp = args.Info;

            if (tmp == null)
            {
                return;
            }

            if (this.Model != null && tmp.CurrentSelectItem != null)
            {
                Model.UpdateNodeTimeTable(tmp.SelectRtuOrGroupId, tmp.SelectKloop, tmp.CurrentSelectItem.Id,
                                          tmp.CurrentSelectItem.Name, tmp.CurrentSelectItem.NameDesc);
            }
        }
示例#2
0
        void GroupWatchTimeTableView_OnFormBtnOkClick(object sender, EventArgsFrmSelectTimeTable args)
        {
            var tmp = args.Info;

            if (tmp == null)
            {
                return;
            }

            for (int i = 0; i < tmp.TimeTableComboBoxSelected.Count; i++)
            {
                if (this.Model != null && tmp.TimeTableComboBoxSelected[i] != null)
                {
                    Model.UpdateNodeTimeTable(tmp.SelectRtuOrGroupId, i + 1, tmp.TimeTableComboBoxSelected[i].Id,
                                              tmp.TimeTableComboBoxSelected[i].Name, tmp.TimeTableComboBoxSelected[i].NameDesc);
                }
            }
        }