public GraphicalConversationEditor(Conversation conversation, GCEPresentation presentation) { InitializeComponent(); this.conversation = conversation; Connections = new List <PanelConnection>(); PanelConnection.SetWorkspace(Workspace); GCEPresentation.Workspace = Workspace; LoadPresentation(presentation); ScrollViewer.ScrollToVerticalOffset(Workspace.Height / 2); ScrollViewer.ScrollToHorizontalOffset(Workspace.Width / 2); WelcomeText.Visibility = Visibility.Collapsed; UpdateStartStatementsSequence(); }
// -------- Start -------- public GraphicalConversationEditor(Conversation conversation = null) { InitializeComponent(); if (conversation == null) { this.conversation = new Conversation("test", 1906); Project.Quest.Conversations.Add(conversation); } else { this.conversation = conversation; } ScrollViewer.ScrollToVerticalOffset(Workspace.Height / 2); ScrollViewer.ScrollToHorizontalOffset(Workspace.Width / 2); PanelConnection.SetWorkspace(Workspace); Connections = new List <PanelConnection>(); }
// ---- public void InvokeWorkspace() { PanelConnection.SetWorkspace(Workspace); }