aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs
blob: 52527fb337a5202f53b65fc8907a3585ecb23d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Common.Modules
{
    /// <summary>
    /// Represents a PPC <see cref="IPPCModule"/> modules loading engine.
    /// </summary>
    public interface IPPCModuleLoader
    {
        /// <summary>
        /// Occurs when the user has logged in and user modules are loaded.
        /// </summary>
        event EventHandler ModulesLoaded;

        /// <summary>
        /// Gets all loaded modules.
        /// </summary>
        ObservableCollection<IPPCModule> AllModules { get; }

        /// <summary>
        /// Gets all the user permitted modules.
        /// </summary>
        ObservableCollection<IPPCModule> UserModules { get; }

        /// <summary>
        /// Gets the PPC module of type T if loaded.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        T GetPPCModule<T>() where T : IPPCModule;

        /// <summary>
        /// Loads all available PPC modules.
        /// </summary>
        void LoadModules();
    }
}
kgroundBrush200}" Margin="20 0" Padding="5" CornerRadius="5"> <Border.Effect> <DropShadowEffect Opacity="0.4" /> </Border.Effect> <Grid> <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 0 0 0" FontSize="16" Padding="2">THREAD PARAMETERS</TextBlock> </Grid> </Border> <Grid> <StackPanel Orientation="Horizontal"> <DockPanel Grid.Column="1" Margin="25" HorizontalAlignment="Left" Width="400"> <materialDesign:Card> <StackPanel> <DockPanel> <TextBlock DockPanel.Dock="Top" Margin="20 10 0 10" FontSize="16">FEEDER</TextBlock> <controls:TableGrid RowHeight="25" Margin="20 0" MakeFirstColumnVerticalAlignmentBottom="False"> <controls:TableGrid.Resources> <Style TargetType="TextBlock"> <Setter Property="VerticalAlignment" Value="Center"></Setter> <Setter Property="Margin" Value="0 3 0 0"></Setter> </Style> </controls:TableGrid.Resources> <TextBlock Text="Feeder P:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.FeederP,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Feeder I:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.FeederI,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Feeder D:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.FeederD,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> </controls:TableGrid> </DockPanel> <DockPanel> <TextBlock DockPanel.Dock="Top" Margin="20 10 0 10" FontSize="16">PULLER</TextBlock> <controls:TableGrid RowHeight="25" Margin="20 0" MakeFirstColumnVerticalAlignmentBottom="False"> <controls:TableGrid.Resources> <Style TargetType="TextBlock"> <Setter Property="VerticalAlignment" Value="Center"></Setter> <Setter Property="Margin" Value="0 3 0 0"></Setter> </Style> </controls:TableGrid.Resources> <TextBlock Text="Puller P:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.PullerP,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Puller I:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.PullerI,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Puller D:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.PullerD,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> </controls:TableGrid> </DockPanel> <DockPanel> <TextBlock DockPanel.Dock="Top" Margin="20 10 0 10" FontSize="16">WINDER</TextBlock> <controls:TableGrid RowHeight="25" Margin="20 0" MakeFirstColumnVerticalAlignmentBottom="False"> <controls:TableGrid.Resources> <Style TargetType="TextBlock"> <Setter Property="VerticalAlignment" Value="Center"></Setter> <Setter Property="Margin" Value="0 3 0 0"></Setter> </Style> </controls:TableGrid.Resources> <TextBlock Text="Winder P:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.WinderP,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Winder I:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.WinderI,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> <TextBlock Text="Winder D:" ></TextBlock> <mahapps:NumericUpDown Value="{Binding ActiveRML.WinderD,Mode=TwoWay}" Minimum="-100000" Maximum="1000000" InterceptArrowKeys="True" Background="Transparent" BorderThickness="0" InterceptMouseWheel="True" HasDecimals="False" HorizontalContentAlignment="Left"></mahapps:NumericUpDown> </controls:TableGrid> </DockPanel> </StackPanel> </materialDesign:Card> </DockPanel> <DockPanel Grid.Column="1" Margin="25" HorizontalAlignment="Left" Width="400"> <materialDesign:Card> <StackPanel> <DockPanel> <TextBlock DockPanel.Dock="Top" Margin="20 10 0 10" FontSize="16">ROCKERS</TextBlock> <controls:TableGrid RowHeight="25" Margin="20 0" MakeFirstColumnVerticalAlignmentBottom="False"> <controls:TableGrid.Resources> <Style TargetType="TextBlock"> <Setter Property="VerticalAlignment" Value="Center"></Setter> </Style> </controls:TableGrid.Resources> <TextBlock Text="Bypass Rockers:" ></TextBlock> <ToggleButton IsChecked="{Binding ActiveRML.BypassRockers,Mode=TwoWay}" HorizontalAlignment="Right" ></ToggleButton> </controls:TableGrid> </DockPanel> </StackPanel> </materialDesign:Card> </DockPanel> </StackPanel> </Grid> </DockPanel> </Grid> </UserControl>