private void NewFile()
 {
     if (_envFh.Load(null))
     {
         SetDefault();
         EnvironmentFileHandler.MakeSingletonDirty();
     }
 }
 public Editor()
 {
     _envFh = new EnvironmentFileHandler(this);
     _envFh.FileOperationCompleted += EnvFh_FileOperationCompleted;
     InitializeComponent();
     string[] args = Environment.GetCommandLineArgs();
     try
     {
         if (args.Length > 1)
         {
             FileInfo fi = new FileInfo(args[1]);
             SetDefault();
             _envFh.Load(fi.FullName);
         }
         else
         {
             _envFh.Clean();
             NewFile();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }