Ejemplo n.º 1
0
        private void LoadCurrentSetting()
        {
            Setting s = SettingBLL.ReturnSetting();

            chk_autorun.Checked           = s.Autorun;
            chk_auto_synchro.Checked      = s.AutoSynchro;
            chk_save_delete.Checked       = s.AutoClearAndBackup;
            chk_rattach.Checked           = s.AutoRattach;
            chk_add_enroller_auto.Checked = s.AddEnrollAuto;
            chk_auto_backup.Checked       = s.AutoBackupDevice;
            chk_connect.Checked           = s.CheckConnect;
            chk_use_tampon_log.Checked    = s.UseFileTamponLog;
            chk_connect_synchro.Checked   = s.AutoCheckConnectAndSynchro;
            chk_create_service.Checked    = s.CreateService;
            dtp_time_synchro_auto.Value   = s.TimeSynchroAuto != null ? (!s.TimeSynchroAuto.ToShortDateString().Equals("01/01/0001") ? s.TimeSynchroAuto : DateTime.Now) : DateTime.Now;
            dtp_time_synchro_auto.Enabled = s.AutoCheckConnectAndSynchro;
            string path = s.CheminPhoto;

            if (path != null ? path.Trim().Equals("") : true)
            {
                //C:\Users\Administrateur\lymytz\CCOS.A\documents\docEmps\perso\photo
                path = Chemins.CheminUser() + "lymytz" + Constantes.FILE_SEPARATOR + txt_name.Text.Trim() + Constantes.FILE_SEPARATOR + "documents" + Constantes.FILE_SEPARATOR + "docEmps" + Constantes.FILE_SEPARATOR + "perso" + Constantes.FILE_SEPARATOR + "photo" + Constantes.FILE_SEPARATOR;
            }
            txt_path_photo.Text = path;
            path = s.CheminSetup;
            if (path != null ? path.Trim().Equals("") : true)
            {
                path = Chemins.cheminStartup;
            }
            txt_path_setup.Text = path;
        }
Ejemplo n.º 2
0
 private void btn_search_path_setup_Click(object sender, EventArgs e)
 {
     fbd_search.SelectedPath = Chemins.CheminUser();
     if (fbd_search.ShowDialog() == DialogResult.OK)
     {
         try
         {
             txt_path_setup.Text = fbd_search.SelectedPath + Constantes.FILE_SEPARATOR;
         }
         catch (Exception ex)
         {
             Messages.Exception("Form_Setting (btn_search_path_setup_Click)", ex);
         }
     }
 }
Ejemplo n.º 3
0
 private void lnk_default_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     txt_path_photo.Text = Chemins.CheminUser() + "lymytz" + Constantes.FILE_SEPARATOR + txt_name.Text.Trim() + Constantes.FILE_SEPARATOR + "documents" + Constantes.FILE_SEPARATOR + "docEmps" + Constantes.FILE_SEPARATOR + "perso" + Constantes.FILE_SEPARATOR + "photo" + Constantes.FILE_SEPARATOR;
 }