private async void postButton_Click(object sender, EventArgs e)
        {
            SetResponse      res  = null;
            FirebaseResponse res1 = null;

            //newslineCount d = new newslineCount();
            postOnlinedData d = new postOnlinedData();

            d.post = textBox1.Text;
            d.Time = DateTime.Now.ToString("h:mm:ss tt");
            d.Date = DateTime.Now.ToString("yyyy-MM-dd tt");

            // MessageBox.Show(d.Date);

            res1 = await client.GetTaskAsync("NewsLineCnt/cnt");

            newslineCount d1 = res1.ResultAs <newslineCount>();
            //MessageBox.Show(d1.cnt);
            int x = Int32.Parse(d1.cnt);

            x++;
            d1.cnt = x.ToString();
            res    = await client.SetTaskAsync("NewsLine/3rdyear/1stsemester/CSE/post" + x.ToString(), d);

            res = await client.SetTaskAsync("NewsLineCnt/cnt", d1);

            MessageBox.Show("Post Successfull");
            this.Hide();
            StudentLogged st = new StudentLogged();

            st.Show();
        }
        private async void NewsLine_Load(object sender, EventArgs e)
        {
            client = new FireSharp.FirebaseClient(config);
            FirebaseResponse res = null;

            res = await client.GetTaskAsync("NewsLineCnt/");

            countClass cc = res.ResultAs <countClass>();
            long       x  = Convert.ToInt64(cc.cnt.ToString());

            dt.Columns.Add("Post");
            dt.Columns.Add("Date");
            dt.Columns.Add("Time");
            dataGridView1.DataSource = dt;
            int i = 0;

            while (true)
            {
                i++;
                if (i > x)
                {
                    break;
                }
                FirebaseResponse res1 = null;
                res1 = await client.GetTaskAsync("NewsLine/3rdyear/1stsemester/CSE/post" + i.ToString());

                postOnlinedData d = res1.ResultAs <postOnlinedData>();
                DataRow         r = dt.NewRow();
                r["Post"] = d.post;
                r["Date"] = d.Date;
                r["Time"] = d.Time;
                dt.Rows.Add(r);
            }
        }