コード例 #1
0
 public void createTBOffline(string path)
 {
     tbOffline.path = path;
     //tbOffline.pathFolder = tbOfflinePath;
     using (frmWaitForm frm = new frmWaitForm(tbOffline.createTBOfflines))
     {
         frm.ShowDialog(this);
     }
     tbOffline.readTBOff();
 }
コード例 #2
0
 private void openFile(file a)
 {
     mainForm.setAndReadCurrentFileProject(a);
     this.Hide();
     using (frmWaitForm frm = new frmWaitForm(mainForm.readContentFile))
     {
         //mainForm.readContentFile();
         frm.ShowDialog(this);
     }
     closeForm();
     mainForm.openEditorForm();
 }
コード例 #3
0
 private void CreateTranslationFile_Click(object sender, EventArgs e)
 {
     if (project != null)
     {
         using (frmWaitForm frm = new frmWaitForm(project.createTranslatedDocument))
         {
             frm.ShowDialog(this);
         }
         //project.createTranslatedDocument();
         TextOfMessageBox a = new TextOfMessageBox();
         MessageBox.Show(a.CREATE_TRASLATED_DOCUMENT_SUCCESSFULLY, "Thông báo", MessageBoxButtons.YesNo);
     }
 }
コード例 #4
0
 private void openFile(file a)
 {
     mainForm.setAndReadCurrentFileProject(a);
     this.Hide();
     using (frmWaitForm frm = new frmWaitForm(mainForm.readContentFile))
     {
         //mainForm.readContentFile();
         frm.ShowDialog(this);
     }
     closeForm();
     mainForm.openEditorForm();
     mainForm.openRawForm();
     mainForm.openWebBrowserForm();
     //mainForm.openPreviewForm();
     mainForm.writeContentToRichTextBoxRawForm();
     //mainForm.writeContentToRichTextBoxPreviewForm();
 }
コード例 #5
0
        public void createTranslationDocument()
        {
            List <Segment> segments = new List <Segment>();

            segments = editorForm.getListSegment();
            //List<Segment> listSegs = new List<Segment>();
            //listSegs = editorForm.getListSegment();
            project.reWriteListSegment(segments);
            using (frmWaitForm frm = new frmWaitForm(project.createTranslatedDocument))
            {
                frm.ShowDialog(this);
            }
            //project.createTranslatedDocument();
            TextOfMessageBox a            = new TextOfMessageBox();
            DialogResult     dialogResult = MessageBox.Show(a.CREATE_TRASLATED_DOCUMENT_SUCCESSFULLY, "Thông báo", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                string path = this.project.getPathTargetFolder();
                Process.Start(path);
            }
        }