Exemplo n.º 1
0
        public LocalizationForm()
        {
            InitializeComponent();

            dictionary = ModpackGenerator.GetLocaKeys();

            foreach (var type in dictionary.Keys)
            {
                var node = typeList.Items.Add(type.FullName);
                node.Tag = type;
            }
        }
Exemplo n.º 2
0
        private void regenerateButton_Click(object sender, EventArgs e)
        {
            string outputFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\Extensions";

            string[] importPaths = new string[] {
                Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
                outputFolder,
                Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\AntMe\\Extensions"
            };

            try
            {
                string output = ModpackGenerator.Generate(importPaths, outputFolder, null);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }