private void AddProfile(object sender, RoutedEventArgs e) { var w = new ProfileDialog(context, null); w.ShowDialog(); if (!w.DialogResult.HasValue || !w.DialogResult.Value) { return; } ReloadProfileTree(); }
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(); }