public ItemSequence GetRange(int index, int count) { global::System.IntPtr cPtr = crfsuitePINVOKE.ItemSequence_GetRange(swigCPtr, index, count); ItemSequence ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemSequence(cPtr, true); if (crfsuitePINVOKE.SWIGPendingException.Pending) throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); return ret; }
public ItemSequenceEnumerator(ItemSequence collection) { collectionRef = collection; currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
public static ItemSequence Repeat(Item value, int count) { global::System.IntPtr cPtr = crfsuitePINVOKE.ItemSequence_Repeat(Item.getCPtr(value), count); ItemSequence ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemSequence(cPtr, true); if (crfsuitePINVOKE.SWIGPendingException.Pending) throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); return ret; }
public ItemSequence(ItemSequence other) : this(crfsuitePINVOKE.new_ItemSequence__SWIG_1(ItemSequence.getCPtr(other)), true) { if (crfsuitePINVOKE.SWIGPendingException.Pending) { throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); } }
public void set(ItemSequence xseq) { crfsuitePINVOKE.Tagger_set(swigCPtr, ItemSequence.getCPtr(xseq)); if (crfsuitePINVOKE.SWIGPendingException.Pending) { throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); } }
public void append(ItemSequence xseq, StringList yseq, int group) { crfsuitePINVOKE.Trainer_append(swigCPtr, ItemSequence.getCPtr(xseq), StringList.getCPtr(yseq), group); if (crfsuitePINVOKE.SWIGPendingException.Pending) { throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); } }
public void SetRange(int index, ItemSequence values) { crfsuitePINVOKE.ItemSequence_SetRange(swigCPtr, index, ItemSequence.getCPtr(values)); if (crfsuitePINVOKE.SWIGPendingException.Pending) { throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); } }
public StringList tag(ItemSequence xseq) { StringList ret = new StringList(crfsuitePINVOKE.Tagger_tag(swigCPtr, ItemSequence.getCPtr(xseq)), true); if (crfsuitePINVOKE.SWIGPendingException.Pending) { throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public Sword() { System.Xml.Serialization.XmlSerializer ax = new System.Xml.Serialization.XmlSerializer(ItemSequence.GetType()); Stream txtReader = Microsoft.Xna.Framework.TitleContainer.OpenStream(PoP.CONFIG_PATH_CONTENT + PoP.CONFIG_PATH_SEQUENCES + Enumeration.Items.sword.ToString() + "_sequence.xml"); //TextReader txtReader = File.OpenText(PrinceOfPersiaGame.CONFIG_PATH_CONTENT + PrinceOfPersiaGame.CONFIG_PATH_SEQUENCES + tileType.ToString() + "_sequence.xml"); ItemSequence = (List <Sequence>)ax.Deserialize(txtReader); foreach (Sequence s in ItemSequence) { s.Initialize(); } //Search in the sequence the right type Sequence result = ItemSequence.Find(delegate(Sequence s) { return(s.name.ToUpper() == Enumeration.StateTile.normal.ToString().ToUpper()); }); if (result != null) { //AMF to be adjust.... result.frames[0].SetTexture((Texture2D)Maze.Content[PoP.CONFIG_ITEMS + result.frames[0].value]); Texture = result.frames[0].texture; } //change statetile element StateTileElement stateTileElement = new StateTileElement(); stateTileElement.state = Enumeration.StateTile.normal; itemState.Add(stateTileElement); itemAnimation.PlayAnimation(ItemSequence, itemState); }
public void SortBySequence(string item) { ObservableCollection <ItemSequence> itemlist = new ObservableCollection <ItemSequence>(); ObservableCollection <SequenceSorter> updateList = new ObservableCollection <SequenceSorter>(); List <string> scaleSEQ = new List <string>(); scaleSEQ.Add("EA"); scaleSEQ.Add("IP"); scaleSEQ.Add("DP"); scaleSEQ.Add("TO"); scaleSEQ.Add("CS"); scaleSEQ.Add("PL"); try { DynamicParameters param = new DynamicParameters(); param.Add("@ITEM", item); using (IDbConnection Conn = new SqlConnection(stringConn)) { var itemCol = Conn.Query <ItemSequence>("CUBISCAN_QUANTITY_UM_BY_ITEM", param, null, true, null, CommandType.StoredProcedure); // GET ALL SEQUENCES BY ITEM foreach (ItemSequence its in itemCol) { ItemSequence i = new ItemSequence(); i.ITEM = its.ITEM; i.QUANTITY_UM = its.QUANTITY_UM; i.SEQUENCE = its.SEQUENCE; itemlist.Add(i); } // SORT ALL SEQUENCES BY SCALE foreach (string seq in scaleSEQ) { SequenceSorter ss = new SequenceSorter(); ss.QUANTITY_UM = seq.ToString(); ss.IsPresent = false; foreach (ItemSequence itm in itemlist) { if (itm.QUANTITY_UM == seq.ToString()) { ss.IsPresent = true; } } updateList.Add(ss); } //UPDATE ALL SEQUENCES ON SCALE int xCounter = 1; foreach (SequenceSorter x in updateList) { if (x.IsPresent == true) { DynamicParameters paramUpdate = new DynamicParameters(); paramUpdate.Add("@ITEM", item); paramUpdate.Add("@CONTAINER", x.QUANTITY_UM); paramUpdate.Add("@SEQUENCE", xCounter); var _id = Conn.Query <int>("CUBISCAN_SORT_BY_QUANTITY_UM", paramUpdate, null, true, null, CommandType.StoredProcedure); xCounter = xCounter + 1; } } } } catch (Exception ex) { ErrorLogParams exparams = new ErrorLogParams(); exparams.ITEM = item; exparams.DESCRIPTION = ex.Message.ToString(); exparams.FILE_NAME = "N/A"; Update_ErrLog(exparams); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ItemSequence obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public void AddRange(ItemSequence values) { crfsuitePINVOKE.ItemSequence_AddRange(swigCPtr, ItemSequence.getCPtr(values)); if (crfsuitePINVOKE.SWIGPendingException.Pending) throw crfsuitePINVOKE.SWIGPendingException.Retrieve(); }