private void M_cmd_chon_file_Click(object sender, EventArgs e)
{
try
{
SplashScreenManager.ShowForm(typeof(F_wait_form));
//load_data_2_grid(chon_file());
OpenFileDialog opf = new OpenFileDialog();
opf.Filter = "Office Files|*.xlsx;*.xls;";
opf.Multiselect = false;
if (opf.ShowDialog() == DialogResult.OK)
{
if (String.IsNullOrEmpty(opf.FileName))
{
return;
}
load_data_from_file_to_grid(opf.FileName);
}
else
{
m_grc.Refresh();
return;
}
}
catch (Exception v_e)
{
XtraMessageBox.Show("Không lấy dữ liệu được từ File Excel Import. Bạn kiểm tra lại File Excel Import nhé!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
//CSystemLog_301.ExceptionHandle(v_e);
}
finally
{
SplashScreenManager.CloseForm();
}
}