private void buttonEL_Click(object sender, EventArgs e)
        {
            this.Hide();
            EnforcersList systemMenu = new EnforcersList();

            systemMenu.ShowDialog();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            EnforcersList enforcerslist = new EnforcersList();

            enforcerslist.ShowDialog();
        }
        private async void buttonSubmit_Click(object sender, EventArgs e)
        {
            FirebaseResponse resp = await client.GetTaskAsync("Counter/count");

            Counter get = resp.ResultAs <Counter>();
            String  Id  = (Convert.ToUInt32(get.cnt) + 1).ToString();

            /*/Get The Value From Input Field
             * c.FirstName = metroTextBoxFirstname.Text;
             * c.LastName = metroTextBoxLastname.Text;
             * c.Address = metroTextBoxAddress.Text;
             * c.Gender = metroComboBoxGender.Text;
             * c.BirthDate = metroDateTimeBirthDate.Text;
             * c.ContactNo = metroTextBoxContactNo.Text;
             * c.Code = metroTextBoxCode.Text;
             * inserting Data into Database/*/
            var data = new Data
            {
                FirstName = metroTextBoxFirstname.Text,
                LastName  = metroTextBoxLastname.Text,
                Address   = metroTextBoxAddress.Text,
                Gender    = metroComboBoxGender.Text,
                BirthDate = metroDateTimeBirthDate.Text,
                ContactNo = metroTextBoxContactNo.Text,
                Code      = metroTextBoxCode.Text,
            };

            if (metroTextBoxFirstname.Text == "")
            {
                MessageBox.Show("Failed to Register! Firstname is Empty!");
            }
            else if (metroTextBoxLastname.Text == "")
            {
                MessageBox.Show("Failed to Register! LastName is Empty!");
            }
            else if (metroTextBoxAddress.Text == "")
            {
                MessageBox.Show("Failed to Register! Address is Empty!");
            }
            else if (metroComboBoxGender.Text == "")
            {
                MessageBox.Show("Failed to Register! Gender is Empty!");
            }
            else if (metroDateTimeBirthDate.Text == "")
            {
                MessageBox.Show("Failed to Register! BirthDate is Empty!");
            }
            else if (metroTextBoxContactNo.Text == "")
            {
                MessageBox.Show("Failed to Register! ContactNo. is Empty!");
            }
            else if (metroTextBoxCode.Text == "")
            {
                MessageBox.Show("Failed to Register! Code is Empty!");
            }
            else
            {
                SetResponse response = await client.SetTaskAsync("Enforcer/" + Id, data);

                Data result = response.ResultAs <Data>();
                var  data2  = new Counter
                {
                    cnt = Id
                };
                SetResponse response1 = await client.SetTaskAsync("Counter/count", data2);

                if (result == result)
                {
                    MessageBox.Show("Enforcer's Account Successfully Created");
                    this.Hide();
                    EnforcersList enforcerslist = new EnforcersList();
                    enforcerslist.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Failed to Create Account. Try Again.");
                }
            }

            /* if (success == true)
             * {
             *   MessageBox.Show("Enforcer's Account Successfully Created");
             *   this.Hide();
             *   EnforcersList enforcerslist = new EnforcersList();
             *   enforcerslist.ShowDialog();
             *
             * }
             * else
             * {
             *   MessageBox.Show("Failed to Create Account. Try Again.");
             * }*/
        }