public void createTBOffline(string path) { tbOffline.path = path; //tbOffline.pathFolder = tbOfflinePath; using (frmWaitForm frm = new frmWaitForm(tbOffline.createTBOfflines)) { frm.ShowDialog(this); } tbOffline.readTBOff(); }
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(); }
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); } }
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(); }
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); } }