GenData.cs :  » Build-Systems » NETZ » netz » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Build Systems » NETZ 
NETZ » netz » GenData.cs
using System;
using System.IO;
using System.Collections;

namespace netz{

  public class ReadOnly
  {
    protected bool readOnly = false;

    protected void CheckReadOnly()
    {
      if(readOnly) throw new Exception("E1002 Readonly");
    }

    public void MakeReadOnly()
    {
      readOnly = true;
    }
  }
  
  public class GenData : ReadOnly
  {
    public GenData()
    {
      compressProviderDLL = GetFullPath("defcomp.dll");
    }

    public static string GetFullPath(string file)
    {
      string temp = System.Windows.Forms.Application.ExecutablePath;
      temp = Path.GetDirectoryName(temp);
      return Path.Combine(temp, file);
    }

    private string exeFileName = "starter.exe";
    private string privatePath = null;
    private string assemblyInfo = null;
    private string iconFile = null;
    private bool userIconFile = false;
    private bool console = false;
    private bool auto = true;
    private bool batchMode = false;
    
    private bool setNetzVersion = false;
    private static bool singleExe = false;
    private string userAssemblyAttributes = string.Empty;
    private bool mtaAttribute = false;

    // ZIP
    private bool packZipDll = false;
    private string zipDllName = null; //"zip.dll";
    private string compressProviderDLL = null; //"defcomp.dll";
    private CompressProvider compressProvider = null;

    //LICENSING
    private string licenseResourceFile = null;

    private string keyFile = null;
    private string keyName = null;
    private bool keyDelay = false;
    private bool keyGetFromAttributes = false;

    private bool reportEXEAttributes = false;
    private string xPlatform = null;
    private bool optimize = false;

    private string otherCompOptions = null;

    private bool isService = false;
    public Hashtable serviceParams = new Hashtable();

    internal bool MtaAttribute
    {
      get{ return mtaAttribute; }
      set{ mtaAttribute = value; }
    }

    internal bool ReportEXEAttributes
    {
      get{ return reportEXEAttributes; }
      set{ CheckReadOnly(); reportEXEAttributes = value; }
    }

    internal bool IsService
    {
      get{ return isService; }
      set{ CheckReadOnly(); isService = value; }
    }

    internal bool KeyDelay
    {
      get{ return keyDelay; }
      set{ CheckReadOnly(); keyDelay = value; }
    }

    internal bool Optimize
    {
      get{ return optimize; }
      set{ CheckReadOnly(); optimize = value; }
    }

    internal string XPlatform
    {
      get{ return xPlatform; }
      set{ CheckReadOnly(); xPlatform = value; }
    }

    internal bool KeyGetFromAttributes
    {
      get{ return keyGetFromAttributes; }
      set{ CheckReadOnly(); keyGetFromAttributes = value; }
    }

    internal string KeyName
    {
      get{ return keyName; }
      set{ CheckReadOnly(); keyName = value; }
    }

    internal string KeyFile
    {
      get{ return keyFile; }
      set{ CheckReadOnly(); keyFile = value; }
    }

    internal string LicenseResourceFile
    {
      get{ return licenseResourceFile; }
      set{ CheckReadOnly(); licenseResourceFile = value; }
    }

    internal CompressProvider CompressProvider
    {
      get{ return compressProvider; }
      set{ CheckReadOnly(); compressProvider = value; }
    }

    internal string CompressProviderDLL
    {
      get{ return compressProviderDLL; }
      set{ CheckReadOnly(); compressProviderDLL = value; }
    }

    internal string ExeFileName
    {
      get{ return exeFileName; }
      set{ CheckReadOnly(); exeFileName = value; }
    }

    internal string PrivatePath
    {
      get{ return privatePath; }
      set{ CheckReadOnly(); privatePath = value; }
    }

    internal string AssemblyInfo
    {
      get{ return assemblyInfo; }
      set{ CheckReadOnly(); assemblyInfo = value; }
    }

    internal string IconFile
    {
      get{ return iconFile; }
      set{ CheckReadOnly(); iconFile = value; }
    }

    internal bool Console
    {
      get{ return console; }
      set{ CheckReadOnly(); console = value; }
    }

    internal bool Auto
    {
      get{ return auto; }
      set{ CheckReadOnly(); auto = value; }
    }

    internal bool BatchMode
    {
      get{ return batchMode; }
      set{ CheckReadOnly(); batchMode = value; }
    }

    internal bool PackZipDll
    {
      get{ return packZipDll; }
      set{ CheckReadOnly(); packZipDll = value; }
    }

    internal bool UserIconFile
    {
      get{ return userIconFile; }
      set{ CheckReadOnly(); userIconFile = value; }
    }

    internal bool SetNetzVersion
    {
      get{ return setNetzVersion; }
      set{ CheckReadOnly(); setNetzVersion = value; }
    }

    internal bool SingleExe
    {
      get{ return singleExe; }
      set{ CheckReadOnly(); singleExe = value; }
    }

    internal string ZipDllName
    {
      get{ return zipDllName; }
      set{ CheckReadOnly(); zipDllName = value; }
    }

    internal string UserAssemblyAttributes
    {
      get{ return userAssemblyAttributes; }
      set{ CheckReadOnly(); userAssemblyAttributes = value; }
    }

    internal string OtherCompOptions
    {
      get{ return otherCompOptions; }
      set{ CheckReadOnly(); otherCompOptions = value; }
    }
  
  }//EOC
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.