protected ExtendedImagePanel CreateItem(Interfaces.Files.IPackedFileDescriptor pfd, int left, int top) { ExtendedImagePanel eip = new ExtendedImagePanel(); eip.BeginUpdate(); eip.SetBounds(left, top, 216, 80); Wrapper.SDesc sdesc = new SDesc(); try { sdesc.ProcessData(pfd, pkg); PrepareItem(eip, sdesc); } catch (Exception ex) { eip.Properties["Error"].Value = ex.Message; } //eip.GotFocus += new EventHandler(eip_GotFocus); //eip.MouseDown += new System.Windows.Forms.MouseEventHandler(eip_MouseDown); //eip.DoubleClick += new EventHandler(eip_DoubleClick); return(eip); }
/// <summary> /// Loads the Description File for a Sim /// </summary> protected void LoadSDesc() { if (sdesc == null) { sdesc = new SDesc(famt.NameProvider, null, null); try { SimPe.Interfaces.Files.IPackedFileDescriptor pfd = famt.Package.FindFile(MetaData.SIM_DESCRIPTION_FILE, 0, famt.FileDescriptor.Group, siminstance); sdesc.ProcessData(pfd, famt.Package); } catch (Exception) {} } }