private void btnSet_Click(object sender, EventArgs e) { try { clsFollowBySearchKeywords obj_clsFollowBySearchKeywords = clsFollowBySearchKeywords.GetObject(); if (!string.IsNullOrEmpty(txt_FollowBySearchKey.Text) && lstFollowBySearchKeyword.Count > 0) { try { obj_clsFollowBySearchKeywords.lstKeywords = lstFollowBySearchKeyword; } catch { } } else { MessageBox.Show("Please Upload The Follow By Search Keywords File !"); return; } if (chk_followbysinglekeywordperaccount.Checked) { obj_clsFollowBySearchKeywords._Followbysinglekeywordperaccount = true; } if (!string.IsNullOrEmpty(txt_FollowByPerAccount.Text)) { try { obj_clsFollowBySearchKeywords._NoFollowByPerAccount = Convert.ToInt32(txt_FollowByPerAccount.Text); } catch { txt_FollowByPerAccount.Text = (5).ToString(); obj_clsFollowBySearchKeywords._NoFollowByPerAccount = 5; } } if (MessageBox.Show("Follow By Search Keywords Is Set !", "Notification", MessageBoxButtons.OK) == DialogResult.OK) { ; } { this.Close(); } } catch { } }
public static clsFollowBySearchKeywords GetObject() { if (obj_clsUseFollowSetting == null) { try { obj_clsUseFollowSetting = new clsFollowBySearchKeywords(); } catch { } } return(obj_clsUseFollowSetting); }
public static clsFollowBySearchKeywords GetObject() { if (obj_clsUseFollowSetting == null) { try { obj_clsUseFollowSetting = new clsFollowBySearchKeywords(); } catch { } } return obj_clsUseFollowSetting; }