diff --git a/Ookii.Dialogs.Wpf.Sample/App.xaml b/Ookii.Dialogs.Wpf.Sample/App.xaml deleted file mode 100644 index 9193831..0000000 --- a/Ookii.Dialogs.Wpf.Sample/App.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/Ookii.Dialogs.Wpf.Sample/App.xaml.cs b/Ookii.Dialogs.Wpf.Sample/App.xaml.cs deleted file mode 100644 index d6c58ad..0000000 --- a/Ookii.Dialogs.Wpf.Sample/App.xaml.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Windows; - -namespace Ookii.Dialogs.Wpf.Sample -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml b/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml deleted file mode 100644 index 84fdc7a..0000000 --- a/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - Task Dialog - Task Dialog with command links - Progress Dialog - Credential Dialog - Vista-style Folder Browser Dialog - Vista-style Open File Dialog - Vista-style Save File Dialog - - - - - diff --git a/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml.cs b/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml.cs deleted file mode 100644 index b6f4e92..0000000 --- a/Ookii.Dialogs.Wpf.Sample/MainWindow.xaml.cs +++ /dev/null @@ -1,215 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Threading; -using System.ComponentModel; - -namespace Ookii.Dialogs.Wpf.Sample -{ - /// - /// Interaction logic for Window1.xaml - /// - public partial class MainWindow : Window - { - private ProgressDialog _sampleProgressDialog = new ProgressDialog() - { - WindowTitle = "Progress dialog sample", - Text = "This is a sample progress dialog...", - Description = "Processing...", - ShowTimeRemaining = true, - }; - - public MainWindow() - { - InitializeComponent(); - - _sampleProgressDialog.DoWork += new System.ComponentModel.DoWorkEventHandler(_sampleProgressDialog_DoWork); - } - - - private void _showDialogButton_Click(object sender, RoutedEventArgs e) - { - switch( _dialogComboBox.SelectedIndex ) - { - case 0: - ShowTaskDialog(); - break; - case 1: - ShowTaskDialogWithCommandLinks(); - break; - case 2: - ShowProgressDialog(); - break; - case 3: - ShowCredentialDialog(); - break; - case 4: - ShowFolderBrowserDialog(); - break; - case 5: - ShowOpenFileDialog(); - break; - case 6: - ShowSaveFileDialog(); - break; - } - } - - private void ShowTaskDialog() - { - if( TaskDialog.OSSupportsTaskDialogs ) - { - using( TaskDialog dialog = new TaskDialog() ) - { - dialog.WindowTitle = "Task dialog sample"; - dialog.MainInstruction = "This is an example task dialog."; - dialog.Content = "Task dialogs are a more flexible type of message box. Among other things, task dialogs support custom buttons, command links, scroll bars, expandable sections, radio buttons, a check box (useful for e.g. \"don't show this again\"), custom icons, and a footer. Some of those things are demonstrated here."; - dialog.ExpandedInformation = "Ookii.org's Task Dialog doesn't just provide a wrapper for the native Task Dialog API; it is designed to provide a programming interface that is natural to .Net developers."; - dialog.Footer = "Task Dialogs support footers and can even include hyperlinks."; - dialog.FooterIcon = TaskDialogIcon.Information; - dialog.EnableHyperlinks = true; - TaskDialogButton customButton = new TaskDialogButton("A custom button"); - TaskDialogButton okButton = new TaskDialogButton(ButtonType.Ok); - TaskDialogButton cancelButton = new TaskDialogButton(ButtonType.Cancel); - dialog.Buttons.Add(customButton); - dialog.Buttons.Add(okButton); - dialog.Buttons.Add(cancelButton); - dialog.HyperlinkClicked += new EventHandler(TaskDialog_HyperLinkClicked); - TaskDialogButton button = dialog.ShowDialog(this); - if( button == customButton ) - MessageBox.Show(this, "You clicked the custom button", "Task Dialog Sample"); - else if( button == okButton ) - MessageBox.Show(this, "You clicked the OK button.", "Task Dialog Sample"); - } - } - else - { - MessageBox.Show(this, "This operating system does not support task dialogs.", "Task Dialog Sample"); - } - } - - private void ShowTaskDialogWithCommandLinks() - { - if( TaskDialog.OSSupportsTaskDialogs ) - { - using( TaskDialog dialog = new TaskDialog() ) - { - dialog.WindowTitle = "Task dialog sample"; - dialog.MainInstruction = "This is a sample task dialog with command links."; - dialog.Content = "Besides regular buttons, task dialogs also support command links. Only custom buttons are shown as command links; standard buttons remain regular buttons."; - dialog.ButtonStyle = TaskDialogButtonStyle.CommandLinks; - TaskDialogButton elevatedButton = new TaskDialogButton("An action requiring elevation"); - elevatedButton.CommandLinkNote = "Both regular buttons and command links can show the shield icon to indicate that the action they perform requires elevation. It is up to the application to actually perform the elevation."; - elevatedButton.ElevationRequired = true; - TaskDialogButton otherButton = new TaskDialogButton("Some other action"); - TaskDialogButton cancelButton = new TaskDialogButton(ButtonType.Cancel); - dialog.Buttons.Add(elevatedButton); - dialog.Buttons.Add(otherButton); - dialog.Buttons.Add(cancelButton); - dialog.ShowDialog(this); - } - } - else - { - MessageBox.Show(this, "This operating system does not support task dialogs.", "Task Dialog Sample"); - } - } - - private void ShowProgressDialog() - { - if( _sampleProgressDialog.IsBusy ) - MessageBox.Show(this, "The progress dialog is already displayed.", "Progress dialog sample"); - else - _sampleProgressDialog.Show(); // Show a modeless dialog; this is the recommended mode of operation for a progress dialog. - } - - private void ShowCredentialDialog() - { - using( CredentialDialog dialog = new CredentialDialog() ) - { - // The window title will not be used on Vista and later; there the title will always be "Windows Security". - dialog.WindowTitle = "Credential dialog sample"; - dialog.MainInstruction = "Please enter your username and password."; - dialog.Content = "Since this is a sample the credentials won't be used for anything, so you can enter anything you like."; - dialog.ShowSaveCheckBox = true; - dialog.ShowUIForSavedCredentials = true; - // The target is the key under which the credentials will be stored. - // It is recommended to set the target to something following the "Company_Application_Server" pattern. - // Targets are per user, not per application, so using such a pattern will ensure uniqueness. - dialog.Target = "Ookii_DialogsWpfSample_www.example.com"; - if( dialog.ShowDialog(this) ) - { - MessageBox.Show(this, string.Format("You entered the following information:\nUser name: {0}\nPassword: {1}", dialog.Credentials.UserName, dialog.Credentials.Password), "Credential dialog sample"); - // Normally, you should verify if the credentials are correct before calling ConfirmCredentials. - // ConfirmCredentials will save the credentials if and only if the user checked the save checkbox. - dialog.ConfirmCredentials(true); - } - } - } - - private void ShowFolderBrowserDialog() - { - VistaFolderBrowserDialog dialog = new VistaFolderBrowserDialog(); - dialog.Description = "Please select a folder."; - dialog.UseDescriptionForTitle = true; // This applies to the Vista style dialog only, not the old dialog. - if( !VistaFolderBrowserDialog.IsVistaFolderDialogSupported ) - MessageBox.Show(this, "Because you are not using Windows Vista or later, the regular folder browser dialog will be used. Please use Windows Vista to see the new dialog.", "Sample folder browser dialog"); - if( (bool)dialog.ShowDialog(this) ) - MessageBox.Show(this, "The selected folder was: " + dialog.SelectedPath, "Sample folder browser dialog"); - } - - private void ShowOpenFileDialog() - { - // As of .Net 3.5 SP1, WPF's Microsoft.Win32.OpenFileDialog class still uses the old style - VistaOpenFileDialog dialog = new VistaOpenFileDialog(); - dialog.Filter = "All files (*.*)|*.*"; - if( !VistaFileDialog.IsVistaFileDialogSupported ) - MessageBox.Show(this, "Because you are not using Windows Vista or later, the regular open file dialog will be used. Please use Windows Vista to see the new dialog.", "Sample open file dialog"); - if( (bool)dialog.ShowDialog(this) ) - MessageBox.Show(this, "The selected file was: " + dialog.FileName, "Sample open file dialog"); - } - - private void ShowSaveFileDialog() - { - VistaSaveFileDialog dialog = new VistaSaveFileDialog(); - dialog.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"; - dialog.DefaultExt = "txt"; - // As of .Net 3.5 SP1, WPF's Microsoft.Win32.SaveFileDialog class still uses the old style - if( !VistaFileDialog.IsVistaFileDialogSupported ) - MessageBox.Show(this, "Because you are not using Windows Vista or later, the regular save file dialog will be used. Please use Windows Vista to see the new dialog.", "Sample save file dialog"); - if( (bool)dialog.ShowDialog(this) ) - MessageBox.Show(this, "The selected file was: " + dialog.FileName, "Sample save file dialog"); - } - - private void TaskDialog_HyperLinkClicked(object sender, HyperlinkClickedEventArgs e) - { - System.Diagnostics.Process.Start(e.Href); - } - - private void _sampleProgressDialog_DoWork(object sender, DoWorkEventArgs e) - { - // Implement the operation that the progress bar is showing progress of here, same as you would do with a background worker. - for( int x = 0; x <= 100; ++x ) - { - Thread.Sleep(500); - // Periodically check CancellationPending and abort the operation if required. - if( _sampleProgressDialog.CancellationPending ) - return; - // ReportProgress can also modify the main text and description; pass null to leave them unchanged. - // If _sampleProgressDialog.ShowTimeRemaining is set to true, the time will automatically be calculated based on - // the frequency of the calls to ReportProgress. - _sampleProgressDialog.ReportProgress(x, null, string.Format(System.Globalization.CultureInfo.CurrentCulture, "Processing: {0}%", x)); - } - } - } -} diff --git a/Ookii.Dialogs.Wpf.Sample/Ookii.Dialogs.Wpf.Sample.csproj b/Ookii.Dialogs.Wpf.Sample/Ookii.Dialogs.Wpf.Sample.csproj deleted file mode 100644 index d5fc290..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Ookii.Dialogs.Wpf.Sample.csproj +++ /dev/null @@ -1,130 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {E38181B2-E8E5-466D-9099-33FE75B4CFA1} - WinExe - Properties - Ookii.Dialogs.Wpf.Sample - Ookii.Dialogs.Wpf.Sample - v3.5 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - app.manifest - ookii.ico - true - ookii.snk - - - - - 3.5 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - - - - MSBuild:Compile - Designer - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - {D01B1D20-8F5B-4834-8E5C-C7EC6DD587D4} - Ookii.Dialogs.Wpf - - - - - - - - - - - - \ No newline at end of file diff --git a/Ookii.Dialogs.Wpf.Sample/Properties/AssemblyInfo.cs b/Ookii.Dialogs.Wpf.Sample/Properties/AssemblyInfo.cs deleted file mode 100644 index 52bd532..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// 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("Ookii.Dialogs.Wpf.Sample")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Ookii.org")] -[assembly: AssemblyProduct("Ookii.Dialogs")] -[assembly: AssemblyCopyright("Copyright © Sven Groot (Ookii.org) 2009")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: System.CLSCompliant(true)] -[assembly: System.Resources.NeutralResourcesLanguage("en-US")] - -// 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)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// 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")] diff --git a/Ookii.Dialogs.Wpf.Sample/Properties/Resources.Designer.cs b/Ookii.Dialogs.Wpf.Sample/Properties/Resources.Designer.cs deleted file mode 100644 index 2fbeaeb..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Properties/Resources.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Ookii.Dialogs.Wpf.Sample.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [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("Ookii.Dialogs.Wpf.Sample.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} diff --git a/Ookii.Dialogs.Wpf.Sample/Properties/Resources.resx b/Ookii.Dialogs.Wpf.Sample/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Ookii.Dialogs.Wpf.Sample/Properties/Settings.Designer.cs b/Ookii.Dialogs.Wpf.Sample/Properties/Settings.Designer.cs deleted file mode 100644 index 897008a..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Ookii.Dialogs.Wpf.Sample.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.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; - } - } - } -} diff --git a/Ookii.Dialogs.Wpf.Sample/Properties/Settings.settings b/Ookii.Dialogs.Wpf.Sample/Properties/Settings.settings deleted file mode 100644 index 033d7a5..0000000 --- a/Ookii.Dialogs.Wpf.Sample/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/Ookii.Dialogs.Wpf.Sample/app.manifest b/Ookii.Dialogs.Wpf.Sample/app.manifest deleted file mode 100644 index bcfcfe3..0000000 --- a/Ookii.Dialogs.Wpf.Sample/app.manifest +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Ookii.Dialogs.Wpf.Sample/ookii.ico b/Ookii.Dialogs.Wpf.Sample/ookii.ico deleted file mode 100644 index 872f8a4..0000000 Binary files a/Ookii.Dialogs.Wpf.Sample/ookii.ico and /dev/null differ diff --git a/Ookii.Dialogs.Wpf.Sample/ookii.snk b/Ookii.Dialogs.Wpf.Sample/ookii.snk deleted file mode 100644 index 1befa13..0000000 Binary files a/Ookii.Dialogs.Wpf.Sample/ookii.snk and /dev/null differ diff --git a/PianoKeyboardDemo/App.config b/PianoKeyboardDemo/App.config deleted file mode 100644 index 8e15646..0000000 --- a/PianoKeyboardDemo/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/PianoKeyboardDemo/Form1.Designer.cs b/PianoKeyboardDemo/Form1.Designer.cs deleted file mode 100644 index 80d6e6f..0000000 --- a/PianoKeyboardDemo/Form1.Designer.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace PianoKeyboardDemo -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.pianoControl1 = new Sanford.Multimedia.Midi.UI.PianoControl(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // pianoControl1 - // - this.pianoControl1.HighNoteID = 109; - this.pianoControl1.Location = new System.Drawing.Point(12, 63); - this.pianoControl1.LowNoteID = 21; - this.pianoControl1.Name = "pianoControl1"; - this.pianoControl1.NoteOnColor = System.Drawing.Color.SkyBlue; - this.pianoControl1.Size = new System.Drawing.Size(717, 55); - this.pianoControl1.TabIndex = 0; - this.pianoControl1.Text = "pianoControl1"; - this.pianoControl1.PianoKeyDown += new System.EventHandler(this.pianoControl1_PianoKeyDown); - this.pianoControl1.PianoKeyUp += new System.EventHandler(this.pianoControl1_PianoKeyUp); - // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(143, 27); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(184, 20); - this.textBox1.TabIndex = 1; - // - // Form1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(750, 327); - this.Controls.Add(this.textBox1); - this.Controls.Add(this.pianoControl1); - this.Name = "Form1"; - this.Text = "Form1"; - this.Load += new System.EventHandler(this.Form1_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private Sanford.Multimedia.Midi.UI.PianoControl pianoControl1; - private System.Windows.Forms.TextBox textBox1; - } -} - diff --git a/PianoKeyboardDemo/Form1.cs b/PianoKeyboardDemo/Form1.cs deleted file mode 100644 index c747290..0000000 --- a/PianoKeyboardDemo/Form1.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Sanford.Multimedia.Midi; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace PianoKeyboardDemo -{ - public partial class Form1 : Form - { - private OutputDevice outDevice; - private int outDeviceID = 0; - - public Form1() - { - InitializeComponent(); - } - - private void pianoControl1_PianoKeyDown(object sender, Sanford.Multimedia.Midi.UI.PianoKeyEventArgs e) - { - textBox1.Text = e.NoteID.ToString(); - outDevice.Send(new ChannelMessage(ChannelCommand.NoteOn, 0, e.NoteID, 127)); - } - - private void pianoControl1_PianoKeyUp(object sender, Sanford.Multimedia.Midi.UI.PianoKeyEventArgs e) - { - outDevice.Send(new ChannelMessage(ChannelCommand.NoteOff, 0, e.NoteID, 0)); - } - - private void Form1_Load(object sender, EventArgs e) - { - outDevice = new OutputDevice(outDeviceID); - } - - protected override void OnClosed(EventArgs e) - { - if (outDevice != null) - { - outDevice.Dispose(); - } - - base.OnClosed(e); - } - } -} diff --git a/PianoKeyboardDemo/Form1.resx b/PianoKeyboardDemo/Form1.resx deleted file mode 100644 index 1af7de1..0000000 --- a/PianoKeyboardDemo/Form1.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/PianoKeyboardDemo/PianoKeyboardDemo.csproj b/PianoKeyboardDemo/PianoKeyboardDemo.csproj deleted file mode 100644 index a7b939b..0000000 --- a/PianoKeyboardDemo/PianoKeyboardDemo.csproj +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Debug - AnyCPU - {16939739-CF95-4638-B0CF-B5F6DC42D588} - WinExe - Properties - PianoKeyboardDemo - PianoKeyboardDemo - v4.5 - 512 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - False - ..\Sanford.Multimedia.Midi\Sanford.Collections.dll - - - False - ..\Sanford.Multimedia.Midi\Sanford.Multimedia.dll - - - False - ..\Sanford.Multimedia.Midi\Sanford.Multimedia.Timers.dll - - - False - ..\Sanford.Multimedia.Midi\Sanford.Threading.dll - - - - - - - - - - - - - - - Form - - - Form1.cs - - - - - Form1.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - {4269c72a-8d3a-4737-8f89-72eaa33ea9e1} - Sanford.Multimedia.Midi - - - - - \ No newline at end of file diff --git a/PianoKeyboardDemo/Program.cs b/PianoKeyboardDemo/Program.cs deleted file mode 100644 index bb2e8f0..0000000 --- a/PianoKeyboardDemo/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace PianoKeyboardDemo -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); - } - } -} diff --git a/PianoKeyboardDemo/Properties/AssemblyInfo.cs b/PianoKeyboardDemo/Properties/AssemblyInfo.cs deleted file mode 100644 index 35c30f8..0000000 --- a/PianoKeyboardDemo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("PianoKeyboardDemo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PianoKeyboardDemo")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[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("f68c6d04-4fe0-48f7-bab7-76b1e72a360c")] - -// 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")] diff --git a/PianoKeyboardDemo/Properties/Resources.Designer.cs b/PianoKeyboardDemo/Properties/Resources.Designer.cs deleted file mode 100644 index 3b9dffb..0000000 --- a/PianoKeyboardDemo/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace PianoKeyboardDemo.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PianoKeyboardDemo.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/PianoKeyboardDemo/Properties/Resources.resx b/PianoKeyboardDemo/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/PianoKeyboardDemo/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/PianoKeyboardDemo/Properties/Settings.Designer.cs b/PianoKeyboardDemo/Properties/Settings.Designer.cs deleted file mode 100644 index 0e3c53c..0000000 --- a/PianoKeyboardDemo/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace PianoKeyboardDemo.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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; - } - } - } -} diff --git a/PianoKeyboardDemo/Properties/Settings.settings b/PianoKeyboardDemo/Properties/Settings.settings deleted file mode 100644 index 3964565..0000000 --- a/PianoKeyboardDemo/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/README.md b/README.md index c8edd0b..e05dbe5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ Author: USC CSCI-577 Team07 in Spring 2015 See `releases` tab for executable files. +## Contact Us + +csci-577a-team07-developers@googlegroups.com + +https://groups.google.com/d/forum/csci-577a-team07-developers + ## Links of Project ### Team Website diff --git a/TempChen/App.config b/TempChen/App.config deleted file mode 100644 index 8e15646..0000000 --- a/TempChen/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/TempChen/App.xaml b/TempChen/App.xaml deleted file mode 100644 index bcaacf2..0000000 --- a/TempChen/App.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/TempChen/App.xaml.cs b/TempChen/App.xaml.cs deleted file mode 100644 index 6919442..0000000 --- a/TempChen/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace TempChen -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/TempChen/MainWindow.xaml b/TempChen/MainWindow.xaml deleted file mode 100644 index 3e3d87c..0000000 --- a/TempChen/MainWindow.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/TempChen/MainWindow.xaml.cs b/TempChen/MainWindow.xaml.cs deleted file mode 100644 index 443d2e8..0000000 --- a/TempChen/MainWindow.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace TempChen -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - } -} diff --git a/TempChen/Properties/AssemblyInfo.cs b/TempChen/Properties/AssemblyInfo.cs deleted file mode 100644 index 178ed25..0000000 --- a/TempChen/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// 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("TempChen")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("TempChen")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2015")] -[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)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// 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")] diff --git a/TempChen/Properties/Resources.Designer.cs b/TempChen/Properties/Resources.Designer.cs deleted file mode 100644 index 604e9ea..0000000 --- a/TempChen/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TempChen.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TempChen.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/TempChen/Properties/Resources.resx b/TempChen/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/TempChen/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/TempChen/Properties/Settings.Designer.cs b/TempChen/Properties/Settings.Designer.cs deleted file mode 100644 index bd1675b..0000000 --- a/TempChen/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TempChen.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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; - } - } - } -} diff --git a/TempChen/Properties/Settings.settings b/TempChen/Properties/Settings.settings deleted file mode 100644 index 033d7a5..0000000 --- a/TempChen/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/TempChen/TestChen.csproj b/TempChen/TestChen.csproj deleted file mode 100644 index 8f89ba7..0000000 --- a/TempChen/TestChen.csproj +++ /dev/null @@ -1,104 +0,0 @@ - - - - - Debug - AnyCPU - {47F13A95-5158-46BA-B2C5-29D8773A304E} - WinExe - Properties - TempChen - TempChen - v4.5 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - - - - \ No newline at end of file diff --git a/TempJiashuo/App.config b/TempJiashuo/App.config deleted file mode 100644 index 8e15646..0000000 --- a/TempJiashuo/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/TempJiashuo/App.xaml b/TempJiashuo/App.xaml deleted file mode 100644 index fb26d83..0000000 --- a/TempJiashuo/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/TempJiashuo/App.xaml.cs b/TempJiashuo/App.xaml.cs deleted file mode 100644 index 1c9ad12..0000000 --- a/TempJiashuo/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace TempJiashuo -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/TempJiashuo/MainWindow.xaml b/TempJiashuo/MainWindow.xaml deleted file mode 100644 index 8bf815c..0000000 --- a/TempJiashuo/MainWindow.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/TempJiashuo/MainWindow.xaml.cs b/TempJiashuo/MainWindow.xaml.cs deleted file mode 100644 index a361c79..0000000 --- a/TempJiashuo/MainWindow.xaml.cs +++ /dev/null @@ -1,116 +0,0 @@ -using iRobotGUI; -using iRobotGUI.Util; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace TempJiashuo -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - static string loopTestString = -@"LOOP 0, 1, 1 - // Read the sensor again - READ_SENSOR - DELAY 100 -END_LOOP"; - - static string ifTestString = -@"IF 0,0,0 - IF 0,0,0 - IF 0,0,0 - ELSE - END_IF - ELSE - END_IF - IF 0,0,0 - ELSE - END_IF -ELSE -END_IF -"; - - public MainWindow() - { - InitializeComponent(); - - - - - } - - private void Window_Loaded(object sender, RoutedEventArgs e) - { - try - { - openIfWindow(); - } - catch (Exception ex) - { - - Console.WriteLine(ex.ToString()); - } - - - /* - try - { - HLProgram pro = new HLProgram(File.ReadAllText("find_if_endif.igp")); - int elseIndex = pro.FindElse(0); - //MessageBox.Show(elseIndex.ToString()); - } - catch (Exception ex) - { - MessageBox.Show(ex.ToString()); - } - openIfWindow(); - */ - } - - private void openLoopWindow() - { - LoopWindow lw = new LoopWindow(); - //lw.Owner = this; - lw.SubProgram = new HLProgram(loopTestString); - lw.ShowDialog(); - - MessageBox.Show(lw.SubProgram.ToString()); - } - - private void openSongWindow() - { - - //SongWindow lw = new SongWindow(); - ////lw.Owner = this; - //lw.Ins = new Instruction("SONG_DEF 3,60,32,62,32,64,32"); - //lw.ShowDialog(); - DialogInvoker.ShowDialog(new Instruction("SONG 60,32,62,32,64,32"), this); - - } - - private void openIfWindow() - { - IfWindow lw = new IfWindow(); - //lw.Owner = this; - lw.SubProgram = new HLProgram(ifTestString); - lw.ShowDialog(); - - MessageBox.Show(lw.SubProgram.ToString()); - } - } -} diff --git a/TempJiashuo/Properties/AssemblyInfo.cs b/TempJiashuo/Properties/AssemblyInfo.cs deleted file mode 100644 index ad996a0..0000000 --- a/TempJiashuo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// 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("TempJiashuo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("TempJiashuo")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2015")] -[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)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// 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")] diff --git a/TempJiashuo/Properties/Resources.Designer.cs b/TempJiashuo/Properties/Resources.Designer.cs deleted file mode 100644 index b4c87b9..0000000 --- a/TempJiashuo/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TempJiashuo.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TempJiashuo.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/TempJiashuo/Properties/Resources.resx b/TempJiashuo/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/TempJiashuo/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/TempJiashuo/Properties/Settings.Designer.cs b/TempJiashuo/Properties/Settings.Designer.cs deleted file mode 100644 index c6aeb6f..0000000 --- a/TempJiashuo/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.18444 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TempJiashuo.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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; - } - } - } -} diff --git a/TempJiashuo/Properties/Settings.settings b/TempJiashuo/Properties/Settings.settings deleted file mode 100644 index 033d7a5..0000000 --- a/TempJiashuo/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/TempJiashuo/TestJiashuo.csproj b/TempJiashuo/TestJiashuo.csproj deleted file mode 100644 index 4c3ddd9..0000000 --- a/TempJiashuo/TestJiashuo.csproj +++ /dev/null @@ -1,114 +0,0 @@ - - - - - Debug - AnyCPU - {D75EED5C-428B-4C4C-8542-CF183FAB624E} - WinExe - Properties - TempJiashuo - TempJiashuo - v4.5 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - - - - {05b8eacd-5eb2-420e-9f99-7a76be66c52c} - HighLevelProgram - - - {3bcf10e0-ca38-42fd-acbc-ddcdc4d00437} - UI - - - - - \ No newline at end of file diff --git a/TempSergey/App.config b/TempSergey/App.config deleted file mode 100644 index 8e15646..0000000 --- a/TempSergey/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/TempSergey/App.xaml b/TempSergey/App.xaml deleted file mode 100644 index 86978c1..0000000 --- a/TempSergey/App.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/TempSergey/App.xaml.cs b/TempSergey/App.xaml.cs deleted file mode 100644 index 09c69d8..0000000 --- a/TempSergey/App.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using System.Windows; - -namespace TempSergey -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} diff --git a/TempSergey/MainWindow.xaml b/TempSergey/MainWindow.xaml deleted file mode 100644 index c5a1e27..0000000 --- a/TempSergey/MainWindow.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - -