private void initMessage() { IntPtr ptr; JAM_decode_error(this.m_status, out ptr); if (ptr == IntPtr.Zero) { this.m_message = base.Message; } else { this.m_message = JAM.ToStringFromLocale(ptr, false); } }
public string Add(string itemType, string itemTitle, string itemValue) { IntPtr ptr4; JAM.StartCall(); IntPtr ptr = JAM.ToLocaleString(itemType); IntPtr ptr2 = JAM.ToLocaleString(itemTitle); IntPtr ptr3 = JAM.ToLocaleString(itemValue); int status = JA_BLOCK_STYLER_SNAP_DIALOG_add(base.Handle, ptr, ptr2, ptr3, out ptr4); JAM.FreeLocaleString(ptr); JAM.FreeLocaleString(ptr2); JAM.FreeLocaleString(ptr3); if (status != 0) { throw NXException.Create(status); } return(JAM.ToStringFromLocale(ptr4)); }