Click here to Skip to main content
15,884,298 members
Articles / Mobile Apps / Windows Mobile

Task assigner with Windows Mobile and a Web Service

Rate me:
Please Sign up or sign in to vote.
4.23/5 (12 votes)
7 Dec 2008CPOL3 min read 54.8K   1.1K   35  
Send messages, commands, tasks etc., to all employees from a central administration point.
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using FileTransfer.Core;
using RRaveCon.OutLookControl;

namespace FileTransfer
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            FileReader reader = new FileReader();

            List<Message> collection = reader.GetListOfMessages(UserCredinalManager.Username, UserCredinalManager.Password);
            if (collection != null)
            {
                ListViewItem items = null;
                foreach (Message message in collection)
                {
                    items = new ListViewItem(message.Name);
                    items.SubItems.Add(message.Content);
                    items.SubItems.Add(message.Date);
                    items.SubItems.Add(message.Time);
                    lstviewMsgs.Items.Add(items);
                }
            }
        }

        private void lstviewMsgs_ItemActivate(object sender, EventArgs e)
        {
            ListView view = (ListView)sender;
            ListViewItem item = view.Items[view.SelectedIndices[0]];
            txtName.Text = item.SubItems[0].Text;
            txtmsg.Text = item.SubItems[1].Text;
            txtdate.Text = item.SubItems[2].Text;
            txttime.Text = item.SubItems[3].Text;
        }


        private void txtmsg_GotFocus(object sender, EventArgs e)
        {

        }

        private void menuExit_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Do you want to exit?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            {
                Application.Exit();
            }
        }


    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Singapore Singapore
- B.Sc. degree in Computer Science.
- 4+ years experience in Visual C#.net and VB.net
- Obsessed in OOP style design and programming.
- Designing and developing Network security tools.
- Designing and developing a client/server application for sharing files among users in a way other than FTP protocol.
- Designing and implementing GSM gateway applications and bulk messaging.
- Windows Mobile and Symbian Programming
- Having knowledge with ERP solutions

The summary of my skills:
C#, VB.Net#,ASP.net, VC++, Java, WPF,WCF, Oracle, SQL Server, MS Access, Windows NT administration

Cheers
RRave
MCPD,MCTS
http://codegain.com

Comments and Discussions