private void btnThemeContext_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { List<string> UIDs = new List<string>(); if (gridViewUsers.RowCount.Equals(0)) { XtraMessageBox.Show("There is no user(s)", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { for (int x = 0; x < gridViewUsers.SelectedRowsCount; x++) { UIDs.Add(gridViewUsers.GetRowCellValue(gridViewUsers.GetSelectedRows()[x], gridColumnUserID).ToString()); } frmTheme theme = new frmTheme(DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName, true, UIDs); theme.ShowDialog(); } }
private void navBarItemChangeTheme_LinkPressed(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { List<string> uids = new List<string>(); uids.Add(uid); string oldSkin = DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName; frmTheme theme = new frmTheme(oldSkin, false, uids); theme.ShowDialog(); }