LifeRPG_v2.0/ProjectRemove.ahk
Jayvant Javier Pujara 3bde7c3d5f Reload
2012-11-01 16:05:12 -04:00

33 lines
896 B
AutoHotkey

;~ ===============================================================================
;~ Confirm project deletion/removal:
RemoveProject:
Selection := LV_GetNext("","F")
LV_GetText(SelectedProjectID, Selection, 1)
If (SelectedProjectID == "ID")
{
return
}
else
{
GuiMsgBox("RemoveProject", "Remove Project", "Delete this project?")
return
RemoveProjectYes:
Gui, RemoveProject:Submit, NoHide
db.Query("DELETE FROM projects WHERE id = " SelectedProjectID )
GuiChildClose("RemoveProject")
RefreshSkillsList(FilterSkillSelected)
;Notification("RefreshSkillList(",FilterSkillSelected)
gosub FilterUpdate
;Notification(Selection . ", " . FilterImportanceSelected . ", " . FilterSkillSelected,"")
UpdateList(Selection, FilterImportanceSelected, FilterSkillSelected)
return
RemoveProjectNo:
RemoveProjectGuiClose:
RemoveProjectGuiEscape:
GuiChildClose("RemoveProject")
return
}
return