コード例 #1
0
 public CollectionDisplay(int id, string descr, InstanceValue instVal, bool locked = true)
 {
     _wndType = ValueWindows.WndType.List;
     _id      = id;
     InitializeComponent();
     SetLock(locked);
     UpdateInstanceValue(instVal, descr);
     Title = TypeExtractor.GetDisplayableTypeName(instVal.TypeName);
 }
コード例 #2
0
ファイル: HelpWindow.xaml.cs プロジェクト: jerzy-d/MDRDesk
 public HelpWindow(int id, string path, bool locked = false)
 {
     _wndType = ValueWindows.WndType.Help;
     _id      = id;
     _path    = path;
     InitializeComponent();
     CommandBindings.Add(new CommandBinding(NavigationCommands.GoToPage, Navigate));
     InitMarkdown();
     SetLock(locked);
     UpdateInstanceValue(null, path);
 }
コード例 #3
0
 public KeyValueCollectionDisplay(int id, string description, InstanceValue instVal, bool locked = true)
 {
     _wndType = ValueWindows.WndType.KeyValues;
     _id      = id;
     InitializeComponent();
     _lockedImg          = new Image();
     _lockedImg.Source   = ValueWindows.LockedImage.Source;
     _unlockedImg        = new Image();
     _unlockedImg.Source = ValueWindows.UnlockedImage.Source;
     UpdateInstanceValue(instVal, description);
     _locked         = locked;
     LockBtn.Content = locked ? _lockedImg : _unlockedImg;
 }
コード例 #4
0
 public ClassStructDisplay(int id, string description, InstanceValue instValue, bool locked = true)
 {
     _wndType = ValueWindows.WndType.Tree;
     _id      = id;
     _locked  = locked;
     InitializeComponent();
     _mainWindow         = GuiUtils.MainWindowInstance;
     _lockedImg          = new Image();
     _lockedImg.Source   = ValueWindows.LockedImage.Source;
     _unlockedImg        = new Image();
     _unlockedImg.Source = ValueWindows.UnlockedImage.Source;
     UpdateInstanceValue(instValue, description);
     _locked         = locked;
     LockBtn.Content = locked ? _lockedImg : _unlockedImg;
 }
コード例 #5
0
 public ContentDisplay(int id, string description, InstanceValue instVal, bool locked = true)
 {
     _wndType = ValueWindows.WndType.Content;
     _id      = id;
     InitializeComponent();
     _wordWrapped        = true;
     _instanceValue      = instVal;
     _lockedImg          = new Image();
     _lockedImg.Source   = ValueWindows.LockedImage.Source;
     _unlockedImg        = new Image();
     _unlockedImg.Source = ValueWindows.UnlockedImage.Source;
     UpdateInstanceValue(instVal, description);
     _locked         = locked;
     LockBtn.Content = locked ? _lockedImg : _unlockedImg;
     Title           = TypeExtractor.GetDisplayableTypeName(instVal.TypeName);
 }