Esempio n. 1
0
        private void rbtnAdd_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // Lấy dữ liệu ảnh 1
                string img1Path = txtLogo1.Tag.ToString();
                byte[] img1     = LImage.GetByteArrayFromImage(img1Path);

                // Lấy dữ liệu ảnh 2
                string img2Path = txtLogo2.Tag.ToString();
                byte[] img2     = LImage.GetByteArrayFromImage(img2Path);

                ZATestAppProcess process = new ZATestAppProcess();
                process.processDataTransfer(img1, img2);
            }
            catch (Exception ex)
            {
                //this.Close();
                //Application.Current.Shutdown();
                this.Cursor = Cursors.Arrow;
                if (ex.GetType() == typeof(CustomException))
                {
                    new frmThongBaoLoi(ex.Message, ex.InnerException).ShowDialog();
                }
                else
                {
                    if (ex.InnerException != null)
                    {
                        if (ex.InnerException.GetType() == typeof(CustomException))
                        {
                            new frmThongBaoLoi(ex.InnerException.Message, ex.InnerException).ShowDialog();
                        }
                        else
                        {
                            new frmThongBaoLoi("M.ResponseMessage.Common.KhongThanhCong", ex).ShowDialog();
                        }
                    }
                    else
                    {
                        new frmThongBaoLoi("M.ResponseMessage.Common.KhongThanhCong", ex).ShowDialog();
                    }
                }
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
            }
        }
Esempio n. 2
0
 private void btnTEST_Click(object sender, RoutedEventArgs e)
 {
     ZATestAppProcess process = new ZATestAppProcess();
     //string ret = process._TEST();
 }