Пример #1
0
        public override ObservableCollection<SegmentPart> CreateSegmentValues()
        {
            if(_declinationPart == null)
            {
                _declinationPart = new SegmentPart();
                _declinationPart.Caption = "Declination : ";
                _declinationPart.Value = this.Declination;
            }

            if(_rightAscensionPart == null)
            {
                _rightAscensionPart = new SegmentPart();
                _rightAscensionPart.Caption = "Right ascension : ";
                _rightAscensionPart.Value = this.RightAscension;
            }

            _parts.Add(_declinationPart);
            _parts.Add(_rightAscensionPart);

            return _parts;
        }
Пример #2
0
 public override void DestroySegmentValues()
 {
     _parts.Clear();
     _declinationPart = null;
     _rightAscensionPart = null;
 }
Пример #3
0
 public override void DestroySegmentValues()
 {
     _parts.Clear();
     _radiusPart = null;
 }
Пример #4
0
        public override ObservableCollection<SegmentPart> CreateSegmentValues()
        {
            if (_radiusPart == null)
            {
                _radiusPart = new SegmentPart();
                _radiusPart.Caption = "Radius : ";
                _radiusPart.Value = this.Radius.ToString();
            }

            _parts.Add(_radiusPart);

            return _parts;
        }
Пример #5
0
 public override void DestroySegmentValues()
 {
     _parts.Clear();
     _objectNamePart = null;
 }
Пример #6
0
        public override ObservableCollection<SegmentPart> CreateSegmentValues()
        {
            if(_objectNamePart == null)
            {
                _objectNamePart = new SegmentPart();
                _objectNamePart.Caption = "Object name : ";
                _objectNamePart.Value = this.ObjectName;
            }

            _parts.Add(_objectNamePart);

            return _parts;
        }
Пример #7
0
 public override void DestroySegmentValues()
 {
     _parts.Clear();
     _selectedItemPart = null;
 }
Пример #8
0
        public override ObservableCollection<SegmentPart> CreateSegmentValues()
        {
            if (_selectedItemPart == null)
            {
                _selectedItemPart = new SegmentPart();
                _selectedItemPart.Caption = "Equinox : ";
                _selectedItemPart.Value = this.SelectedItem;
            }

            _parts.Add(_selectedItemPart);

            return _parts;
        }