public IndexForm(Form parent, string indexName, DBRegistrationClass dbReg, List <TableClass> tables, eBearbeiten mode) { InitializeComponent(); this.MdiParent = parent; BearbeitenMode = mode; _dbReg = dbReg; if (mode == eBearbeiten.eInsert) { IndexName = "NEW_INDEX_INX1"; NewIndexName = "NEW_INDEX_INX1"; TableName = tables[0].Name; } else { IndexName = indexName; NewIndexName = indexName; TableName = RefreshIndicesAndGetTablename(); } _localNotify.Notify.OnRaiseErrorHandler += Notify_OnRaiseErrorHandler; _localNotify.Notify.OnRaiseInfoHandler += Notify_OnRaiseInfoHandler; _tables = tables; TableObject = StaticTreeClass.GetTableObjectForIndexForm(_dbReg, TableName); cbFields.Items.Clear(); lvFields.Items.Clear(); DataFilled = true; }