public void SetCurrentForkTale(ForkTale forktale) { _currentForkTale = forktale; CurrentNode = forktale.ParentNode; ApplyColorScheme(forktale.Global.ColorScheme); this.Title = forktale.Global.ForkTaleTitle; Maximize(forktale.Global.IsMaximized); }
public FormWPFContainer(Model.ForkTale forkTale, PopupType popupType) { InitializeComponent(); this.MainPanel.Controls.Add(_host); _forkTale = forkTale; switch (popupType) { case PopupType.Globals: ShowGlobals(forkTale.Global); break; case PopupType.Enumerations: ShowEnumerations(forkTale.Global); break; } this.MainPanel.Controls.Add(_host); }
public void New(bool askToSave = true) { if (askToSave && !AskToSave()) return; _fileName = null; _forkTale = new ForkTale(new ForkTaleNode("New ForkTale", "")); _currentNode = _forkTale.ParentNode; }
private void OpenFile(string filePath, bool askToSave) { if (filePath==null) return; if (askToSave && !AskToSave()) return; _fileName = filePath; _forkTale = (ForkTale)SaveLoad.SaveLoad.LoadForkTale(filePath); _currentNode = _forkTale.ParentNode; }
public MainWindow(ForkTale forkTale) { InitializeComponent(); SetCurrentForkTale(forkTale); }
public void New() { if (!AskToSave()) return; LoadedForkTale = new ForkTale(); }
public DesignerViewModel(Screen parentScreen) { _parentScreen = parentScreen; LoadedForkTale = new ForkTale(); }