Esempio n. 1
0
        private void HandlepnlPickup_MOUSEDOWN(object sender, MouseEventArgs e)
        {
            // this is the clicked PickupControl
            Button PickupButton = sender as Button;

            if ((e.Button == MouseButtons.Left))
            {
                // put it on the mainform so the destination frmRoute can go get it
                //sender is the button
                //sender.parent is pnlPickup
                //sender.parent.parent is PickupControlLibrary.PickupControl
                //sender.parent.parent.CurrentPickup is the public property of the user control
                // ??? MainForm.DraggedCDP = sender.parent.parent.CurrentPickup;
                //sender is the button
                frmSourceRoute = this;
                // ??? pnlContainer.DoDragDrop(sender.parent.parent.CurrentPickup, DragDropEffects.All);
            }
            else
            {
                //frmDestinationRoute = sender.parent.parent.parent  ' is this necessary?
                // ??? MainForm.objSourcePickup = sender.parent.parent.CurrentPickup;
                PickupButton.ContextMenuStrip.Show();
            }
        }
Esempio n. 2
0
        private void LoadfrmRoutes()
        {
            var RouteCount = Program.GetCDRCount();

            var cdrqry = from cdr in Program.CDRList
                         select cdr;
            var sdqry = from sd in Program.ScreenList
                        select sd;

            for (int i = 0; i < RouteCount; i++)
            {
                foreach (DispatchAR.CurrentDayRoute route in cdrqry)
                {
                    foreach (ScreenDimension screen in sdqry)
                    {
                        if (route.CDRRouteID.Equals(screen.WinTitle.Substring(0, 2)))
                        {
                            var rw = new frmRoute(screen, route);
                            rw.MdiParent = this;
                            rw.Show();
                        }
                    }

                }
                return;
            }
        }
Esempio n. 3
0
 private void HandlepnlContainer_DRAGDROP(object sender, DragEventArgs e)
 {
     frmDestinationRoute = this;
     if ((MainForm.DraggedCDP != null))
     {
         SaveDragandDropPickup();
         this.RefreshDynamicPickupControls();
         frmSourceRoute.RefreshDynamicPickupControls();
     }
 }
Esempio n. 4
0
 public void RefreshThisRoute(frmRoute whichForm)
 {
     frmRoute.SyncRouteWindowTextDriverMsgControls(this.MdiChildren);
     whichForm.RefreshDynamicPickupControls();
 }