Esempio n. 1
0
        internal static ComputerChangeInfo GetComputerStatusObject(int errorcode, string computername)
        {
            ComputerChangeInfo computerChangeInfo = new ComputerChangeInfo();

            computerChangeInfo.ComputerName = computername;
            if (errorcode == 0)
            {
                computerChangeInfo.HasSucceeded = true;
            }
            else
            {
                computerChangeInfo.HasSucceeded = false;
            }
            return(computerChangeInfo);
        }
Esempio n. 2
0
		internal static ComputerChangeInfo GetComputerStatusObject(int errorcode, string computername)
		{
			ComputerChangeInfo computerChangeInfo = new ComputerChangeInfo();
			computerChangeInfo.ComputerName = computername;
			if (errorcode == 0)
			{
				computerChangeInfo.HasSucceeded = true;
			}
			else
			{
				computerChangeInfo.HasSucceeded = false;
			}
			return computerChangeInfo;
		}