Пример #1
0
        public static void GetSetting()
        {
            if (File.Exists(general_setting_file_path))
            {
                string[] strSett = T8GlobalFunc.Decrypt(T8GlobalFunc.ReadSettingFile(general_setting_file_path), "t8").Split(';');
                bool.TryParse(strSett[0], out KonfirmasiAksesPassword);
                bool.TryParse(strSett[1], out IsIdleTime);
                int.TryParse(strSett[2], out IdleTimeValue);
                bool.TryParse(strSett[3], out OtomatisSimpanHistoriLocal);
                bool.TryParse(strSett[4], out IzinkanUserLain);
                bool.TryParse(strSett[5], out OtomatisCetakAgenda);
                int.TryParse(strSett[6], out OtomatisCetakAgendaValue);

                bool.TryParse(strSett[7], out OtomatisCetakAgendaSK);
                int.TryParse(strSett[8], out OtomatisCetakAgendaValueSK);

                bool.TryParse(strSett[9], out OtomatisCetakAgendaPenyelesaian);
                int.TryParse(strSett[10], out OtomatisCetakAgendaValuePenyelesaian);
            }
        }
Пример #2
0
 public static void GetSetting()
 {
     if (File.Exists(local_setting_file_path))
     {
         string[] strSett = T8GlobalFunc.Decrypt(T8GlobalFunc.ReadSettingFile(local_setting_file_path), "t8").Split(';');
         bool.TryParse(strSett[0], out AutoSizeMain);
         bool.TryParse(strSett[1], out AdministratorTableMain);
         bool.TryParse(strSett[2], out AutoSizeUser);
         bool.TryParse(strSett[3], out ShowPasswordUser);
         bool.TryParse(strSett[4], out AdministratorTableUser);
         bool.TryParse(strSett[5], out AutoSizeHistoryLoginUser);
         bool.TryParse(strSett[6], out AdministratorTableHistoryLoginUser);
         bool.TryParse(strSett[7], out AutoSizeHistoryDisposisi);
         bool.TryParse(strSett[8], out AdministratorTableHistoryDisposisi);
         bool.TryParse(strSett[9], out AutoSizeHistoryPenyelesaian);
         bool.TryParse(strSett[10], out AdministratorTableHistoryPenyelesaian);
         bool.TryParse(strSett[11], out AdministratorTableHistoryEditSuratMasuk);
         bool.TryParse(strSett[12], out AutoSizeHistoryEditSuratMasuk);
         bool.TryParse(strSett[13], out AdministratorTableHistoryEditSuratKeluar);
         bool.TryParse(strSett[14], out AutoSizeHistoryEditSuratKeluar);
         bool.TryParse(strSett[15], out AutoSizeMainSK);
         bool.TryParse(strSett[16], out AdministratorTableMainSK);
     }
 }
Пример #3
0
 public static void SetSetting()
 {
     T8GlobalFunc.WriteFileSetting(general_setting_file_path, T8GlobalFunc.Decrypt(T8GlobalFunc.ReadSettingFile(general_setting_file_path), "t8"));
     GetSetting();
 }