Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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());
        }