protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                TabController.Save();
            }

            base.Dispose(disposing);
        }
Beispiel #2
0
 private void setGameDataPathDialog()
 {
     ImGui.PushItemWidth(-1);
     ImGui.InputText("##gamedata", ref _gameDataPathFieldValue, 1024);
     ImGui.PopItemWidth();
     ImGui.Spacing();
     ImGui.SameLine(ImGui.GetWindowWidth() - 30);
     if (ImGui.Button("Ok"))
     {
         _configController.Config.GameDataPath = _gameDataPathFieldValue;
         _configController.Save();
         destroyModal("Set game data path...");
     }
 }
        private void btn_ok_config_Click(object sender, EventArgs e)
        {
            //aply values
            _config.PathSaveVideo       = GetPath(txt_dir.Text);
            _config.TimeInterval        = bar_timer.Value;
            _config.FrameRate           = bar_frame_rate.Value;
            _config.BitRate             = bar_bit_rate.Value * 1000;
            _config.EnableInterval      = chk_enable_timer.Checked;
            _config.EnableServer        = chk_web_difusion.Checked;
            _config.EnableCompressVideo = chk_enable_compress.Checked;
            _config.ViewLegend          = chk_date_time.Checked;
            _config.Font = new Font(_config.Font.FontFamily, int.Parse(cmb_font.Text));
            _config.SeparateRegistersCameras = chk_separate_registers_cameras.Checked;
            _config.FolderFormat             = GetFormat();
            _config.LegendAlign = GetAlign();
            _config.State       = EDbState.Update;

            _controller.Save(_config);

            Close();
        }
Beispiel #4
0
 protected override void OnDestroyed()
 {
     TabController.Save();
     base.OnDestroyed();
 }
Beispiel #5
0
 public void SaveConfig() => _config.Save(Config);
Beispiel #6
0
 public void EndProcess()
 {
     _coreConfigSection.LastBuild = DateTime.Now.ToString("d.M.yyyy - HH:mm");
     _configController.Save();
 }