/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_Hidden_Account_Form.Designer.cs |
---|
0,0 → 1,105 |
namespace SWAT_Office_App |
{ |
partial class AddHiddenAccount_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddHiddenAccount_Form)); |
this.lbl_Add_Hidden_Account = new System.Windows.Forms.Label(); |
this.txt_AddHiddenAccount = new System.Windows.Forms.TextBox(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.btn_Ok = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lbl_Add_Hidden_Account |
// |
this.lbl_Add_Hidden_Account.AutoSize = true; |
this.lbl_Add_Hidden_Account.Location = new System.Drawing.Point(22, 9); |
this.lbl_Add_Hidden_Account.Name = "lbl_Add_Hidden_Account"; |
this.lbl_Add_Hidden_Account.Size = new System.Drawing.Size(103, 13); |
this.lbl_Add_Hidden_Account.TabIndex = 0; |
this.lbl_Add_Hidden_Account.Text = "Enter account name"; |
// |
// txt_AddHiddenAccount |
// |
this.txt_AddHiddenAccount.Location = new System.Drawing.Point(18, 29); |
this.txt_AddHiddenAccount.Name = "txt_AddHiddenAccount"; |
this.txt_AddHiddenAccount.Size = new System.Drawing.Size(110, 20); |
this.txt_AddHiddenAccount.TabIndex = 1; |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(76, 57); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(60, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// btn_Ok |
// |
this.btn_Ok.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Ok.Location = new System.Drawing.Point(10, 57); |
this.btn_Ok.Name = "btn_Ok"; |
this.btn_Ok.Size = new System.Drawing.Size(60, 24); |
this.btn_Ok.TabIndex = 4; |
this.btn_Ok.Text = "Ok"; |
this.btn_Ok.UseVisualStyleBackColor = true; |
this.btn_Ok.Click += new System.EventHandler(this.btn_Ok_Click); |
// |
// AddHiddenAccount_Form |
// |
this.AcceptButton = this.btn_Ok; |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.btn_Ok); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.txt_AddHiddenAccount); |
this.Controls.Add(this.lbl_Add_Hidden_Account); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "AddHiddenAccount_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Add Hidden Account"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Add_Hidden_Account; |
private System.Windows.Forms.TextBox txt_AddHiddenAccount; |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.Button btn_Ok; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_Hidden_Account_Form.cs |
---|
0,0 → 1,54 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class AddHiddenAccount_Form : Form |
{ |
public AddHiddenAccount_Form() |
{ |
InitializeComponent(); |
this.btn_Ok.Enabled = false; |
this.txt_AddHiddenAccount.TextChanged += new EventHandler(this.txt_TextChanged); |
} |
private void txt_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text.Length == 0) |
this.btn_Ok.Enabled = false; |
else |
this.btn_Ok.Enabled = true; |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Ok_Click(object sender, EventArgs e) |
{ |
bool error = false; |
// Checks if account already exists in the list of hidden accounts |
foreach (string hiddenUser in Settings_Form.hiddenAccounts) |
{ |
if (this.txt_AddHiddenAccount.Text.ToLower() == hiddenUser.ToLower()) |
{ |
MessageBox.Show("Account is already in the list of hidden accounts", "Error"); |
error = true; |
this.txt_AddHiddenAccount.Text = ""; |
this.txt_AddHiddenAccount.Focus(); |
} |
} |
if (error == false) |
{ |
Settings_Form.hiddenAccounts.Add(txt_AddHiddenAccount.Text); |
this.Close(); |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_Hidden_Account_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_System_Account_Form.Designer.cs |
---|
0,0 → 1,105 |
namespace SWAT_Office_App |
{ |
partial class AddSystemAccount_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddSystemAccount_Form)); |
this.lbl_Add_System_Account = new System.Windows.Forms.Label(); |
this.txt_AddSystemAccount = new System.Windows.Forms.TextBox(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.btn_Ok = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lbl_Add_System_Account |
// |
this.lbl_Add_System_Account.AutoSize = true; |
this.lbl_Add_System_Account.Location = new System.Drawing.Point(22, 9); |
this.lbl_Add_System_Account.Name = "lbl_Add_System_Account"; |
this.lbl_Add_System_Account.Size = new System.Drawing.Size(103, 13); |
this.lbl_Add_System_Account.TabIndex = 0; |
this.lbl_Add_System_Account.Text = "Enter account name"; |
// |
// txt_AddSystemAccount |
// |
this.txt_AddSystemAccount.Location = new System.Drawing.Point(18, 29); |
this.txt_AddSystemAccount.Name = "txt_AddSystemAccount"; |
this.txt_AddSystemAccount.Size = new System.Drawing.Size(110, 20); |
this.txt_AddSystemAccount.TabIndex = 1; |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(76, 57); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(60, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// btn_Ok |
// |
this.btn_Ok.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Ok.Location = new System.Drawing.Point(10, 57); |
this.btn_Ok.Name = "btn_Ok"; |
this.btn_Ok.Size = new System.Drawing.Size(60, 24); |
this.btn_Ok.TabIndex = 4; |
this.btn_Ok.Text = "Ok"; |
this.btn_Ok.UseVisualStyleBackColor = true; |
this.btn_Ok.Click += new System.EventHandler(this.btn_Ok_Click); |
// |
// AddSystemAccount_Form |
// |
this.AcceptButton = this.btn_Ok; |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.btn_Ok); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.txt_AddSystemAccount); |
this.Controls.Add(this.lbl_Add_System_Account); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "AddSystemAccount_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Add System Account"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Add_System_Account; |
private System.Windows.Forms.TextBox txt_AddSystemAccount; |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.Button btn_Ok; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_System_Account_Form.cs |
---|
0,0 → 1,54 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class AddSystemAccount_Form : Form |
{ |
public AddSystemAccount_Form() |
{ |
InitializeComponent(); |
this.btn_Ok.Enabled = false; |
this.txt_AddSystemAccount.TextChanged += new EventHandler(this.txt_TextChanged); |
} |
private void txt_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text.Length == 0) |
this.btn_Ok.Enabled = false; |
else |
this.btn_Ok.Enabled = true; |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Ok_Click(object sender, EventArgs e) |
{ |
bool error = false; |
// Checks if account already exists in the list of system accounts |
foreach (string systemUser in Settings_Form.systemAccounts) |
{ |
if (this.txt_AddSystemAccount.Text.ToLower() == systemUser.ToLower()) |
{ |
MessageBox.Show("Account is already in the list of system accounts", "Error"); |
error = true; |
this.txt_AddSystemAccount.Text = ""; |
this.txt_AddSystemAccount.Focus(); |
} |
} |
if (error == false) |
{ |
Settings_Form.systemAccounts.Add(txt_AddSystemAccount.Text); |
this.Close(); |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_System_Account_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_User_Account_Form.Designer.cs |
---|
0,0 → 1,144 |
namespace SWAT_Office_App |
{ |
partial class AddUserAccount_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddUserAccount_Form)); |
this.btn_Add = new System.Windows.Forms.Button(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.txt_Password = new System.Windows.Forms.TextBox(); |
this.txt_Username = new System.Windows.Forms.TextBox(); |
this.lbl_Username = new System.Windows.Forms.Label(); |
this.lbl_Password = new System.Windows.Forms.Label(); |
this.chk_Share = new System.Windows.Forms.CheckBox(); |
this.SuspendLayout(); |
// |
// btn_Add |
// |
this.btn_Add.Location = new System.Drawing.Point(98, 56); |
this.btn_Add.Name = "btn_Add"; |
this.btn_Add.Size = new System.Drawing.Size(60, 24); |
this.btn_Add.TabIndex = 4; |
this.btn_Add.Text = "&Add User"; |
this.btn_Add.UseVisualStyleBackColor = true; |
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click); |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(166, 56); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(60, 24); |
this.btn_Cancel.TabIndex = 5; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// txt_Password |
// |
this.txt_Password.Location = new System.Drawing.Point(124, 27); |
this.txt_Password.MaxLength = 13; |
this.txt_Password.Name = "txt_Password"; |
this.txt_Password.Size = new System.Drawing.Size(100, 20); |
this.txt_Password.TabIndex = 2; |
this.txt_Password.UseSystemPasswordChar = true; |
// |
// txt_Username |
// |
this.txt_Username.Location = new System.Drawing.Point(12, 27); |
this.txt_Username.MaxLength = 16; |
this.txt_Username.Name = "txt_Username"; |
this.txt_Username.Size = new System.Drawing.Size(100, 20); |
this.txt_Username.TabIndex = 1; |
// |
// lbl_Username |
// |
this.lbl_Username.AutoSize = true; |
this.lbl_Username.Location = new System.Drawing.Point(12, 9); |
this.lbl_Username.Name = "lbl_Username"; |
this.lbl_Username.Size = new System.Drawing.Size(99, 13); |
this.lbl_Username.TabIndex = 4; |
this.lbl_Username.Text = "Username (Max 16)"; |
// |
// lbl_Password |
// |
this.lbl_Password.AutoSize = true; |
this.lbl_Password.Location = new System.Drawing.Point(121, 9); |
this.lbl_Password.Name = "lbl_Password"; |
this.lbl_Password.Size = new System.Drawing.Size(97, 13); |
this.lbl_Password.TabIndex = 5; |
this.lbl_Password.Text = "Password (Max 13)"; |
// |
// chk_Share |
// |
this.chk_Share.AutoSize = true; |
this.chk_Share.Checked = true; |
this.chk_Share.CheckState = System.Windows.Forms.CheckState.Checked; |
this.chk_Share.Location = new System.Drawing.Point(10, 60); |
this.chk_Share.Name = "chk_Share"; |
this.chk_Share.Size = new System.Drawing.Size(88, 17); |
this.chk_Share.TabIndex = 3; |
this.chk_Share.Text = "Create &Share"; |
this.chk_Share.UseVisualStyleBackColor = true; |
// |
// AddUserAccount_Form |
// |
this.AcceptButton = this.btn_Add; |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(236, 89); |
this.Controls.Add(this.btn_Add); |
this.Controls.Add(this.chk_Share); |
this.Controls.Add(this.lbl_Password); |
this.Controls.Add(this.lbl_Username); |
this.Controls.Add(this.txt_Username); |
this.Controls.Add(this.txt_Password); |
this.Controls.Add(this.btn_Cancel); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "AddUserAccount_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Add User Account"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Button btn_Add; |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.TextBox txt_Password; |
private System.Windows.Forms.TextBox txt_Username; |
private System.Windows.Forms.Label lbl_Username; |
private System.Windows.Forms.Label lbl_Password; |
private System.Windows.Forms.CheckBox chk_Share; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_User_Account_Form.cs |
---|
0,0 → 1,79 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class AddUserAccount_Form : Form |
{ |
private static AddUserAccount_Form AddUserAccount_Instance = null; |
// Modified singleton instance |
public static AddUserAccount_Form Add_User_Account_Instance |
{ |
get |
{ |
AddUserAccount_Instance = new AddUserAccount_Form(); |
return AddUserAccount_Instance; |
} |
} |
public AddUserAccount_Form() |
{ |
InitializeComponent(); |
resetForm(); |
this.txt_Username.TextChanged += new EventHandler(txt_EmptyTxtBox); |
this.txt_Password.TextChanged += new EventHandler(txt_EmptyTxtBox); |
this.txt_Username.KeyPress += new KeyPressEventHandler(txt_Username_KeyPress); |
} |
private void resetForm() |
{ |
this.btn_Add.Enabled = false; |
this.txt_Username.Text = ""; |
this.txt_Password.Text = ""; |
this.txt_Username.Tag = false; |
this.txt_Password.Tag = false; |
this.txt_Username.Focus(); |
} |
private void txt_EmptyTxtBox(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text.Length == 0) |
tb.Tag = false; |
else |
tb.Tag = true; |
ValidateBox(); |
} |
private void ValidateBox() |
{ |
this.btn_Add.Enabled = ((bool)(this.txt_Username.Tag) && (bool)(this.txt_Password.Tag)); |
} |
private void txt_Username_KeyPress(object sender, KeyPressEventArgs e) |
{ |
// Blocks symbols that cannot be used in the username field |
if ((e.KeyChar < 32 || e.KeyChar == 34 || (e.KeyChar > 41 && e.KeyChar < 45) || e.KeyChar == 47 || |
(e.KeyChar > 57 && e.KeyChar < 65) || (e.KeyChar > 90 && e.KeyChar < 94) || e.KeyChar > 122) && e.KeyChar != 8) |
e.Handled = true; |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Add_Click(object sender, EventArgs e) |
{ |
if (ManageUserAccounts.AddUser(txt_Username.Text, txt_Password.Text)) |
{ |
if (this.chk_Share.Checked == true) |
ManageUserAccounts.CreateShareFolder(txt_Username.Text); |
this.Close(); |
} |
else |
resetForm(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Add_User_Account_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Delete_User_Verify_Form.Designer.cs |
---|
0,0 → 1,91 |
namespace SWAT_Office_App |
{ |
partial class DeleteUserVerify_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeleteUserVerify_Form)); |
this.lbl_Prompt1 = new System.Windows.Forms.Label(); |
this.txt_Password = new System.Windows.Forms.TextBox(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lbl_Prompt1 |
// |
this.lbl_Prompt1.AutoSize = true; |
this.lbl_Prompt1.Location = new System.Drawing.Point(1, 9); |
this.lbl_Prompt1.Name = "lbl_Prompt1"; |
this.lbl_Prompt1.Size = new System.Drawing.Size(144, 13); |
this.lbl_Prompt1.TabIndex = 0; |
this.lbl_Prompt1.Text = "Enter in the SWAT password"; |
// |
// txt_Password |
// |
this.txt_Password.Location = new System.Drawing.Point(18, 29); |
this.txt_Password.Name = "txt_Password"; |
this.txt_Password.Size = new System.Drawing.Size(110, 20); |
this.txt_Password.TabIndex = 1; |
this.txt_Password.UseSystemPasswordChar = true; |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(33, 55); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(80, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// DeleteUserVerify_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.txt_Password); |
this.Controls.Add(this.lbl_Prompt1); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "DeleteUserVerify_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Delete user(s)"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Prompt1; |
private System.Windows.Forms.TextBox txt_Password; |
private System.Windows.Forms.Button btn_Cancel; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Delete_User_Verify_Form.cs |
---|
0,0 → 1,53 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class DeleteUserVerify_Form : Form |
{ |
private List<string> selectedUsers = new List<string>(); |
public DeleteUserVerify_Form(List<string> users) |
{ |
selectedUsers = users; |
InitializeComponent(); |
//MessageBox.Show("Warning! Verify that all shares are closed before deleting account!", "Warning!"); |
this.txt_Password.Focus(); |
// Monitors the text in each textbox, triggering changes when certain criteria is met |
this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged); |
} |
private void txt_Password_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text == "tr33b3@rd") |
{ |
bool error = false; |
// Checks if any of the selected items are system accounts |
foreach (string user in selectedUsers) |
{ |
foreach (string systemUser in Settings_Form.systemAccounts) |
{ |
if (user.ToLower() == systemUser.ToLower()) |
{ |
MessageBox.Show("Cannot delete the " + systemUser + " (system) account", "Error"); |
error = true; |
} |
} |
} |
if (error == false) |
ManageUserAccounts.DeleteUser(selectedUsers); |
this.Close(); |
} |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Delete_User_Verify_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Form1.resx |
---|
0,0 → 1,120 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Main_Menu_Form.Designer.cs |
---|
0,0 → 1,122 |
namespace SWAT_Office_App |
{ |
partial class Menu1_Main |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Menu1_Main)); |
this.groupBox_Menu1 = new System.Windows.Forms.GroupBox(); |
this.lbl_Version = new System.Windows.Forms.Label(); |
this.btn_Settings = new System.Windows.Forms.Button(); |
this.btn_UserMgmt = new System.Windows.Forms.Button(); |
this.btn_Reimage_USB_Drives = new System.Windows.Forms.Button(); |
this.groupBox_Menu1.SuspendLayout(); |
this.SuspendLayout(); |
// |
// groupBox_Menu1 |
// |
this.groupBox_Menu1.Controls.Add(this.lbl_Version); |
this.groupBox_Menu1.Controls.Add(this.btn_Settings); |
this.groupBox_Menu1.Controls.Add(this.btn_UserMgmt); |
this.groupBox_Menu1.Controls.Add(this.btn_Reimage_USB_Drives); |
this.groupBox_Menu1.Location = new System.Drawing.Point(12, 12); |
this.groupBox_Menu1.Name = "groupBox_Menu1"; |
this.groupBox_Menu1.Size = new System.Drawing.Size(142, 163); |
this.groupBox_Menu1.TabIndex = 0; |
this.groupBox_Menu1.TabStop = false; |
this.groupBox_Menu1.Text = "Main Menu"; |
// |
// lbl_Version |
// |
this.lbl_Version.AutoSize = true; |
this.lbl_Version.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
this.lbl_Version.Location = new System.Drawing.Point(119, 1); |
this.lbl_Version.Name = "lbl_Version"; |
this.lbl_Version.Size = new System.Drawing.Size(24, 12); |
this.lbl_Version.TabIndex = 1; |
this.lbl_Version.Text = "v2.2"; |
// |
// btn_Settings |
// |
this.btn_Settings.Location = new System.Drawing.Point(12, 111); |
this.btn_Settings.Name = "btn_Settings"; |
this.btn_Settings.Size = new System.Drawing.Size(118, 40); |
this.btn_Settings.TabIndex = 3; |
this.btn_Settings.Text = "Program &Settings"; |
this.btn_Settings.UseVisualStyleBackColor = true; |
this.btn_Settings.Click += new System.EventHandler(this.btn_Main_Settings_Click); |
// |
// btn_UserMgmt |
// |
this.btn_UserMgmt.Location = new System.Drawing.Point(12, 65); |
this.btn_UserMgmt.Name = "btn_UserMgmt"; |
this.btn_UserMgmt.Size = new System.Drawing.Size(118, 40); |
this.btn_UserMgmt.TabIndex = 2; |
this.btn_UserMgmt.Text = "Manage User &Accounts and Shares"; |
this.btn_UserMgmt.UseVisualStyleBackColor = true; |
this.btn_UserMgmt.Click += new System.EventHandler(this.btn_Main_UserMgmt_Click); |
// |
// btn_Reimage_USB_Drives |
// |
this.btn_Reimage_USB_Drives.Location = new System.Drawing.Point(12, 19); |
this.btn_Reimage_USB_Drives.Name = "btn_Reimage_USB_Drives"; |
this.btn_Reimage_USB_Drives.Size = new System.Drawing.Size(118, 40); |
this.btn_Reimage_USB_Drives.TabIndex = 0; |
this.btn_Reimage_USB_Drives.Text = "&Reimage USB Drives"; |
this.btn_Reimage_USB_Drives.UseVisualStyleBackColor = true; |
this.btn_Reimage_USB_Drives.Click += new System.EventHandler(this.btn_Reimage_USB_Drives_Click); |
// |
// Menu1_Main |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.BackColor = System.Drawing.SystemColors.Control; |
this.ClientSize = new System.Drawing.Size(167, 186); |
this.Controls.Add(this.groupBox_Menu1); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.MaximizeBox = false; |
this.Name = "Menu1_Main"; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "SWAT Office Utility"; |
this.Load += new System.EventHandler(this.Menu1_Main_Load); |
this.groupBox_Menu1.ResumeLayout(false); |
this.groupBox_Menu1.PerformLayout(); |
this.ResumeLayout(false); |
} |
#endregion |
private System.Windows.Forms.GroupBox groupBox_Menu1; |
private System.Windows.Forms.Button btn_Settings; |
private System.Windows.Forms.Button btn_UserMgmt; |
private System.Windows.Forms.Button btn_Reimage_USB_Drives; |
private System.Windows.Forms.Label lbl_Version; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Main_Menu_Form.cs |
---|
0,0 → 1,46 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class Menu1_Main : Form |
{ |
public Menu1_Main() |
{ |
InitializeComponent(); |
Settings_Form.ImportSettings(); |
} |
private void btn_Main_UserMgmt_Click(object sender, EventArgs e) |
{ |
ManageUserAccounts_Form user_Mgmt = new ManageUserAccounts_Form(); |
user_Mgmt.ShowDialog(); |
} |
private void btn_Main_Settings_Click(object sender, EventArgs e) |
{ |
SettingsVerify_Form newForm = new SettingsVerify_Form(); |
newForm.ShowDialog(); |
} |
private void btn_Reimage_USB_Drives_Click(object sender, EventArgs e) |
{ |
if (Reimage_USB_Drives.threadsRunning == false) |
Reimage_USB_Drives.reimageUSBDrives(); |
else |
{ |
MessageBox.Show("Another file copy operation is currently in progress.\n" + |
"Please wait for transfer to finish before starting another"); |
} |
} |
private void Menu1_Main_Load(object sender, EventArgs e) |
{ |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Main_Menu_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Manage_User_Accounts.cs |
---|
0,0 → 1,331 |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Text; |
using System.Diagnostics; |
using System.IO; |
using System.Windows.Forms; |
using System.Security.AccessControl; |
namespace SWAT_Office_App |
{ |
class ManageUserAccounts |
{ |
public static List<string> UserAccountsList = new List<string>(); |
public static bool AddUser(string username, string password) |
{ |
try |
{ |
// Returns true if user was added successfully |
foreach (string user in UserAccountsList) |
{ |
if (username.ToLower() == user.ToLower()) |
{ |
MessageBox.Show("Username already exists", "Error"); |
return false; |
} |
} |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
// Arguments for user account creation. Run NET HELP USER from the command prompt for more info. |
netProcess.StartInfo.Arguments = "USER \"" + username + "\" \"" + password + |
"\" /ADD /ACTIVE:YES /PASSWORDCHG:NO /PASSWORDREQ:YES /EXPIRES:NEVER /COMMENT:" + DateTime.Now.ToShortDateString(); |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
return true; |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
return false; |
} |
} |
public static void DeleteUser(List<string> usernames) |
{ |
try |
{ |
foreach (string user in usernames) |
{ |
if (Directory.Exists(Settings_Form.sharedFolderLocation + @"\" + user)) |
{ |
// Prompts for deletion of folder as well as the user account |
DialogResult result = MessageBox.Show("A shared folder exists for the user " + user + "!" + |
"\nDelete the folder and all data within the folder?", |
"Warning!", MessageBoxButtons.YesNo); |
if (result == DialogResult.Yes) |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
// Arguments for user account deletion. Run NET HELP USER from the command prompt for more info. |
netProcess.StartInfo.Arguments = "USER \"" + user + "\" /DELETE"; |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
DeleteShareFolder(user); |
} |
} |
// If no folders exist for the user, account is deleted without prompting |
else |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
// Arguments for user account deletion. Run NET HELP USER from the command prompt for more info. |
netProcess.StartInfo.Arguments = "USER \"" + user + "\" /DELETE"; |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
} |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static void QueryUserAccounts() |
{ |
// Function that reads the user accounts on the local computer to UserAccountsList |
UserAccountsList.Clear(); |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.UseShellExecute = false; |
netProcess.StartInfo.RedirectStandardOutput = true; |
netProcess.StartInfo.CreateNoWindow = true; |
netProcess.StartInfo.Arguments = "USER"; |
netProcess.Start(); |
string netOutput = netProcess.StandardOutput.ReadToEnd(); |
// Splits the output into seperate strings for further processing |
string[] tempSplit = netOutput.Split(new string[] { " ", "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries); |
// Roundabout way of trimming each string in the array |
string[] netOutputSplit = new string[tempSplit.Length]; |
for (int i = 0; i < tempSplit.Length; i++) |
netOutputSplit[i] = tempSplit[i].Trim(); |
// Imports the string array into the UserAccountsList List |
UserAccountsList.AddRange(netOutputSplit); |
// Removes the header and footer from the List |
UserAccountsList.RemoveRange(0, 2); |
UserAccountsList.RemoveRange(UserAccountsList.Count() - 1, 1); |
// Removes any additional empty entries |
UserAccountsList.RemoveAll(IsStringBlank); |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static string [] QueryUserAccountExtraInformation(string username) |
{ |
// Returns a string array with password requirement and date of account creation |
string[] stringArray = { "", "" }; |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.UseShellExecute = false; |
netProcess.StartInfo.RedirectStandardOutput = true; |
netProcess.StartInfo.CreateNoWindow = true; |
netProcess.StartInfo.Arguments = "USER " + "\"" + username + "\""; |
netProcess.Start(); |
string netOutput = netProcess.StandardOutput.ReadToEnd(); |
// Splits the output into seperate strings for further processing |
string[] tempSplit = netOutput.Split(new string[] { " ", "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries); |
// Roundabout way of trimming each string in the array |
string[] netOutputSplit = new string[tempSplit.Length]; |
for (int i = 0; i < tempSplit.Length; i++) |
netOutputSplit[i] = tempSplit[i].Trim(); |
stringArray[0] = netOutputSplit[20]; |
stringArray[1] = netOutputSplit[4]; |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
return stringArray; |
} |
public static bool QueryUserSharedFolderExist(string username) |
{ |
return Directory.Exists(Settings_Form.sharedFolderLocation + @"\" + username); |
} |
public static void CreateShareFolder(string username) |
{ |
try |
{ |
// Creates the directory with only the specific NTFS and share permissions for the user. |
DirectorySecurity dSecurity = new DirectorySecurity(); |
foreach (string systemUser in Settings_Form.systemAccounts) |
{ |
dSecurity.AddAccessRule(new FileSystemAccessRule("\\" + systemUser, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow)); |
dSecurity.AddAccessRule(new FileSystemAccessRule("\\" + systemUser, FileSystemRights.FullControl, InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow)); |
} |
//dSecurity.AddAccessRule(new FileSystemAccessRule("\\Administrator", FileSystemRights.FullControl, AccessControlType.Allow)); |
//dSecurity.AddAccessRule(new FileSystemAccessRule("\\SWAT", FileSystemRights.FullControl, AccessControlType.Allow)); |
//dSecurity.AddAccessRule(new FileSystemAccessRule("\\Administrators", FileSystemRights.FullControl, AccessControlType.Allow)); |
dSecurity.AddAccessRule(new FileSystemAccessRule("\\" + username, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow)); |
dSecurity.AddAccessRule(new FileSystemAccessRule("\\" + username, FileSystemRights.FullControl, InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow)); |
Directory.CreateDirectory(Settings_Form.sharedFolderLocation + @"\" + username, dSecurity); |
SetSharePermissions(username); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static void DeleteShareFolder(string username) |
{ |
try |
{ |
// Removes the share BEFORE deleting the folder. Otherwise share will error on remove. |
RemoveSharePermissions(username); |
Directory.Delete(Settings_Form.sharedFolderLocation + @"\" + username, true); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static void ToggleShare(string username) |
{ |
try |
{ |
if (Directory.Exists(Settings_Form.sharedFolderLocation + @"\" + username)) |
{ |
DialogResult result = MessageBox.Show("A shared folder exists for the user " + username + "!" + |
"\nDelete the folder and all data within the folder?", |
"Warning!", MessageBoxButtons.YesNo); |
if (result == DialogResult.Yes) |
{ |
DeleteShareFolder(username); |
} |
} |
else |
{ |
CreateShareFolder(username); |
} |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static void ChangeUserPassword(string username, string password) |
{ |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
// Arguments for changing user password. Run NET HELP USER from the command prompt for more info. |
netProcess.StartInfo.Arguments = "USER \"" + username + "\" \"" + password + "\""; |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
public static bool SessionsOpen() |
{ |
bool sessionsOpen = true; |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.UseShellExecute = false; |
netProcess.StartInfo.RedirectStandardOutput = true; |
netProcess.StartInfo.CreateNoWindow = true; |
netProcess.StartInfo.Arguments = "SESSION"; |
netProcess.Start(); |
string netOutput = netProcess.StandardOutput.ReadToEnd(); |
// Splits the output into seperate strings for further processing |
string[] tempSplit = netOutput.Split(new string[] { " ", "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries); |
netProcess.WaitForExit(); |
netProcess.Close(); |
if (tempSplit[0] == "There are no entries in the list.") |
sessionsOpen = false; |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
return sessionsOpen; |
} |
private static void SetSharePermissions(string username) |
{ |
string combinationString = ""; |
foreach (string systemUser in Settings_Form.systemAccounts) |
{ |
combinationString = combinationString.Insert(combinationString.Length, " /GRANT:\"" + systemUser + "\",FULL"); |
} |
combinationString = combinationString.Insert(combinationString.Length, " /GRANT:\"" + username + "\",FULL"); |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
netProcess.StartInfo.Arguments = "SHARE \"" + username + "\"=\"" + Settings_Form.sharedFolderLocation + "\\" + username + "\" " + combinationString; |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
private static void RemoveSharePermissions(string username) |
{ |
try |
{ |
Process netProcess = new Process(); |
netProcess.StartInfo.WorkingDirectory = System.Environment.SystemDirectory; |
netProcess.StartInfo.FileName = "net.exe"; |
netProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; |
netProcess.StartInfo.CreateNoWindow = true; |
netProcess.StartInfo.Arguments = "SHARE \"" + username + "\" /Delete"; |
netProcess.Start(); |
netProcess.WaitForExit(); |
netProcess.Close(); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString(), "Error"); |
} |
} |
private static bool IsStringBlank(string s) |
{ |
if (s == "") |
return true; |
else |
return false; |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Manage_User_Accounts_Form.Designer.cs |
---|
0,0 → 1,172 |
namespace SWAT_Office_App |
{ |
partial class ManageUserAccounts_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ManageUserAccounts_Form)); |
this.lst_UserAccounts = new System.Windows.Forms.ListView(); |
this.btn_Add = new System.Windows.Forms.Button(); |
this.btn_Delete = new System.Windows.Forms.Button(); |
this.btn_Exit = new System.Windows.Forms.Button(); |
this.btn_Pass = new System.Windows.Forms.Button(); |
this.btn_Share = new System.Windows.Forms.Button(); |
this.btn_Refresh = new System.Windows.Forms.Button(); |
this.btn_OpenShare = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lst_UserAccounts |
// |
this.lst_UserAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
| System.Windows.Forms.AnchorStyles.Left) |
| System.Windows.Forms.AnchorStyles.Right))); |
this.lst_UserAccounts.FullRowSelect = true; |
this.lst_UserAccounts.GridLines = true; |
this.lst_UserAccounts.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; |
this.lst_UserAccounts.HideSelection = false; |
this.lst_UserAccounts.Location = new System.Drawing.Point(12, 12); |
this.lst_UserAccounts.Name = "lst_UserAccounts"; |
this.lst_UserAccounts.Size = new System.Drawing.Size(277, 348); |
this.lst_UserAccounts.TabIndex = 0; |
this.lst_UserAccounts.UseCompatibleStateImageBehavior = false; |
this.lst_UserAccounts.View = System.Windows.Forms.View.Details; |
// |
// btn_Add |
// |
this.btn_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Add.Location = new System.Drawing.Point(303, 46); |
this.btn_Add.Name = "btn_Add"; |
this.btn_Add.Size = new System.Drawing.Size(75, 40); |
this.btn_Add.TabIndex = 2; |
this.btn_Add.Text = "&Add Account"; |
this.btn_Add.UseVisualStyleBackColor = true; |
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click); |
// |
// btn_Delete |
// |
this.btn_Delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Delete.Location = new System.Drawing.Point(303, 99); |
this.btn_Delete.Name = "btn_Delete"; |
this.btn_Delete.Size = new System.Drawing.Size(75, 40); |
this.btn_Delete.TabIndex = 3; |
this.btn_Delete.Text = "&Delete Account"; |
this.btn_Delete.UseVisualStyleBackColor = true; |
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click); |
// |
// btn_Exit |
// |
this.btn_Exit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Exit.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Exit.Location = new System.Drawing.Point(328, 338); |
this.btn_Exit.Name = "btn_Exit"; |
this.btn_Exit.Size = new System.Drawing.Size(50, 22); |
this.btn_Exit.TabIndex = 7; |
this.btn_Exit.Text = "Close"; |
this.btn_Exit.UseVisualStyleBackColor = true; |
this.btn_Exit.Click += new System.EventHandler(this.btn_Exit_Click); |
// |
// btn_Pass |
// |
this.btn_Pass.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Pass.Location = new System.Drawing.Point(303, 152); |
this.btn_Pass.Name = "btn_Pass"; |
this.btn_Pass.Size = new System.Drawing.Size(75, 40); |
this.btn_Pass.TabIndex = 4; |
this.btn_Pass.Text = "&Reset Password"; |
this.btn_Pass.UseVisualStyleBackColor = true; |
this.btn_Pass.Click += new System.EventHandler(this.btn_Pass_Click); |
// |
// btn_Share |
// |
this.btn_Share.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Share.Location = new System.Drawing.Point(303, 205); |
this.btn_Share.Name = "btn_Share"; |
this.btn_Share.Size = new System.Drawing.Size(75, 40); |
this.btn_Share.TabIndex = 5; |
this.btn_Share.Text = "&Toggle Share"; |
this.btn_Share.UseVisualStyleBackColor = true; |
this.btn_Share.Click += new System.EventHandler(this.btn_Share_Click); |
// |
// btn_Refresh |
// |
this.btn_Refresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Refresh.Image = global::SWAT_Office_App.Properties.Resources.Refresh; |
this.btn_Refresh.Location = new System.Drawing.Point(303, 12); |
this.btn_Refresh.Name = "btn_Refresh"; |
this.btn_Refresh.Size = new System.Drawing.Size(23, 23); |
this.btn_Refresh.TabIndex = 1; |
this.btn_Refresh.UseVisualStyleBackColor = true; |
this.btn_Refresh.Click += new System.EventHandler(this.btn_Refresh_Click); |
// |
// btn_OpenShare |
// |
this.btn_OpenShare.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
this.btn_OpenShare.Location = new System.Drawing.Point(303, 258); |
this.btn_OpenShare.Name = "btn_OpenShare"; |
this.btn_OpenShare.Size = new System.Drawing.Size(75, 40); |
this.btn_OpenShare.TabIndex = 6; |
this.btn_OpenShare.Text = "&Open Share"; |
this.btn_OpenShare.UseVisualStyleBackColor = true; |
this.btn_OpenShare.Click += new System.EventHandler(this.btn_OpenShare_Click); |
// |
// ManageUserAccounts_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Exit; |
this.ClientSize = new System.Drawing.Size(390, 372); |
this.Controls.Add(this.btn_OpenShare); |
this.Controls.Add(this.btn_Refresh); |
this.Controls.Add(this.btn_Share); |
this.Controls.Add(this.btn_Pass); |
this.Controls.Add(this.btn_Exit); |
this.Controls.Add(this.btn_Delete); |
this.Controls.Add(this.btn_Add); |
this.Controls.Add(this.lst_UserAccounts); |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "ManageUserAccounts_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Manage User Accounts"; |
this.ResumeLayout(false); |
} |
#endregion |
private System.Windows.Forms.ListView lst_UserAccounts; |
private System.Windows.Forms.Button btn_Add; |
private System.Windows.Forms.Button btn_Delete; |
private System.Windows.Forms.Button btn_Exit; |
private System.Windows.Forms.Button btn_Pass; |
private System.Windows.Forms.Button btn_Share; |
private System.Windows.Forms.Button btn_Refresh; |
private System.Windows.Forms.Button btn_OpenShare; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Manage_User_Accounts_Form.cs |
---|
0,0 → 1,222 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class ManageUserAccounts_Form : Form |
{ |
public ManageUserAccounts_Form() |
{ |
InitializeComponent(); |
// Designate columns to include in listview for the Manage User Accounts Form |
ColumnHeader Column_1 = new ColumnHeader(); |
Column_1.Text = "Username"; |
Column_1.Width = 101; |
this.lst_UserAccounts.Columns.Add(Column_1); |
ColumnHeader Column_2 = new ColumnHeader(); |
Column_2.Text = "Pass?"; |
Column_2.Width = 46; |
Column_2.TextAlign = HorizontalAlignment.Center; |
this.lst_UserAccounts.Columns.Add(Column_2); |
ColumnHeader Column_3 = new ColumnHeader(); |
Column_3.Text = "Share?"; |
Column_3.Width = 46; |
Column_3.TextAlign = HorizontalAlignment.Center; |
this.lst_UserAccounts.Columns.Add(Column_3); |
ColumnHeader Column_4 = new ColumnHeader(); |
Column_4.Text = "Date Created"; |
Column_4.Width = 80; |
Column_4.TextAlign = HorizontalAlignment.Center; |
this.lst_UserAccounts.Columns.Add(Column_4); |
PaintUserListbox(); |
this.btn_Delete.Enabled = false; |
this.btn_Pass.Enabled = false; |
this.btn_Share.Enabled = false; |
this.btn_OpenShare.Enabled = false; |
this.lst_UserAccounts.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(this.lst_ItemSelectionChanged); |
this.Activated += new EventHandler(this.form_Activated); |
} |
private void PaintUserListbox() |
{ |
// Function for refreshing/painting the listbox |
this.lst_UserAccounts.BeginUpdate(); |
ManageUserAccounts.QueryUserAccounts(); |
// Temporary entries in listview |
//ListViewItem entry; |
//ListViewItem.ListViewSubItem s_entry; |
//entry = new ListViewItem(); |
//entry.Text = "TestUser"; |
//s_entry = new ListViewItem.ListViewSubItem(); |
//s_entry.Text = "Yes"; |
//entry.SubItems.Add(s_entry); |
//s_entry = new ListViewItem.ListViewSubItem(); |
//s_entry.Text = "Yes"; |
//entry.SubItems.Add(s_entry); |
//s_entry = new ListViewItem.ListViewSubItem(); |
//s_entry.Text = "01/05/2010"; |
//entry.SubItems.Add(s_entry); |
//this.lst_User_Accounts.Items.Add(entry); |
this.lst_UserAccounts.Items.Clear(); |
// Prevents system accounts from showing, depending on settings |
foreach (string user in ManageUserAccounts.UserAccountsList) |
{ |
ListViewItem entry = new ListViewItem(); |
bool remove = false; |
foreach (string hiddenUser in Settings_Form.hiddenAccounts) |
{ |
if (user.ToLower() == hiddenUser.ToLower()) |
{ |
remove = true; |
break; |
} |
} |
// Adds the subitem columns for each entry |
if (remove == false) |
{ |
ListViewItem.ListViewSubItem s_password = new ListViewItem.ListViewSubItem(); |
string[] extraUserInformation = ManageUserAccounts.QueryUserAccountExtraInformation(user); |
s_password.Text = extraUserInformation[0]; |
entry.SubItems.Add(s_password); |
ListViewItem.ListViewSubItem s_share = new ListViewItem.ListViewSubItem(); |
if (ManageUserAccounts.QueryUserSharedFolderExist(user)) |
s_share.Text = "Yes"; |
else |
s_share.Text = "No"; |
entry.SubItems.Add(s_share); |
ListViewItem.ListViewSubItem s_datecreated = new ListViewItem.ListViewSubItem(); |
s_datecreated.Text = extraUserInformation[1]; |
entry.SubItems.Add(s_datecreated); |
} |
if (remove == false) |
{ |
entry.Text = user; |
this.lst_UserAccounts.Items.Add(entry); |
} |
} |
this.lst_UserAccounts.EndUpdate(); |
} |
private void lst_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) |
{ |
lst_ValidateAll(); |
} |
private void lst_ValidateAll() |
{ |
// Disables certain buttons depending on number of items selected |
ListView.SelectedListViewItemCollection collection = this.lst_UserAccounts.SelectedItems; |
if (collection.Count == 0) |
{ |
this.btn_Delete.Enabled = false; |
this.btn_Pass.Enabled = false; |
this.btn_Share.Enabled = false; |
this.btn_OpenShare.Enabled = false; |
} |
else if (collection.Count == 1) |
{ |
// Checks if any of the selected items are system accounts |
bool check = false; |
foreach (string systemUser in Settings_Form.systemAccounts) |
{ |
if (collection[0].Text.ToLower() == systemUser.ToLower()) |
check = true; |
} |
if (check == false) |
{ |
this.btn_Delete.Enabled = true; |
this.btn_Pass.Enabled = true; |
this.btn_Share.Enabled = true; |
ListViewItem.ListViewSubItem subItem = collection[0].SubItems[2]; |
if (subItem.Text == "Yes") |
this.btn_OpenShare.Enabled = true; |
else |
this.btn_OpenShare.Enabled = false; |
} |
else |
{ |
this.btn_Delete.Enabled = false; |
this.btn_Pass.Enabled = false; |
this.btn_Share.Enabled = false; |
this.btn_OpenShare.Enabled = false; |
} |
} |
else |
{ |
this.btn_Delete.Enabled = true; |
this.btn_Pass.Enabled = false; |
this.btn_Share.Enabled = false; |
this.btn_OpenShare.Enabled = false; |
} |
} |
private void form_Activated(object sender, EventArgs e) |
{ |
// Refreshes form on form activation |
ManageUserAccounts.QueryUserAccounts(); |
PaintUserListbox(); |
} |
private void btn_Exit_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Refresh_Click(object sender, EventArgs e) |
{ |
PaintUserListbox(); |
} |
private void btn_Add_Click(object sender, EventArgs e) |
{ |
AddUserAccount_Form.Add_User_Account_Instance.ShowDialog(); |
lst_ValidateAll(); |
} |
private void btn_Delete_Click(object sender, EventArgs e) |
{ |
if (ManageUserAccounts.SessionsOpen() == false) |
{ |
ListView.SelectedListViewItemCollection selectedItems = this.lst_UserAccounts.SelectedItems; |
List<string> userList = new List<string>(); |
foreach (ListViewItem user in selectedItems) |
userList.Add(user.Text); |
DeleteUserVerify_Form newForm = new DeleteUserVerify_Form(userList); |
newForm.ShowDialog(); |
} |
else |
MessageBox.Show("Sessions are still open. Please close them before deleting accounts", "Error"); |
PaintUserListbox(); |
lst_ValidateAll(); |
} |
private void btn_Pass_Click(object sender, EventArgs e) |
{ |
ListView.SelectedListViewItemCollection selectedItems = this.lst_UserAccounts.SelectedItems; |
ResetUserPassword_Form newForm = new ResetUserPassword_Form(selectedItems[0].Text); |
newForm.ShowDialog(); |
PaintUserListbox(); |
lst_ValidateAll(); |
} |
private void btn_Share_Click(object sender, EventArgs e) |
{ |
ListView.SelectedListViewItemCollection selectedItems = this.lst_UserAccounts.SelectedItems; |
ToggleUserVerify_Form newForm = new ToggleUserVerify_Form(selectedItems[0].Text); |
newForm.ShowDialog(); |
PaintUserListbox(); |
lst_ValidateAll(); |
} |
private void btn_OpenShare_Click(object sender, EventArgs e) |
{ |
ListView.SelectedListViewItemCollection selectedItems = this.lst_UserAccounts.SelectedItems; |
string openFolderString = Settings_Form.sharedFolderLocation + "\\" + selectedItems[0].Text; |
System.Diagnostics.Process proc = new System.Diagnostics.Process(); |
proc.StartInfo.FileName = openFolderString; |
proc.Start(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Manage_User_Accounts_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Program.cs |
---|
0,0 → 1,21 |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
static class Program |
{ |
/// <summary> |
/// The main entry point for the application. |
/// </summary> |
[STAThread] |
static void Main() |
{ |
Application.EnableVisualStyles(); |
Application.SetCompatibleTextRenderingDefault(false); |
Application.Run(new Menu1_Main()); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Properties/AssemblyInfo.cs |
---|
0,0 → 1,36 |
using System.Reflection; |
using System.Runtime.CompilerServices; |
using System.Runtime.InteropServices; |
// General Information about an assembly is controlled through the following |
// set of attributes. Change these attribute values to modify the information |
// associated with an assembly. |
[assembly: AssemblyTitle("SWAT Office App")] |
[assembly: AssemblyDescription("")] |
[assembly: AssemblyConfiguration("")] |
[assembly: AssemblyCompany("Microsoft")] |
[assembly: AssemblyProduct("SWAT Office App")] |
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
[assembly: AssemblyTrademark("")] |
[assembly: AssemblyCulture("")] |
// Setting ComVisible to false makes the types in this assembly not visible |
// to COM components. If you need to access a type in this assembly from |
// COM, set the ComVisible attribute to true on that type. |
[assembly: ComVisible(false)] |
// The following GUID is for the ID of the typelib if this project is exposed to COM |
[assembly: Guid("dc89a6fe-eecc-4132-a579-91afd55e2e0b")] |
// Version information for an assembly consists of the following four values: |
// |
// Major Version |
// Minor Version |
// Build Number |
// Revision |
// |
// You can specify all the values or you can default the Build and Revision Numbers |
// by using the '*' as shown below: |
// [assembly: AssemblyVersion("1.0.*")] |
[assembly: AssemblyVersion("1.0.0.0")] |
[assembly: AssemblyFileVersion("1.0.0.0")] |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Properties/Resources.Designer.cs |
---|
0,0 → 1,70 |
//------------------------------------------------------------------------------ |
// <auto-generated> |
// This code was generated by a tool. |
// Runtime Version:4.0.30319.1 |
// |
// Changes to this file may cause incorrect behavior and will be lost if |
// the code is regenerated. |
// </auto-generated> |
//------------------------------------------------------------------------------ |
namespace SWAT_Office_App.Properties { |
using System; |
/// <summary> |
/// A strongly-typed resource class, for looking up localized strings, etc. |
/// </summary> |
// This class was auto-generated by the StronglyTypedResourceBuilder |
// class via a tool like ResGen or Visual Studio. |
// To add or remove a member, edit your .ResX file then rerun ResGen |
// with the /str option, or rebuild your VS project. |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
internal class Resources { |
private static global::System.Resources.ResourceManager resourceMan; |
private static global::System.Globalization.CultureInfo resourceCulture; |
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
internal Resources() { |
} |
/// <summary> |
/// Returns the cached ResourceManager instance used by this class. |
/// </summary> |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
internal static global::System.Resources.ResourceManager ResourceManager { |
get { |
if (object.ReferenceEquals(resourceMan, null)) { |
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SWAT_Office_App.Properties.Resources", typeof(Resources).Assembly); |
resourceMan = temp; |
} |
return resourceMan; |
} |
} |
/// <summary> |
/// Overrides the current thread's CurrentUICulture property for all |
/// resource lookups using this strongly typed resource class. |
/// </summary> |
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
internal static global::System.Globalization.CultureInfo Culture { |
get { |
return resourceCulture; |
} |
set { |
resourceCulture = value; |
} |
} |
internal static System.Drawing.Bitmap Refresh { |
get { |
object obj = ResourceManager.GetObject("Refresh", resourceCulture); |
return ((System.Drawing.Bitmap)(obj)); |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Properties/Resources.resx |
---|
0,0 → 1,124 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
<data name="Refresh" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
<value>..\Resources\Refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Properties/Settings.Designer.cs |
---|
0,0 → 1,30 |
//------------------------------------------------------------------------------ |
// <auto-generated> |
// This code was generated by a tool. |
// Runtime Version:4.0.30319.1 |
// |
// Changes to this file may cause incorrect behavior and will be lost if |
// the code is regenerated. |
// </auto-generated> |
//------------------------------------------------------------------------------ |
namespace SWAT_Office_App.Properties |
{ |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] |
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
{ |
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
public static Settings Default |
{ |
get |
{ |
return defaultInstance; |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Properties/Settings.settings |
---|
0,0 → 1,7 |
<?xml version='1.0' encoding='utf-8'?> |
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
<Profiles> |
<Profile Name="(Default)" /> |
</Profiles> |
<Settings /> |
</SettingsFile> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reimage_USB_Drive_Progress_Form.Designer.cs |
---|
0,0 → 1,93 |
namespace SWAT_Office_App |
{ |
partial class Reimage_USB_Drive_Progress_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.lbl_Status = new System.Windows.Forms.Label(); |
this.lbl_Warning = new System.Windows.Forms.Label(); |
this.SuspendLayout(); |
// |
// btn_Cancel |
// |
this.btn_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) |
| System.Windows.Forms.AnchorStyles.Right))); |
this.btn_Cancel.Location = new System.Drawing.Point(43, 80); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(120, 23); |
this.btn_Cancel.TabIndex = 1; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// lbl_Status |
// |
this.lbl_Status.Location = new System.Drawing.Point(3, 26); |
this.lbl_Status.Name = "lbl_Status"; |
this.lbl_Status.Size = new System.Drawing.Size(200, 51); |
this.lbl_Status.TabIndex = 3; |
this.lbl_Status.Text = "Current Status: Reformatting USB Drives"; |
this.lbl_Status.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
// |
// lbl_Warning |
// |
this.lbl_Warning.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
| System.Windows.Forms.AnchorStyles.Right))); |
this.lbl_Warning.AutoSize = true; |
this.lbl_Warning.Location = new System.Drawing.Point(2, 9); |
this.lbl_Warning.Name = "lbl_Warning"; |
this.lbl_Warning.Size = new System.Drawing.Size(202, 13); |
this.lbl_Warning.TabIndex = 4; |
this.lbl_Warning.Text = "Warning! Do NOT unplug the USB drives"; |
// |
// Reimage_USB_Drive_Progress_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.AutoSize = true; |
this.ClientSize = new System.Drawing.Size(207, 115); |
this.Controls.Add(this.lbl_Warning); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.lbl_Status); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Name = "Reimage_USB_Drive_Progress_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Reimge Progress"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.Label lbl_Status; |
private System.Windows.Forms.Label lbl_Warning; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reimage_USB_Drive_Progress_Form.cs |
---|
0,0 → 1,79 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class Reimage_USB_Drive_Progress_Form : Form |
{ |
private static Reimage_USB_Drive_Progress_Form _Reimage_USB_Drive_Progress_Form = null; |
// Singleton instance |
public static Reimage_USB_Drive_Progress_Form Reimage_USB_Drive_Progress_Form_Instance |
{ |
set |
{ |
_Reimage_USB_Drive_Progress_Form = value; |
} |
get |
{ |
if (_Reimage_USB_Drive_Progress_Form == null) |
_Reimage_USB_Drive_Progress_Form = new Reimage_USB_Drive_Progress_Form(); |
return _Reimage_USB_Drive_Progress_Form; |
} |
} |
public Reimage_USB_Drive_Progress_Form() |
{ |
InitializeComponent(); |
btn_Cancel.Text = "Cancel"; |
this.updateStatus("Beginning the Reimaging of USB Drives"); |
//this.updateStatus("Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives Beginning the Reimaging of USB Drives"); |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
Reimage_USB_Drives.bwThread.CancelAsync(); |
foreach (BackgroundWorker bw in Reimage_USB_Drives.backgroundWorkerList) |
bw.CancelAsync(); |
btn_Cancel.Text = "Cancellation Pending"; |
} |
delegate void updateStatus_(string parameter); |
public void updateStatus(string status) |
{ |
try |
{ |
if (!InvokeRequired) |
{ |
lbl_Status.Text = status; |
} |
else |
Invoke(new updateStatus_(updateStatus), new object[] { status }); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
delegate void closeForm_(); |
public void closeForm() |
{ |
try |
{ |
if (!InvokeRequired) |
{ |
this.Close(); |
} |
else |
Invoke(new closeForm_(closeForm), new object[] { }); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reimage_USB_Drive_Progress_Form.resx |
---|
0,0 → 1,120 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reimage_USB_Drives.cs |
---|
0,0 → 1,335 |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Text; |
using System.IO; |
using System.Windows.Forms; |
using System.Diagnostics; |
using System.Threading; |
using System.ComponentModel; |
namespace SWAT_Office_App |
{ |
class Reimage_USB_Drives |
{ |
public static List<string> allSwatUSBDrivesx32 = new List<string>(); |
public static List<string> allSwatUSBDrivesx64 = new List<string>(); |
public static BackgroundWorker bwThread = null; |
public static Reimage_USB_Drive_Progress_Form progressForm = null; |
public static List<BackgroundWorker> backgroundWorkerList = new List<BackgroundWorker>(); |
public static bool threadsRunning = false; |
private static bool allThreadsCompleted = false; |
private static bool threadsCancelled = false; |
private static DateTime startTime; |
private static DateTime endTime; |
public static void getDriveLetters() |
{ |
allSwatUSBDrivesx32.Clear(); |
allSwatUSBDrivesx64.Clear(); |
backgroundWorkerList.Clear(); |
string pathToSWATDrive; |
// Pulls information from all drives on the running computer |
DriveInfo[] allDrives = DriveInfo.GetDrives(); |
// Looks for a drive with the correct label, updates pathToSWATDrive with the drive letter |
foreach (DriveInfo drive in allDrives) |
{ |
if (drive.IsReady == true) |
{ |
// Drive label for the USB drives is set here. |
if (drive.VolumeLabel.ToUpper() == "SWAT DRIVE X32" && drive.DriveType == DriveType.Removable) |
{ |
pathToSWATDrive = drive.Name; |
allSwatUSBDrivesx32.Add(pathToSWATDrive); |
} |
if (drive.VolumeLabel.ToUpper() == "SWAT DRIVE X64" && drive.DriveType == DriveType.Removable) |
{ |
pathToSWATDrive = drive.Name; |
allSwatUSBDrivesx64.Add(pathToSWATDrive); |
} |
} |
} |
// Prompts for drive to be inserted |
if ((allSwatUSBDrivesx32.Count == 0) && (allSwatUSBDrivesx64.Count == 0)) |
{ |
DialogResult result; |
result = MessageBox.Show("Unable to locate any SWAT USB drives.", "Error"); |
} |
} |
public static void reimageUSBDrives() |
{ |
try |
{ |
if (Settings_Form.defaultSettings == false) |
{ |
if ((File.Exists(Settings_Form.usbMasterx32CopyLocation + "\\boot\\bootsect.exe")) && |
(File.Exists(Settings_Form.usbMasterx64CopyLocation + "\\boot\\bootsect.exe"))) |
{ |
startTime = DateTime.Now; |
getDriveLetters(); |
if ((allSwatUSBDrivesx32.Count != 0) || (allSwatUSBDrivesx64.Count != 0)) |
{ |
threadsRunning = true; |
bwThread = new BackgroundWorker(); |
bwThread.WorkerSupportsCancellation = true; |
bwThread.DoWork += new DoWorkEventHandler(bwThread_DoWork); |
bwThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bwThread_RunWorkerCompleted); |
bwThread.RunWorkerAsync(); |
progressForm = new Reimage_USB_Drive_Progress_Form(); |
progressForm.Show(); |
} |
} |
else |
{ |
MessageBox.Show("bootsect.exe is missing from the master image location"); |
} |
} |
else |
{ |
MessageBox.Show("Settings have not been changed yet.\nPlease verify settings before continuing.", "Warning!"); |
} |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
private static void bwThread_DoWork(object sender, DoWorkEventArgs e) |
{ |
try |
{ |
BackgroundWorker worker = sender as BackgroundWorker; |
//Reimage_USB_Drives.wipeUSBDrives(worker, e); |
Thread.Sleep(1000); |
// Reformats all SWAT USB Drives |
foreach (string drive in allSwatUSBDrivesx32) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
progressForm.updateStatus("Reformatting Drive " + drive); |
Process proc = new Process(); |
proc.StartInfo.FileName = "DISKPART"; |
proc.StartInfo.UseShellExecute = false; |
proc.StartInfo.RedirectStandardInput = true; |
proc.StartInfo.CreateNoWindow = true; |
proc.Start(); |
StreamWriter procInput = proc.StandardInput; |
procInput.WriteLine("SELECT VOLUME=" + drive); |
procInput.WriteLine("FORMAT FS=NTFS LABEL=\"SWAT Drive x32\" QUICK"); |
procInput.WriteLine("EXIT"); |
proc.WaitForExit(); |
} |
foreach (string drive in allSwatUSBDrivesx64) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
progressForm.updateStatus("Reformatting Drive " + drive); |
Process proc = new Process(); |
proc.StartInfo.FileName = "DISKPART"; |
proc.StartInfo.UseShellExecute = false; |
proc.StartInfo.RedirectStandardInput = true; |
proc.StartInfo.CreateNoWindow = true; |
proc.Start(); |
StreamWriter procInput = proc.StandardInput; |
procInput.WriteLine("SELECT VOLUME=" + drive); |
procInput.WriteLine("FORMAT FS=NTFS LABEL=\"SWAT Drive x64\" QUICK"); |
procInput.WriteLine("EXIT"); |
proc.WaitForExit(); |
} |
getDriveLetters(); |
//Reimage_USB_Drives.callBootsect(); |
// Runs bootsect.exe on each drive to install the bootloader |
foreach (string drive in allSwatUSBDrivesx32) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
progressForm.updateStatus("Writing Bootsector on Drive " + drive); |
Process proc = new Process(); |
proc.StartInfo.FileName = Settings_Form.usbMasterx32CopyLocation + "\\boot\\bootsect.exe"; |
proc.StartInfo.Arguments = "/NT60 " + drive.Substring(0, 2) + " /FORCE"; |
proc.Start(); |
proc.WaitForExit(); |
} |
foreach (string drive in allSwatUSBDrivesx64) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
progressForm.updateStatus("Writing Bootsector on Drive " + drive); |
Process proc = new Process(); |
proc.StartInfo.FileName = Settings_Form.usbMasterx32CopyLocation + "\\boot\\bootsect.exe"; |
proc.StartInfo.Arguments = "/NT60 " + drive.Substring(0, 2) + " /FORCE"; |
proc.Start(); |
proc.WaitForExit(); |
} |
//Reimage_USB_Drives.copyMasterImage(); |
// Copies the master image to each USB Drive |
foreach (string drive in allSwatUSBDrivesx32) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
BackgroundWorker fileCopyThread = new BackgroundWorker(); |
backgroundWorkerList.Add(fileCopyThread); |
fileCopyThread.WorkerSupportsCancellation = true; |
fileCopyThread.DoWork += new DoWorkEventHandler(fileCopyThread32_DoWork); |
fileCopyThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(fileCopyThread_RunWorkerCompleted); |
fileCopyThread.RunWorkerAsync(drive); |
//DirectoryCopy(Settings_Form.usbMasterx32CopyLocation, drive, true, worker, e); |
} |
foreach (string drive in allSwatUSBDrivesx64) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
BackgroundWorker fileCopyThread = new BackgroundWorker(); |
backgroundWorkerList.Add(fileCopyThread); |
fileCopyThread.WorkerSupportsCancellation = true; |
fileCopyThread.DoWork += new DoWorkEventHandler(fileCopyThread64_DoWork); |
fileCopyThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(fileCopyThread_RunWorkerCompleted); |
fileCopyThread.RunWorkerAsync(drive); |
//DirectoryCopy(Settings_Form.usbMasterx64CopyLocation, drive, true, worker, e); |
} |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.ToString()); |
} |
} |
static void fileCopyThread32_DoWork(object sender, DoWorkEventArgs e) |
{ |
BackgroundWorker worker = sender as BackgroundWorker; |
string drive = (string)e.Argument; |
DirectoryCopy(Settings_Form.usbMasterx32CopyLocation, drive, true, worker, e); |
progressForm.updateStatus("Finished Copying Files to " + drive); |
} |
static void fileCopyThread64_DoWork(object sender, DoWorkEventArgs e) |
{ |
BackgroundWorker worker = sender as BackgroundWorker; |
string drive = (string)e.Argument; |
DirectoryCopy(Settings_Form.usbMasterx64CopyLocation, drive, true, worker, e); |
progressForm.updateStatus("Finished Copying Files to " + drive); |
} |
static void fileCopyThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) |
{ |
if (e.Cancelled) |
{ |
threadsCancelled = true; |
bool threadsStillRunning = false; |
foreach (BackgroundWorker bw in backgroundWorkerList) |
{ |
if (bw.IsBusy) |
threadsStillRunning = true; |
} |
if (threadsStillRunning) |
allThreadsCompleted = false; |
else |
allThreadsCompleted = true; |
} |
else |
{ |
bool threadsStillRunning = false; |
foreach (BackgroundWorker bw in backgroundWorkerList) |
{ |
if (bw.IsBusy) |
threadsStillRunning = true; |
} |
if (threadsStillRunning) |
allThreadsCompleted = false; |
else |
allThreadsCompleted = true; |
} |
if (threadsCancelled) |
{ |
threadsRunning = false; |
MessageBox.Show("File Copy Operation Cancelled"); |
progressForm.closeForm(); |
} |
else if (allThreadsCompleted) |
{ |
threadsRunning = false; |
endTime = DateTime.Now; |
MessageBox.Show("Operation was started at " + startTime.ToShortTimeString() + " and ended successfully at " + endTime.ToShortTimeString()); |
progressForm.closeForm(); |
} |
} |
private static void bwThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) |
{ |
if (e.Cancelled) |
{ |
threadsRunning = false; |
MessageBox.Show("Operation was canceled"); |
progressForm.Close(); |
} |
} |
private static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs, BackgroundWorker worker, DoWorkEventArgs e) |
{ |
try |
{ |
progressForm.updateStatus("Copying Files to " + destDirName); |
DirectoryInfo dir = new DirectoryInfo(sourceDirName); |
DirectoryInfo[] dirs = dir.GetDirectories(); |
// If the destination directory does not exist, create it. |
if (!Directory.Exists(destDirName)) |
{ |
Directory.CreateDirectory(destDirName); |
} |
// Get the file contents of the directory to copy. |
FileInfo[] files = dir.GetFiles(); |
foreach (FileInfo file in files) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
// Create the path to the new copy of the file. |
string tempPath = Path.Combine(destDirName, file.Name); |
// Copy the file. |
file.CopyTo(tempPath, false); |
} |
// If copySubDirs is true, copy the subdirectories. |
if (copySubDirs) |
{ |
foreach (DirectoryInfo subdir in dirs) |
{ |
if (worker.CancellationPending) |
{ |
e.Cancel = true; |
break; |
} |
// Create the subdirectory. |
string tempPath = Path.Combine(destDirName, subdir.Name); |
// Copy the subdirectories. |
DirectoryCopy(subdir.FullName, tempPath, copySubDirs, worker, e); |
} |
} |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.ToString()); |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reset_User_Password_Form.Designer.cs |
---|
0,0 → 1,130 |
namespace SWAT_Office_App |
{ |
partial class ResetUserPassword_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ResetUserPassword_Form)); |
this.lbl_Prompt1 = new System.Windows.Forms.Label(); |
this.txt_Password1 = new System.Windows.Forms.TextBox(); |
this.btn_Ok = new System.Windows.Forms.Button(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.txt_Password2 = new System.Windows.Forms.TextBox(); |
this.lbl_Prompt2 = new System.Windows.Forms.Label(); |
this.SuspendLayout(); |
// |
// lbl_Prompt1 |
// |
this.lbl_Prompt1.AutoSize = true; |
this.lbl_Prompt1.Location = new System.Drawing.Point(1, 9); |
this.lbl_Prompt1.Name = "lbl_Prompt1"; |
this.lbl_Prompt1.Size = new System.Drawing.Size(144, 13); |
this.lbl_Prompt1.TabIndex = 0; |
this.lbl_Prompt1.Text = "Enter in the SWAT password"; |
// |
// txt_Password1 |
// |
this.txt_Password1.Location = new System.Drawing.Point(18, 29); |
this.txt_Password1.Name = "txt_Password1"; |
this.txt_Password1.Size = new System.Drawing.Size(110, 20); |
this.txt_Password1.TabIndex = 1; |
this.txt_Password1.UseSystemPasswordChar = true; |
// |
// btn_Ok |
// |
this.btn_Ok.Enabled = false; |
this.btn_Ok.Location = new System.Drawing.Point(10, 57); |
this.btn_Ok.Name = "btn_Ok"; |
this.btn_Ok.Size = new System.Drawing.Size(60, 24); |
this.btn_Ok.TabIndex = 2; |
this.btn_Ok.Text = "Ok"; |
this.btn_Ok.UseVisualStyleBackColor = true; |
this.btn_Ok.Click += new System.EventHandler(this.btn_Ok_Click); |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(76, 57); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(60, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// txt_Password2 |
// |
this.txt_Password2.Location = new System.Drawing.Point(18, 29); |
this.txt_Password2.Name = "txt_Password2"; |
this.txt_Password2.Size = new System.Drawing.Size(110, 20); |
this.txt_Password2.TabIndex = 4; |
this.txt_Password2.UseSystemPasswordChar = true; |
this.txt_Password2.Visible = false; |
// |
// lbl_Prompt2 |
// |
this.lbl_Prompt2.AutoSize = true; |
this.lbl_Prompt2.Location = new System.Drawing.Point(7, 9); |
this.lbl_Prompt2.Name = "lbl_Prompt2"; |
this.lbl_Prompt2.Size = new System.Drawing.Size(132, 13); |
this.lbl_Prompt2.TabIndex = 5; |
this.lbl_Prompt2.Text = "Enter in the new password"; |
// |
// ResetUserPassword_Form |
// |
this.AcceptButton = this.btn_Ok; |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.lbl_Prompt2); |
this.Controls.Add(this.txt_Password2); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.btn_Ok); |
this.Controls.Add(this.txt_Password1); |
this.Controls.Add(this.lbl_Prompt1); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "ResetUserPassword_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Reset Password"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Prompt1; |
private System.Windows.Forms.TextBox txt_Password1; |
private System.Windows.Forms.Button btn_Ok; |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.TextBox txt_Password2; |
private System.Windows.Forms.Label lbl_Prompt2; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reset_User_Password_Form.cs |
---|
0,0 → 1,56 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class ResetUserPassword_Form : Form |
{ |
private string selectedUsername; |
public ResetUserPassword_Form(string selectedUser) |
{ |
selectedUsername = selectedUser; |
InitializeComponent(); |
this.txt_Password1.Focus(); |
this.lbl_Prompt2.Visible = false; |
// Monitors the text in each textbox, triggering changes when certain criteria is met |
this.txt_Password1.TextChanged += new EventHandler(this.txt_Box1_TextChanged); |
this.txt_Password2.TextChanged += new EventHandler(this.txt_Box2_TextChanged); |
} |
private void txt_Box1_TextChanged(object sender, EventArgs e) |
{ |
// Office password is set here |
if (txt_Password1.Text == "tr33b3@rd") |
{ |
this.txt_Password1.Visible = false; |
this.txt_Password2.Visible = true; |
this.lbl_Prompt1.Visible = false; |
this.lbl_Prompt2.Visible = true; |
this.txt_Password2.Focus(); |
} |
} |
private void txt_Box2_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text.Length == 0) |
this.btn_Ok.Enabled = false; |
else |
this.btn_Ok.Enabled = true; |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Ok_Click(object sender, EventArgs e) |
{ |
ManageUserAccounts.ChangeUserPassword(selectedUsername, txt_Password2.Text); |
this.Close(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Reset_User_Password_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Resources/Refresh.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Resources/Refresh.png |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Resources/Terminal.ico |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Resources/Terminal.ico |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/SWAT Office App.csproj |
---|
0,0 → 1,225 |
<?xml version="1.0" encoding="utf-8"?> |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
<PropertyGroup> |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
<ProductVersion>8.0.30703</ProductVersion> |
<SchemaVersion>2.0</SchemaVersion> |
<ProjectGuid>{87CC24B0-F2A3-4D61-94D0-B3DF78658562}</ProjectGuid> |
<OutputType>WinExe</OutputType> |
<AppDesignerFolder>Properties</AppDesignerFolder> |
<RootNamespace>SWAT_Office_App</RootNamespace> |
<AssemblyName>SWAT Office App</AssemblyName> |
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
<TargetFrameworkProfile>Client</TargetFrameworkProfile> |
<FileAlignment>512</FileAlignment> |
<IsWebBootstrapper>false</IsWebBootstrapper> |
<PublishUrl>publish\</PublishUrl> |
<Install>true</Install> |
<InstallFrom>Disk</InstallFrom> |
<UpdateEnabled>false</UpdateEnabled> |
<UpdateMode>Foreground</UpdateMode> |
<UpdateInterval>7</UpdateInterval> |
<UpdateIntervalUnits>Days</UpdateIntervalUnits> |
<UpdatePeriodically>false</UpdatePeriodically> |
<UpdateRequired>false</UpdateRequired> |
<MapFileExtensions>true</MapFileExtensions> |
<ApplicationRevision>0</ApplicationRevision> |
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
<UseApplicationTrust>false</UseApplicationTrust> |
<BootstrapperEnabled>true</BootstrapperEnabled> |
</PropertyGroup> |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
<PlatformTarget>x86</PlatformTarget> |
<DebugSymbols>true</DebugSymbols> |
<DebugType>full</DebugType> |
<Optimize>false</Optimize> |
<OutputPath>bin\Debug\</OutputPath> |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
<ErrorReport>prompt</ErrorReport> |
<WarningLevel>4</WarningLevel> |
</PropertyGroup> |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
<PlatformTarget>x86</PlatformTarget> |
<DebugType>pdbonly</DebugType> |
<Optimize>true</Optimize> |
<OutputPath>bin\Release\</OutputPath> |
<DefineConstants>TRACE</DefineConstants> |
<ErrorReport>prompt</ErrorReport> |
<WarningLevel>4</WarningLevel> |
</PropertyGroup> |
<PropertyGroup> |
<ApplicationIcon>application_osx_terminal.ico</ApplicationIcon> |
</PropertyGroup> |
<ItemGroup> |
<Reference Include="System" /> |
<Reference Include="System.Core" /> |
<Reference Include="System.Xml.Linq" /> |
<Reference Include="System.Data.DataSetExtensions" /> |
<Reference Include="Microsoft.CSharp" /> |
<Reference Include="System.Data" /> |
<Reference Include="System.Deployment" /> |
<Reference Include="System.Drawing" /> |
<Reference Include="System.Windows.Forms" /> |
<Reference Include="System.Xml" /> |
</ItemGroup> |
<ItemGroup> |
<Compile Include="Add_Hidden_Account_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Add_Hidden_Account_Form.designer.cs"> |
<DependentUpon>Add_Hidden_Account_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Add_System_Account_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Add_System_Account_Form.Designer.cs"> |
<DependentUpon>Add_System_Account_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Add_User_Account_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Add_User_Account_Form.Designer.cs"> |
<DependentUpon>Add_User_Account_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Delete_User_Verify_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Delete_User_Verify_Form.designer.cs"> |
<DependentUpon>Delete_User_Verify_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Main_Menu_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Main_Menu_Form.Designer.cs"> |
<DependentUpon>Main_Menu_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Manage_User_Accounts.cs" /> |
<Compile Include="Manage_User_Accounts_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Manage_User_Accounts_Form.Designer.cs"> |
<DependentUpon>Manage_User_Accounts_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Program.cs" /> |
<Compile Include="Properties\AssemblyInfo.cs" /> |
<Compile Include="Reimage_USB_Drives.cs" /> |
<Compile Include="Reimage_USB_Drive_Progress_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Reimage_USB_Drive_Progress_Form.Designer.cs"> |
<DependentUpon>Reimage_USB_Drive_Progress_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Reset_User_Password_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Reset_User_Password_Form.Designer.cs"> |
<DependentUpon>Reset_User_Password_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Settings_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Settings_Form.Designer.cs"> |
<DependentUpon>Settings_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Settings_Verify_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Settings_Verify_Form.designer.cs"> |
<DependentUpon>Settings_Verify_Form.cs</DependentUpon> |
</Compile> |
<Compile Include="Toggle_User_Verify_Form.cs"> |
<SubType>Form</SubType> |
</Compile> |
<Compile Include="Toggle_User_Verify_Form.designer.cs"> |
<DependentUpon>Toggle_User_Verify_Form.cs</DependentUpon> |
</Compile> |
<EmbeddedResource Include="Add_Hidden_Account_Form.resx"> |
<DependentUpon>Add_Hidden_Account_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Add_System_Account_Form.resx"> |
<DependentUpon>Add_System_Account_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Add_User_Account_Form.resx"> |
<DependentUpon>Add_User_Account_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Delete_User_Verify_Form.resx"> |
<DependentUpon>Delete_User_Verify_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Main_Menu_Form.resx"> |
<DependentUpon>Main_Menu_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Manage_User_Accounts_Form.resx"> |
<DependentUpon>Manage_User_Accounts_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Properties\Resources.resx"> |
<Generator>ResXFileCodeGenerator</Generator> |
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
<SubType>Designer</SubType> |
</EmbeddedResource> |
<Compile Include="Properties\Resources.Designer.cs"> |
<AutoGen>True</AutoGen> |
<DependentUpon>Resources.resx</DependentUpon> |
<DesignTime>True</DesignTime> |
</Compile> |
<EmbeddedResource Include="Reimage_USB_Drive_Progress_Form.resx"> |
<DependentUpon>Reimage_USB_Drive_Progress_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Reset_User_Password_Form.resx"> |
<DependentUpon>Reset_User_Password_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Settings_Form.resx"> |
<DependentUpon>Settings_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Settings_Verify_Form.resx"> |
<DependentUpon>Settings_Verify_Form.cs</DependentUpon> |
</EmbeddedResource> |
<EmbeddedResource Include="Toggle_User_Verify_Form.resx"> |
<DependentUpon>Toggle_User_Verify_Form.cs</DependentUpon> |
</EmbeddedResource> |
<None Include="Properties\Settings.settings"> |
<Generator>SettingsSingleFileGenerator</Generator> |
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
</None> |
<Compile Include="Properties\Settings.Designer.cs"> |
<AutoGen>True</AutoGen> |
<DependentUpon>Settings.settings</DependentUpon> |
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
</Compile> |
</ItemGroup> |
<ItemGroup> |
<Content Include="application_osx_terminal.ico" /> |
<None Include="Resources\Refresh.png" /> |
</ItemGroup> |
<ItemGroup> |
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client"> |
<Visible>False</Visible> |
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName> |
<Install>true</Install> |
</BootstrapperPackage> |
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
<Visible>False</Visible> |
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
<Install>false</Install> |
</BootstrapperPackage> |
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
<Visible>False</Visible> |
<ProductName>.NET Framework 3.5 SP1</ProductName> |
<Install>false</Install> |
</BootstrapperPackage> |
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
<Visible>False</Visible> |
<ProductName>Windows Installer 3.1</ProductName> |
<Install>true</Install> |
</BootstrapperPackage> |
</ItemGroup> |
<ItemGroup /> |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
Other similar extension points exist, see Microsoft.Common.targets. |
<Target Name="BeforeBuild"> |
</Target> |
<Target Name="AfterBuild"> |
</Target> |
--> |
</Project> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/SWAT Office App.csproj.user |
---|
0,0 → 1,13 |
<?xml version="1.0" encoding="utf-8"?> |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
<PropertyGroup> |
<PublishUrlHistory>publish\</PublishUrlHistory> |
<InstallUrlHistory /> |
<SupportUrlHistory /> |
<UpdateUrlHistory /> |
<BootstrapperUrlHistory /> |
<ErrorReportUrlHistory /> |
<FallbackCulture>en-US</FallbackCulture> |
<VerifyUploadedFiles>false</VerifyUploadedFiles> |
</PropertyGroup> |
</Project> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings.xml |
---|
0,0 → 1,11 |
<?xml version="1.0" encoding="utf-8"?> |
<Settings> |
<ProgramSettings> |
<ShowGuestAccounts>false</ShowGuestAccounts> |
<SystemAccounts>Administrators,Administrator</SystemAccounts> |
<HiddenAccounts>Administrator</HiddenAccounts> |
<SharedFolderLocation>C:\</SharedFolderLocation> |
<USBMasterCopyx32Location>C:\</USBMasterCopyx32Location> |
<USBMasterCopyx64Location>C:\</USBMasterCopyx64Location> |
</ProgramSettings> |
</Settings> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Form.Designer.cs |
---|
0,0 → 1,326 |
namespace SWAT_Office_App |
{ |
partial class Settings_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Settings_Form)); |
this.chk_PassReq = new System.Windows.Forms.CheckBox(); |
this.btn_Ok = new System.Windows.Forms.Button(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.listBox_SystemAccounts = new System.Windows.Forms.ListBox(); |
this.btn_SystemAdd = new System.Windows.Forms.Button(); |
this.btn_SystemRemove = new System.Windows.Forms.Button(); |
this.groupBox_SystemAccounts = new System.Windows.Forms.GroupBox(); |
this.txt_ShareLocation = new System.Windows.Forms.TextBox(); |
this.lbl_ShareLocation = new System.Windows.Forms.Label(); |
this.btn_ShareLocationChange = new System.Windows.Forms.Button(); |
this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); |
this.btn_USBLocationx32Change = new System.Windows.Forms.Button(); |
this.txt_USBMasterCopyLocation_x32 = new System.Windows.Forms.TextBox(); |
this.lbl_USBCopyLocation_x32 = new System.Windows.Forms.Label(); |
this.btn_USBLocationx64Change = new System.Windows.Forms.Button(); |
this.txt_USBMasterCopyLocation_x64 = new System.Windows.Forms.TextBox(); |
this.lbl_USBCopyLocation_x64 = new System.Windows.Forms.Label(); |
this.groupBox_HiddenAccounts = new System.Windows.Forms.GroupBox(); |
this.listBox_HiddenAccounts = new System.Windows.Forms.ListBox(); |
this.btn_HiddenRemove = new System.Windows.Forms.Button(); |
this.btn_HiddenAdd = new System.Windows.Forms.Button(); |
this.btn_Default = new System.Windows.Forms.Button(); |
this.groupBox_SystemAccounts.SuspendLayout(); |
this.groupBox_HiddenAccounts.SuspendLayout(); |
this.SuspendLayout(); |
// |
// chk_PassReq |
// |
this.chk_PassReq.AutoSize = true; |
this.chk_PassReq.Enabled = false; |
this.chk_PassReq.Location = new System.Drawing.Point(12, 12); |
this.chk_PassReq.Name = "chk_PassReq"; |
this.chk_PassReq.Size = new System.Drawing.Size(160, 17); |
this.chk_PassReq.TabIndex = 1; |
this.chk_PassReq.Text = "Require Complex Passwords"; |
this.chk_PassReq.UseVisualStyleBackColor = true; |
// |
// btn_Ok |
// |
this.btn_Ok.Location = new System.Drawing.Point(72, 328); |
this.btn_Ok.Name = "btn_Ok"; |
this.btn_Ok.Size = new System.Drawing.Size(52, 23); |
this.btn_Ok.TabIndex = 11; |
this.btn_Ok.Text = "Save"; |
this.btn_Ok.UseVisualStyleBackColor = true; |
this.btn_Ok.Click += new System.EventHandler(this.btn_Ok_Click); |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(130, 328); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(52, 23); |
this.btn_Cancel.TabIndex = 12; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// listBox_SystemAccounts |
// |
this.listBox_SystemAccounts.FormattingEnabled = true; |
this.listBox_SystemAccounts.Location = new System.Drawing.Point(6, 19); |
this.listBox_SystemAccounts.Name = "listBox_SystemAccounts"; |
this.listBox_SystemAccounts.Size = new System.Drawing.Size(86, 56); |
this.listBox_SystemAccounts.TabIndex = 1; |
// |
// btn_SystemAdd |
// |
this.btn_SystemAdd.Location = new System.Drawing.Point(100, 23); |
this.btn_SystemAdd.Name = "btn_SystemAdd"; |
this.btn_SystemAdd.Size = new System.Drawing.Size(60, 22); |
this.btn_SystemAdd.TabIndex = 2; |
this.btn_SystemAdd.Text = "Add"; |
this.btn_SystemAdd.UseVisualStyleBackColor = true; |
this.btn_SystemAdd.Click += new System.EventHandler(this.btn_SystemAdd_Click); |
// |
// btn_SystemRemove |
// |
this.btn_SystemRemove.Location = new System.Drawing.Point(100, 49); |
this.btn_SystemRemove.Name = "btn_SystemRemove"; |
this.btn_SystemRemove.Size = new System.Drawing.Size(60, 22); |
this.btn_SystemRemove.TabIndex = 3; |
this.btn_SystemRemove.Text = "Remove"; |
this.btn_SystemRemove.UseVisualStyleBackColor = true; |
this.btn_SystemRemove.Click += new System.EventHandler(this.btn_SystemRemove_Click); |
// |
// groupBox_SystemAccounts |
// |
this.groupBox_SystemAccounts.Controls.Add(this.listBox_SystemAccounts); |
this.groupBox_SystemAccounts.Controls.Add(this.btn_SystemRemove); |
this.groupBox_SystemAccounts.Controls.Add(this.btn_SystemAdd); |
this.groupBox_SystemAccounts.Location = new System.Drawing.Point(12, 35); |
this.groupBox_SystemAccounts.Name = "groupBox_SystemAccounts"; |
this.groupBox_SystemAccounts.Size = new System.Drawing.Size(170, 82); |
this.groupBox_SystemAccounts.TabIndex = 4; |
this.groupBox_SystemAccounts.TabStop = false; |
this.groupBox_SystemAccounts.Text = "System Accounts"; |
// |
// txt_ShareLocation |
// |
this.txt_ShareLocation.Location = new System.Drawing.Point(12, 224); |
this.txt_ShareLocation.Name = "txt_ShareLocation"; |
this.txt_ShareLocation.Size = new System.Drawing.Size(112, 20); |
this.txt_ShareLocation.TabIndex = 5; |
// |
// lbl_ShareLocation |
// |
this.lbl_ShareLocation.AutoSize = true; |
this.lbl_ShareLocation.Location = new System.Drawing.Point(12, 208); |
this.lbl_ShareLocation.Name = "lbl_ShareLocation"; |
this.lbl_ShareLocation.Size = new System.Drawing.Size(117, 13); |
this.lbl_ShareLocation.TabIndex = 10; |
this.lbl_ShareLocation.Text = "Shared Folder Location"; |
// |
// btn_ShareLocationChange |
// |
this.btn_ShareLocationChange.Location = new System.Drawing.Point(130, 223); |
this.btn_ShareLocationChange.Name = "btn_ShareLocationChange"; |
this.btn_ShareLocationChange.Size = new System.Drawing.Size(52, 22); |
this.btn_ShareLocationChange.TabIndex = 6; |
this.btn_ShareLocationChange.Text = "Change"; |
this.btn_ShareLocationChange.UseVisualStyleBackColor = true; |
this.btn_ShareLocationChange.Click += new System.EventHandler(this.btn_ShareLocationChange_Click); |
// |
// folderBrowserDialog |
// |
this.folderBrowserDialog.Description = "Choose a new location for storing networked folders"; |
// |
// btn_USBLocationx32Change |
// |
this.btn_USBLocationx32Change.Location = new System.Drawing.Point(130, 262); |
this.btn_USBLocationx32Change.Name = "btn_USBLocationx32Change"; |
this.btn_USBLocationx32Change.Size = new System.Drawing.Size(52, 22); |
this.btn_USBLocationx32Change.TabIndex = 8; |
this.btn_USBLocationx32Change.Text = "Change"; |
this.btn_USBLocationx32Change.UseVisualStyleBackColor = true; |
this.btn_USBLocationx32Change.Click += new System.EventHandler(this.btn_USBLocationx32Change_Click); |
// |
// txt_USBMasterCopyLocation_x32 |
// |
this.txt_USBMasterCopyLocation_x32.Location = new System.Drawing.Point(12, 263); |
this.txt_USBMasterCopyLocation_x32.Name = "txt_USBMasterCopyLocation_x32"; |
this.txt_USBMasterCopyLocation_x32.Size = new System.Drawing.Size(112, 20); |
this.txt_USBMasterCopyLocation_x32.TabIndex = 7; |
// |
// lbl_USBCopyLocation_x32 |
// |
this.lbl_USBCopyLocation_x32.AutoSize = true; |
this.lbl_USBCopyLocation_x32.Location = new System.Drawing.Point(12, 247); |
this.lbl_USBCopyLocation_x32.Name = "lbl_USBCopyLocation_x32"; |
this.lbl_USBCopyLocation_x32.Size = new System.Drawing.Size(155, 13); |
this.lbl_USBCopyLocation_x32.TabIndex = 15; |
this.lbl_USBCopyLocation_x32.Text = "USB Master Copy x32 Location"; |
// |
// btn_USBLocationx64Change |
// |
this.btn_USBLocationx64Change.Location = new System.Drawing.Point(130, 300); |
this.btn_USBLocationx64Change.Name = "btn_USBLocationx64Change"; |
this.btn_USBLocationx64Change.Size = new System.Drawing.Size(52, 22); |
this.btn_USBLocationx64Change.TabIndex = 10; |
this.btn_USBLocationx64Change.Text = "Change"; |
this.btn_USBLocationx64Change.UseVisualStyleBackColor = true; |
this.btn_USBLocationx64Change.Click += new System.EventHandler(this.btn_USBLocationx64Change_Click); |
// |
// txt_USBMasterCopyLocation_x64 |
// |
this.txt_USBMasterCopyLocation_x64.Location = new System.Drawing.Point(12, 302); |
this.txt_USBMasterCopyLocation_x64.Name = "txt_USBMasterCopyLocation_x64"; |
this.txt_USBMasterCopyLocation_x64.Size = new System.Drawing.Size(112, 20); |
this.txt_USBMasterCopyLocation_x64.TabIndex = 9; |
// |
// lbl_USBCopyLocation_x64 |
// |
this.lbl_USBCopyLocation_x64.AutoSize = true; |
this.lbl_USBCopyLocation_x64.Location = new System.Drawing.Point(12, 286); |
this.lbl_USBCopyLocation_x64.Name = "lbl_USBCopyLocation_x64"; |
this.lbl_USBCopyLocation_x64.Size = new System.Drawing.Size(155, 13); |
this.lbl_USBCopyLocation_x64.TabIndex = 18; |
this.lbl_USBCopyLocation_x64.Text = "USB Master Copy x64 Location"; |
// |
// groupBox_HiddenAccounts |
// |
this.groupBox_HiddenAccounts.Controls.Add(this.listBox_HiddenAccounts); |
this.groupBox_HiddenAccounts.Controls.Add(this.btn_HiddenRemove); |
this.groupBox_HiddenAccounts.Controls.Add(this.btn_HiddenAdd); |
this.groupBox_HiddenAccounts.Location = new System.Drawing.Point(12, 123); |
this.groupBox_HiddenAccounts.Name = "groupBox_HiddenAccounts"; |
this.groupBox_HiddenAccounts.Size = new System.Drawing.Size(170, 82); |
this.groupBox_HiddenAccounts.TabIndex = 19; |
this.groupBox_HiddenAccounts.TabStop = false; |
this.groupBox_HiddenAccounts.Text = "Hidden Accounts"; |
// |
// listBox_HiddenAccounts |
// |
this.listBox_HiddenAccounts.FormattingEnabled = true; |
this.listBox_HiddenAccounts.Location = new System.Drawing.Point(6, 19); |
this.listBox_HiddenAccounts.Name = "listBox_HiddenAccounts"; |
this.listBox_HiddenAccounts.Size = new System.Drawing.Size(86, 56); |
this.listBox_HiddenAccounts.TabIndex = 1; |
// |
// btn_HiddenRemove |
// |
this.btn_HiddenRemove.Location = new System.Drawing.Point(100, 49); |
this.btn_HiddenRemove.Name = "btn_HiddenRemove"; |
this.btn_HiddenRemove.Size = new System.Drawing.Size(60, 22); |
this.btn_HiddenRemove.TabIndex = 3; |
this.btn_HiddenRemove.Text = "Remove"; |
this.btn_HiddenRemove.UseVisualStyleBackColor = true; |
this.btn_HiddenRemove.Click += new System.EventHandler(this.btn_HiddenRemove_Click); |
// |
// btn_HiddenAdd |
// |
this.btn_HiddenAdd.Location = new System.Drawing.Point(100, 23); |
this.btn_HiddenAdd.Name = "btn_HiddenAdd"; |
this.btn_HiddenAdd.Size = new System.Drawing.Size(60, 22); |
this.btn_HiddenAdd.TabIndex = 2; |
this.btn_HiddenAdd.Text = "Add"; |
this.btn_HiddenAdd.UseVisualStyleBackColor = true; |
this.btn_HiddenAdd.Click += new System.EventHandler(this.btn_HiddenAdd_Click); |
// |
// btn_Default |
// |
this.btn_Default.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
this.btn_Default.Location = new System.Drawing.Point(12, 331); |
this.btn_Default.Name = "btn_Default"; |
this.btn_Default.Size = new System.Drawing.Size(45, 20); |
this.btn_Default.TabIndex = 20; |
this.btn_Default.Text = "Defaults"; |
this.btn_Default.UseVisualStyleBackColor = true; |
this.btn_Default.Click += new System.EventHandler(this.btn_Default_Click); |
// |
// Settings_Form |
// |
this.AcceptButton = this.btn_Ok; |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.BackColor = System.Drawing.SystemColors.Control; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(194, 363); |
this.Controls.Add(this.btn_Default); |
this.Controls.Add(this.groupBox_HiddenAccounts); |
this.Controls.Add(this.lbl_USBCopyLocation_x64); |
this.Controls.Add(this.btn_USBLocationx64Change); |
this.Controls.Add(this.txt_USBMasterCopyLocation_x64); |
this.Controls.Add(this.lbl_USBCopyLocation_x32); |
this.Controls.Add(this.btn_USBLocationx32Change); |
this.Controls.Add(this.txt_USBMasterCopyLocation_x32); |
this.Controls.Add(this.btn_ShareLocationChange); |
this.Controls.Add(this.lbl_ShareLocation); |
this.Controls.Add(this.txt_ShareLocation); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.btn_Ok); |
this.Controls.Add(this.chk_PassReq); |
this.Controls.Add(this.groupBox_SystemAccounts); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.MaximizeBox = false; |
this.Name = "Settings_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Settings"; |
this.Load += new System.EventHandler(this.Settings_Form_Load); |
this.groupBox_SystemAccounts.ResumeLayout(false); |
this.groupBox_HiddenAccounts.ResumeLayout(false); |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.CheckBox chk_PassReq; |
private System.Windows.Forms.Button btn_Ok; |
private System.Windows.Forms.Button btn_Cancel; |
private System.Windows.Forms.ListBox listBox_SystemAccounts; |
private System.Windows.Forms.Button btn_SystemAdd; |
private System.Windows.Forms.Button btn_SystemRemove; |
private System.Windows.Forms.GroupBox groupBox_SystemAccounts; |
private System.Windows.Forms.TextBox txt_ShareLocation; |
private System.Windows.Forms.Label lbl_ShareLocation; |
private System.Windows.Forms.Button btn_ShareLocationChange; |
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; |
private System.Windows.Forms.Button btn_USBLocationx32Change; |
private System.Windows.Forms.TextBox txt_USBMasterCopyLocation_x32; |
private System.Windows.Forms.Button btn_USBLocationx64Change; |
private System.Windows.Forms.TextBox txt_USBMasterCopyLocation_x64; |
private System.Windows.Forms.Label lbl_USBCopyLocation_x32; |
private System.Windows.Forms.Label lbl_USBCopyLocation_x64; |
private System.Windows.Forms.GroupBox groupBox_HiddenAccounts; |
private System.Windows.Forms.ListBox listBox_HiddenAccounts; |
private System.Windows.Forms.Button btn_HiddenRemove; |
private System.Windows.Forms.Button btn_HiddenAdd; |
private System.Windows.Forms.Button btn_Default; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Form.cs |
---|
0,0 → 1,247 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
using System.IO; |
using System.Xml.Linq; |
namespace SWAT_Office_App |
{ |
public partial class Settings_Form : Form |
{ |
public static bool defaultSettings { get; set; } |
public static List<string> systemAccounts = new List<string>(); |
public static List<string> hiddenAccounts = new List<string>(); |
public static string sharedFolderLocation { get; set; } |
public static string usbMasterx32CopyLocation { get; set; } |
public static string usbMasterx64CopyLocation { get; set; } |
private static Settings_Form _Settings_Form = null; |
// Singleton instance |
public static Settings_Form settings_Form_Instance |
{ |
set |
{ |
_Settings_Form = value; |
} |
get |
{ |
if (_Settings_Form == null) |
_Settings_Form = new Settings_Form(); |
return _Settings_Form; |
} |
} |
public Settings_Form() |
{ |
ImportSettings(); |
InitializeComponent(); |
this.listBox_SystemAccounts.SelectedIndexChanged += new EventHandler(this.listBox_SystemAccounts_SelectedIndexChanged); |
this.listBox_HiddenAccounts.SelectedIndexChanged += new EventHandler(this.listBox_HiddenAccounts_SelectedIndexChanged); |
} |
private void Settings_Form_Load(object sender, EventArgs e) |
{ |
OpenUpdateSettings(); |
settings_Form_Instance.btn_SystemRemove.Enabled = false; |
} |
public void listBox_SystemAccounts_SelectedIndexChanged(object sender, EventArgs e) |
{ |
settings_Form_Instance.btn_SystemRemove.Enabled = true; |
} |
public void listBox_HiddenAccounts_SelectedIndexChanged(object sender, EventArgs e) |
{ |
settings_Form_Instance.btn_HiddenRemove.Enabled = true; |
} |
public static void ImportSettings() |
{ |
try |
{ |
if (File.Exists("Settings.xml")) |
{ |
// XML Parsing using System.XML.Linq |
XElement Settings = XElement.Load("Settings.xml"); |
systemAccounts.Clear(); |
string tempSystemAccounts = Settings.Element("ProgramSettings").Element("SystemAccounts").Value; |
string[] tempStringArray = tempSystemAccounts.Split(new char[] { ',' }); |
foreach (string str in tempStringArray) |
systemAccounts.Add(str.Trim()); |
hiddenAccounts.Clear(); |
string tempHiddenAccounts = Settings.Element("ProgramSettings").Element("HiddenAccounts").Value; |
tempStringArray = tempHiddenAccounts.Split(new char[] { ',' }); |
foreach (string str in tempStringArray) |
hiddenAccounts.Add(str.Trim()); |
sharedFolderLocation = Settings.Element("ProgramSettings").Element("SharedFolderLocation").Value; |
usbMasterx32CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx32Location").Value; |
usbMasterx64CopyLocation = Settings.Element("ProgramSettings").Element("USBMasterCopyx64Location").Value; |
} |
else |
{ |
WriteDefaultConfigFile(); |
} |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
private static void OpenUpdateSettings() |
{ |
// Update the buttons on the form with the imported settings |
settings_Form_Instance.txt_ShareLocation.Text = sharedFolderLocation; |
settings_Form_Instance.txt_USBMasterCopyLocation_x32.Text = usbMasterx32CopyLocation; |
settings_Form_Instance.txt_USBMasterCopyLocation_x64.Text = usbMasterx64CopyLocation; |
PaintListBox(); |
} |
private static void ExitUpdateSettings() |
{ |
// Update the static variables from the form |
sharedFolderLocation = settings_Form_Instance.txt_ShareLocation.Text; |
usbMasterx32CopyLocation = settings_Form_Instance.txt_USBMasterCopyLocation_x32.Text; |
usbMasterx64CopyLocation = settings_Form_Instance.txt_USBMasterCopyLocation_x64.Text; |
} |
private static void ExportSettings() |
{ |
try |
{ |
// XML Parsing using System.XML.Linq |
XElement Settings = XElement.Load("Settings.xml"); |
string tempString = ""; |
foreach (string str in systemAccounts) |
tempString = tempString.Insert(tempString.Length, str + ','); |
if (tempString.Length > 0) |
tempString = tempString.Remove(tempString.Length - 1, 1); |
Settings.Element("ProgramSettings").SetElementValue("SystemAccounts", tempString); |
tempString = ""; |
foreach (string str in hiddenAccounts) |
tempString = tempString.Insert(tempString.Length, str + ','); |
if (tempString.Length > 0) |
tempString = tempString.Remove(tempString.Length - 1, 1); |
Settings.Element("ProgramSettings").SetElementValue("HiddenAccounts", tempString); |
Settings.Element("ProgramSettings").SetElementValue("SharedFolderLocation", sharedFolderLocation); |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx32Location", usbMasterx32CopyLocation); |
Settings.Element("ProgramSettings").SetElementValue("USBMasterCopyx64Location", usbMasterx64CopyLocation); |
Settings.Save("Settings.xml"); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
private static void WriteDefaultConfigFile() |
{ |
// Writes the default settings configuration |
try |
{ |
XElement Settings = new XElement("Settings", |
new XElement("ProgramSettings", |
new XElement("SystemAccounts", "Administrators,Administrator"), |
new XElement("HiddenAccounts", "Administrator,Guest"), |
new XElement("SharedFolderLocation", "C:\\"), |
new XElement("USBMasterCopyx32Location", "C:\\"), |
new XElement("USBMasterCopyx64Location", "C:\\") |
) |
); |
Settings.Save("Settings.xml"); |
} |
catch (Exception e) |
{ |
MessageBox.Show(e.ToString()); |
} |
} |
private static void PaintListBox() |
{ |
// Paints&Refreshes the listbox of system accounts |
settings_Form_Instance.listBox_SystemAccounts.Items.Clear(); |
foreach (string user in systemAccounts) |
settings_Form_Instance.listBox_SystemAccounts.Items.Add(user); |
settings_Form_Instance.listBox_HiddenAccounts.Items.Clear(); |
foreach (string user in hiddenAccounts) |
settings_Form_Instance.listBox_HiddenAccounts.Items.Add(user); |
} |
private void btn_Ok_Click(object sender, EventArgs e) |
{ |
ExitUpdateSettings(); |
ExportSettings(); |
this.Close(); |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
private void btn_Default_Click(object sender, EventArgs e) |
{ |
try |
{ |
if (MessageBox.Show("Reset configurations to the default settings?", "", MessageBoxButtons.YesNo) == DialogResult.Yes) |
{ |
File.Delete("Settings.xml"); |
WriteDefaultConfigFile(); |
ImportSettings(); |
OpenUpdateSettings(); |
} |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.ToString()); |
} |
} |
private void btn_SystemAdd_Click(object sender, EventArgs e) |
{ |
AddSystemAccount_Form newForm = new AddSystemAccount_Form(); |
newForm.ShowDialog(); |
PaintListBox(); |
} |
private void btn_SystemRemove_Click(object sender, EventArgs e) |
{ |
systemAccounts.Remove(this.listBox_SystemAccounts.SelectedItem.ToString()); |
PaintListBox(); |
} |
private void btn_HiddenAdd_Click(object sender, EventArgs e) |
{ |
AddHiddenAccount_Form newForm = new AddHiddenAccount_Form(); |
newForm.ShowDialog(); |
PaintListBox(); |
} |
private void btn_HiddenRemove_Click(object sender, EventArgs e) |
{ |
hiddenAccounts.Remove(this.listBox_HiddenAccounts.SelectedItem.ToString()); |
PaintListBox(); |
} |
private void btn_ShareLocationChange_Click(object sender, EventArgs e) |
{ |
if (folderBrowserDialog.ShowDialog() == DialogResult.OK) |
{ |
this.txt_ShareLocation.Text = folderBrowserDialog.SelectedPath; |
sharedFolderLocation = folderBrowserDialog.SelectedPath; |
} |
} |
private void btn_USBLocationx32Change_Click(object sender, EventArgs e) |
{ |
if (folderBrowserDialog.ShowDialog() == DialogResult.OK) |
{ |
this.txt_USBMasterCopyLocation_x32.Text = folderBrowserDialog.SelectedPath; |
usbMasterx32CopyLocation = folderBrowserDialog.SelectedPath; |
} |
} |
private void btn_USBLocationx64Change_Click(object sender, EventArgs e) |
{ |
if (folderBrowserDialog.ShowDialog() == DialogResult.OK) |
{ |
this.txt_USBMasterCopyLocation_x64.Text = folderBrowserDialog.SelectedPath; |
usbMasterx64CopyLocation = folderBrowserDialog.SelectedPath; |
} |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Form.resx |
---|
0,0 → 1,148 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
<value>17, 17</value> |
</metadata> |
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
<value>56</value> |
</metadata> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Verify_Form.Designer.cs |
---|
0,0 → 1,91 |
namespace SWAT_Office_App |
{ |
partial class SettingsVerify_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsVerify_Form)); |
this.lbl_Prompt1 = new System.Windows.Forms.Label(); |
this.txt_Password = new System.Windows.Forms.TextBox(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lbl_Prompt1 |
// |
this.lbl_Prompt1.AutoSize = true; |
this.lbl_Prompt1.Location = new System.Drawing.Point(1, 9); |
this.lbl_Prompt1.Name = "lbl_Prompt1"; |
this.lbl_Prompt1.Size = new System.Drawing.Size(144, 13); |
this.lbl_Prompt1.TabIndex = 0; |
this.lbl_Prompt1.Text = "Enter in the SWAT password"; |
// |
// txt_Password |
// |
this.txt_Password.Location = new System.Drawing.Point(18, 29); |
this.txt_Password.Name = "txt_Password"; |
this.txt_Password.Size = new System.Drawing.Size(110, 20); |
this.txt_Password.TabIndex = 1; |
this.txt_Password.UseSystemPasswordChar = true; |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(33, 57); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(80, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// SettingsVerify_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.txt_Password); |
this.Controls.Add(this.lbl_Prompt1); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "SettingsVerify_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Settings Password"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Prompt1; |
private System.Windows.Forms.TextBox txt_Password; |
private System.Windows.Forms.Button btn_Cancel; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Verify_Form.cs |
---|
0,0 → 1,36 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class SettingsVerify_Form : Form |
{ |
public SettingsVerify_Form() |
{ |
InitializeComponent(); |
this.txt_Password.Focus(); |
// Monitors the text in each textbox, triggering changes when certain criteria is met |
this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged); |
} |
private void txt_Password_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text == "tr33b3@rd") |
{ |
Settings_Form.settings_Form_Instance.ShowDialog(); |
this.Close(); |
} |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Settings_Verify_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Toggle_User_Verify_Form.Designer.cs |
---|
0,0 → 1,91 |
namespace SWAT_Office_App |
{ |
partial class ToggleUserVerify_Form |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ToggleUserVerify_Form)); |
this.lbl_Prompt1 = new System.Windows.Forms.Label(); |
this.txt_Password = new System.Windows.Forms.TextBox(); |
this.btn_Cancel = new System.Windows.Forms.Button(); |
this.SuspendLayout(); |
// |
// lbl_Prompt1 |
// |
this.lbl_Prompt1.AutoSize = true; |
this.lbl_Prompt1.Location = new System.Drawing.Point(1, 9); |
this.lbl_Prompt1.Name = "lbl_Prompt1"; |
this.lbl_Prompt1.Size = new System.Drawing.Size(144, 13); |
this.lbl_Prompt1.TabIndex = 0; |
this.lbl_Prompt1.Text = "Enter in the SWAT password"; |
// |
// txt_Password |
// |
this.txt_Password.Location = new System.Drawing.Point(18, 29); |
this.txt_Password.Name = "txt_Password"; |
this.txt_Password.Size = new System.Drawing.Size(110, 20); |
this.txt_Password.TabIndex = 1; |
this.txt_Password.UseSystemPasswordChar = true; |
// |
// btn_Cancel |
// |
this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
this.btn_Cancel.Location = new System.Drawing.Point(33, 57); |
this.btn_Cancel.Name = "btn_Cancel"; |
this.btn_Cancel.Size = new System.Drawing.Size(80, 24); |
this.btn_Cancel.TabIndex = 3; |
this.btn_Cancel.Text = "Cancel"; |
this.btn_Cancel.UseVisualStyleBackColor = true; |
this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); |
// |
// ToggleUserVerify_Form |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.CancelButton = this.btn_Cancel; |
this.ClientSize = new System.Drawing.Size(147, 89); |
this.Controls.Add(this.btn_Cancel); |
this.Controls.Add(this.txt_Password); |
this.Controls.Add(this.lbl_Prompt1); |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
this.Name = "ToggleUserVerify_Form"; |
this.ShowInTaskbar = false; |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
this.Text = "Toggle Share"; |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private System.Windows.Forms.Label lbl_Prompt1; |
private System.Windows.Forms.TextBox txt_Password; |
private System.Windows.Forms.Button btn_Cancel; |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Toggle_User_Verify_Form.cs |
---|
0,0 → 1,38 |
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace SWAT_Office_App |
{ |
public partial class ToggleUserVerify_Form : Form |
{ |
private string selectedUser; |
public ToggleUserVerify_Form(string user) |
{ |
selectedUser = user; |
InitializeComponent(); |
this.txt_Password.Focus(); |
// Monitors the text in each textbox, triggering changes when certain criteria is met |
this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged); |
} |
private void txt_Password_TextChanged(object sender, EventArgs e) |
{ |
TextBox tb = (TextBox)sender; |
if (tb.Text == "tr33b3@rd") |
{ |
ManageUserAccounts.ToggleShare(selectedUser); |
this.Close(); |
} |
} |
private void btn_Cancel_Click(object sender, EventArgs e) |
{ |
this.Close(); |
} |
} |
} |
/SWAT Office App/tags/Release_2.2/SWAT Office App/Toggle_User_Verify_Form.resx |
---|
0,0 → 1,142 |
<?xml version="1.0" encoding="utf-8"?> |
<root> |
<!-- |
Microsoft ResX Schema |
Version 2.0 |
The primary goals of this format is to allow a simple XML format |
that is mostly human readable. The generation and parsing of the |
various data types are done through the TypeConverter classes |
associated with the data types. |
Example: |
... ado.net/XML headers & schema ... |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
<resheader name="version">2.0</resheader> |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
</data> |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
<comment>This is a comment</comment> |
</data> |
There are any number of "resheader" rows that contain simple |
name/value pairs. |
Each data row contains a name, and value. The row also contains a |
type or mimetype. Type corresponds to a .NET class that support |
text/value conversion through the TypeConverter architecture. |
Classes that don't support this are serialized and stored with the |
mimetype set. |
The mimetype is used for serialized objects, and tells the |
ResXResourceReader how to depersist the object. This is currently not |
extensible. For a given mimetype the value must be set accordingly: |
Note - application/x-microsoft.net.object.binary.base64 is the format |
that the ResXResourceWriter will generate, however the reader can |
read any of the formats listed below. |
mimetype: application/x-microsoft.net.object.binary.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.soap.base64 |
value : The object must be serialized with |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
: and then encoded with base64 encoding. |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
value : The object must be serialized into a byte array |
: using a System.ComponentModel.TypeConverter |
: and then encoded with base64 encoding. |
--> |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
<xsd:element name="root" msdata:IsDataSet="true"> |
<xsd:complexType> |
<xsd:choice maxOccurs="unbounded"> |
<xsd:element name="metadata"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
</xsd:sequence> |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
<xsd:attribute name="type" type="xsd:string" /> |
<xsd:attribute name="mimetype" type="xsd:string" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="assembly"> |
<xsd:complexType> |
<xsd:attribute name="alias" type="xsd:string" /> |
<xsd:attribute name="name" type="xsd:string" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="data"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
<xsd:attribute ref="xml:space" /> |
</xsd:complexType> |
</xsd:element> |
<xsd:element name="resheader"> |
<xsd:complexType> |
<xsd:sequence> |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
</xsd:sequence> |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
</xsd:complexType> |
</xsd:element> |
</xsd:choice> |
</xsd:complexType> |
</xsd:element> |
</xsd:schema> |
<resheader name="resmimetype"> |
<value>text/microsoft-resx</value> |
</resheader> |
<resheader name="version"> |
<value>2.0</value> |
</resheader> |
<resheader name="reader"> |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<resheader name="writer"> |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
</resheader> |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
<value> |
AAABAAEAICAAAAEAIACxAwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAAlw |
SFlzAAALEwAACxMBAJqcGAAAA2NJREFUWIXFl81vlFUUxn/nY8pMhwmJED+JG4KyZWX8IKLr6sTGrX+B |
iU0TXKghUROMUUdrS9zq0oUbYGEFTIhAukcBbQhpNX6EVCLRdgqd9x4X7ztDO1OMdDrlJDezuHfuee7z |
nPPc+0pEcC9Dil//dOqzr1CtRwRE96L2stQ9tYFkApGOjb326stAC8AbE1Mnfpi9Eq2IuFWMmxFxK0Vk |
WUSkfKRWRJalvkakiIuXfozGJ5MnAHegYu4ju/fswfbvYuHZF0jvf84DXz7Fwn3PMHTwA94+Jezd/iSv |
PHGG2auXEbnzKf9PPP7YXsx8BKg4UE4puH79L9LlPyld+oJrbx5l2x8zlH6f4cb+d5mfhfmYob7vb+au |
ziF6m9C7iyCl4P6dO4lIAGUHhEjsKA9xYeYCiCDzV7j23PcA2K8/8cbzFxGCX36b4+FHHtowAxFBRFDb |
UaMofvH2xM1/brBv94OY2Zo/SYAUGQvUG46IIMsymkuLnWL2fAa2DQ1x4MBBKpUKOb35EulX8C4AzWaT |
s2fPdDrN8yRg5tRqNarVKiklVlZWEFFKJcfMCtr7A5NlGe6OmXdk1DYyEXAvYeZECOfOfUe9PkKrlSFi |
mA3hXuprlEr5HiK0a4BODRBgprgrEcaHHzV4/dAhsoBvvp7GvdxTH3cbOdMK0QUgRRDQoQeE48eOs9xc |
5vDht6hWhpment4EAIK7E0XODoA2GlVD1ciyxOjoKOPjYzQaE5w8eYpyuYyq9gUABNX8EGslSAEEZoqq |
oCqMj48xOTnFt6dPUx0u6O+zIzoSEEXObgbMMHfUjBfrLyEiDG+voqarLqT+EKitx0BhMK6OmyMilLyE |
iGyqDwiCa2E97ZwdNAHmWsjQr9Z3ACB5jp4ugNyY1HL6BwUgl8DXvCnW1ICbYTo4AILg69dA3gVqtgUM |
GBC9RgR5iwy8BizfO/X6AKh6YUYDYgBB213Q4wMB7oYNUILciq23C/KejC2UIHp9INg6CYJ1bkMCVPPT |
b6b7rY72/kRXEQKklEgpK15CgwEQEaSUkdLtt2X+JANEhfeOvIOK9vvy+g8EkCLld8wqALG4uHj+44mj |
T6e0Nd+JqsLS0tJ5IASoAY8Cu1glyYCjBSwAP0uRtAKUGRz53RHAMtCUe/15/i9A38Suzxe8DwAAAABJ |
RU5ErkJggg== |
</value> |
</data> |
</root> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/application_osx_terminal.ico |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/application_osx_terminal.ico |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.exe |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.pdb |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.vshost.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.vshost.exe |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/SWAT Office App.vshost.exe.manifest |
---|
0,0 → 1,11 |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> |
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> |
<security> |
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> |
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> |
</requestedPrivileges> |
</security> |
</trustInfo> |
</assembly> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Debug/Settings.xml |
---|
0,0 → 1,11 |
<?xml version="1.0" encoding="utf-8"?> |
<Settings> |
<ProgramSettings> |
<ShowGuestAccounts>false</ShowGuestAccounts> |
<SystemAccounts>Administrators,Administrator</SystemAccounts> |
<HiddenAccounts>Administrator,Guest</HiddenAccounts> |
<SharedFolderLocation>C:\</SharedFolderLocation> |
<USBMasterCopyx32Location>C:\</USBMasterCopyx32Location> |
<USBMasterCopyx64Location>C:\</USBMasterCopyx64Location> |
</ProgramSettings> |
</Settings> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Release/SWAT Office App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Release/SWAT Office App.exe |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Release/SWAT Office App.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Release/SWAT Office App.pdb |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/bin/Release/Settings.xml |
---|
0,0 → 1,10 |
<?xml version="1.0" encoding="utf-8"?> |
<Settings> |
<ProgramSettings> |
<SystemAccounts>Administrators,Administrator</SystemAccounts> |
<HiddenAccounts>Administrator,Guest</HiddenAccounts> |
<SharedFolderLocation>C:\</SharedFolderLocation> |
<USBMasterCopyx32Location>C:\</USBMasterCopyx32Location> |
<USBMasterCopyx64Location>C:\</USBMasterCopyx64Location> |
</ProgramSettings> |
</Settings> |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/GenerateResource.read.1.tlog |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/GenerateResource.read.1.tlog |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/GenerateResource.write.1.tlog |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/GenerateResource.write.1.tlog |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT Office App.csproj.FileListAbsolute.txt |
---|
0,0 → 1,19 |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\bin\Debug\SWAT Office App.exe |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\bin\Debug\SWAT Office App.pdb |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\ResolveAssemblyReference.cache |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.AddHiddenAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.AddSystemAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.AddUserAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.DeleteUserVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.Menu1_Main.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.ManageUserAccounts_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.Properties.Resources.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.ResetUserPassword_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.Settings_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.SettingsVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT_Office_App.ToggleUserVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\GenerateResource.read.1.tlog |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\GenerateResource.write.1.tlog |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT Office App.exe |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Debug\SWAT Office App.pdb |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT Office App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT Office App.exe |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT Office App.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT Office App.pdb |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddHiddenAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddHiddenAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddSystemAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddSystemAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddUserAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.AddUserAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.DeleteUserVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.DeleteUserVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ManageUserAccounts_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ManageUserAccounts_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Menu1_Main.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Menu1_Main.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Properties.Resources.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Properties.Resources.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ResetUserPassword_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ResetUserPassword_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.SettingsVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.SettingsVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Settings_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.Settings_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ToggleUserVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/SWAT_Office_App.ToggleUserVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/GenerateResource.read.1.tlog |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/GenerateResource.read.1.tlog |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/GenerateResource.write.1.tlog |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/GenerateResource.write.1.tlog |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT Office App.csproj.FileListAbsolute.txt |
---|
0,0 → 1,19 |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\bin\Release\SWAT Office App.exe |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\bin\Release\SWAT Office App.pdb |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\ResolveAssemblyReference.cache |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.AddHiddenAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.AddSystemAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.AddUserAccount_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.DeleteUserVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.Menu1_Main.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.ManageUserAccounts_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.Properties.Resources.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.ResetUserPassword_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.Settings_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.SettingsVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT_Office_App.ToggleUserVerify_Form.resources |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\GenerateResource.read.1.tlog |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\GenerateResource.write.1.tlog |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT Office App.exe |
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\SWAT Office App\SWAT Office App\obj\x86\Release\SWAT Office App.pdb |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT Office App.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT Office App.exe |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT Office App.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT Office App.pdb |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddHiddenAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddHiddenAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddSystemAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddSystemAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddUserAccount_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.AddUserAccount_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.DeleteUserVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.DeleteUserVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ManageUserAccounts_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ManageUserAccounts_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Menu1_Main.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Menu1_Main.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Properties.Resources.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Properties.Resources.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Reimage_USB_Drive_Progress_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ResetUserPassword_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ResetUserPassword_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.SettingsVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.SettingsVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Settings_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.Settings_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ToggleUserVerify_Form.resources |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App/obj/x86/Release/SWAT_Office_App.ToggleUserVerify_Form.resources |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/SWAT Office App/tags/Release_2.2/SWAT Office App.sln |
---|
0,0 → 1,20 |
|
Microsoft Visual Studio Solution File, Format Version 11.00 |
# Visual Studio 2010 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SWAT Office App", "SWAT Office App\SWAT Office App.csproj", "{87CC24B0-F2A3-4D61-94D0-B3DF78658562}" |
EndProject |
Global |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
Debug|x86 = Debug|x86 |
Release|x86 = Release|x86 |
EndGlobalSection |
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
{87CC24B0-F2A3-4D61-94D0-B3DF78658562}.Debug|x86.ActiveCfg = Debug|x86 |
{87CC24B0-F2A3-4D61-94D0-B3DF78658562}.Debug|x86.Build.0 = Debug|x86 |
{87CC24B0-F2A3-4D61-94D0-B3DF78658562}.Release|x86.ActiveCfg = Release|x86 |
{87CC24B0-F2A3-4D61-94D0-B3DF78658562}.Release|x86.Build.0 = Release|x86 |
EndGlobalSection |
GlobalSection(SolutionProperties) = preSolution |
HideSolutionNode = FALSE |
EndGlobalSection |
EndGlobal |
/SWAT Office App/tags/Release_2.2/SWAT Office App.suo |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/SWAT Office App/tags/Release_2.2/SWAT Office App.suo |
---|
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |