Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (47 sloc) 1.86 KB
/* ====================================================================
Copyright (C) 2004-2008 fyiReporting Software, LLC
Copyright (C) 2011 Peter Gill <peter@majorsilence.com>
This file is part of the fyiReporting RDL project.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For additional information, email info@fyireporting.com or visit
the website www.fyiReporting.com.
*/
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace fyiReporting.RdlMapFile
{
static class RdlMapFile
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
string[] args = Environment.GetCommandLineArgs(); // we assume the arg line contains a filename if any
string file = null;
bool bnext = false;
for (int i = 0; i < args.Length && file == null; i++)
{
if (bnext)
file = args[i];
else if (args[i] == "/f")
bnext = true;
else if (args[i].StartsWith("/f"))
file = args[i].Substring(2);
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MapFile(file));
}
}
}
Something went wrong with that request. Please try again.