Beispiel #1
0
 private void SnapControl1_BeforeLoadCustomAssembly(object sender, DevExpress.DataAccess.EntityFramework.BeforeLoadCustomAssemblyEventArgs args)
 {
     // Decide whether to load a custom assembly.
     args.AllowLoading = MessageBox.Show(String.Format("Do you want to load data from {0}?", args.AssemblyPath),
                                         "Snap Security Warning", MessageBoxButtons.YesNo) == DialogResult.Yes;
 }
Beispiel #2
0
 private void EFDataSource_BeforeLoadCustomAssemblyGlobal(object sender, DevExpress.DataAccess.EntityFramework.BeforeLoadCustomAssemblyEventArgs args)
 {
     args.AllowLoading = true;
 }