示例#1
0
 public bool OnDocumentProjectClosed(bool force)
 {
     if (force || !ResourcesHandler.Project.Dirty || ShowPopupCloseDocuments(ResourcesHandler.Project, new List <Dialogue>()))
     {
         documentProject = null;
         return(true);
     }
     return(false);
 }
示例#2
0
        public void OpenDocumentProject()
        {
            if (documentProject != null)
            {
                documentProject.Activate();   //OnActiveDocumentChanged will handle the refresh
                return;
            }

            documentProject = new DocumentProject();
            documentProject.Show(dockPanel, DockState.Document);
        }
示例#3
0
        public DialogVoiceActors(DocumentProject inDocument, VoiceActor inActor)
        {
            InitializeComponent();

            document = inDocument;
            actor    = inActor;

            listBoxLanguages.DataSource    = new BindingSource(ResourcesHandler.Project.ListLanguages, null);
            listBoxLanguages.DisplayMember = "Name";

            ready = true;
        }