Exemple #1
0
        static void Main()
        {
            GeneratorController controller = new GeneratorController();

            controller.GeneratorForm.Closing += new CancelEventHandler(controller.GeneratorForm_Closing);
            Application.Run();
        }
 public GeneratorForm(GeneratorController controller)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Init();
     _controller = controller;
 }
Exemple #3
0
 public CSLAgen(GeneratorController controller)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Init();
     _controller = controller;
     //generator = new CslaGenerator.Templates.CodeGenerator();
 }
Exemple #4
0
        static void Main(string[] args)
        {
            GeneratorController controller = new GeneratorController();

            controller.GeneratorForm.Closing += new CancelEventHandler(controller.GeneratorForm_Closing);
            controller.CommandLineArgs        = args;
            // process the command line args here so we have a UI, also, we can not process in Init without
            // modifying more code to take args[]
            controller.ProcessCommandLineArgs();
            Application.Run();
        }
        private static void Main(string[] args)
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
            var controller = new GeneratorController();

            controller.MainForm.Closing += controller.GeneratorFormClosing;
            controller.CommandLineArgs   = args;
            // process the command line args here so we have a UI, also, we can not process in Init without
            // modifying more code to take args[]
            controller.ProcessCommandLineArgs();
            Application.Run();
        }
Exemple #6
0
 public GeneratorController()
 {
     Init();
     _current = this;
     GetConfig();
 }
 internal GeneratorController()
 {
     Init();
     _current = this;
     GetConfig();
 }