Пример #1
0
        static void Main(string[] args)
        {
            Logger.getLogger().log(AssemblyHelper.About(System.Reflection.Assembly.GetExecutingAssembly()));
            if (args.Length != 2)
            {
                Logger.getLogger().log("Usage: CFSRestore <firstfile> <destdir>");
                return;
            }
            CFSRestore resto = new CFSRestore();

            resto.Restore(args[0], args[1]);
        }
Пример #2
0
 private void pbGo_Click(object sender, EventArgs e)
 {
     myLogger = new GuiLogger(false);
     myLogger.CFSLog += new CFSLogHandler(GuiLogger_CFSLog);
     this.tbLog.Text = "starting to restore from " + tbFirstFile.Text + " to " + tbOutPath.Text;
     yourLogger = Logger.setLogger(myLogger);
     restorer = new CFSRestore(tbFirstFile.Text, tbOutPath.Text);
     restorer.CFSRestoreCompletion += new CFSRestoreCompletionHandler(CFSRestore_CFSRestoreCompletion);
     restoThread = new Thread(new ThreadStart(restorer.Restore));
     busy = true;
     restoThread.Start();
     Thread.Sleep(500);
     manageGuiState();
 }