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); }
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); }
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; }
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; }
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); }