private void Method_Image_MouseLeftButtonUp(object sender, MouseEventArgs e) { if (Param1 == "[ASK]" | Param2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(ObjectName, MethodName, Param1, Param2, "GUI"); } }
private void Click_Image_MouseLeftButtonUp(object sender, MouseEventArgs e) { string imgName = screenObject.Property("Normal Image").Value; OSAEImage img = imgMgr.GetImage(imgName); if (img.Data != null) { var imageStream = new MemoryStream(img.Data); var bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.StreamSource = imageStream; bitmapImage.EndInit(); Image.Source = bitmapImage; Image.Visibility = System.Windows.Visibility.Visible; } else { Image.Source = null; Image.Visibility = System.Windows.Visibility.Hidden; } if (ReleaseMethodName != "") { if (ReleaseMethodParam1 == "[ASK]" | ReleaseMethodParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject, currentUser); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(ReleaseObjectName, ReleaseMethodName, ReleaseMethodParam1, ReleaseMethodParam2, currentUser); } } if (PressScriptName != "") { if (PressScriptParam1 == "[ASK]" | PressScriptParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject,currentUser); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(ReleaseObjectName, ReleaseMethodName, ReleaseMethodParam1, ReleaseMethodParam2, currentUser); } } }
private void Click_Image_MouseLeftButtonDown(object sender, MouseEventArgs e) { string currentUser = OSAE.OSAEObjectPropertyManager.GetObjectPropertyValue(gAppName, "Current User").Value; if (currentUser == "") { return; } string imgName = screenObject.Property("Pressed Image").Value; OSAEImage img = imgMgr.GetImage(imgName); if (img != null) { var imageStream = new MemoryStream(img.Data); var bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.StreamSource = imageStream; bitmapImage.EndInit(); Image.Source = bitmapImage; Image.Visibility = System.Windows.Visibility.Visible; } // else // { // Image.Source = null; // Image.Visibility = System.Windows.Visibility.Hidden; // } if (PressMethodName != "") { if (PressMethodParam1 == "[ASK]" | PressMethodParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject, currentUser); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(PressObjectName, PressMethodName, PressMethodParam1, PressMethodParam2, currentUser); } } if (PressScriptName != "") { if (PressMethodParam1 == "[ASK]" | PressMethodParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject, currentUser); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(PressObjectName, PressMethodName, PressMethodParam1, PressMethodParam2, currentUser); } } }
private void Click_Image_MouseLeftButtonUp(object sender, MouseEventArgs e) { string imgName = screenObject.Property("Normal Image").Value; OSAEImage img = imgMgr.GetImage(imgName); if (img.Data != null) { var imageStream = new MemoryStream(img.Data); var bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.StreamSource = imageStream; bitmapImage.EndInit(); Image.Source = bitmapImage; Image.Visibility = System.Windows.Visibility.Visible; } else { Image.Source = null; Image.Visibility = System.Windows.Visibility.Hidden; } if (ReleaseMethodName != "") { if (ReleaseMethodParam1 == "[ASK]" | ReleaseMethodParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(ReleaseObjectName, ReleaseMethodName, ReleaseMethodParam1, ReleaseMethodParam2, "GUI"); } } if (PressScriptName != "") { if (PressScriptParam1 == "[ASK]" | PressScriptParam2 == "[ASK]") { ParamInput addControl = new ParamInput("Method", screenObject); string cppX = screenObject.Property("X").Value; string cppY = screenObject.Property("Y").Value; double cpp_X = Convert.ToDouble(cppX); double cpp_Y = Convert.ToDouble(cppY); if (cpp_X < 320) { cpp_X = cpp_X + 200; } addControl.Left = cpp_X; addControl.Top = cpp_Y; addControl.Show(); } else { OSAEMethodManager.MethodQueueAdd(ReleaseObjectName, ReleaseMethodName, ReleaseMethodParam1, ReleaseMethodParam2, "GUI"); } } }