Esempio n. 1
0
 private void projectToolStripMenuFromValue_Click(object sender, EventArgs e)
 {
     compileROMToolStripMenuItem.Enabled = MnuDebug.Enabled = MnuEditor.Enabled = MnuExport.Enabled = MnuImport.Enabled = MnuNewLevel.Enabled = MnuProject.Enabled = MnuReload.Enabled = MnuTools.Enabled = MnuWindows.Enabled = ReubenController.OpenProject();
     if (File.Exists(ProjectController.ProjectManager.CurrentProject.ROMFile))
     {
         saveToRom.Text    = ProjectController.ProjectManager.CurrentProject.ROMFile;
         saveToRom.Visible = true;
     }
     else
     {
         saveToRom.Visible = false;
     }
 }
Esempio n. 2
0
 public Main(string fileName)
 {
     InitializeComponent();
     ReubenController.MainWindow         = this;
     compileROMToolStripMenuItem.Enabled = MnuDebug.Enabled = MnuEditor.Enabled = MnuExport.Enabled = MnuImport.Enabled = MnuNewLevel.Enabled = MnuProject.Enabled = MnuReload.Enabled = MnuTools.Enabled = MnuWindows.Enabled = ReubenController.OpenProject(fileName);
     if (File.Exists(ProjectController.ProjectManager.CurrentProject.ROMFile))
     {
         saveToRom.Text    = ProjectController.ProjectManager.CurrentProject.ROMFile;
         saveToRom.Visible = true;
     }
     else
     {
         saveToRom.Visible = false;
     }
 }