private void RosterItem_VCardReceived(object sender, VCardEventArgs e) { RosterItem ri = (RosterItem)sender; if (e.Item.Query is VCard) { VCard vcard = (VCard)e.Item.Query; if (vcard != null) { if (vcard.Url != null) { ActionImage ai = null; if (action_images.TryGetValue(ri.Jid, out ai)) { ai.Tag = vcard.Url.ToString(); } else { ai = ri.AddActionImage(XmppImages.Web16, "View Webpage"); ai.Tag = vcard.Url.ToString(); ai.BackColor = Color.Transparent; action_images.Add(ri.Jid, ai); ai.Click += new EventHandler(Webpage_Click); } } } } }
void ReleaseDesignerOutlets() { if (Body != null) { Body.Dispose(); Body = null; } if (Header != null) { Header.Dispose(); Header = null; } if (Image != null) { Image.Dispose(); Image = null; } if (Time != null) { Time.Dispose(); Time = null; } if (ActionImage != null) { ActionImage.Dispose(); ActionImage = null; } }
void Awake() { acImage = imageLoading.gameObject.AddComponent <ActionImage>(); acImage.duration = 3f; acImage.isLoop = true; for (int i = 0; i < 68; i++) { string pic = "Common/UI/UIKit/UIViewLoading/loading_animate" + i.ToString(); acImage.AddPic(pic); } // acImage.callbackComplete = OnActionFinish; }
void ReleaseDesignerOutlets() { if (Image != null) { Image.Dispose(); Image = null; } if (Time != null) { Time.Dispose(); Time = null; } if (ActionImage != null) { ActionImage.Dispose(); ActionImage = null; } }