public void SetDefault()
 {
     ((IFileHandler <SPSDConfiguration>)configurationTab).SetDefault();
     ((IFileHandler <SPSDEnvironment>)environmentTab).SetDefault();
     ((IFileHandler <SPSDSiteStructures>)siteStructuresTab).SetDefault();
     _envFh.Clean();
 }
 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());
     }
 }