aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Intellisense/ClassCompletionItemPopup.cs
blob: d575ba9db5f6b3aed4d4e612d7dbe9baa21f09d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.Scripting.Editors.Intellisense
{
    public class ClassCompletionItemPopup : CompletionItemPopupControl
    {
        static ClassCompletionItemPopup()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ClassCompletionItemPopup), new FrameworkPropertyMetadata(typeof(ClassCompletionItemPopup)));
        }
    }
}
esContext context) { IdsPacks.ToList().ForEach(x => x.DefferedDelete(context)); var machine_configurations = context.MachinesConfigurations.Where(x => x.Configuration == this); MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete(context)); base.DefferedDelete(context); IdsPacks.Clear(); } public override void Delete(ObservablesContext context) { IdsPacks.ToList().ForEach(x => x.DefferedDelete(context)); var machine_configurations = context.MachinesConfigurations.Where(x => x.Configuration == this); MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete(context)); base.Delete(context); IdsPacks.Clear(); } public override Configuration Clone() { Configuration cloned = base.Clone(); cloned.CreationDate = DateTime.UtcNow; foreach (var idsPack in this.IdsPacks) { IdsPack clonedPack = idsPack.Clone(); clonedPack.Configuration = cloned; clonedPack.DispenserType = idsPack.DispenserType; clonedPack.CartridgeType = idsPack.CartridgeType; clonedPack.MidTankType = idsPack.MidTankType; clonedPack.IdsPackFormula = idsPack.IdsPackFormula; clonedPack.IsEmpty = idsPack.IsEmpty; cloned.IdsPacks.Add(clonedPack); } return cloned; } } }