file editor changes
This commit is contained in:
parent
f65057350d
commit
bff0928b7c
1 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
using System.Windows;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WeeXnes.Views.EncryptedTextEditor;
|
||||
|
||||
|
@ -12,7 +15,20 @@ public partial class TextEditorView : Page
|
|||
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue