private void DeleteSymbol() { string text1 = this.GetSelectedSymbol(); if (MessageBox.Show(this, "Do you want to delete symbol '" + text1 + "'", "Worning!", MessageBoxButtons.YesNo) == DialogResult.Yes) { StockDB.DeleteSymbol(text1); this.RefreshData(); } }