2024-05-11 23:20:06 -07:00
using CefSharp ;
using CefSharp.WinForms ;
2024-05-11 16:00:45 -07:00
namespace MintHTML
{
public partial class Form1 : Form
{
public Form1 ( )
{
InitializeComponent ( ) ;
}
2024-05-11 16:12:18 -07:00
2024-05-11 16:41:08 -07:00
private void aboutToolStripMenuItem_Click ( object sender , EventArgs e )
{
MessageBox . Show ( "MintHTML is a simple Markdown converter and renderer made by SweeZero." , "About" , MessageBoxButtons . OK ) ;
}
private void button2_Click ( object sender , EventArgs e )
{
Opener . ShowDialog ( ) ;
textBox2 . Text = Opener . FileName ;
}
private void button1_Click ( object sender , EventArgs e )
{
Saver . ShowDialog ( ) ;
textBox1 . Text = Saver . FileName ;
2024-05-11 23:20:06 -07:00
}
private void chromiumWebBrowser1_LoadingStateChanged ( object sender , CefSharp . LoadingStateChangedEventArgs e )
{
}
private void Form1_Load ( object sender , EventArgs e )
{
chromiumWebBrowser1 . LoadHtml ( "<style>html{font-family: sans-serif}</style><h1>MintHTML</h1><p>Open a markdown file and press \"Render preview\" to see the output here.</p>" ) ;
}
private void button3_Click ( object sender , EventArgs e )
{
2024-05-11 16:41:08 -07:00
}
2024-05-11 16:00:45 -07:00
}
}