public override void Dispose() { liftLoad.Dispose(); delayTimer.Dispose(); if (LiftConveyor != null) { LiftConveyor.Dispose(); } if (liftStopPoint != null) { liftStopPoint.Dispose(); } if (liftLoad != null) { liftLoad.Dispose(); } if (lift != null) { lift.Dispose(); } if (Assemblies != null) { foreach (Assembly assembly in this.Assemblies) { assembly.Dispose(); } } base.Dispose(); }
void exitPointDepth1_OnEnter(ActionPoint sender, Load load) { if (trackRail.Destination.Distance > ParentMultiShuttle.workarround && CurrentTask.Destination.LoadDepth() == 1) // not at a rack conveyor so dropping off at a bin location { ParentMultiShuttle.ArrivedAtRackLocation(new TaskEventArgs(CurrentTask, load)); load.Dispose(); CurrentTask = null; } }
void exitPointDepth2_OnEnter(ActionPoint sender, Load load) { if (CurrentTask.Destination.LoadDepth() == 2) // can only be dropping off at a bin location rack conveyors don't exist aat depth 2 { ParentMultiShuttle.ArrivedAtRackLocation(new TaskEventArgs(CurrentTask, load)); load.Dispose(); CurrentTask = null; } }
public override void Dispose() { car1OnBoard.OnEnter -= Car1OnBoard_OnEnter; car1Leaving.OnEnter -= Car1Leaving_OnEnter; destination.OnEnter -= DestinationOnEnter; car.OnPositionChanged -= Car_OnPositionChanged; car.Deletable = false; car.Dispose(); base.Dispose(); }
private void ArrivedAtDest(Load load) { if (CurrentTask.Destination.ConvType() == ConveyorTypes.OutfeedRack) { load.Switch(ParentMultiShuttle.ConveyorLocations.Find(x => x.LocName == CurrentTask.Destination), true); } else { ParentMultiShuttle.ArrivedAtRackLocation(new TaskEventArgs(CurrentTask, load)); load.Dispose(); CurrentTask = null; } }
void ReleaseDesignerOutlets() { if (Load != null) { Load.Dispose(); Load = null; } if (Save != null) { Save.Dispose(); Save = null; } if (Text != null) { Text.Dispose(); Text = null; } }
private void ArrivedAtDest(Load load) { if (CurrentTask == null) { Log.Write(string.Format("ERROR {0}: Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MSlevel.ArrivedAtDest() Current task is null!", Name), Color.Red); return; } if (CurrentTask.Destination.ConvType() == ConveyorTypes.OutfeedRack) { var dest = ParentMS.ConveyorLocations.Find(x => x.LocName == CurrentTask.Destination); if (dest != null) { if (load != null) { load.Switch(dest, true); } else { Log.Write(string.Format("ERROR {0}: Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MSlevel.ArrivedAtDest() load is null!", Name, CurrentTask.Destination), Color.Red); Core.Environment.Scene.Pause(); } } else { Log.Write(string.Format("ERROR {0}: could not find destination {1} in Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MSlevel.ArrivedAtDest()", Name, CurrentTask.Destination), Color.Red); } } else { ParentMS.ArrivedAtRackLocation(new TaskEventArgs(CurrentTask, load)); if (load.Route != null) { load.Route.Remove(load); } load.Dispose(); CurrentTask = null; } }
public override void Dispose() { foreach (FixPoint fp in FixPoints) { if (fp.Type == FixPoint.Types.Start) { fp.OnSnapped -= new FixPoint.SnappedEvent(SourceFixPoint_OnSnapped); fp.OnUnSnapped -= new FixPoint.UnSnappedEvent(SourceFixPoint_OnUnSnapped); } } Tasks.CollectionChanged -= Tasks_CollectionChanged; track.Dispose(); conveyor.LineReleasePhotocell.OnPhotocellStatusChanged -= LineReleasePhotocell_OnPhotocellStatusChanged; conveyor.ThisRouteStatus.OnRouteStatusChanged -= ThisRouteStatus_OnRouteStatusChanged; conveyor.Dispose(); trackLoad.OnPositionChanged -= TrackLoad_OnPositionChanged; trackLoad.Dispose(); trackStopPoint.OnEnter -= TrackStopPoint_OnEnter; trackStopPoint.Dispose(); base.Dispose(); }
void EaterActionPoint_OnEnter(ActionPoint sender, Load load) { load.Dispose(); }
private void openToolStripMenuItem_Click_1(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { listView3.Clear(); IncludedFiles.Clear(); MyGNIDA = new GNIDA1(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\flirt.xml"); MyGNIDA.OnLogEvent += OnLogEvent1; MyGNIDA.OnAddFunc += AddFuncEvent1; MyGNIDA.OnAddStr += AddText; MyGNIDA.OnVarEvent += AddVarEvent1; MyGNIDA.OnFuncChanged += OnFuncChanged1; Load ldfrm = new Load(); ListView lv = ldfrm.ldrs(); ListView da = ldfrm.dsmrs(); lv.Clear(); da.Clear(); foreach (string findPlg in System.IO.Directory.GetFiles(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\Loaders\\", "*.dll", System.IO.SearchOption.TopDirectoryOnly)) { Loaders(findPlg, lv); } foreach (string findPlg in System.IO.Directory.GetFiles(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\Dasmers\\", "*.dll", System.IO.SearchOption.TopDirectoryOnly)) { Dasmers(findPlg, da); } if (ldfrm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { MyGNIDA.assembly = lv.SelectedItems[0].Tag as ILoader; MyGNIDA.MeDisasm = da.SelectedItems[0].Tag as IDasmer; MyGNIDA.MeDisasm.Init(MyGNIDA.assembly); ldfrm.Dispose(); MyGNIDA.LoadFile(openFileDialog1.FileName); dynamicFileByteProvider = new DynamicFileByteProvider(openFileDialog1.FileName, true); hexBox1.ByteProvider = dynamicFileByteProvider; hexBox1.LineInfoOffset = (long)MyGNIDA.assembly.Entrypoint() + (long)MyGNIDA.assembly.ImageBase(); fastColoredTextBox1.Clear(); fastColoredTextBox1.Text = "//+---------------------------------------------------------------------+" + "\n//| Dis file has bin generated by GNU Interactive DissAssembler (GNIDA) |" + "\n//| Copyleft (c) 2014 by me <*****@*****.**> |" + "\n//| Free 4 use |" + "\n//| Writed AS IS |" + "\n//+---------------------------------------------------------------------+\n"; //if( & DynamicLoadedLibraryFile) if ((MyGNIDA.assembly.ExecutableFlags() & (ulong)ExecutableFlags.DynamicLoadedLibraryFile) != 0) { fastColoredTextBox1.Text += "#pragma option DLL\n"; } else { switch (MyGNIDA.assembly.SubSystem()) { case (ulong)SubSystem.WindowsGraphicalUI: fastColoredTextBox1.Text += "#pragma option W32\n"; break; case (ulong)SubSystem.WindowsConsoleUI: fastColoredTextBox1.Text += "#pragma option W32C\n"; break; default: fastColoredTextBox1.Text += "#pragma option W32;//TO-DO!!!\n"; break; } } IncludedFiles.Add("Windows.h"); IncludedFiles.Add("msvcrt.h--"); fastColoredTextBox1.Text += "#jumptomain NONE\n"; foreach (string s in IncludedFiles) { fastColoredTextBox1.Text += "#include \"" + s + "\";\n"; } VarLine = fastColoredTextBox1.LinesCount - 1; } } }