public static bool?ShowOptions(Window owner, object options, string title, double height, params string[] expandNames)
        {
            OptionsWindow wnd = new OptionsWindow();

            wnd.Owner = owner;
            wnd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            wnd.Height = height;
            wnd.Title  = title;
            wnd.SetPropertiesObject(options, expandNames);

            return(wnd.ShowDialog());
        }
        public static bool?ShowOptionsEx(Window owner, object options, string title, Action <Grid> initAction, params string[] expandNames)
        {
            OptionsWindow wnd = new OptionsWindow();

            wnd.Owner = owner;
            wnd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            wnd.Title = title;
            wnd.SetPropertiesObject(options, expandNames);

            initAction?.Invoke(wnd._gridMain);

            return(wnd.ShowDialog());
        }