Esempio n. 1
0
        public void Load(DCompiler config)
        {
            configuration = config;

            //cmbCompiler.Active = (int)config.DefaultCompiler;
            Gtk.TreeIter iter;
            cmbCompiler.Model.GetIterFirst (out iter);
            if (cmbCompiler.Model.GetIterFirst (out iter)) {
                do {
                    if (config.DefaultCompiler == (DCompilerVendor)cmbCompiler.Model.GetValue(iter, 1)) {
                        cmbCompiler.SetActiveIter(iter);
                        break;
                    }
                } while (cmbCompiler.Model.IterNext (ref iter));
            }
        }
Esempio n. 2
0
        public static void Load()
        {
            // Deserialize config data
            _instance = PropertyService.Get <DCompiler>(GlobalPropertyName);

            //LoggingService.AddLogger(new MonoDevelop.Core.Logging.FileLogger("A:\\monoDev.log", true));

            if (_instance == null)
            {
                _instance = new DCompiler
                {
                    Dmd = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.DMD),
                    Gdc = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.GDC),
                    Ldc = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.LDC)
                }
            }
            ;
        }
Esempio n. 3
0
        public static void Load()
        {
            // Deserialize config data
            _instance=PropertyService.Get<DCompiler>(GlobalPropertyName);

            //LoggingService.AddLogger(new MonoDevelop.Core.Logging.FileLogger("A:\\monoDev.log", true));

            if (_instance == null)
                _instance = new DCompiler
                {
                    Dmd = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.DMD),
                    Gdc = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.GDC),
                    Ldc = DCompilerConfiguration.CreateWithDefaults(DCompilerVendor.LDC)
                };
        }