Пример #1
0
 /// <summary>
 /// Constructor to get the connection
 /// </summary>
 /// <param name="js"></param>
 /// <param name="setup"></param>
 public StoreSet(IJSObjectReference js, Settings setup)
 {
     if (Settings.EnableDebug)
     {
         Console.WriteLine($"StoreSet constructor for : {Utils.GetGenericTypeName(this.GetType())}");
     }
     DeleteActions = new(js, setup);
     InsertActions = new(js, setup);
     UpdateActions = new(js, setup);
     SelectActions = new(js, setup);
     TableActions  = new(js, setup);
 }
Пример #2
0
        /// <summary>
        /// Выполнить действие по выбору компонента
        /// </summary>
        public void PerformSelectAction(SelectActions selectAction, int componentID)
        {
            switch (selectAction)
            {
            case SelectActions.Select:
                SelectComponent(componentID);
                break;

            case SelectActions.Append:
                SelectComponent(componentID, true);
                break;

            case SelectActions.Deselect:
                DeselectComponent(componentID);
                break;

            case SelectActions.DeselectAll:
                DeselectAll();
                break;
            }
        }