public void Edit(Sender sender)
        {
            var current_main_window = (MainWindow)Application.Current.MainWindow;
            var editor = new SenderEditor(sender, current_main_window);

            editor.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            editor.Owner = current_main_window;
            if (editor.ShowDialog() != true)
            {
                return;
            }
            sender.Name   = editor.Name;
            sender.Adress = editor.AddressValue;
        }
Ejemplo n.º 2
0
        public void Edit(Sender Sender)
        {
            var current_main_window = (MainWindow)Application.Current.MainWindow;
            var editor = new SenderEditor(Sender, current_main_window);

            editor.Owner = current_main_window;

            if (editor.ShowDialog() != true)
            {
                return;
            }

            Sender.Name   = editor.NameValue;
            Sender.Adress = editor.AdressValue;
        }