示例#1
0
        public AdminWindow(MainWindow main_window) {
            InitializeComponent();
            _main_window = main_window;
            //displaying the current LogPath
            //DirectoryTextBlock.Text = _main_window.LogPath;
            //display if we are currently logging
            if(_main_window.Logging) { 
            
                LogGoingTextBlock.Text = "Logging: Yes";
            } else {
                LogGoingTextBlock.Text = "Logging: No";
            }

            //display if emails are being sent when a customer logs in
            //this is how we get the tickets into ORTS
            if (_main_window.EmailLogging) {
                emailSendTextBlock.Text = "Emails Sending: Yes";
                emailButton.Content = "Disable Emails";
            }
            else {
                emailSendTextBlock.Text = "Emails Sending: No";
            }

            _folder_dialog = new System.Windows.Forms.FolderBrowserDialog();
            this.Activate();
        }