C
C#11mo ago
Tormenator1

Print statements not appearing in terminal of Eto application.

I'm using Eto to create a basic GUI,however,I'm running into an odd issue.
var clickMe = new Command { MenuText = "Open", ToolBarText = "Open" };
clickMe.Executed += (sender, e) =>
{
Console.WriteLine("Clickme activated");
var result = openFileDialog.ShowDialog(Application.Instance.MainForm);
if (result == DialogResult.Ok)
{
Console.WriteLine("OK pressed");
// Handle the selected file(s) here
var selectedFiles = openFileDialog.Filenames;
string pass = string.Join("",selectedFiles);
FileAnalyze.InitalProc(pass);
}
else{
Console.WriteLine("failstate");
}
};
var clickMe = new Command { MenuText = "Open", ToolBarText = "Open" };
clickMe.Executed += (sender, e) =>
{
Console.WriteLine("Clickme activated");
var result = openFileDialog.ShowDialog(Application.Instance.MainForm);
if (result == DialogResult.Ok)
{
Console.WriteLine("OK pressed");
// Handle the selected file(s) here
var selectedFiles = openFileDialog.Filenames;
string pass = string.Join("",selectedFiles);
FileAnalyze.InitalProc(pass);
}
else{
Console.WriteLine("failstate");
}
};
When I press the corresponding button and open the dialog,none of these print statements execute,and I'm unsure why.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server