Ejemplo n.º 1
0
 public InitForm()
 {
     _instance = this;
        InitializeComponent();
        progressBar1.Maximum = 9;
        progressBar1.Minimum = 0;
 }
Ejemplo n.º 2
0
        public void Form1_Load(object sender, EventArgs e)
        {
            homedir = Path.GetFullPath("platformator.exe").Replace("platformator.exe", "");
               Install();
               string dir = Path.GetFullPath("platformator.exe").Replace("platformator.exe", "") + "scripts\\";
               DirectoryInfo info = new DirectoryInfo(dir);
               FileInfo[] files = info.GetFiles();
               foreach (FileInfo file in files)
               {
            if (file.Name == "ContentPipeline.xml") File.Delete(file.FullName);
            if (Path.GetExtension(file.Name) != ".lua") continue;
            ContentFactory.Instance.Build(file.FullName);
               }

               this.Hide();
               InitForm initForm = new InitForm();
               initForm.ShowDialog(this);
               this.MouseWheel += gameControl_MouseMove_1;
               widthTextbox.TextChanged += widthTextChanged;
               heightTextbox.TextChanged += heightTextChanged;
        }