private void OpenLogBtn(object sender, RoutedEventArgs e)
        {
            OpenFileDialog of = new OpenFileDialog()
            {
                Filter = "Log File|*.log"
            };

            if (of.ShowDialog() == true)
            {
                if (File.Exists(of.FileName))
                {
                    Loger = Loger.Load(of.FileName);
                    if (Loger != null)
                    {
                        DrawHistograms.Draw(Loger, PrimePanelKey, PrimePanelMouse);
                    }
                }
            }
        }
 public StatisticsWindow(ILoger Loger)
 {
     InitializeComponent();
     this.Loger = Loger;
     DrawHistograms.Draw(Loger, PrimePanelKey, PrimePanelMouse);
 }