private void BtnAdd_Click(object sender, EventArgs e) { if (Block) { return; } try { int total_items = SitesDataGrid.Rows.Count; if (total_items < MainCache.MaxSlots) { SitesManager.AddNew(); InitializeEditor(); } else { MessageBox.Show("Sorry you reached the maximum Urls for your membership!\nPlease Upgrade to Super Shark to have unlimited slots for life!"); } } catch (Exception x) { MessageBox.Show(x.ToString()); } }