//--------------------------------------------------------------// // STOCK SECTION // //--------------------------------------------------------------// //LAND MARK TYPES WITH STOCK DEFAULT DATA private void DeafultValueAddToStock() { try { foreach (var list in objSetting.AllLandMarkTypes()) { objSetting = new SettingClassBLL(); objSetting = new SettingClassBLL() { stock_lm_type = list.ToString(), stock_division = txtDivisioin.Text, stock_lm_total = 0 }; objSetting.DefaultStockData(); } MessageBox.Show("Stock default data inserted for new division!", "STOCK", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message, "STOCK", MessageBoxButtons.OK, MessageBoxIcon.Error); } }