示例#1
0
        /// <summary>
        /// Selects a file and sets this.textBoxQRPath.Text and
        /// QRFile to the path
        /// </summary>
        private void ButtonSelectQR(object sender, EventArgs e)
        {
            string path = Dialogs.SelectFile(
                "Afbeelding (*.jpeg; *.jpg; *.png)|*.jpeg;*.jpg;*.png|Alle bestanden (*.*)|*.*",
                "Selecteer de QR-code"
                );

            if (!string.IsNullOrEmpty(path))
            {
                textBoxQRPath.Text            = path;
                Settings.Instance.PathQRImage = path;
            }
        }
示例#2
0
        private void ButtonSelectTemplateAfter(object sender, EventArgs e)
        {
            string path = Dialogs.SelectFile(
                "PowerPoint (*.pptx)|*.pptx",
                "Selecteer de 'voor de dienst' template"
                );

            if (!string.IsNullOrEmpty(path))
            {
                textBoxTemplateAfter.Text           = path;
                Settings.Instance.PathTemplateAfter = path;
            }
        }
示例#3
0
        private void ButtonSelectJsonServices(object sender, EventArgs e)
        {
            string path = Dialogs.SelectFile(
                "JSON (*.json)|*.json",
                "Selecteer het diensten JSON-bestand"
                );

            if (!string.IsNullOrEmpty(path))
            {
                textBoxJsonServices.Text           = path;
                Settings.Instance.PathServicesJson = path;
            }
        }