[feat:] csv-divider-buttons
This commit is contained in:
@@ -1120,4 +1120,21 @@ public partial class MainWindow : Window
|
||||
|
||||
StartAddressShortener((KasAddressList)LstCustomerAdressSets.SelectedItem);
|
||||
}
|
||||
|
||||
private void ChangeCSVDivider(object sender, RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string div = (sender as Button).Content as string;
|
||||
if (div == "TAB") div = "\t";
|
||||
if (div == "SPACE") div = " ";
|
||||
TbSettingsCustomerCsvSeparator.Text = div;
|
||||
Settings.Save();
|
||||
}
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Error while parsing");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user