private void btnUpdate_Click(object sender, EventArgs e) { try { if (txtSecGrp.Text.Trim().Length == 0) { CmnFunction.ShowMsgBox("Security Group : " + RptMessages.GetMessage("STD999", GlobalVariable.gcLanguage)); } if (CmnFunction.ShowMsgBox(RptMessages.GetMessage("INF003", GlobalVariable.gcLanguage), "Update", MessageBoxButtons.YesNo, 2) != System.Windows.Forms.DialogResult.Yes) { return; } if (Update_Security_Group(txtSecGrp.Text.Trim()) == true) { CmnFunction.ShowMsgBox(RptMessages.GetMessage("INF001", GlobalVariable.gcLanguage)); CmnInitFunction.FieldClear(this, null, false); lisSecGrp.SelectedIndices.Clear(); lisSecGrp.Items.Clear(); CmnListFunction.ViewSecGroupList(lisSecGrp); } } catch (Exception ex) { CmnFunction.ShowMsgBox("SEC1102.btnUpdate_Click() : " + ex.ToString()); } }
private void SEC1102_Load(object sender, EventArgs e) { lisSecGrp.SmallImageList = ((System.Windows.Forms.TabControl)((System.Windows.Forms.TabPage) this.Parent).Parent).ImageList; CmnFunction.oComm.SetUrl(); CmnInitFunction.InitListView(lisSecGrp); CmnListFunction.ViewSecGroupList(lisSecGrp); }
private void cdvSecGrpId_ButtonPress(object sender, EventArgs e) { cdvSecGrpId.Init(); cdvSecGrpId.Columns.Add("Group", 100); cdvSecGrpId.Columns.Add("Group Desc", 100); cdvSecGrpId.SelectedSubItemIndex = 0; CmnListFunction.ViewSecGroupList(cdvSecGrpId.GetListView); }