Changeset 2235


Ignore:
Timestamp:
Dec 21, 2010, 8:29:11 PM (11 years ago)
Author:
Sven Rech
Message:

-keysearcher tabs
-fixed new button in ribbon menü
-no negative uids any more
-more infos in sysinfo dialog

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Miscellaneous/UniqueIdentifier.cs

    r2018 r2235  
    2222            MD5 md5 = new MD5CryptoServiceProvider();
    2323            byte[] idBytes = md5.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(username + mac));
     24            long ID = BitConverter.ToInt64(idBytes, 0);
     25            ID = Math.Abs(ID);
    2426
    25             return BitConverter.ToInt64(idBytes, 0);
     27            return ID;
    2628        }
    2729
  • trunk/CrypPlugins/KeySearcher/KeySearcher.csproj

    r2202 r2235  
    150150      <DependentUpon>P2PQuickWatchPresentation.xaml</DependentUpon>
    151151    </Compile>
     152    <Compile Include="Presentation\Controls\StatisticsPresentation.xaml.cs">
     153      <DependentUpon>StatisticsPresentation.xaml</DependentUpon>
     154    </Compile>
    152155    <Compile Include="Presentation\QuickWatch.xaml.cs">
    153156      <DependentUpon>QuickWatch.xaml</DependentUpon>
     
    190193    </Page>
    191194    <Page Include="Presentation\Controls\P2PQuickWatchPresentation.xaml">
     195      <SubType>Designer</SubType>
     196      <Generator>MSBuild:Compile</Generator>
     197    </Page>
     198    <Page Include="Presentation\Controls\StatisticsPresentation.xaml">
    192199      <SubType>Designer</SubType>
    193200      <Generator>MSBuild:Compile</Generator>
  • trunk/CrypPlugins/KeySearcher/Presentation/QuickWatch.xaml

    r1682 r2235  
    99                <Converter:TrueToVisibleConverter x:Key="TrueToVisibleConverter" />
    1010        </UserControl.Resources>
    11     <Grid>
    12             <Controls:LocalQuickWatchPresentation x:Name="LocalQuickWatchPresentation" Visibility="{Binding IsP2PEnabled, ElementName=QuickWatchControl, Converter={StaticResource FalseToVisibleConverter}}" />
    13         <Controls:P2PQuickWatchPresentation x:Name="P2PQuickWatchPresentation" Visibility="{Binding IsP2PEnabled, ElementName=QuickWatchControl, Converter={StaticResource TrueToVisibleConverter}}" />
    14     </Grid>
     11    <TabControl>
     12        <TabItem Header="Progress">
     13            <Grid>
     14                <Controls:LocalQuickWatchPresentation x:Name="LocalQuickWatchPresentation" Visibility="{Binding IsP2PEnabled, ElementName=QuickWatchControl, Converter={StaticResource FalseToVisibleConverter}}" />
     15                <Controls:P2PQuickWatchPresentation x:Name="P2PQuickWatchPresentation" Visibility="{Binding IsP2PEnabled, ElementName=QuickWatchControl, Converter={StaticResource TrueToVisibleConverter}}" />
     16            </Grid>
     17        </TabItem>
     18        <TabItem Header="Statistics">
     19            <Controls:StatisticsPresentation x:Name="StatisticsPresentation"/>
     20        </TabItem>
     21    </TabControl>   
    1522</UserControl>
Note: See TracChangeset for help on using the changeset viewer.