From: <an...@us...> - 2008-03-22 01:53:19
|
Revision: 1496 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1496&view=rev Author: and-81 Date: 2008-03-21 18:53:17 -0700 (Fri, 21 Mar 2008) Log Message: ----------- Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/ trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/LogTimeCodeExtractor.csproj trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Program.cs trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Properties/ trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.Designer.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.resx Property Changed: ---------------- trunk/plugins/IR Server Suite/Common/IrssScheduler/ Added: trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/LogTimeCodeExtractor.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/LogTimeCodeExtractor.csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/LogTimeCodeExtractor.csproj 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,47 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{58BFF250-541B-4AA4-A62D-ACB819AD317B}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>LogTimeCodeExtractor</RootNamespace> + <AssemblyName>LogTimeCodeExtractor</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <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|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\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> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Program.cs 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; + +namespace LogTimeCodeExtractor +{ + + class Program + { + + static void Main(string[] args) + { + if (args.Length != 1) + { + Console.WriteLine("Usage: LogTimeCodeExtractor <filename>"); + return; + } + + StreamReader reader = new StreamReader(args[0]); + + string line; + + List<int> times = new List<int>(); + while (!String.IsNullOrEmpty(line = reader.ReadLine())) + { + if (line.StartsWith("+") || line.StartsWith("-")) + { + string[] timesStrings = line.Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries); + + foreach (string time in timesStrings) + { + int intTime = int.Parse(time); + times.Add(intTime); + } + } + } + + foreach (int time in times) + { + Console.Write(time); + Console.Write(", "); + } + } + + } + +} Added: trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/LogTimeCodeExtractor/Properties/AssemblyInfo.cs 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,33 @@ +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("LogTimeCodeExtractor")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("LogTimeCodeExtractor")] +[assembly: AssemblyCopyright("Copyright © 2008")] +[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("a20b9b41-55a2-454d-a461-9b4a77abdcf3")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Property changes on: trunk/plugins/IR Server Suite/Common/IrssScheduler ___________________________________________________________________ Name: svn:ignore + bin obj Added: trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.Designer.cs 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,272 @@ +namespace IrssUtils.Forms +{ + + partial class WindowCommand + { + + /// <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.components = new System.ComponentModel.Container(); + this.buttonFindMsgTarget = new System.Windows.Forms.Button(); + this.textBoxMsgTarget = new System.Windows.Forms.TextBox(); + this.buttonCancel = new System.Windows.Forms.Button(); + this.buttonOK = new System.Windows.Forms.Button(); + this.groupBoxTarget = new System.Windows.Forms.GroupBox(); + this.radioButtonWindowTitle = new System.Windows.Forms.RadioButton(); + this.radioButtonClass = new System.Windows.Forms.RadioButton(); + this.radioButtonApplication = new System.Windows.Forms.RadioButton(); + this.radioButtonActiveWindow = new System.Windows.Forms.RadioButton(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.groupBoxAction = new System.Windows.Forms.GroupBox(); + this.radioButtonRestore = new System.Windows.Forms.RadioButton(); + this.radioButtonMinimize = new System.Windows.Forms.RadioButton(); + this.radioButtonMaximize = new System.Windows.Forms.RadioButton(); + this.radioButtonHide = new System.Windows.Forms.RadioButton(); + this.radioButtonUnhide = new System.Windows.Forms.RadioButton(); + this.groupBoxTarget.SuspendLayout(); + this.groupBoxAction.SuspendLayout(); + this.SuspendLayout(); + // + // buttonFindMsgTarget + // + this.buttonFindMsgTarget.Location = new System.Drawing.Point(240, 80); + this.buttonFindMsgTarget.Name = "buttonFindMsgTarget"; + this.buttonFindMsgTarget.Size = new System.Drawing.Size(24, 20); + this.buttonFindMsgTarget.TabIndex = 5; + this.buttonFindMsgTarget.Text = "..."; + this.toolTip.SetToolTip(this.buttonFindMsgTarget, "Locate a target"); + this.buttonFindMsgTarget.UseVisualStyleBackColor = true; + this.buttonFindMsgTarget.Click += new System.EventHandler(this.buttonFindMsgApp_Click); + // + // textBoxMsgTarget + // + this.textBoxMsgTarget.Location = new System.Drawing.Point(8, 80); + this.textBoxMsgTarget.Name = "textBoxMsgTarget"; + this.textBoxMsgTarget.Size = new System.Drawing.Size(224, 20); + this.textBoxMsgTarget.TabIndex = 4; + this.toolTip.SetToolTip(this.textBoxMsgTarget, "Target"); + // + // buttonCancel + // + this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.buttonCancel.Location = new System.Drawing.Point(216, 256); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(64, 24); + this.buttonCancel.TabIndex = 3; + this.buttonCancel.Text = "Cancel"; + this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); + // + // buttonOK + // + this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonOK.Location = new System.Drawing.Point(144, 256); + this.buttonOK.Name = "buttonOK"; + this.buttonOK.Size = new System.Drawing.Size(64, 24); + this.buttonOK.TabIndex = 2; + this.buttonOK.Text = "OK"; + this.buttonOK.UseVisualStyleBackColor = true; + this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); + // + // groupBoxTarget + // + this.groupBoxTarget.Controls.Add(this.radioButtonWindowTitle); + this.groupBoxTarget.Controls.Add(this.radioButtonClass); + this.groupBoxTarget.Controls.Add(this.radioButtonApplication); + this.groupBoxTarget.Controls.Add(this.radioButtonActiveWindow); + this.groupBoxTarget.Controls.Add(this.textBoxMsgTarget); + this.groupBoxTarget.Controls.Add(this.buttonFindMsgTarget); + this.groupBoxTarget.Location = new System.Drawing.Point(8, 128); + this.groupBoxTarget.Name = "groupBoxTarget"; + this.groupBoxTarget.Size = new System.Drawing.Size(272, 112); + this.groupBoxTarget.TabIndex = 1; + this.groupBoxTarget.TabStop = false; + this.groupBoxTarget.Text = "Target"; + // + // radioButtonWindowTitle + // + this.radioButtonWindowTitle.Location = new System.Drawing.Point(152, 48); + this.radioButtonWindowTitle.Name = "radioButtonWindowTitle"; + this.radioButtonWindowTitle.Size = new System.Drawing.Size(112, 16); + this.radioButtonWindowTitle.TabIndex = 3; + this.radioButtonWindowTitle.TabStop = true; + this.radioButtonWindowTitle.Text = "Window title"; + this.toolTip.SetToolTip(this.radioButtonWindowTitle, "Target the specified window title"); + this.radioButtonWindowTitle.UseVisualStyleBackColor = true; + this.radioButtonWindowTitle.CheckedChanged += new System.EventHandler(this.radioButtonWindowTitle_CheckedChanged); + // + // radioButtonClass + // + this.radioButtonClass.Location = new System.Drawing.Point(8, 48); + this.radioButtonClass.Name = "radioButtonClass"; + this.radioButtonClass.Size = new System.Drawing.Size(112, 16); + this.radioButtonClass.TabIndex = 2; + this.radioButtonClass.TabStop = true; + this.radioButtonClass.Text = "Class"; + this.toolTip.SetToolTip(this.radioButtonClass, "Target a specific class"); + this.radioButtonClass.UseVisualStyleBackColor = true; + this.radioButtonClass.CheckedChanged += new System.EventHandler(this.radioButtonClass_CheckedChanged); + // + // radioButtonApplication + // + this.radioButtonApplication.Location = new System.Drawing.Point(152, 24); + this.radioButtonApplication.Name = "radioButtonApplication"; + this.radioButtonApplication.Size = new System.Drawing.Size(112, 16); + this.radioButtonApplication.TabIndex = 1; + this.radioButtonApplication.TabStop = true; + this.radioButtonApplication.Text = "Application"; + this.toolTip.SetToolTip(this.radioButtonApplication, "Target a specific application"); + this.radioButtonApplication.UseVisualStyleBackColor = true; + this.radioButtonApplication.CheckedChanged += new System.EventHandler(this.radioButtonApplication_CheckedChanged); + // + // radioButtonActiveWindow + // + this.radioButtonActiveWindow.Location = new System.Drawing.Point(8, 24); + this.radioButtonActiveWindow.Name = "radioButtonActiveWindow"; + this.radioButtonActiveWindow.Size = new System.Drawing.Size(112, 16); + this.radioButtonActiveWindow.TabIndex = 0; + this.radioButtonActiveWindow.Text = "Active window"; + this.toolTip.SetToolTip(this.radioButtonActiveWindow, "Target the active window"); + this.radioButtonActiveWindow.UseVisualStyleBackColor = true; + this.radioButtonActiveWindow.CheckedChanged += new System.EventHandler(this.radioButtonActiveWindow_CheckedChanged); + // + // groupBoxAction + // + this.groupBoxAction.Controls.Add(this.radioButtonUnhide); + this.groupBoxAction.Controls.Add(this.radioButtonHide); + this.groupBoxAction.Controls.Add(this.radioButtonMaximize); + this.groupBoxAction.Controls.Add(this.radioButtonMinimize); + this.groupBoxAction.Controls.Add(this.radioButtonRestore); + this.groupBoxAction.Location = new System.Drawing.Point(8, 8); + this.groupBoxAction.Name = "groupBoxAction"; + this.groupBoxAction.Size = new System.Drawing.Size(272, 104); + this.groupBoxAction.TabIndex = 0; + this.groupBoxAction.TabStop = false; + this.groupBoxAction.Text = "Action"; + // + // radioButtonRestore + // + this.radioButtonRestore.Location = new System.Drawing.Point(8, 24); + this.radioButtonRestore.Name = "radioButtonRestore"; + this.radioButtonRestore.Size = new System.Drawing.Size(112, 16); + this.radioButtonRestore.TabIndex = 0; + this.radioButtonRestore.TabStop = true; + this.radioButtonRestore.Text = "Restore"; + this.toolTip.SetToolTip(this.radioButtonRestore, "Restore a window to the foreground"); + this.radioButtonRestore.UseVisualStyleBackColor = true; + // + // radioButtonMinimize + // + this.radioButtonMinimize.Location = new System.Drawing.Point(8, 48); + this.radioButtonMinimize.Name = "radioButtonMinimize"; + this.radioButtonMinimize.Size = new System.Drawing.Size(112, 16); + this.radioButtonMinimize.TabIndex = 1; + this.radioButtonMinimize.TabStop = true; + this.radioButtonMinimize.Text = "Minimize"; + this.toolTip.SetToolTip(this.radioButtonMinimize, "Minimize a window"); + this.radioButtonMinimize.UseVisualStyleBackColor = true; + // + // radioButtonMaximize + // + this.radioButtonMaximize.Location = new System.Drawing.Point(152, 48); + this.radioButtonMaximize.Name = "radioButtonMaximize"; + this.radioButtonMaximize.Size = new System.Drawing.Size(112, 16); + this.radioButtonMaximize.TabIndex = 2; + this.radioButtonMaximize.TabStop = true; + this.radioButtonMaximize.Text = "Maximize"; + this.toolTip.SetToolTip(this.radioButtonMaximize, "Maximize a window"); + this.radioButtonMaximize.UseVisualStyleBackColor = true; + // + // radioButtonHide + // + this.radioButtonHide.Location = new System.Drawing.Point(8, 72); + this.radioButtonHide.Name = "radioButtonHide"; + this.radioButtonHide.Size = new System.Drawing.Size(112, 16); + this.radioButtonHide.TabIndex = 3; + this.radioButtonHide.TabStop = true; + this.radioButtonHide.Text = "Hide"; + this.toolTip.SetToolTip(this.radioButtonHide, "Maximize a window"); + this.radioButtonHide.UseVisualStyleBackColor = true; + // + // radioButtonUnhide + // + this.radioButtonUnhide.Location = new System.Drawing.Point(152, 72); + this.radioButtonUnhide.Name = "radioButtonUnhide"; + this.radioButtonUnhide.Size = new System.Drawing.Size(112, 16); + this.radioButtonUnhide.TabIndex = 4; + this.radioButtonUnhide.TabStop = true; + this.radioButtonUnhide.Text = "Unhide"; + this.toolTip.SetToolTip(this.radioButtonUnhide, "Maximize a window"); + this.radioButtonUnhide.UseVisualStyleBackColor = true; + // + // WindowCommand + // + this.AcceptButton = this.buttonOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.buttonCancel; + this.ClientSize = new System.Drawing.Size(288, 288); + this.Controls.Add(this.groupBoxAction); + this.Controls.Add(this.groupBoxTarget); + this.Controls.Add(this.buttonCancel); + this.Controls.Add(this.buttonOK); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(296, 322); + this.Name = "WindowCommand"; + this.ShowIcon = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Window State Command"; + this.groupBoxTarget.ResumeLayout(false); + this.groupBoxTarget.PerformLayout(); + this.groupBoxAction.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button buttonFindMsgTarget; + private System.Windows.Forms.TextBox textBoxMsgTarget; + private System.Windows.Forms.Button buttonCancel; + private System.Windows.Forms.Button buttonOK; + private System.Windows.Forms.GroupBox groupBoxTarget; + private System.Windows.Forms.ToolTip toolTip; + private System.Windows.Forms.RadioButton radioButtonActiveWindow; + private System.Windows.Forms.RadioButton radioButtonWindowTitle; + private System.Windows.Forms.RadioButton radioButtonClass; + private System.Windows.Forms.RadioButton radioButtonApplication; + private System.Windows.Forms.GroupBox groupBoxAction; + private System.Windows.Forms.RadioButton radioButtonUnhide; + private System.Windows.Forms.RadioButton radioButtonHide; + private System.Windows.Forms.RadioButton radioButtonMaximize; + private System.Windows.Forms.RadioButton radioButtonMinimize; + private System.Windows.Forms.RadioButton radioButtonRestore; + } + +} Added: trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.cs (rev 0) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.cs 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,169 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.IO; +using System.Text; +using System.Windows.Forms; + +namespace IrssUtils.Forms +{ + + /// <summary> + /// Window Command form. + /// </summary> + public partial class WindowCommand : Form + { + + #region Properties + + /// <summary> + /// Gets the command string. + /// </summary> + /// <value>The command string.</value> + public string CommandString + { + get + { + string action = "ERROR"; + string target = "ERROR"; + + if (radioButtonRestore.Checked) + action = "RESTORE"; + + if (radioButtonActiveWindow.Checked) + { + target = Common.TargetActive; + textBoxMsgTarget.Text = "*"; + } + else if (radioButtonApplication.Checked) + { + target = Common.TargetApplication; + } + else if (radioButtonClass.Checked) + { + target = Common.TargetClass; + } + else if (radioButtonWindowTitle.Checked) + { + target = Common.TargetWindow; + } + + return String.Format("{0}|{1}|{2}", + action, + target, + textBoxMsgTarget.Text); + } + } + + #endregion Properties + + #region Constructors + + /// <summary> + /// Initializes a new instance of the <see cref="WindowCommand"/> class. + /// </summary> + public WindowCommand() + { + InitializeComponent(); + + radioButtonRestore.Checked = true; + radioButtonActiveWindow.Checked = true; + } + /// <summary> + /// Initializes a new instance of the <see cref="WindowCommand"/> class. + /// </summary> + /// <param name="commands">The command elements.</param> + public WindowCommand(string[] commands) : this() + { + if (commands != null) + { + string action = commands[0].ToUpperInvariant(); + switch (action) + { + case "RESTORE": radioButtonRestore.Checked = true; break; + } + + string target = commands[1].ToUpperInvariant(); + switch (target) + { + case Common.TargetActive: radioButtonActiveWindow.Checked = true; break; + case Common.TargetApplication: radioButtonApplication.Checked = true; break; + case Common.TargetClass: radioButtonClass.Checked = true; break; + case Common.TargetWindow: radioButtonWindowTitle.Checked = true; break; + default: + throw new ArgumentOutOfRangeException("commands", commands[0], "Invalid window target"); + } + + textBoxMsgTarget.Text = commands[2]; + } + } + + #endregion Constructors + + #region Controls + + private void buttonFindMsgApp_Click(object sender, EventArgs e) + { + if (radioButtonApplication.Checked) + { + OpenFileDialog find = new OpenFileDialog(); + find.Filter = "All files|*.*"; + find.Multiselect = false; + find.Title = "Application to target"; + + if (find.ShowDialog(this) == DialogResult.OK) + textBoxMsgTarget.Text = find.FileName; + } + else if (radioButtonClass.Checked) + { + WindowList windowList = new WindowList(true); + if (windowList.ShowDialog(this) == DialogResult.OK) + textBoxMsgTarget.Text = windowList.SelectedItem; + } + else if (radioButtonWindowTitle.Checked) + { + WindowList windowList = new WindowList(false); + if (windowList.ShowDialog(this) == DialogResult.OK) + textBoxMsgTarget.Text = windowList.SelectedItem; + } + } + + private void buttonOK_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.OK; + this.Close(); + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + + private void radioButtonActiveWindow_CheckedChanged(object sender, EventArgs e) + { + buttonFindMsgTarget.Enabled = false; + textBoxMsgTarget.Enabled = false; + } + private void radioButtonApplication_CheckedChanged(object sender, EventArgs e) + { + buttonFindMsgTarget.Enabled = true; + textBoxMsgTarget.Enabled = true; + } + private void radioButtonClass_CheckedChanged(object sender, EventArgs e) + { + buttonFindMsgTarget.Enabled = true; + textBoxMsgTarget.Enabled = true; + } + private void radioButtonWindowTitle_CheckedChanged(object sender, EventArgs e) + { + buttonFindMsgTarget.Enabled = true; + textBoxMsgTarget.Enabled = true; + } + + #endregion Controls + + } + +} Added: trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.resx =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.resx (rev 0) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/WindowCommand.resx 2008-03-22 01:53:17 UTC (rev 1496) @@ -0,0 +1,126 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>174, 17</value> + </metadata> + <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |