This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Management; | |
using System.Reflection; | |
using IONClient.Collector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{<?xml version="1.0" encoding="utf-8"?> | |
<applications> | |
<application> | |
<DisplayName /> | |
<Publisher /> | |
<InstallDate /> | |
<Version /> | |
<UninstallString /> | |
</application> | |
<application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal hide" id="deleteMachine" > | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal"> | |
× | |
</button> | |
<h3>Machine Deletion</h3> | |
</div> | |
<div class="modal-body"> | |
Are you sure that you want to delete this machine? <%= @current_machine_id%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace IONService.Config | |
{ | |
class Variables | |
{ | |
//app | |
static public string IONServiceServiceName = "IONService"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace IONService.Config | |
{ | |
class Variables | |
{ | |
//app | |
static public string IONServiceServiceName = "IONService"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Request.ContentType == Common.ContentTypeAsXml) | |
{ | |
//Rails logic: | |
//mark all programs for this machine to installed=false | |
//then for each program if exists mark installed as true | |
//else add | |
var installedProgramsXML = new StreamReader(Request.InputStream).ReadToEnd(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program.transaction do | |
Program.update_all({:Installed=>FALSE}, {:machine_id=>params[:machine_id]}) | |
params[:programs][:program].each do |t| | |
if(Program.exists?(:DisplayName=>t[:DisplayName], :Version=>t[:Version], :machine_id=>t[:machine_id])) | |
Program.where(:DisplayName=>t[:DisplayName], :Version=>t[:Version], :machine_id=>t[:machine_id]).update_all :Installed=>TRUE | |
else | |
Program.create(t) | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.typeahead').typeahead({ | |
}); | |
$('.group').focusout(function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.typeahead').typeahead({ | |
}); | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
OlderNewer