예제 #1
0
 ///<summary>Set graphics for selected computer to simple.  Makes audit log entry.</summary>
 private void butSetSimpleGraphics_Click(object sender, EventArgs e)
 {
     if (listComputer.SelectedIndex == -1)
     {
         return;
     }
     ComputerPrefs.SetToSimpleGraphics(Computers.List[listComputer.SelectedIndex].CompName);
     SecurityLogs.MakeLogEntry(Permissions.Setup, 0, "Set the graphics for computer " + Computers.List[listComputer.SelectedIndex].CompName + " to simple");
 }
예제 #2
0
 ///<summary>Set graphics for selected computer to simple.  Makes audit log entry.</summary>
 private void butSetSimpleGraphics_Click(object sender, EventArgs e)
 {
     if (listComputer.SelectedIndex == -1)
     {
         MsgBox.Show(this, "You must select a computer name first.");
         return;
     }
     ComputerPrefs.SetToSimpleGraphics(_listComputers[listComputer.SelectedIndex].CompName);
     MsgBox.Show(this, "Done.");
     SecurityLogs.MakeLogEntry(Permissions.GraphicsEdit, 0, "Set the graphics for computer " + _listComputers[listComputer.SelectedIndex].CompName + " to simple");
 }