Elwig: Rename AreaCom to AreaCmt
This commit is contained in:
@@ -13,8 +13,8 @@ namespace Elwig.Windows {
|
||||
public partial class BaseDataWindow {
|
||||
|
||||
private Dictionary<string, string?>? _acts = null;
|
||||
private Dictionary<AreaComType, string>? _actIds = null;
|
||||
private ObservableCollection<AreaComType>? _actList = null;
|
||||
private Dictionary<AreaCmtType, string>? _actIds = null;
|
||||
private ObservableCollection<AreaCmtType>? _actList = null;
|
||||
private bool _actChanged = false;
|
||||
private bool _actUpdate = false;
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Elwig.Windows {
|
||||
private void AreaCommitmentTypeList_SelectionChanged(object? sender, SelectionChangedEventArgs? evt) {
|
||||
UpdateButtons();
|
||||
_actUpdate = true;
|
||||
if (AreaCommitmentTypeList.SelectedItem is AreaComType type) {
|
||||
if (AreaCommitmentTypeList.SelectedItem is AreaCmtType type) {
|
||||
AreaCommitmentTypeIdInput.Text = $"{type.SortId}{type.AttrId}";
|
||||
ControlUtils.SelectItemWithPk(AreaCommitmentTypeWineVariantInput, type.SortId);
|
||||
ControlUtils.SelectItemWithPk(AreaCommitmentTypeWineAttributeInput, type.AttrId);
|
||||
@@ -96,7 +96,7 @@ namespace Elwig.Windows {
|
||||
private void AreaCommitmentTypeAddButton_Click(object sender, RoutedEventArgs evt) {
|
||||
if (_actList == null) return;
|
||||
_actChanged = true;
|
||||
var item = new AreaComType { VtrgId = "", SortId = "" };
|
||||
var item = new AreaCmtType { VtrgId = "", SortId = "" };
|
||||
_actList.Add(item);
|
||||
AreaCommitmentTypeList.SelectedItem = item;
|
||||
UpdateButtons();
|
||||
@@ -114,7 +114,7 @@ namespace Elwig.Windows {
|
||||
}
|
||||
|
||||
private void AreaCommitmentType_Changed(object? sender, RoutedEventArgs? evt) {
|
||||
if (_actUpdate || (!IsEditing && !IsCreating) || AreaCommitmentTypeList.SelectedItem is not AreaComType attr || _acts == null || _actIds == null) return;
|
||||
if (_actUpdate || (!IsEditing && !IsCreating) || AreaCommitmentTypeList.SelectedItem is not AreaCmtType attr || _acts == null || _actIds == null) return;
|
||||
_actChanged = true;
|
||||
|
||||
var v = AreaCommitmentTypeWineVariantInput.SelectedItem as WineVar;
|
||||
|
||||
Reference in New Issue
Block a user