private async void export()
        {
            dt.Rows.Clear();
            int i = 0;
            FirebaseResponse resp2 = await client.GetTaskAsync("Counter/node");

            Cntclass obj1 = resp2.ResultAs <Cntclass>();
            int      cnt  = Convert.ToInt32(obj1.cnt);

            Globals.Cnt = cnt;

            while (true)
            {
                if (cnt == i)
                {
                    break;
                }
                i++;
                try
                {
                    FirebaseResponse resp3 = await client.GetTaskAsync("DataBase/" + i);

                    Data obj2 = resp3.ResultAs <Data>();

                    DataRow row = dt.NewRow();

                    row["Date&Time"]                = obj2.v;
                    row["Email"]                    = obj2.a;
                    row["Prog.Name"]                = obj2.b;
                    row["CourseName"]               = obj2.c;
                    row["CourseCode"]               = obj2.d;
                    row["LecturerName"]             = obj2.e;
                    row["6.A"]                      = obj2.f;
                    row["6.B"]                      = obj2.g;
                    row["6.C"]                      = obj2.h;
                    row["6.D"]                      = obj2.i;
                    row["6.E"]                      = obj2.j;
                    row["6.F"]                      = obj2.k;
                    row["6.G"]                      = obj2.l;
                    row["6.H"]                      = obj2.m;
                    row["6.I"]                      = obj2.n;
                    row["6.J"]                      = obj2.o;
                    row["How many classes missed?"] = obj2.p;
                    row["Received Outline"]         = obj2.q;
                    row["9. feedback"]              = obj2.r;
                    row["10. feedback"]             = obj2.s;
                    row["11. feedback"]             = obj2.t;
                    row["12. feedback"]             = obj2.u;



                    dt.Rows.Add(row);
                }

                catch
                {
                }
            }
            MessageBox.Show("Done Refreshing!");
        }
        private void Mainform_Load(object sender, EventArgs e)
        {
            this.MaximizedBounds = Screen.FromHandle(this.Handle).WorkingArea;
            this.WindowState     = FormWindowState.Maximized;
            client = new FireSharp.FirebaseClient(config);

            dt.Columns.Add("Date&Time");
            dt.Columns.Add("Email");
            dt.Columns.Add("Prog.Name");
            dt.Columns.Add("CourseName");
            dt.Columns.Add("CourseCode");
            dt.Columns.Add("LecturerName");
            dt.Columns.Add("6.A");
            dt.Columns.Add("6.B");
            dt.Columns.Add("6.C");
            dt.Columns.Add("6.D");
            dt.Columns.Add("6.E");
            dt.Columns.Add("6.F");
            dt.Columns.Add("6.G");
            dt.Columns.Add("6.H");
            dt.Columns.Add("6.I");
            dt.Columns.Add("6.J");
            dt.Columns.Add("How many classes missed?");
            dt.Columns.Add("Received Outline");
            dt.Columns.Add("9. feedback");
            dt.Columns.Add("10. feedback");
            dt.Columns.Add("11. feedback");
            dt.Columns.Add("12. feedback");



            dataGridView1.DataSource = dt;

            var data = new Data
            {
            };

            var obj = new Cntclass
            {
                cnt = data.Id
            };

            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();

            ToolTip1.SetToolTip(this.button2, "Before search click the refresh button first!");
        }