Exemplo n.º 1
0
 public void LoadBatchEntry(InterpSettings entry)
 {
     inputTbox.Text = entry.inPath;
     MainUiFunctions.SetOutPath(outputTbox, entry.outPath);
     interpFactorCombox.Text = entry.interpFactor.ToString();
     aiCombox.SelectedIndex  = Implementations.networks.IndexOf(Implementations.networks.Where(x => x.aiName == entry.ai.aiName).FirstOrDefault());
     SetOutMode(entry.outMode);
 }
Exemplo n.º 2
0
 public void LoadBatchEntry(InterpSettings entry)
 {
     inputTbox.Text          = entry.inPath;
     outputTbox.Text         = entry.outPath;
     interpFactorCombox.Text = entry.interpFactor.ToString();
     aiCombox.SelectedIndex  = Networks.networks.IndexOf(entry.ai);
     SetOutMode(entry.outMode);
 }
Exemplo n.º 3
0
        public InterpSettings UpdateCurrentSettings(InterpSettings settings)
        {
            SetTab("interpolate");
            string inPath = inputTbox.Text.Trim();

            if (settings.inPath != inPath)     // If path changed, get new instance
            {
                Logger.Log($"settings.inPath ({settings.inPath}) mismatches GUI inPath ({settings.inPath} - Returning fresh instance", true);
                return(GetCurrentSettings());
            }

            settings.inPath        = inPath;
            settings.ai            = GetAi();
            settings.inFpsDetected = currInFpsDetected;
            settings.inFps         = currInFps;
            settings.interpFactor  = interpFactorCombox.GetFloat();
            settings.outFps        = settings.inFps * settings.interpFactor;
            settings.outMode       = GetOutMode();
            settings.model         = GetModel(GetAi());

            return(settings);
        }