Beispiel #1
0
        private void UpdateMessageList(object state)
        {
            if (state is API.Message)
            {
                adapter.Add((API.Message)state);
            }
            else
            {
                List <API.Message> message = state as List <API.Message>;

                adapter.AddItems(message);
            }
            this.fListView1.ScrollBottom();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            API.Message msg = new API.Message()
            {
                IsSend      = false,
                MsgType     = 34,
                VoiceLength = 152000
            };
            adapter.Add(msg);



            //List<Image> imageList = weTextBox1.GetImages();
            //if (imageList != null && imageList.Count > 0)
            //{
            //    //int i = 0;
            //    //foreach (Image item in imageList)
            //    //{
            //    //    item.Save("image" + i + ".bmp");
            //    //    i++;
            //    //}
            //}

            //string rtf = weTextBox1.Rtf;
            //File.WriteAllText("D:\\rtf2.rtf",rtf);


            //MessageBox.Show("11");
        }