Пример #1
0
 public PaperProperties(Schematix.FSM.Constructor_Core core, Schematix.FSM.My_Paper paper)
 {
     InitializeComponent();
     this.core  = core;
     graph      = core.Graph;
     this.paper = paper;
     LoadData();
 }
Пример #2
0
 public void ReDo()
 {
     Schematix.FSM.My_Graph tmp = graph_history.ReDo();
     if (tmp != null)
     {
         graph = tmp;
     }
     bitmap.UpdateBitmap();
     form.Invalidate();
 }
Пример #3
0
        public Constructor_Core(Schematix.FSM.Constructor_UserControl form)
        {
            this.Form = form;

            bitmap         = new My_Bitmap(this);
            paper          = new My_Paper(this);
            graph          = new Schematix.FSM.My_Graph(this);
            graph_history  = new Schematix.FSM.Graph_History(this);
            group_selector = new Schematix.FSM.GroupSelector(this);
        }
Пример #4
0
        /// <summary>
        /// Отменить действие
        /// </summary>
        /// <returns></returns>
        public My_Graph UnDo()
        {
            Schematix.FSM.My_Graph graph = null;
            int index = history.IndexOf(elem);

            if (index <= 0)
            {
                graph = elem.Graph;
            }
            if (index > 0)
            {
                elem  = history.ElementAt <HistoryElem>(index - 1);
                graph = elem.Graph;
            }
            return(graph.Clone());
        }
Пример #5
0
        /// <summary>
        /// Повторить действие
        /// </summary>
        /// <returns></returns>
        public My_Graph ReDo()
        {
            Schematix.FSM.My_Graph graph = null;
            int index = history.IndexOf(elem);

            if (index == history.Count - 1)
            {
                elem = history.Last <HistoryElem>();
            }
            else
            {
                if (index == -1)
                {
                    elem = history.First <HistoryElem>();
                }
                else
                {
                    elem = history.ElementAt <HistoryElem>(index + 1);
                }
            }
            graph = elem.Graph;
            return(graph.Clone());
        }
Пример #6
0
 public HistoryElem(Schematix.FSM.My_Graph graph, String name, bool isSaved = false)
 {
     this.graph   = graph;
     this.name    = name;
     this.isSaved = isSaved;
 }
Пример #7
0
 public Verilog_Generator(Constructor_Core core)
 {
     this.graph = core.Graph;
     this.core  = core;
 }
Пример #8
0
        private string process3;    //процесс в котором выполняются все действия состояний

        public VHDL_Generator(Constructor_Core core)
        {
            this.core  = core;
            this.graph = core.Graph;
        }