public void Remove(ToDoItem todoItem) { _todoItemList.Remove(todoItem); if (_divItemList.Contains(todoItem.DivItem)) { _divItemList.RemoveChild(todoItem.DivItem); } }
public void ClearLog() { LastLogMessage = null; while (ConsoleLog.ChildNodes.Length > 0) { ConsoleLog.RemoveChild(ConsoleLog.LastChild); } }
static void UpdateThemeDIV() { foreach (var c in ImagesDiv.ChildNodes) { ImagesDiv.RemoveChild(c); } foreach (var c in ColorsDiv.ChildNodes) { ColorsDiv.RemoveChild(c); } TopFrameType.SelectedIndex = (int)t.TopScreenFrameType; BotFrameType.SelectedIndex = (int)t.BotScreenFrameType; Document.GetElementById <HTMLInputElement>("EnableBGMchb").Checked = t.BGM; Document.GetElementById <HTMLDivElement>("LoadFile").Remove(); foreach (var tex in t.textures) { AddImageToPage(tex.tex, tex.name); } foreach (var col in t.ColorFields) { AddColorToPage(col); } Document.GetElementById <HTMLDivElement>("EditFile").Hidden = false; }