RA2MapEditTool.Control/MenuBarUC.xaml.cs
(完整代码) 1KBusing System.Windows;
using System.Windows.Controls;
using RA2MapEditTool.Data;
namespace RA2MapEditTool.Control
{
/// <summary>
/// 目录栏控件
/// </summary>
public partial class MenuBarUC : UserControl
{
/// <summary>
/// 游戏类型
/// </summary>
public GameType GameType { get; set; }
/// <summary>
/// 文件打开事件
/// </summary>
public event RoutedEventHandler FileOpen;
/// <summary>
/// 文件保存事件
/// </summary>
public event RoutedEventHandler FileSave;
public MenuBarUC()
{
InitializeComponent();
}
private void buttonOpen_Click(object sender, RoutedEventArgs e)
{
this.FileOpen?.Invoke(sender, e);
}
private void buttonSave_Click(object sender, RoutedEventArgs e)
{
this.FileSave?.Invoke(sender, e);
}
private void comboBoxGameType_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this.GameType = (GameType)this.comboBoxGameType.SelectedIndex + 1;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。