Ejemplo n.º 1
0
        private void UserReport_Load(object sender, EventArgs e)
        {
            FileHandler filehandler = new FileHandler("users.bin");
            String[] tempdate = new String[(filehandler.countFile()) * 2];
            tempdate = filehandler.GetUsers();
            String[] temp = new String[2];
            DataGridViewRowCollection rows = this.dataGridView1.Rows;

            int j = 0;
            for (int i = 0; i < tempdate.Length/2; i++)
            {
                temp[0] = tempdate[i + j];
                temp[1] = "    ********";
                rows.Add(temp);
                j++;
            }
        }
Ejemplo n.º 2
0
        private void UserReport_Load(object sender, EventArgs e)
        {
            FileHandler filehandler = new FileHandler("users.bin");

            String[] tempdate = new String[(filehandler.countFile()) * 2];
            tempdate = filehandler.GetUsers();
            String[] temp = new String[2];
            DataGridViewRowCollection rows = this.dataGridView1.Rows;

            int j = 0;

            for (int i = 0; i < tempdate.Length / 2; i++)
            {
                temp[0] = tempdate[i + j];
                temp[1] = "    ********";
                rows.Add(temp);
                j++;
            }
        }