Exemplo n.º 1
0
        void AddLastAndSelect(RecorderSettings recorder, string desiredName, bool enabled)
        {
            recorder.name    = GetUniqueRecorderName(desiredName);
            recorder.Enabled = enabled;
            m_ControllerSettings.AddRecorderSettings(recorder);

            var item = CreateRecorderItem(recorder);

            m_RecordingListItem.Add(item);
            m_RecordingListItem.selection = item;
            m_RecordingListItem.Focus();
        }
Exemplo n.º 2
0
        internal void AppyTo(RecorderControllerSettings prefs)
        {
            prefs.ReleaseRecorderSettings();

            m_Model.ApplyTo(prefs);

            foreach (var rp in m_RecorderPresets)
            {
                var r = (RecorderSettings)CreateFromPreset(rp);
                prefs.AddRecorderSettings(r);
            }

            prefs.Save();
        }