Exemple #1
0
        static public void synchroTailleRsync()
        {
            DirectoryInfo localDir = new DirectoryInfo(Var.fenetrePrincipale.textBox18.Text + @"\@FSF");
            FileInfo      rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
            //String remoteServer = "127.0.0.1";
            String remoteServer = Var.fenetrePrincipale.textBox9.Text;
            string remoteDir    = Var.fenetrePrincipale.textBox8.Text;

            RSync.RSyncCall rSyncCall = new RSync.RSyncCall(Var.fenetrePrincipale, Var.fenetrePrincipale.button25, Var.fenetrePrincipale.textBox11, Var.fenetrePrincipale.progressBar3, Var.fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir, Var.fenetrePrincipale.label77);           //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
            rSyncCall.setTotalSize(Var.fenetrePrincipale.label77);
        }
Exemple #2
0
        private static void TimerSynchroEvent(Object myObject, EventArgs myEventArgs)
        {
            Var.timerSynchro.Stop();
            Var.fenetrePrincipale.label76.Text = Var.VersionArma3Exe();

            DirectoryInfo localDir = new DirectoryInfo(Var.fenetrePrincipale.textBox18.Text + @"\@FSF");
            FileInfo      rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
            //String remoteServer = "127.0.0.1";
            String remoteServer = "server2.clan-fsf.fr";
            string remoteDir    = Var.fenetrePrincipale.textBox8.Text;

            RSync.RSyncCall rSyncCall = new RSync.RSyncCall(Var.fenetrePrincipale, Var.fenetrePrincipale.button25, Var.fenetrePrincipale.textBox11, Var.fenetrePrincipale.progressBar3, Var.fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir, Var.fenetrePrincipale.label77);            //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
            rSyncCall.setTotalSize(Var.fenetrePrincipale.label77);
            Var.timerSynchro.Start();
        }
        private static void TimerSynchroEvent(Object myObject, EventArgs myEventArgs)
        {
            Var.timerSynchro.Stop();
            Var.fenetrePrincipale.label76.Text = Var.VersionArma3Exe();

            DirectoryInfo localDir = new DirectoryInfo(Var.fenetrePrincipale.textBox18.Text+@"\@FSF");
            FileInfo rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
            //String remoteServer = "127.0.0.1";
            String remoteServer = "server2.clan-fsf.fr";
            string remoteDir = Var.fenetrePrincipale.textBox8.Text;
            RSync.RSyncCall rSyncCall = new RSync.RSyncCall(Var.fenetrePrincipale, Var.fenetrePrincipale.button25, Var.fenetrePrincipale.textBox11, Var.fenetrePrincipale.progressBar3, Var.fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir,Var.fenetrePrincipale.label77);            //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
            rSyncCall.setTotalSize(Var.fenetrePrincipale.label77);
            Var.timerSynchro.Start();
        }
 public static void synchroTailleRsync()
 {
     DirectoryInfo localDir = new DirectoryInfo(Var.fenetrePrincipale.textBox18.Text + @"\@FSF");
        FileInfo rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
        //String remoteServer = "127.0.0.1";
        String remoteServer = Var.fenetrePrincipale.textBox9.Text;
        string remoteDir = Var.fenetrePrincipale.textBox8.Text;
        RSync.RSyncCall rSyncCall = new RSync.RSyncCall(Var.fenetrePrincipale, Var.fenetrePrincipale.button25, Var.fenetrePrincipale.textBox11, Var.fenetrePrincipale.progressBar3, Var.fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir, Var.fenetrePrincipale.label77);            //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
        rSyncCall.setTotalSize(Var.fenetrePrincipale.label77);
 }
 public static void synchroRsync()
 {
     DirectoryInfo localDir = new DirectoryInfo(Var.fenetrePrincipale.textBox18.Text+@"\@GOS");
     FileInfo rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
     //String remoteServer = "127.0.0.1";
     String remoteServer = Var.fenetrePrincipale.textBox9.Text;
     string remoteDir = Var.fenetrePrincipale.textBox8.Text;
     RSync.RSyncCall rSyncCall = new RSync.RSyncCall(Var.fenetrePrincipale, Var.fenetrePrincipale.button25, Var.fenetrePrincipale.textBox11, Var.fenetrePrincipale.progressBar3, Var.fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir,Var.fenetrePrincipale.label77,Var.fenetrePrincipale.labelVitesseSynchro);            //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
     rSyncCall.setTotalSize(Var.fenetrePrincipale.label77);
     rSyncCall.addControlToDisable(Var.fenetrePrincipale.labelSynchroEnCoursInvisible);
     rSyncCall.start();
 }
        public static void synchroRsyncTaille(string NomRep, Button BoutonSender, ProgressBar ProgressDetail, ProgressBar ProgressGeneral, Control labelTailleSynchro, Control labelVitesseSynchro)
        {
            DirectoryInfo localDir = new DirectoryInfo(cheminARMA3 + @"\@FSF\" + NomRep);
            FileInfo rsyncExe = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"rsync\rsync.exe");
            //String remoteServer = "127.0.0.1";
            String remoteServer = serveurSynchroIP();
            string arguments = "-vza";
            string remoteDir = NomRep.ToUpper();

            if (NomRep == "")
            {
                remoteDir = "@FSF";
                arguments = "";
                if (!FSFLauncherCore.fenetrePrincipale.checkBox_SyncBETA.Checked) { arguments += "--exclude '@TEST/' "; }
                if (!FSFLauncherCore.fenetrePrincipale.checkBox_SyncINTERCLAN.Checked) { arguments += "--exclude '@INTERCLAN/' "; }
                arguments += " -za";
            };

            RSync.RSyncCall rSyncCall = new RSync.RSyncCall(arguments, FSFLauncherCore.fenetrePrincipale, BoutonSender, FSFLauncherCore.fenetrePrincipale.textBox11, ProgressDetail, ProgressGeneral, rsyncExe, remoteServer, remoteDir, localDir, labelTailleSynchro, labelVitesseSynchro);            //new RSync.RSyncCall(fenetrePrincipale, BoutonSender, fenetrePrincipale.textBox11, fenetrePrincipale.progressBar3, fenetrePrincipale.progressBar2, rsyncExe, remoteServer, remoteDir, localDir);
            rSyncCall.setTotalSize(labelTailleSynchro);
        }