Beispiel #1
0
        private void m_customFace_btn_Click(object sender, EventArgs e)
        {
            CustomFaceForm form = new CustomFaceForm();

            form.StartPosition = FormStartPosition.Manual;
            form.SelectItem   += new EventHandler <EventArgs>(select_customface);
            form.ShowIt(this);
        }
Beispiel #2
0
        private void select_customface(object sender, EventArgs e)
        {
            CustomFaceForm form = (CustomFaceForm)sender;

            if (form.CustomFaceItem != null)
            {
                string path = Path.Combine(DataManager.GetCustomFaceFolderPath(), form.CustomFaceItem.Filename);
                m_userinfo.AppendMessage(MsgInputConfig.FormatImageMessage(path), DataManager.WhoAmI);
                OutgoingPackagePool.AddFirst(NetPackageGenerater.AppendImageMessage(path, m_userinfo.RemoteIP));
            }
        }
Beispiel #3
0
        private void select_customface(object sender, EventArgs e)
        {
            CustomFaceForm form = (CustomFaceForm)sender;

            if (form.CustomFaceItem != null)
            {
                string path      = Path.Combine(DataManager.GetCustomFaceFolderPath(), form.CustomFaceItem.Filename);
                byte[] imageData = File.ReadAllBytes(path);

                foreach (UserInfo user in m_user_list.Items)
                {
                    OutgoingPackagePool.Add(NetPackageGenerater.AppendGroupImageMessage(m_group.Key, path, imageData, user.RemoteIP));
                }
            }
        }
Beispiel #4
0
 private void m_customFace_btn_Click(object sender, EventArgs e)
 {
     CustomFaceForm form = new CustomFaceForm();
     form.StartPosition = FormStartPosition.Manual;
     form.SelectItem += new EventHandler<EventArgs>(select_customface);
     form.ShowIt(this);
 }