static void OnTextDataChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            DescriptionObject me = sender as DescriptionObject;

            if (me != null && !me.Updating)
            {
                me.Updating = true;
                me.Text     = me.TextData.Replace("\r\n", "^");
                me.Updating = false;
            }
        }
Esempio n. 2
0
 public Vessel()
 {
     Art = new ArtDefinition();
     InternalDefinition = new InternalData();
     Shields            = new ShieldData();
     Performance        = new PerformanceData();
     BeamPorts          = new ObservableCollection <BeamPort>();
     Torpedoes          = new ObservableCollection <TorpedoStorage>();
     TorpedoTubes       = new ObservableCollection <VectorObject>();
     EnginePorts        = new ObservableCollection <VectorObject>();
     Description        = new DescriptionObject();
 }