예제 #1
0
        ///<summary>Gets the set printer whether or not it is valid.</summary>
        public static Printer GetForSit(PrintSituation sit)
        {
            Computer compCur = Computers.GetCur();

            for (int i = 0; i < List.Length; i++)
            {
                if (List[i].ComputerNum == compCur.ComputerNum &&
                    List[i].PrintSit == sit)
                {
                    return(List[i]);
                }
            }
            return(null);
        }