private void UserControl_MouseUp(object sender, MouseButtonEventArgs e) { CMPop objCMPop = null; objCMPop = new CMPop(); objCMPop.MachineCode = this.MachineCode; objCMPop.MachineChannel = this.MachineChannel; objCMPop.Show(); }
private void UserControl_MouseUp(object sender, MouseButtonEventArgs e) { CMPop objCMPop = null; objCMPop = new CMPop(); objCMPop.MachineCode = this.MachineCode; objCMPop.MachineChannel = this.MachineChannel; //Int32 relx = Math.Abs(Convert.ToInt32(usr.PointFromScreen(new System.Windows.Point(0, 0)).X)); //Int32 relY = Math.Abs(Convert.ToInt32(usr.PointFromScreen(new System.Windows.Point(0, 0)).Y)); //objCMPop.Left = relx; //objCMPop.Top = relY + Convert.ToInt32(usr.Height); objCMPop.Show(); }