public void Init(TreeNode node, ForkTaleViewModel viewmodel) { _currentTreeNode = node; _viewModel = viewmodel; UpButton.Enabled = _currentTreeNode.Parent != null; BindNodeToFields(); }
public ForkTaleDesigner() { InitializeComponent(); viewModel = new ForkTaleViewModel(); RebootTree(); nodeDisplay.Init(MainTree.Nodes[0], viewModel); var toolTip = new ToolTip(); toolTip.SetToolTip(TestButton, "Test your ForkTale as user would play it."); toolTip.SetToolTip(MainTree, "The ForkTale tree allows for easy navigation amongst your ForkTale."); toolTip.SetToolTip(NewButton, "Creates a new ForkTale."); toolTip.SetToolTip(LoadButton, "Loads an existing ForkTale file."); toolTip.SetToolTip(SaveButton, "Saves your current ForkTale."); toolTip.SetToolTip(SaveAsButton, "Saves your current ForkTale into a new file."); toolTip.SetToolTip(CloseButton, "Exits the ForkTaleDesigner."); }