Changeset 1814


Ignore:
Timestamp:
Aug 16, 2010, 1:17:04 AM (11 years ago)
Author:
matkovic
Message:

-added RepeatStart functionality

Location:
trunk/CrypPlugins/WorkspaceManager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Container/PluginContainerView.xaml

    r1813 r1814  
    6666            </DockPanel.Background>
    6767            <StackPanel DockPanel.Dock="Top" Name="ControlPanel" Visibility="Visible" Opacity="0" Orientation="Horizontal" HorizontalAlignment="Right">
    68                 <Button Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
     68                <Button x:Name="play" Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
     69                    <Button.LayoutTransform>
     70                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
     71                    </Button.LayoutTransform>
     72                    <Image Source="/WorkspaceManager;component/View/Image/play.png" HorizontalAlignment="Center" SnapsToDevicePixels="True" Margin="1,1,1,1"/>
     73                </Button>
     74
     75                <Button x:Name="del" Height="20" Width="20" Style="{StaticResource ResourceKey=DeletePluginContainerButtonStyle}" Margin="0,0,0,5" Click="Button_Click">
    6976                    <Button.LayoutTransform>
    7077                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
     
    7380                </Button>
    7481            </StackPanel>
     82           
     83           
     84           
     85           
    7586       
    7687            <!--<Border DockPanel.Dock="Bottom" Height="10" Width="{Binding ElementName=PresentationPanel, Path=ActualWidth}" Background="#82bbef" BorderBrush="#4c71bf" BorderThickness="1" Opacity="0.5" Margin="0,0,0,0">
  • trunk/CrypPlugins/WorkspaceManager/View/Container/PluginContainerView.xaml.cs

    r1807 r1814  
    399399        private void Button_Click(object sender, RoutedEventArgs e)
    400400        {
    401             this.delete();
     401            Button bttn = sender as Button;
     402            if (bttn.Name == "play")
     403            {
     404                if (model.RepeatStart)
     405                    model.RepeatStart = false;
     406                else
     407                    model.RepeatStart = true;
     408                return;
     409            }
     410            if (bttn.Name == "del")
     411            {
     412                this.delete();
     413                return;
     414            }
    402415        }
    403416
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManager.csproj

    r1813 r1814  
    261261    <Resource Include="View\Image\warn.png" />
    262262  </ItemGroup>
     263  <ItemGroup>
     264    <Resource Include="View\Image\play.png" />
     265  </ItemGroup>
    263266  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    264267  <!--<PropertyGroup>
Note: See TracChangeset for help on using the changeset viewer.