Exemplo n.º 1
0
 private void BeginConversion()
 {
     try
     {
         string outputPstFullPath = Path.Combine(Directory.GetCurrentDirectory(), "testpst_" + new Random(Utils.ToUnixTimeInt(DateTime.Now)).Next(100, 1000) + ".pst");
         generator = new PSTGenerator();
         generator.UpdateConvertionThreadProgressHandler += UpdateConvertionThreadProgress;
         //generator.CreatePSTFromWindowsLiveMailFolder(outputPstFullPath, @"f:\_Backups_\Tiny\Users\Gebruiker\Windows Live Mail\Kpnmail (MH ab2\");
         generator.CreatePSTFromWindowsLiveMailFolder(tbOutputFile.Text, tbInputFolder.Text);
         if (InvokeRequired)
         {
             this.Invoke(new Action(() =>
             {
                 MessageBox.Show(this, "Finished!");
                 conversionThread = null;
                 CheckConvertButtonEnabled();
             }));
         }
     }
     catch (Exception ex)
     {
         this.Invoke(new CatchExceptionDelegate(this.LogException), ex);
         conversionThread = null;
         CheckConvertButtonEnabled();
     }
 }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            CheckConvertButtonEnabled();

            generator = new PSTGenerator();
        }