public SolutionSettings(Solution sol)
        {
            InitializeComponent();

            this.sol = sol;
            textBox_solutionname.Text = sol.details.name;
            textBox_solutionrootfolder.Text = sol.details.basefolder;
            textBox_ramstart.Text = sol.details.ramstart.ToString();

            foreach(file f in sol.details.files)
            {

                ListViewItem p = new ListViewItem(f.name);

                ListViewItem.ListViewSubItem si = new ListViewItem.ListViewSubItem(p, f.assemblefile.ToString());
                p.SubItems.Add(si);

                if (f.assemblefile == true)
                {
                    si = new ListViewItem.ListViewSubItem(p, f.order.ToString());
                    p.SubItems.Add(si);
                }
                else
                {
                    si = new ListViewItem.ListViewSubItem(p, "");
                    p.SubItems.Add(si);
                }

                listView_filelist.Items.Add(p);

                lvwColumnSorter = new ListViewColumnSorter();
                listView_filelist.ListViewItemSorter = lvwColumnSorter;

            }
        }
        public BuildManager(Solution sol, IOutput outtarget)
        {
            assembler  = new z80assembler();
            assembler.loadcommands();

            assembler.DoErr += new z80assembler.ErrHandler(assembler_DoErr);

            this.solution = sol;
            this.outtarget = outtarget;
        }
        public EditorWindow(String name,Solution sol)
        {
            this.sol = sol;
            InitializeComponent();
            this.Text = name;
            filename = name;

            this.FormClosing += new FormClosingEventHandler(EditorWindow_FormClosing);

            fastColoredTextBox1.TextChanged += new EventHandler<FastColoredTextBoxNS.TextChangedEventArgs>(fastColoredTextBox1_TextChanged);

            fastColoredTextBox1.Language = FastColoredTextBoxNS.Language.Custom;

            fastColoredTextBox1.DescriptionFile = "syntax.xml";

            fastColoredTextBox1.AddStyle(RedStyle);//red will be rendering over yellow
        }
Esempio n. 4
0
        public NewSolution(Solution sol=null)
        {
            InitializeComponent();

            if (sol == null)
            {
                this.sol = new Solution();

            }
            else
            {
                this.sol = sol;
                textBox_solutionname.Text = sol.details.name;
                textBox_solutionroot.Text = sol.details.basefolder;
                textBox_ramstart.Text = sol.details.ramstart.ToString();
            }
        }