private void butColumnEdit_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.WikiListSetup)) //gives a message box if no permission { return; } using (FormWikiListHeaders FormWLH = new FormWikiListHeaders(WikiListCurName)) { if (FormWLH.ShowDialog() != DialogResult.OK) { return; } } SetIsEdited(); FillGrid(); }
private void butHeaders_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.WikiListSetup)) //gives a message box if no permission { return; } FormWikiListHeaders FormWLH = new FormWikiListHeaders(); FormWLH.WikiListCurName = WikiListCurName; FormWLH.ShowDialog(); if (FormWLH.DialogResult != DialogResult.OK) { return; } Table = WikiLists.GetByName(WikiListCurName); FillGrid(); }
private void butHeaders_Click(object sender,EventArgs e) { if(!Security.IsAuthorized(Permissions.WikiListSetup)) {//gives a message box if no permission return; } FormWikiListHeaders FormWLH = new FormWikiListHeaders(); FormWLH.WikiListCurName=WikiListCurName; FormWLH.ShowDialog(); if(FormWLH.DialogResult!=DialogResult.OK) { return; } SetIsEdited(); _table=WikiLists.GetByName(WikiListCurName); FillGrid(); }