/// <summary>
        /// In forms constructor the not necessarily labels, tetxboxes and comboboxes are hiding
        /// from the form. Then the combobox for ratings(CmbSelect) is filling with the data of the table.
        /// </summary>
        public EditRatingsForm()
        {
            InitializeComponent();

            LblRatingValue.Hide();
            LblComment.Hide();
            LblUsername.Hide();

            TbxComment.Hide();
            TbxRatingValue.Hide();
            CmbUsername.Hide();

            BtnEdit.Hide();

            CmbSelect.DataSource    = DCom.GetData("SELECT *, CONCAT(Username, ', ', Rating_Value) AS NAME FROM ratings");
            CmbSelect.DisplayMember = "NAME";
            CmbSelect.ValueMember   = "ID";
        }
 private void Reset()//reset the all changes on textboxes
 {
     TxtName.Text             = string.Empty;
     TxtSurname.Text          = string.Empty;
     TxtPhone.Text            = string.Empty;
     TxtUsername.Text         = string.Empty;
     TxtPassword.Text         = string.Empty;
     TxtNewPassword.Text      = string.Empty;
     CmbPosition.SelectedItem = null;
     BtnAdd.Show();
     BtnDeactive.Hide();
     BtnUpdate.Hide();
     BtnCancel.Hide();
     TxtNewPassword.Hide();
     LblPassword.Text = "password";
     TxtPassword.Show();
     LblComment.Hide();
 }