Permalink
Browse files

Initial commit.

  • Loading branch information...
fvideon committed Nov 9, 2013
0 parents commit 3ac59d4888a39af996b59214d45b8debd75059b0
Showing 748 changed files with 232,701 additions and 0 deletions.
@@ -0,0 +1,115 @@
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/
# mstest test results
TestResults
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
RTPDebug/
RTPRelease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.log
*.vspscc
*.vssscc
.builds
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# Installshield output folder
[Ee]xpress
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish
# Publish Web Output
*.Publish.xml
# NuGet Packages Directory
packages
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
[Bb]in
[Oo]bj
sql
TestResults
[Tt]est[Rr]esult*
*.Cache
ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
# ConferenceXP specific
[Rr]edist
*_h.h
dlldata.c
@@ -0,0 +1,16 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("DeckBuilder 3")]
[assembly: AssemblyDescription("Revision 2235")]
// [assembly: AssemblyConfiguration(...)]
[assembly: AssemblyCompany("University of Washington, Department of Computer Science and Engineering")]
[assembly: AssemblyProduct("Classroom Presenter 3")]
[assembly: AssemblyCopyright("(c) 2006. All Rights Reserved. See http://www.cs.washington.edu/education/dl/presenter/ for details.")]
// [assembly: AssemblyTrademark(...)]
// [assembly: AssemblyCulture(...)]
[assembly: AssemblyVersion("3.1.2235.*")]
[assembly: AssemblyDelaySign(false)]
// [assembly: AssemblyKeyFile(...)]
// [assembly: AssemblyKeyName(...)]
@@ -0,0 +1,93 @@
// $Id: DeckBuilder.cs 1723 2008-08-28 18:54:34Z anderson $
using System;
using System.IO;
using UW.ClassroomPresenter.DeckBuilderLibrary;
using Application = System.Windows.Forms.Application;
namespace UW.ClassroomPresenter.DeckBuilder {
/// <summary>
/// DeckBuilder is a executable wrapper for DeckBuilderLibrary
/// </summary>
public class DeckBuilder {
[STAThread]
public static void Main(string[] args) {
Console.WriteLine(Application.ProductName + " (Version " + Application.ProductVersion + ") - ");
//Parse args
string inputFile = "";
string outputFile = "";
for (int i = 0; i < args.Length; i++) {
if ("--input".StartsWith(args[i])) {
if ((i + 1) >= args.Length) {
Console.WriteLine("Missing file argument for --input");
DeckBuilder.Usage();
return;
}
if ("--".StartsWith(args[i+1])) {
Console.WriteLine("Missing file argument for --input");
DeckBuilder.Usage();
return;
}
inputFile = args[i+1];
i++;
if (!File.Exists(inputFile)) {
Console.WriteLine("File not found: " + inputFile);
DeckBuilder.Usage();
return;
}
} else if ("--output".StartsWith(args[i])) {
if ((i + 1) >= args.Length) {
Console.WriteLine("Missing file argument for --output");
DeckBuilder.Usage();
return;
}
if ("--".StartsWith(args[i+1])) {
Console.WriteLine("Missing file argument for --output");
DeckBuilder.Usage();
return;
}
outputFile = args[i+1];
i++;
} else if ("--help".StartsWith(args[i])) {
DeckBuilder.Usage();
return;
} else {
Console.WriteLine("Invalid argument: " + args[i]);
DeckBuilder.Usage();
return;
}
}
DeckBuilderForm dbf = new DeckBuilderForm();
if (outputFile != "") {
if (inputFile != null) {
//Fully silent mode
dbf.OpenFileHelper(new FileInfo(inputFile), false);
dbf.saveFileHelper(new FileInfo(outputFile));
return;
} else {
Console.WriteLine("Input file not specified");
DeckBuilder.Usage();
return;
}
} else {
if (inputFile != "") {
//UI, but preload file
dbf.OpenFileHelper(new FileInfo(inputFile), true);
}
//Normal
System.Windows.Forms.Application.Run(dbf);
}
}
public static void Usage() {
//Add versioning information
Console.WriteLine("Usage: DeckBuilder.Exe [--input <filename> [--output <filename>]] | [--help]");
Console.WriteLine("Arguments:");
Console.WriteLine("--input Specify a PPT or CP3 file to open with DeckBuilder");
Console.WriteLine("--output Specify an output CP3 file.");
Console.WriteLine("--help This help dialog");
}
}
}
Oops, something went wrong.

0 comments on commit 3ac59d4

Please sign in to comment.