public bool Restore(TemplateBackup tbk, int cid) { TZ.CompExtention.Builder.Data.ComponentBuilder db = new Builder.Data.ComponentBuilder(Connection); if (tbk.BackupType == 1) { try { db.ClearTemplate(cid); PushTemplate(tbk); } catch (Exception ex) { throw ex; } } else { db.ClearComponent(); try { PushComponent(tbk); } catch (Exception ex) { throw ex; } try { PushComponentAttribute(tbk); } catch (Exception ex) { throw ex; } try { PushView(tbk); } catch (Exception ex) { throw ex; } try { PushTemplate(tbk); } catch (Exception ex) { throw ex; } } return(true); }
protected internal bool ClearComponent() { cb.ClearComponent(); return(true); }