예제 #1
0
        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);
                        }
                    }
                }
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
    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;
    }
예제 #4
0
        void ReleaseDesignerOutlets()
        {
            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }

            if (Time != null)
            {
                Time.Dispose();
                Time = null;
            }

            if (ActionImage != null)
            {
                ActionImage.Dispose();
                ActionImage = null;
            }
        }