Ejemplo n.º 1
0
 private void NewFile()
 {
     if (_envFh.Load(null))
     {
         SetDefault();
         EnvironmentFileHandler.MakeSingletonDirty();
     }
 }
Ejemplo n.º 2
0
 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());
     }
 }