Beispiel #1
0
        private void OnSupplier_changed(object sender, SelectionChangedEventArgs e)
        {
            string curSN        = MainWindow.SuplName;
            Supl   selectedSupl = (Supl)Suppliers.SelectedItem;
            string selSN        = selectedSupl.Name;

            if (!Msg.AskYN("Вы действительно хотите заменить \"{0}\" на \"{1}\"?", curSN, selSN))
            {
                return;
            }
            MainWindow.SuplName = selSN;
            MainWindow.RePricing();
            Close();
        }