Esempio n. 1
0
 public void SetDefaultConfiguration()
 {
     projectOptions = new ProjectOptions();
     projectOptions.SetDefault();
     textEditorOptions = new TextEditorOptions();
     textEditorOptions.SetDefault();
     librariesOptions = new LibrariesOptions();
     librariesOptions.SetDefault();
     _FSMOptions = new FSMOptions();
     _FSMOptions.SetDefault();
     entityDrawningOptions = new EntityDrawningOptions();
     entityDrawningOptions.SetDefault();
     _GHDLOptions = new GHDLOptions();
     _GHDLOptions.SetDefault();
 }
Esempio n. 2
0
        /// <summary>
        /// загрузка данных из обьекта класса LibrariesOptions
        /// </summary>
        /// <param name="options"></param>
        public void SetOptionsData(LibrariesOptions options)
        {
            listViewLibrariesVHDL.Items.Clear();
            foreach (string vhdlLibrary in options.VHDLLibrariesPaths)
            {
                ListViewItem item = new ListViewItem(vhdlLibrary);
                listViewLibrariesVHDL.Items.Add(item);
            }

            listViewLibrariesVerilog.Items.Clear();
            foreach (string verilogLibrary in options.VerilogLibrariesPaths)
            {
                ListViewItem item = new ListViewItem(verilogLibrary);
                listViewLibrariesVerilog.Items.Add(item);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// получение данных в виде обьекта класса LibrariesOptions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void GetOptionsData(LibrariesOptions options)
        {
            List <string> VHDLLibraries = new List <string>();

            foreach (ListViewItem item in listViewLibrariesVHDL.Items)
            {
                VHDLLibraries.Add(item.Text);
            }
            List <string> VerilogLibraries = new List <string>();

            foreach (ListViewItem item in listViewLibrariesVerilog.Items)
            {
                VerilogLibraries.Add(item.Text);
            }
            options.VerilogLibrariesPaths = VerilogLibraries;
            options.VHDLLibrariesPaths    = VHDLLibraries;
        }