Changeset 2763


Ignore:
Timestamp:
Feb 21, 2011, 7:19:27 PM (11 years ago)
Author:
Tim Podeszwa
Message:

indicator textbox added

Location:
trunk/CrypPlugins/WebService
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WebService/DecryptionAnimation.cs

    r2690 r2763  
    6363                    _decryptionTimer.Interval = new TimeSpan(0, 0, 0, 5, 0);
    6464                    TreeViewItem item = (TreeViewItem)this.encryptedKeyTreeviewElements[actualEncryptedKeyNumber];
     65                    item.IsSelected = true;
    6566                    this.actualEncryptedKeyItem = item;
    6667                    if (item.Parent != null)
  • trunk/CrypPlugins/WebService/WebServicePresentation.xaml

    r2762 r2763  
    3737                    </Grid.ColumnDefinitions>
    3838
    39                     <TreeView Name="_animationTreeView" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Visible" Margin="0,0,6,0" />
     39                    <TreeView Name="_animationTreeView" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Visible" Margin="43,0,6,0" />
    4040                    <GridSplitter HorizontalAlignment="Right" VerticalAlignment="Stretch"  Grid.Column="1" ResizeBehavior="PreviousAndNext"   Width="5" Background="#FFBCBCBC"/>
    4141
     
    4848                        <Button Name="resetButton" Width="75" Height="23.338" Click="resetButton_Click" VerticalContentAlignment="Center" Canvas.Left="109" Canvas.Top="17" HorizontalAlignment="Right" Grid.Column="2" Margin="0,0,6,22" VerticalAlignment="Bottom">Reset</Button>
    4949                        </Canvas>
    50 
     50                        <TextBox Height="29" HorizontalAlignment="Left" Name="_indicatorTextBox" VerticalAlignment="Top" Width="37" ClipToBounds="True" Opacity="1" Margin="3,0,0,0" />
    5151                    </Grid>
    5252                   </ScrollViewer>
  • trunk/CrypPlugins/WebService/WebServicePresentation.xaml.cs

    r2690 r2763  
    8080        private WebService _webService;
    8181        private Dictionary<string, TreeViewItem> _nodeToTreeViewItemDictionary;
     82       
    8283        #endregion
    8384
     
    207208            this._tempReferenceCollection = new ArrayList();
    208209            webService.Settings.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(SettingsPropertyChangedEventHandler);
    209         }
     210            this._animationTreeView.SelectedItemChanged += new RoutedPropertyChangedEventHandler<object>(AnimationTreeViewSelectedItemChangedEventHandler);
     211        }
     212
     213
    210214        #endregion
    211215
     
    11171121            this._webService.Compile(this.GetStringToCompile());
    11181122        }
     1123        private void AnimationTreeViewSelectedItemChangedEventHandler(object sender, RoutedPropertyChangedEventArgs<object> e)
     1124        {
     1125            if ((e.NewValue as TreeViewItem) != null)
     1126            {
     1127                TreeViewItem item = e.NewValue as TreeViewItem;
     1128                double y = this._animationTreeView.TransformToVisual(item).Transform(new Point(0, 0)).Y;
     1129                this._indicatorTextBox.Margin = new Thickness(this._indicatorTextBox.Margin.Left, -y, this._indicatorTextBox.Margin.Right, this._indicatorTextBox.Margin.Bottom);
     1130                this._indicatorTextBox.Text = "=>";
     1131            }
     1132        }
    11191133
    11201134    }
Note: See TracChangeset for help on using the changeset viewer.