public frmMain(bool silentMode, bool noMonitor, string key, string fileName) { try { IO.Log(string.Format("Starting Doku4Signatures: ({0},{1},{2},{3})", silentMode, noMonitor, key, fileName)); InitializeComponent(); iomh = new IOMonitorHelper(); if (silentMode == true) { WindowState = FormWindowState.Minimized; ShowInTaskbar = false; } if (!noMonitor) { iomh.StartMonitor(Path.Combine(IO.AppRootDirectory(), "Temp")); } if (!string.IsNullOrWhiteSpace(key)) { txtKey.Text = key; } else { txtKey.Text = ConfigurationManager.AppSettings["DefaultProcessor"]; } if (!string.IsNullOrWhiteSpace(fileName)) { txtFileName.Text = fileName; } Process(key, fileName); } catch (Exception ex) { ShowError(ex); } }