Esempio n. 1
0
        public static PosDialogWindow CreateInDefaultWindow(bool hidePersonalInfo = false)
        {
            SystemSettingsEditorControl control = new SystemSettingsEditorControl();

            return(new PosDialogWindow(control,
                                       Strings.SystemSettings, 400, (!hidePersonalInfo ? 330 : 250)));
        }
Esempio n. 2
0
        public static bool PromptForConnectionString(bool isPersonalInfoHidden)
        {
            //Hide();
            PosDialogWindow             window  = SystemSettingsEditorControl.CreateInDefaultWindow(isPersonalInfoHidden);
            SystemSettingsEditorControl control = window.DockedControl as SystemSettingsEditorControl;

            control.InitializeFields(isPersonalInfoHidden);
            window.Topmost    = true;
            window.IsClosable = false;
            window.ShowDialog();
            return(!control.IsCanceled);
        }