private void GenerateKeyQueryExecuteCommand() { var serverCore = new ServerCore(); var sn = serverCore.GetKeyQueryFromModel(new KeyQueryModel { ComputerName = ComputerName, ProcessorId = ProcessorId, ProductName = ProductName, SystemSerial = SerialOs, }); KeyQuery = sn; }
static void GeneratorKeyQuery() { if (Properties.Settings.Default.IsFullScreen) { Console.WindowWidth = 120; } var pcName = InputParametr("Input PC name"); var systemKey = InputParametr("Input systemKey"); var cpuId = InputParametr("Input cpuId"); var prodName = InputParametr("Input prodName"); var serverCore = new ServerCore(); var sn = serverCore.GetKeyQueryFromModel(new KeyQueryModel { ComputerName = pcName, ProcessorId = cpuId, ProductName = prodName, SystemSerial = systemKey, }); Console.WriteLine(sn); Console.ReadLine(); }