[chore:] sender address editing
This commit is contained in:
@@ -303,6 +303,7 @@ public partial class MainWindow : Window
|
||||
{
|
||||
TbSettingsCustomerDescription.Text = customer.description;
|
||||
TbSettingsCustomerName.Text = customer.name;
|
||||
TbSettingsCustomerSenderAddress.Text = customer.sender_address;
|
||||
TbSettingsCustomerCsvSeparator.Text = customer.separator.ToString();
|
||||
if (customer.patch != null)
|
||||
TbSettingsCustomerPatchInfo.Text = customer.patch.ToString();
|
||||
@@ -565,4 +566,12 @@ public partial class MainWindow : Window
|
||||
"output.pdf"
|
||||
);
|
||||
}
|
||||
|
||||
private void TbSettingsCustomerSenderAddress_OnTextChanged(object? sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (LstSettingsCustomers.SelectedIndex == null || LstSettingsCustomers.SelectedIndex == -1) return;
|
||||
foreach (var customer in Settings._instance.customers.customers)
|
||||
if (customer.ID == Settings._instance.customers.current)
|
||||
customer.sender_address = TbSettingsCustomerSenderAddress.Text;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user