You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
399 B
C#
19 lines
399 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Rs.MotionPlat.Commom
|
|
{
|
|
public static class TrayHelper
|
|
{
|
|
public static (int,int) GetRC(int index,int rCount,int cCount)
|
|
{
|
|
int r = (index-1) / cCount;
|
|
int c = (index-1) % cCount;
|
|
return (r,c);
|
|
}
|
|
}
|
|
}
|