コード例 #1
0
ファイル: TextVisual.xaml.cs プロジェクト: xgalv/Cryptool2
 public TextVisual(TextModel model)
 {
     InitializeComponent();
     WindowWidth  = model.GetWidth();
     WindowHeight = model.GetHeight();
     Position     = model.GetPosition();
     if (model.BackgroundColor != null)
     {
         Color = new SolidColorBrush(model.BackgroundColor);
     }
     Model = model;
     Model.loadRTB(mainRTB);
     Model.UpdateableView = this;
 }