public void btn_Click(object sender, RoutedEventArgs e) { String unitName = sender.ToString(); unitName = unitName.Replace("System.Windows.Controls.Button: ", ""); int x = unitName.IndexOf("."); unitName = unitName.Remove(0, x + 1); DinoPageWindow mainDialog = new DinoPageWindow(); mainDialog.Show(); this.Owner = mainDialog; mainDialog.pageShow(subjectName2, unitName, epubFileName1, epubCurrentPageLeft1); this.Close(); }
private void enterButton_Click(object sender, RoutedEventArgs e) { string unitName = nameBox.Text; System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ContentsData\\Note\\" + subjectName + "\\" + unitName); di.Create(); System.IO.DirectoryInfo imageDI = new System.IO.DirectoryInfo(System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ContentsData\\Note\\" + subjectName + "\\" + unitName + "\\image"); imageDI.Create(); System.IO.DirectoryInfo imageTBDI = new System.IO.DirectoryInfo(System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ContentsData\\Note\\" + subjectName + "\\" + unitName + "\\imageTB"); imageTBDI.Create(); DinoPageWindow mainDialog = new DinoPageWindow(); mainDialog.Show(); this.Owner = mainDialog; mainDialog.pageShow(subjectName, unitName, epubFileName1, epubCurrentPageLeft1); this.Close(); }
//デジタルノート起動 private void RaunchDinoButton_Click(object sender, RoutedEventArgs e) { notePath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\ContentsData\\Note"; //note4.MainWindow dinoDalog = new note4.MainWindow(); //dinoDalog.Show(); //dinoDalog.isfShow(subjectName, "1.isf", notePath + "\\" + subjectName + "\\" + unitName[currentPageLeft]); if (dinoNowOpening.Contains("none")) { if (drawingFlag) { BrowserCapture(); } DinoPageWindow dinoPageWin = new DinoPageWindow(); dinoPageWin.Show(); dinoPageWin.pageShow(subjectName, unitName[currentPageSingle], epubFileName, currentPageSingle); this.Close(); } else { if (drawingFlag) { BrowserCapture(); } DinoMainWindow dinoMainWin = new DinoMainWindow(); dinoMainWin.Show(); dinoMainWin.isfShow(subjectName, dinoNowOpening, notePath + "\\" + subjectName + "\\" + unitName[currentPageSingle], unitName[currentPageSingle], epubFileName, currentPageSingle); this.Close(); } }