private void updateTip(int index, bool updateStats) { switch (index) { case 2: // Storyline Completed Time int seconds = (int)(CAL_AdventureStartDate.Value - new DateTime(2000, 1, 1)).TotalSeconds; seconds -= seconds % 86400; seconds += (int)(CAL_AdventureStartTime.Value - new DateTime(2000, 1, 1)).TotalSeconds; Tip3.SetToolTip(NUD_Stat, dateval2str(SAV.getRecord(index), seconds)); break; default: Tip3.RemoveAll(); break; } if (!updateStats) { return; } string tip; if (RecordList.TryGetValue(index, out tip)) { Tip3.SetToolTip(CB_Stats, tip); } }
private void Button3_Click(object sender, RoutedEventArgs e) { try { Tip3.FadeOut(); BeginEndAnimation(); } catch (Exception ex) { Diagnostics.LogException(ex); OnError(); } }
private void Button2_Click(object sender, RoutedEventArgs e) { try { Tip2.FadeOut(); Tip3.AfterFadeIn += (s, evt) => { Button3.Focus(); }; Tip3.FadeIn(); } catch (Exception ex) { Diagnostics.LogException(ex); OnError(); } }