Ejemplo n.º 1
0
        public void Remove(ToDoItem todoItem)
        {
            _todoItemList.Remove(todoItem);

            if (_divItemList.Contains(todoItem.DivItem))
            {
                _divItemList.RemoveChild(todoItem.DivItem);
            }
        }
Ejemplo n.º 2
0
        public void ClearLog()
        {
            LastLogMessage = null;

            while (ConsoleLog.ChildNodes.Length > 0)
            {
                ConsoleLog.RemoveChild(ConsoleLog.LastChild);
            }
        }
Ejemplo n.º 3
0
 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;
 }