private void MainForm_Load(object sender, EventArgs e)
{
WindowState = Properties.Settings.Default.WindowState;
Size = Properties.Settings.Default.WindowSize;
Location = Properties.Settings.Default.WindowLocation;
m_workingFolder = Application.StartupPath;
dataGridView1.AutoGenerateColumns = true;
Compose();
string[] cmds = Environment.GetCommandLineArgs();
if (cmds.Length > 1)
LoadFile(cmds[1]);
}