Beispiel #1
0
        private void AddProfile(object sender, RoutedEventArgs e)
        {
            var w = new ProfileDialog(context, null);

            w.ShowDialog();
            if (!w.DialogResult.HasValue || !w.DialogResult.Value)
            {
                return;
            }

            ReloadProfileTree();
        }
Beispiel #2
0
        private void AddChildProfile(object sender, RoutedEventArgs e)
        {
            ProfileItem pi;

            if (!GetSelectedItem(out pi))
            {
                return;
            }
            var w = new ProfileDialog(context, pi.profile);

            w.ShowDialog();
            if (!w.DialogResult.HasValue || !w.DialogResult.Value)
            {
                return;
            }

            ReloadProfileTree();
        }