Ejemplo n.º 1
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            frmCompare frm = new frmCompare();

            frm.Closed += Frm_Closed;
            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            frmCompare frm = null;

            try
            {
                this.Hide();
                frm         = new frmCompare();
                frm.Closed += Frm_Closed;
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Chưa cài đặt CUDA hoặc C++ redistributable 2015");
                if (frm != null)
                {
                    frm.Close();
                }
            }
        }