Example #1
0
 public Reset_Properties(Schematix.FSM.My_Reset reset, Schematix.FSM.Constructor_Core core)
 {
     this.core  = core;
     this.reset = reset;
     InitializeComponent();
     LoadData();
 }
Example #2
0
        /// <summary>
        /// Создание сброса
        /// </summary>
        public void CreateReset()
        {
            if (Lock == true)
            {
                //MessageBox.Show("You must create figure " + SelectedFigure.name + " before.", "Fatal Error :)", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (graph.Reset != null)
            {
                //MessageBox.Show("Reset element alredy exists in graph.", "Fatal Error :)", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (graph.States.Count == 0)
            {
                //MessageBox.Show("There is no state in the FSM.", "Fatal Error :)", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            graph.UnselectAllFigures();

            Schematix.FSM.My_Reset reset = new Schematix.FSM.My_Reset(this);
            SelectedFigureList.Add(reset);
            SelectedFigure = reset;
            graph.Reset    = reset;
            Lock           = true;
        }