Exemplo n.º 1
0
        void InitPage(CrudAPI crudapi)
        {
            this.DataContext = this;
            ShowXapBuildDate();
            layoutControl = layoutItems;
#if SILVERLIGHT
            cbUserNationality.ItemsSource = Utility.GetEnumItemsWithPascalToSpace(typeof(CountryCode));
#else
            txtDotnetVersion.Text = System.Environment.Version.ToString();
#endif
            if (LoadedRow == null)
            {
                editrow = CreateNew() as UserClient;
                cbUserNationality.SelectedIndex = 0;
            }
            layoutItems.DataContext = editrow;
            currentTheme            = editrow._Theme;
            Curlanguage             = editrow._Language;

#if !SILVERLIGHT
            cbDefaultPrinter.ItemsSource = UtilDisplay.GetInstalledPrinters();
            RemoveMenu();
#elif SILVERLIGHT
            if (LoginPage.PCtype != LoginType.MAC_OOB)
            {
                RemoveMenu();
            }
#endif
            frmRibbon.OnItemClicked += frmRibbon_OnItemClicked;
        }