public bool OnDocumentProjectClosed(bool force) { if (force || !ResourcesHandler.Project.Dirty || ShowPopupCloseDocuments(ResourcesHandler.Project, new List <Dialogue>())) { documentProject = null; return(true); } return(false); }
public void OpenDocumentProject() { if (documentProject != null) { documentProject.Activate(); //OnActiveDocumentChanged will handle the refresh return; } documentProject = new DocumentProject(); documentProject.Show(dockPanel, DockState.Document); }
public DialogVoiceActors(DocumentProject inDocument, VoiceActor inActor) { InitializeComponent(); document = inDocument; actor = inActor; listBoxLanguages.DataSource = new BindingSource(ResourcesHandler.Project.ListLanguages, null); listBoxLanguages.DisplayMember = "Name"; ready = true; }