using Rs.Controls; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Rs.MotionPlat { public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { TraySlot slot = rsTray1.GetSlot(Rs.Controls.ESlotStatus.Have); MessageBox.Show(slot.Index.ToString()+$" r={slot.Row},col={slot.Column}"); } } }