예제 #1
0
        private void kartero_Load(object sender, EventArgs e)
        {
            Program.k = this;

            nc = new NetworkCredential(Program.userid, Program.password);

            query_string = "select s.studid,s.fullname,s.ilevel,c.centername,s.school,s.s_email,s.email,s.is_qualified,s.is_emailed, " +
                           "s.depslip,s.is_registered,s.haspicture,s.profilescan,is_noted,s.shirtsize from students as s inner join " +
                           "centers as c on s.center=c.centerid";
            lcs = new ListViewColumnSorter();
            lvList.ListViewItemSorter = lcs;
            lvList.Sorting            = SortOrder.None;
            lcs.Order    = SortOrder.None;
            sbcount.Text = "0";
            messages     = new MailMessage[30];
        }
예제 #2
0
        private void qkartero_Load(object sender, EventArgs e)
        {
            Program.qk = this;

            nc           = new NetworkCredential(Program.q_userid, Program.q_password);
            query_string = "select s.studid,s.fullname,s.ilevel,c.centername,s.school,s.s_email,s.is_qualified, " +
                           "s.result from students as s inner join " +
                           "centers as c on s.center=c.centerid";
            lcs = new ListViewColumnSorter();
            lvList.ListViewItemSorter = lcs;
            lvList.Sorting            = SortOrder.None;
            lcs.Order    = SortOrder.None;
            sbcount.Text = "0";
            messages     = new MailMessage[30];

            cbResult.Items.Add("QUALIFIER");
            cbResult.Items.Add("ALTERNATE");
            cbName.Items.Add("MATHDAP");
            cbName.Items.Add("MTGPHIL");
            cbResult.SelectedIndex = 0;
            cbName.SelectedIndex   = 0;
        }