private void CreateNewInstance(object m, CreateInstanceArgs e)
        {
            Manager.GetSingleton.InstanceManager.AddInstance(e.Instance);
            InstanceManager.SetupStructure(e.Instance);
            JarHelper.GetFile(e.Instance);

            _window.DialogResult = true;
            _window.Close();
        }
Exemplo n.º 2
0
        private void CreateInstance()
        {
            if (CreatedHandler == null)
                return;

            InstanceLocation location;
            if (_isFolderLocation)
            {
                location = _selectedFolder;
            }
            else
            {
                location = new InstancePath { Path = _instancePath };
            }
                
            var instance = new LocalInstance() { Name = _name, Version = _selectedVersion, InstanceLocation = location };
            var args = new CreateInstanceArgs() { Instance = instance };
            CreatedHandler(this, args);
        }