Beispiel #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            PuppetMasterCore core   = new PuppetMasterCore();
            PuppetInterface  interf = new PuppetInterface(core);

            core.Interf = interf;

            //Usar para lancar as aplicacoes todas
            core.AppManager.LaunchServers();

            String STORAGE_DIR      = "C:/PADIFS/";
            String STORAGE_DIR_TEMP = "C:/PADIFS-OLD/";

            if (Directory.Exists(STORAGE_DIR_TEMP))
            {
                Directory.Delete(STORAGE_DIR_TEMP, true);
            }
            if (!Directory.Exists(STORAGE_DIR))
            {
                Directory.CreateDirectory(STORAGE_DIR);
            }
            Directory.Move(STORAGE_DIR, STORAGE_DIR_TEMP);
            Directory.CreateDirectory(STORAGE_DIR);


            //Manter comentado para lancar pelos comandos
            //Usar em caso de debug de 1 instancia cada
            //core.AppManager.LoadLocalServers();
            Application.Run(interf);
        }
Beispiel #2
0
 public PuppetInterface(PuppetMasterCore puppet)
 {
     InitializeComponent();
     Puppet = puppet;
 }