コード例 #1
0
 public void RemoveProcess(EventTokenProcessPartsTrigger token)
 {
     foreach (var pt in Parts.GetParts <PartsJitProcess>(LAYER.JitProcess, a => a.ID == token.Process.ID))
     {
         Parts.Remove(PaneJitParts, pt, LAYER.JitProcess);
     }
     Redraw();
 }
コード例 #2
0
        public void CreateProcess(EventTokenProcessPartsTrigger token)
        {
            var pt = new PartsJitProcess
            {
                ID          = token.Process.ID,
                Location    = CodePos <Distance, Distance> .From((Distance)token.Process.ChildVriables["LocationX"].Value, (Distance)token.Process.ChildVriables["LocationY"].Value),
                Width       = (Distance)token.Process.ChildVriables["Width"].Value,
                Height      = (Distance)token.Process.ChildVriables["Height"].Value,
                PositionerX = DistancePositionerX,
                PositionerY = DistancePositionerY,
                CoderX      = DistanceCoderX,
                CoderY      = DistanceCoderY,
            };

            Parts.Add(PaneJitParts, pt, LAYER.JitProcess);
            Redraw();
        }
コード例 #3
0
 public void ProcessRemoved(EventTokenProcessPartsTrigger token)
 {
     RemoveCassette(token.Process.ID);
 }