private void OpacityAnim(Grid grid) { if (Funcs.ProgCfg.Settings["animations"].StartsWith("1")) { DoubleAnimation animation = new DoubleAnimation(); animation.From = 0; animation.To = 100; animation.SpeedRatio = 0.03; animation.FillBehavior = FillBehavior.HoldEnd; animation.Completed += (s, a) => { DC.WriteLine("Animation end"); }; grid.BeginAnimation(UIElement.OpacityProperty, animation); animation.Freeze(); } else { grid.Opacity = 100; } }
public void SetStatus(string status) { DC.WriteLine("[MWDBG STATUS] " + status); WindowTitle.Text = String.Format("MW DEBUG {0}.{1}.{2}.{3} by Dz3n - {4}", v.Major, v.Minor, v.Build, v.Revision, status); StatusWelcomeText.Text = status; }
public void AppendLog(string text) { DC.WriteLine("[MWDBG LOG] " + text); LogBox.AppendText(String.Format("{0}[{1:H:mm:ss}] {2}", "\r\n", DateTime.Now, text)); LogBox.ScrollToEnd(); }