private void but_upload_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(filePath))
     {
         Dialog_MyMessageBox.Show(Validations.VALIDATION_NO_FILE_SELECTED, 1, UiColors.MESSAGE_ERROR);
     }
     else
     {
         if (!Utility.isNetworkAvailable())
         {
             Dialog_MyMessageBox.Show(Validations.VALIDATION_NO_NETWORK, 1, UiColors.MESSAGE_ERROR);
         }
         else
         {
             try
             {
                 DialogResult result = Dialog_UpdateStudentCompany.Show(filePath);
                 if (result == DialogResult.Yes)
                 {
                     updateStatus.placementStatusUpdated = true;
                 }
                 but_cancel.PerformClick();
             }
             catch (Exception ex)
             {
                 Utility.logFile(ex.Message, ex.InnerException, Constant.LOGTYPE_ERROR);
                 Dialog_MyMessageBox.Show(Constant.EXCEPTION, 1, UiColors.MESSAGE_ERROR);
             }
         }
     }
 }
        private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (!Utility.isNetworkAvailable())
            {
                Dialog_MyMessageBox.Show(Validations.VALIDATION_NO_NETWORK, 1, UiColors.MESSAGE_ERROR);
            }
            else
            {
                Entity_Student studentObj = listView1.SelectedItems[0].Tag as Entity_Student;
                updateStatus.panel_search.Hide();
                DialogResult result = Dialog_UpdateStudentCompany.Show(studentObj);

                if (result == DialogResult.Yes)
                {
                    Dialog_MyMessageBox.Show(Constant.UPDATE_SUCCESS, 1, UiColors.MESSAGE_SUCCESS);
                    updateStatus.placementStatusUpdated = true;
                }
                else if (result == DialogResult.No)
                {
                    Dialog_MyMessageBox.Show(Constant.DATA_EXISTS, 1, UiColors.MESSAGE_ERROR);
                }
                updateStatus.panel_search.Show();
            }
        }