public SettingsWindow()
        {
            InitializeComponent();

            //Insert the Custom Title Bar
            CustomTitleBar settingsTitle = new CustomTitleBar();

            settingsTitle.TitleBarTitleText.Content = "Settings";
            SettingsHeading.Children.Add(settingsTitle);

            //Load Settings Values into textboxes
            OrdererEmail.Text = Properties.mySettings.Default.OrdererEmail;
            SmtpServer.Text   = Properties.mySettings.Default.SmtpServerAddress;
            SmtpPort.Text     = Properties.mySettings.Default.SmtpServerPortNumber.ToString();
            ImapServer.Text   = Properties.mySettings.Default.ImapServerAddress;
            ImapPort.Text     = Properties.mySettings.Default.ImapServerPortNumber.ToString();
        }
Exemple #2
0
        public SyncDbToExcel()
        {
            InitializeComponent();

            tables = StaticData.GetSyncCategories();

            if (tables[0] != "All Tables")
            {
                tables.Insert(0, "All Tables");
                tables.Remove("testWires");
            }

            SyncComboBox.ItemsSource = tables;
            SyncComboBox.Text        = SyncComboBox.Items[0].ToString();

            CustomTitleBar titleBar = new CustomTitleBar();

            titleBar.TitleBarTitleText.Content = "Sync Database to Excel File(s)";
            MainGrid.Children.Add(titleBar);
        }