This commit is contained in:
owenchen committed 2026-05-12 15:00:08 +08:00
1 parent 4521deaf78
commit 647a1c38ab
18 files changed
+279 -103

No files matched your search

@@ -637,5 +637,41 @@ namespace CloudBuilder.Security.Gui
selectedUserGv.AddRow<SecurityUserEntity>(securityUsers);
}
private void selectedGv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (selectedGv.RowCount <= 0 || selectedGv.SelectedCells.Count <= 0)
{
ShowMessageBox.ShowInfo(securityMessagePolicy.ComposeMessage(SecurityMessagePolicy.GUI_WS_RECORD_NOT_FOUND));
return;
}
SecurityGroupEntity data = selectedGv.GetRowData<SecurityGroupEntity>(selectedGv.SelectedCells[0].RowIndex);
DisplayPage(GuiDisplayMode.View, data.GroupName);
}
private void DisplayPage(GuiDisplayMode mode, string groupName)
{
SecurityGroupOperationLinkup linkupData = new SecurityGroupOperationLinkup();
linkupData.DisplayMode = Convert.ToInt32(mode);
linkupData.GroupName = groupName;
this.DisplayAbstractPage(typeof(SecurityGroupOperationPage).Name, linkupData);
}
private void deselectedGv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (deselectedGv.RowCount <= 0 || deselectedGv.SelectedCells.Count <= 0)
{
ShowMessageBox.ShowInfo(securityMessagePolicy.ComposeMessage(SecurityMessagePolicy.GUI_WS_RECORD_NOT_FOUND));
return;
}
SecurityGroupEntity data = deselectedGv.GetRowData<SecurityGroupEntity>(deselectedGv.SelectedCells[0].RowIndex);
DisplayPage(GuiDisplayMode.View, data.GroupName);
}
}
}