Exemplo n.º 1
0
        private void LoadData()
        {
            //Update Core Split Engine
            SCore.Splitter      = fSplit;
            SCore.TxtFileName   = SpTxtFile;
            SCore.TxtFolderName = SpTxtFolder;
            SCore.CmbSize       = CmbSize;
            SCore.CmbUnit       = CmbUnit;
            SCore.LnkFileName   = SpLnkFileName;
            SCore.LFileSize     = SpLFileSize;
            SCore.LPartsNumber  = SpLPartsNumber;
            SCore.LPartSize     = SpLPartSize;

            //Update Core Join Engine
            JCore.Joiner        = fJoin;
            JCore.TxtFileName   = JnTxtFile;
            JCore.TxtFolderName = JnTxtFolder;
            JCore.LFileName     = JnLFileName;
            JCore.LFileSize     = JnLFileSize;
            JCore.LPartsNumber  = JnLPartsNumber;
            JCore.ChkCrc        = JnChkCrc;

            UpdateProfiles();

            //Select Unit
            CmbUnit.SelectedIndex = Ini.ReadInt("splitter", "unit", 2, 0, 4);

            SCore.CheckMainFile();

            //Load Options and set there values
            ArrangeOptions();
            LoadOptions();

            startupFlag = false;
        }
Exemplo n.º 2
0
 private void SpTxtFile_TextChanged(object sender, EventArgs e)
 {
     SCore.CheckMainFile();
     if (!SCore.InvalidFile)
     {
         string path = Directory.GetParent(SpTxtFile.Text).FullName;
         if (!SpTxtFolder.Items.Contains(path))
         {
             SpTxtFolder.Items.Add(path);
         }
     }
 }
Exemplo n.º 3
0
        private void BtnSplit_Click(object sender, EventArgs e)
        {
            ResetVars();

            if (!SCore.CheckSplitter(this))
            {
                return;
            }

            //BackLayer.Show();
            long pSize;

            currentProc = 0;

            ProgBar.Value       = 0;
            fSplit.FileName     = SpTxtFile.Text;
            fSplit.OutputFolder = SpTxtFolder.Text;
            fSplit.Priority     = GetPriority();
            fSplit.IncludeSfx   = ChkSfx.Checked;

            if (OpCmbBuffer.SelectedIndex == 0)
            {
                pSize = SCore.GetPartSize();
                if (pSize > 0)
                {
                    fSplit.BufferSize = GetBestBuffer(pSize);
                }
            }
            else
            {
                fSplit.BufferSize = GetSelectedBuffer();
            }

            ShowRunPanel();
            //Calc time
            StartTime();

            fSplit.Split();
            Tmr.Enabled = true;
        }
Exemplo n.º 4
0
 private void CmbUnit_SelectedIndexChanged(object sender, EventArgs e)
 {
     SCore.UpdatePartsInfo();
 }
Exemplo n.º 5
0
 private void CmbSize_TextChanged(object sender, EventArgs e)
 {
     SCore.UpdateCmbUnit();
     SCore.UpdatePartsInfo();
 }