Last active
November 15, 2016 14:28
-
-
Save bjoerntx/17f9c052eea4d11697ed8869fc53bdec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void textControl1_SubTextPartEntered(object sender, | |
TXTextControl.SubTextPartEventArgs e) | |
{ | |
// is the SubTextPart a valid merge block? | |
if (DataSourceManager.IsMergeBlock(e.SubTextPart)) | |
{ | |
// set the merge block as the new internal master table | |
if(dsManager.DataTables.Contains(e.SubTextPart.Name.Remove(0, 5))) | |
dsManager.MasterDataTableInfo = | |
dsManager.DataTables[e.SubTextPart.Name.Remove(0,5)]; | |
} | |
} | |
private void textControl1_SubTextPartLeft(object sender, | |
TXTextControl.SubTextPartEventArgs e) | |
{ | |
// set the master table back to the originally selected table | |
dsManager.MasterDataTableInfo = cbMasterTable.SelectedItem as DataTableInfo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment