Exemple #1
0
        public static bool Show(Window owner)
        {
            bool _result = false;

            DebugTemplateBox _box = new DebugTemplateBox();

            _box.Owner = owner;
            _box.WindowStartupLocation = owner != null ? WindowStartupLocation.CenterOwner : WindowStartupLocation.CenterScreen;
            var res = _box.ShowDialog();

            if (res.HasValue && res.Value)
            {
                _result = true;
            }

            return(_result);
        }
 private void debugTemplateBtn_Click(object sender, RoutedEventArgs e)
 {
     DebugTemplateBox.Show(this);
 }