Пример #1
0
 private void ShowTSV(object sender, EventArgs e)
 {
     uint TID = Util.ToUInt32(MT_TID.Text);
     uint SID = Util.ToUInt32(MT_SID.Text);
     uint tsv = (TID ^ SID) >> 4;
     Tip1.SetToolTip(MT_TID, $"TSV: {tsv:0000}");
     Tip2.SetToolTip(MT_SID, $"TSV: {tsv:0000}");
 }
 private void Button1_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Tip1.FadeOut();
         Tip2.AfterFadeIn += (s, evt) => { Button2.Focus(); };
         Tip2.FadeIn();
     }
     catch (Exception ex)
     {
         Diagnostics.LogException(ex);
         OnError();
     }
 }
        public void Start()
        {
            try
            {
                var s = (Storyboard)TryFindResource("ShowStoryboard") as Storyboard;

                if (s != null)
                {
                    s.Begin();
                }

                Tip1.FadeIn();
                Tip1.AfterFadeIn += (sender, evt) => { Button1.Focus(); };
            }
            catch (Exception ex)
            {
                Diagnostics.LogException(ex);
                OnError();
            }
        }