private ProjectConfigDialog(Project Project)
 {
     InitializeComponent();
     this.CurrentProject = Project;
     //this.ProjectAssemblies = Project.Refferences;
     InitializeToCurrentproject();
 }
 public static void Show(Project currentproject)
 {
     if (Instance == null)
     {
         Instance = new ProjectConfigDialog(currentproject);
     }
     Instance.ShowDialog();
 }
 public static Project Open(string Profile)
 {
     Project PObject = new Project();
     try
     {
         using (FileStream fs = new FileStream(Profile, FileMode.Open, FileAccess.Read))
         {
             BinaryFormatter bf = new BinaryFormatter();
             PObject = (Project)bf.Deserialize(fs);
         }
     }
     catch (Exception e)
     {
         Exceptioner.Log(e);
     }
     return PObject;
 }
Beispiel #4
0
        public NewDialog(Project currentProject)
        {
            InitializeComponent();

            this.currentfolder=Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Moo Workspace";
            if (currentProject != null)
            {
                this.currentfolder = currentProject.Folder;
            }

            //initialise
            this.newoption = "PROJECT";
            this.projecttype = PType.Csharp;
            this.TypeCbx.Items.AddRange(new string[] { "C SHARP", "ILASM", "HYDRO", "V BASIC" });
            this.NameTbx.Text="";
            this.FolderTbx.Text = this.currentfolder;
            this.TypeCbx.SelectedIndex = 0;
        }
Beispiel #5
0
 public Builder(Project project, BuildOutput console)
 {
     this.project = project;
     this.console = console;
 }