下班喽

This commit is contained in:
liufei
2021-05-31 17:31:16 +08:00
parent 5faf6e11b2
commit 9a45899b47
15 changed files with 354 additions and 184 deletions

View File

@@ -15,11 +15,15 @@ namespace GeekDesk.Control
/// </summary>
public partial class ConfigWindow
{
private static AboutControl about = new AboutControl();
private static ThemeControl theme = new ThemeControl();
private static MotionControl motion = new MotionControl();
public ConfigWindow(AppConfig appConfig)
{
InitializeComponent();
this.DataContext = appConfig;
RightCard.Content = new SettingControl();
RightCard.Content = about;
this.Topmost = true;
}
@@ -47,5 +51,21 @@ namespace GeekDesk.Control
this.Close();
}
private void MemuClick(object sender, RoutedEventArgs e)
{
SideMenuItem smi = sender as SideMenuItem;
switch (smi.Tag.ToString())
{
case "Motion":
RightCard.Content = motion;
break;
case "Theme":
RightCard.Content = theme;
break;
default:
RightCard.Content = about;
break;
}
}
}
}