public PaperProperties(Schematix.FSM.Constructor_Core core, Schematix.FSM.My_Paper paper) { InitializeComponent(); this.core = core; graph = core.Graph; this.paper = paper; LoadData(); }
public void ReDo() { Schematix.FSM.My_Graph tmp = graph_history.ReDo(); if (tmp != null) { graph = tmp; } bitmap.UpdateBitmap(); form.Invalidate(); }
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); }
/// <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()); }
/// <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()); }
public HistoryElem(Schematix.FSM.My_Graph graph, String name, bool isSaved = false) { this.graph = graph; this.name = name; this.isSaved = isSaved; }
public Verilog_Generator(Constructor_Core core) { this.graph = core.Graph; this.core = core; }
private string process3; //процесс в котором выполняются все действия состояний public VHDL_Generator(Constructor_Core core) { this.core = core; this.graph = core.Graph; }