/// <summary> /// Load Destination from XML based on current selection /// </summary> public void RefreshDestination() { DBMS dbms = (DBMS)this.cboDestintaion.SelectedItem; // load dbms template values from xml CopyObject template = CopyObject.GetTemplate(dbms); if (template != null && this.CurrentObj != null) { // load destination values this.CurrentObj.PostCopySql = template.PostCopySql; this.CurrentObj.PreCopySql = template.PreCopySql; this.CurrentObj.DeleteSql = template.DeleteSql; this.CurrentObj.CountSql = template.CountSql; } }
/// <summary> /// Load Source from XML for current selection /// </summary> public void RefreshSource() { DBMS dbms = (DBMS)this.cboSource.SelectedItem; // load dbms tenplate values from xml CopyObject template = CopyObject.GetTemplate(dbms); if (template != null && this.CurrentObj != null) { // load source values this.CurrentObj.SelectSql = template.SelectSql; this.CurrentObj.ListSql = template.ListSql; this.CurrentObj.SchemaFormat = template.SchemaFormat; this.CurrentObj.TableFormat = template.TableFormat; } }