Example #1
0
        /// <summary>
        /// "Reset" the DataModel for a new design
        /// </summary>
        public static void Reinitialize(FContext context, DesignTypes type)
        {
            DesignType = type;
            Context    = context;

            if (Model != null)
            {
                Model.OnDataModelModified -= OnDataModelModified;
            }
            Model = new OGDataModel();
            Model.Reinitialize(Context);
            Model.OnDataModelModified += notifyDataModelModified;

            OGActions.InitializeSocketDataModel();

            OGActions.InitializeCancelRouter();
            OGActions.InitializeAcceptRouter();

            WorkflowInitialized = true;
            OnWorfklowInitialized?.Invoke(null, EventArgs.Empty);
        }