private void ExCmdExDeleteSchdule()
        {
            int schid = CurrentSelectTimeSchduleItem.Id;

            var keys = (from t in RtuBandingTimeSchdule where t.Value == schid select t.Key).ToList();

            foreach (var t in keys)
            {
                RtuBandingTimeSchdule.Remove(t);
                if (TreeNodeRtu.Info.ContainsKey(t))
                {
                    TreeNodeRtu.Info[t].SchemeName = "--";
                    TreeNodeRtu.Info[t].IsSelected = false;
                }
            }


            foreach (var t in TimeSchdules)
            {
                if (t.Id == CurrentSelectTimeSchduleItem.Id)
                {
                    {
                        TimeSchdules.Remove(t);
                        _currentSelectTimeSchduleItem = null;
                        CurrentSelectTimeSchduleItem  = TimeSchdules.Count > 0 ? TimeSchdules[0] : null;
                        break;
                    }
                }
            }

            _dtExDeleteSchdule = DateTime.Now;
        }
        private void ExCmdExAddSchdule()
        {
            int max = 0;

            foreach (var t in TimeSchdules)
            {
                if (t.Id > max)
                {
                    max = t.Id;
                }
            }
            max += 1;

            var tmp = new TimeSchduleItem()
            {
                Id = max
            };

            TimeSchdules.Add(tmp);
            CurrentSelectTimeSchduleItem = tmp;
            _dtExAddSchdule = DateTime.Now;
        }