Files
BeWoPlaner/BeWoLauncher/View/FrameView.xaml.cs
Rene Evertz 6497a7ded5 Working now
- more logs
- download controller + manager überarbeitet
- Retry wird besser angezeigt
- Formatierungen
2024-06-07 13:42:25 +02:00

67 lines
1.7 KiB
C#

using BeWoLauncher.Logic;
using BeWoLauncher.Logic.Controller;
using BeWoLauncher.View.Frames;
using BeWoLauncher.WindowImp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace BeWoLauncher.View
{
/// <summary>
/// Interaktionslogik für BeWoLoginBorder.xaml
/// </summary>
public partial class FrameView : UserControl
{
public FrameView()
{
InitializeComponent();
DateTime dt = new DateTime(2017, 1, 1);
if (DateTime.Now > dt)
dt = DateTime.Now;
txtCopyright.Text = String.Format("Copyright {0:yyyy} | ownSoft GmbH", dt);
lblVersion.Content = LauncherApp.Version;
}
public FrameView(FrameBase frame) : this()
{
SetFrame(frame);
}
private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
{
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo((sender as Hyperlink).NavigateUri.ToString()));
}
public FrameBase GetFrame()
{
return contentGrid.Children?[0] as FrameBase;
}
public void SetFrame(FrameBase uc)
{
ClearFrame();
contentGrid.Children.Add(uc);
}
public void ClearFrame()
{
contentGrid.Children.Clear();
}
}
}