deleteLogMessage() public static method

public static deleteLogMessage ( Hunt h, string logMessage ) : void
h Hunt
logMessage string
return void
Ejemplo n.º 1
0
        private void LogMessageCollection_AttemptDeleteItem(object sender, EventArgs e)
        {
            Hunt h = MainForm.mainForm.getSelectedHunt();

            if (h != null && logMessageCollection.SelectedIndex >= 0)
            {
                string logMessage = logMessageCollection.Items[logMessageCollection.SelectedIndex].ToString();
                HuntManager.deleteLogMessage(h, logMessage);
                MainForm.mainForm.refreshHunts();
            }
        }