/// <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; } }
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; } }
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; } }