示例#1
0
文件: Types.cs 项目: jgennari/NCR
 public DVDRip(string RipDrive, string VolumeName, Types.Settings Settings, Process RipProcess)
 {
     this.RipProcess = RipProcess;
     this.RipDrive = RipDrive;
     this.VolumeName = VolumeName;
     this.Settings = Settings;
 }
示例#2
0
文件: frmMain.cs 项目: jgennari/NCR
        public static void SetSettings(Types.Settings sett)
        {
            frmMain main = (frmMain)Application.OpenForms["frmMain"];

            main.tbHandbrakeArgs.Text = sett.Arguments;
            main.domConcurrent.Text = sett.ConcurrentRips.ToString();

            if (sett.NCRRunning)
                main.btnNCROn_Click(null, null);

            // v0.2
            try
            {
                main.cbMode.SelectedIndex = main.cbMode.Items.IndexOf(sett.Mode);
                main.cbAskNotFound.Checked = sett.AskNotFound;
            }
            catch
            {
                main.cbMode.SelectedIndex = 0;
                main.cbAskNotFound.Checked = true;
            }

            // v0.1
            main.cbProtect.Checked = sett.ProtechNCR;
            main.cbCleanUp.Checked = sett.EmptyWorking;
            main.cbHideOnStart.Checked = sett.HideOnStart;
            main.cbContainer.SelectedIndex = main.cbContainer.Items.IndexOf(sett.Container);
            main.tbCoverName.Text = sett.CoverName;
            main.cbDVDID.SelectedIndex =  main.cbDVDID.Items.IndexOf(sett.DVDID);
            main.cbEjectDuplicates.Checked = sett.EjectDuplicates;
            main.cbExportCover.Checked = sett.ExportCover;
            main.cbExportDVDID.Checked = sett.ExportDVDXML;
            main.tbFinalDirectory.Text = sett.FinalDir;
            main.tbHandBrakeDirectory.Text = sett.HandBrakeDir;
            main.cbMoveToFinal.Checked = sett.MoveToFinal;
            main.cbEjectOnCompletion.Checked = sett.OpenCD;
            main.ProcessPath = sett.ProcessPath;
            main.cbQuality.SelectedIndex = main.cbQuality.Items.IndexOf(sett.Quality);
            main.cbCleanDVDXML.Checked = sett.RemoveDVDXMLExtra;
            main.tbWorkingDirectory.Text = sett.WorkingDir;
            main.tbXMLDVDUsername.Text = sett.DVDXMLUsername;
            main.tbXMLDVDPassword.Text = sett.DVDXMLPassword;
            main.cbOpenWithWindows.Checked = sett.OpenWithWindows;
            main.cbSupress.Checked = sett.SupressErrors;

            if (sett.LookupType == "DVD")
                main.rbDVDSupplied.Checked = true;
            else if (sett.LookupType == "DVDXML")
                main.rbDVDXML.Checked = true;
            else if (sett.LookupType == "USER")
                main.rbUserSupplied.Checked = true;
        }