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 static void initialiseDialog()
        {
            dialogUpdatePlacementDetails = new Dialog_UpdateStudentCompany();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogUpdatePlacementDetails, Common.dialog_height, Common.dialog_width);

            dialogUpdatePlacementDetails.Opacity = Common.dialogOpacity;
            dialogUpdatePlacementDetails.dropdown_company.Focus();
            dialogUpdatePlacementDetails.isCompanyPresent = false;
            dialogUpdatePlacementDetails.getPossibleCompanies();
        }
        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();
            }
        }