private void gridControlWorkpack_DoubleClick(object sender, EventArgs e)
        {
            WORKPACK_Dashboard selectedWORKPACK = (WORKPACK_Dashboard)gridViewWorkpack.GetFocusedRow();

            if (selectedWORKPACK != null)
            {
                PROJECTWORKPACKDetailsWorkpackAssignment view = new PROJECTWORKPACKDetailsWorkpackAssignment(TASK_WBSAppointments, WORKPACK_Dashboards, WORKPACK_ASSIGNMENTSViewModel, ISMODIFIED, null, selectedWORKPACK);
                view.ShowDialog();
                view.Dispose();

                CalculateAppointmentsUnits();
            }
        }
        private void schedulerControl1_DragDrop(object sender, DragEventArgs e)
        {
            WORKPACK_Dashboard dragDropWorkpack = (WORKPACK_Dashboard)((DataObject)e.Data).GetData(typeof(WORKPACK_Dashboard));
            Point            pt         = schedulerControl1.PointToClient(Control.MousePosition);
            SchedulerHitInfo schHitInfo = schedulerControl1.ActiveView.ViewInfo.CalcHitInfo(pt, false);

            if (schHitInfo.HitTest == SchedulerHitTest.AppointmentContent)
            {
                var dropAppointment = ((AppointmentViewInfo)schHitInfo.ViewInfo).Appointment;
                PROJECTWORKPACKDetailsWorkpackAssignment view = new PROJECTWORKPACKDetailsWorkpackAssignment(TASK_WBSAppointments, WORKPACK_Dashboards, WORKPACK_ASSIGNMENTSViewModel, ISMODIFIED, dropAppointment, dragDropWorkpack);
                view.ShowDialog();
                view.Dispose();

                CalculateAppointmentsUnits();
            }
        }