Example #1
0
        public static bool KhoiTaoKetNoi()
        {
            ect.Encrypt _ect = new ect.Encrypt("Rijndael");

            string fv_sUID = null;
            string fv_sPWD = null;
            try
            {
                if (bGetConfigInfor(ref fv_sUID, ref fv_sPWD))
                {


                    string sv_sConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + getDBPath() + ";Jet OLEDB:Database Password="******"Không kết nối được vào CSDL. Liên hệ với quản trị hệ thống\n"+ex.Message, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return false;
            }
        }
Example #2
0
 /// <summary>
 /// Hàm khởi tạo Form
 /// </summary>
 public DROC_Ribbon()
 {
     try
     {
         InitializeComponent();
         AppLogger.LogAction.AddLog2List(lstFPD560,DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + ": InitializeComponent  Completely");
         //Khởi tạo các sự kiện của một số UCs
         InitEvents();
         AppLogger.LogAction.AddLog2List(lstFPD560,DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + ": Init Events Completely");
         cmdReady.Enabled = GetSelectedScheduled() != null;// _AppMode == AppMode.License ? false : true;
         cmdReady.Text = MultiLanguage.GetText(globalVariables.DisplayLanguage, "Sẵn sàng", "Ready");// _AppMode == AppMode.License ? cmdReady.Text : "Thực hiện chụp";
         CreateDicomConverterInfo();
         InitUI();
         _CallBackFunc = new MessageProcDelegate(MessageProc);
         AppLogger.LogAction.AddLog2List(lstFPD560,DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + ": MessageProc  Completely");
         _ToshibaCallBackFunc = new ToshibaMessageProcDelegate(ToshibaMessageProc);
         AppLogger.LogAction.AddLog2List(lstFPD560,DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + ": ToshibaMessageProc  Completely");
         LoadUILan();
         SetLang();
         AppLogger.LogAction.AddLog2List(lstFPD560,DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + ": SetLang  Completely");
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
     finally
     {
         AppLogger.LogAction.LogActions("START DROC at: " + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss"));
         m_ect = new ect.Encrypt(picCom.Tag.ToString());
     }
 }