file editor changes

This commit is contained in:
WeeXnes 2024-06-13 11:45:35 +02:00
parent f65057350d
commit bff0928b7c

View file

@ -1,5 +1,8 @@
using System.Windows; using System;
using System.IO;
using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Forms;
namespace WeeXnes.Views.EncryptedTextEditor; namespace WeeXnes.Views.EncryptedTextEditor;
@ -12,7 +15,20 @@ public partial class TextEditorView : Page
private void Btn_openFile_OnClick(object sender, RoutedEventArgs e) private void Btn_openFile_OnClick(object sender, RoutedEventArgs e)
{ {
throw new System.NotImplementedException(); var fileContent = string.Empty;
var filePath = string.Empty;
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
openFileDialog.Filter = "WXN Text Files (*.wtf)|*.wtf";
openFileDialog.RestoreDirectory = true;
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
}
}
} }
private void Btn_saveFile_OnClick(object sender, RoutedEventArgs e) private void Btn_saveFile_OnClick(object sender, RoutedEventArgs e)