Exemplo n.º 1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            try
            {
                setWebTotals();
                // lbldatetime.Text = DateTime.Now.ToLongTimeString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            //listView1.Location.X = 0;
            //listView1.Location.Y = 10;

            Commoncls.setListview(lvShortcuts, "Employee Data", 0, i64x64);
            Commoncls.setListview(lvShortcuts, "Department", 1, i64x64);
            Commoncls.setListview(lvShortcuts, "Job Profile", 2, i64x64);
            Commoncls.setListview(lvShortcuts, "Attendance Management", 3, i64x64);
            Commoncls.setListview(lvShortcuts, "Leave Management", 4, i64x64);
            Commoncls.setListview(lvShortcuts, "Payment", 5, i64x64);
            Commoncls.setListview(lvShortcuts, "User Account", 6, i64x64);
            Commoncls.setListview(lvShortcuts, "MS Excel", 7, i64x64);
            Commoncls.setListview(lvShortcuts, "Internet", 8, i64x64);
            Commoncls.setListview(lvShortcuts, "DB Backup", 9, i64x64);
            Commoncls.setListview(lvShortcuts, "Exit the System", 10, i64x64);
            Commoncls.setCreateDirectory("Errors", AppDomain.CurrentDomain.BaseDirectory);
            // Class1
        }