Exemple #1
0
        public UserSettings()
        {
            InitializeComponent();
            usersettings = new Shell.Data.UserSettings(
                Properties.Settings.Default.TicketPrinterName,
                Properties.Settings.Default.TicketReportFile,
                Properties.Settings.Default.TicketHeight,

                Properties.Settings.Default.PolicePrinterName,
                Properties.Settings.Default.PoliceReportFile,
                Properties.Settings.Default.PurchasePoliceReportFile,

                Properties.Settings.Default.LabelPrinterName,
                Properties.Settings.Default.LabelReportFile,

                Properties.Settings.Default.ReportPrinterName,
                Properties.Settings.Default.FloorReportFile,

                Properties.Settings.Default.DatabaseConnection,
                Properties.Settings.Default.EmployeeTimeout

                );
            UserSettingsGrid.DataContext = usersettings;
        }
        public UserSettings()
        {
            InitializeComponent();
            usersettings = new Shell.Data.UserSettings(
                Properties.Settings.Default.TicketPrinterName,
                Properties.Settings.Default.TicketReportFile,
                Properties.Settings.Default.TicketHeight,

                Properties.Settings.Default.PolicePrinterName,
                Properties.Settings.Default.PoliceReportFile,
                Properties.Settings.Default.PurchasePoliceReportFile,

                Properties.Settings.Default.LabelPrinterName,
                Properties.Settings.Default.LabelReportFile,

                Properties.Settings.Default.ReportPrinterName,
                Properties.Settings.Default.FloorReportFile,

                Properties.Settings.Default.DatabaseConnection,
                Properties.Settings.Default.EmployeeTimeout

                );
            UserSettingsGrid.DataContext = usersettings;
        }