Ejemplo n.º 1
0
        private void OnSubmitted()
        {
            PropertyGridEventArgs <T> args = new PropertyGridEventArgs <T>();

            args.item = (T)propertyGrid1.SelectedObject;
            Submitted?.Invoke(this, args);
        }
Ejemplo n.º 2
0
        private void AddSignalToDatabase(object source, PropertyGridEventArgs <T> args)
        {
            string baseClassName = args.item.GetBaseClassType();

            switch (baseClassName)
            {
            case "EnMon_Driver_Manager.Models.Signals.BinarySignal":
                DBHelper.AddBinarySignalToDataBase <T>(args.item);
                break;
            }
        }