/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_ImportCityCSVCompleted(object sender, ImportCityCSVCompletedEventArgs e) { try { if (e.Error != null && e.Error.Message != "") { loadbar.Stop(); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } //bool flag = e.Result; // RefreshUI(RefreshedTypes.HideProgressBar); string strTemp = e.strMsg; bool flag = e.Result; if (flag) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(strTemp), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } loadbar.Stop(); } catch (Exception ex) { loadbar.Stop(); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_ImportCityCSVCompleted(object sender, ImportCityCSVCompletedEventArgs e) { try { if (e.Error != null && e.Error.Message != "") { loadbar.Stop(); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } //bool flag = e.Result; // RefreshUI(RefreshedTypes.HideProgressBar); string strTemp = e.strMsg; bool flag = e.Result; if (flag) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(strTemp), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } loadbar.Stop(); } catch (Exception ex) { loadbar.Stop(); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }