private void BtnAdd_Click(object sender, EventArgs e)
 {
     using (frm_UserAction frm = new frm_UserAction(AppConfigAction.Add))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             //TODO
             gv_users.Rows.Add(frm.Result.UserName, frm.Result.Password);
         }
     }
 }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gv_users.SelectedRows.Count > 0)
     {
         using (frm_UserAction frm = new frm_UserAction(AppConfigAction.Edit, new User()
         {
             UserName = gv_users.SelectedRows[0].Cells["username"].Value.ToString(),
             Password = gv_users.SelectedRows[0].Cells["password"].Value.ToString()
         }))
         {
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 //TODO
                 gv_users.SelectedRows[0].Cells["username"].Value = frm.Result.UserName;
                 gv_users.SelectedRows[0].Cells["password"].Value = frm.Result.Password;
             }
         }
     }
     else
     {
         Until.ShowErrorBox("Please choose data first");
     }
 }