Ejemplo n.º 1
0
        private void m_btnOk_Click(object sender, EventArgs e)
        {
            string filter = GetFPGAFilter();

            if (!m_txtFilter.Text.Equals(filter))
            {
                filter = m_txtFilter.Text;
            }

            if (string.IsNullOrEmpty(filter))
            {
                MessageBox.Show("No FPGA families selected", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!Directory.Exists(m_txtPath.Text))
            {
                MessageBox.Show("Store path " + m_txtPath.Text + " does not exist", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            PartGenAll partGenCmd = new PartGenAll();

            partGenCmd.FPGAFilter            = filter;
            partGenCmd.KeepExisting_binFPGAS = m_chkBoxKeepBinFPGAs.Checked;
            partGenCmd.KeepXDLFiles          = m_chkBoxKeepXDL.Checked;
            partGenCmd.StorePath             = m_txtPath.Text;
            partGenCmd.AllCons = m_chkBoxAllConns.Checked;
            //partGenCmd.MaxDegreeOfParallelism = (int) this.m_numDrpMaxGregreeofParallelism.Value;
            partGenCmd.ExcludePipsToBidirectionalWiresFromBlocking = m_chkBoxExcludeBirectionalWires.Checked;

            CommandExecuter.Instance.Execute(partGenCmd);
        }
Ejemplo n.º 2
0
        private void FillDeviceList(string filter)
        {
            m_lstBoxDevices.Items.Clear();

            foreach (string package in PartGenAll.GetAllPackages().Where(p => Regex.IsMatch(p, filter)))
            {
                m_lstBoxDevices.Items.Add(package);
            }
        }