public MainWindow()
        {
            InitializeComponent();

            InitializeTextEditor();

            stm = new StoryTreeManager(SP_TreeView, dragonCollection, TE_Area1, TE_Area2);

            id.Hide();
        }
 public StoryButton(DragonObject drgObj, bool isWriter, StoryTreeManager stm, DragonTextEditor tb1, DragonTextEditor tb2)
 {
     this.drgObj                = drgObj;
     this.isWriter              = isWriter;
     this.stm                   = stm;
     this.tb1                   = tb1;
     this.tb2                   = tb2;
     Content                    = isWriter ? drgObj.writer : drgObj.storyName;
     HorizontalAlignment        = HorizontalAlignment.Right;
     HorizontalContentAlignment = HorizontalAlignment.Left;
     Background                 = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#00DDDDDD"));
     BorderBrush                = new SolidColorBrush(Color.FromRgb(255, 255, 255));
     Foreground                 = new SolidColorBrush(Color.FromRgb(255, 255, 255));
     FontWeight                 = FontWeights.Bold;
     FontSize                   = 20;
     Height     = isWriter ? 36 : 0;
     Visibility = isWriter ? Visibility.Visible : Visibility.Hidden;
     Width      = isWriter ? 320 : 300;
     Margin     = new Thickness(0, 0, 0, 0);
     Click     += StoryButton_Click;
 }