protected override void Nested_LoadDataFromDataSource() { DocumentScopeHandler h = new DocumentScopeHandler(); _current = h.GetElementById(m_IdShowedObject.ToString()) as WIN.SCHEDULING_APPLICATION.DOMAIN.ComboElements.DocumentScope; if (_current == null) { throw new Exception("Elemento non trovato"); } }
public void Initialize() { DocumentScopeHandler h = new DocumentScopeHandler(); DocumentScope s = h.GetElementById("1") as DocumentScope; if (!s.IsDefaultpathValid) { //prendo una locazione di default nel file sistem. string sp = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); s.DefaultPath = sp; h.SaveOrUpdate(s); } }