private void ttob_Click(object sender, RoutedEventArgs e) { binread read = new binread(BindingBox.Text, 0); binaryData.Text = read.bindisplay(); dicePreview(); }
private void textOpen_Click(object sender, RoutedEventArgs e) { //ファイル選択ダイアログを出す OpenFileDialog ofd = new OpenFileDialog(); ofd.FileName = ""; ofd.DefaultExt = "*.*"; if (ofd.ShowDialog() == true) { //バイナリ読み出しクラス binread binRead = new binread(ofd.FileName); binaryData.Text = binRead.bindisplay(); dicePreview(); } else { MessageBox.Show("テキストファイルを選択してください"); } }