コード例 #1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            DataPath.OriginalLuasPath = textBox1.Text;
            DataPath.ModLuasPath      = textBox2.Text;
            DataPath.OutputPath       = textBox3.Text;
            DataPath.W40kUcsPath      = textBox4.Text;
            DataPath.Dxp2UcsPath      = textBox5.Text;
            DataPath.ModUcsPath       = textBox6.Text;

            try
            {
                StreamWriter writer = new StreamWriter(File.Open("Config/StatsDump.Ini", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write));
                if (writer != null)
                {
                    writer.WriteLine(@"OriginalLuaPath = """ + DataPath.OriginalLuasPath + @"""");
                    writer.WriteLine(@"ModLuaPath = """ + DataPath.ModLuasPath + @"""");
                    writer.WriteLine(@"OutputPath = """ + DataPath.OutputPath + @"""");
                    writer.WriteLine(@"W40kUcsPath = """ + DataPath.W40kUcsPath + @"""");
                    writer.WriteLine(@"Dxp2UcsPath = """ + DataPath.Dxp2UcsPath + @"""");
                    writer.WriteLine(@"ModUcsPath = """ + DataPath.ModUcsPath + @"""");


                    writer.Close();
                }
            }
            catch { }

            Translation.Initialize();

            this.Close();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: jpb06/DowproStatsCompiler
        public MainForm()
        {
            //
            // Necessario per il supporto di Progettazione Windows Form
            //
            InitializeComponent();

            //
            // TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent.
            //
            DataPath.LoadPaths();
            Translation.Initialize();
            DataDumper.LoadFilesList();
            DataDumper.LoadAbilitiesConfig();
        }