public void BeginShutdown(DataGridViewRow row, string host) { lock (listItemsActionRow) { if (!listItemsActionRow.Contains(row)) { DgvUtils.SetRowStyleForeColor(ref row, WUCollums.LastBoot, Color.Black); DgvUtils.SetRowValue(ref row, WUCollums.Status, "OS Preparing"); //SetLastBootRowStyleFont(ref row, new Font(defaultCellStyle, FontStyle.Regular)); listItemsActionRow.Add(row); RowMethodDelegate de = new RowMethodDelegate(StartShutdown); de.BeginInvoke(host, ref row, null, null); } } }
public void BeginReboot(DataGridViewRow row, string host) { lock (listRebootRow) { if (!listRebootRow.Contains(row)) { DgvUtils.SetRowStyleForeColor(ref row, WUCollums.LastBoot, Color.Black); DgvUtils.SetRowValue(ref row, WUCollums.Status, "OS Preparing"); //SetLastBootRowStyleFont(ref row, new Font(defaultCellStyle, FontStyle.Regular)); listRebootRow.Add(row); RowMethodDelegate de = new RowMethodDelegate(StartReboot); de.BeginInvoke(host, ref row, null, null); } } }