Created
August 22, 2015 03:34
-
-
Save bolenton/a211002c13a04f25bc40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
using System.IO; | |
namespace WindowsFormsApplication1 | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void selectFileBtn_Click(object sender, EventArgs e) | |
{ | |
openFileDialog1.ShowDialog(); | |
} | |
private void outputFileBtn_Click(object sender, EventArgs e) | |
{ | |
var outputFolder = outputFileTB; | |
folderBrowserDialog1.ShowDialog(); | |
outputFolder.Text = folderBrowserDialog1.SelectedPath; | |
} | |
private void openFileDialog1_FileOk(object sender, System.ComponentModel.CancelEventArgs e) | |
{ | |
selectFileTB.Text = openFileDialog1.FileName; | |
} | |
private void saveBtn_Click(object sender, EventArgs e) | |
{ | |
File.Move(selectFileTB.Text, outputFileTB.Text + "/" + dateTimePicker1.Text + speakerTitleTB.Text + firstNameTB.Text + | |
lastNameTB.Text + "_" + messageTitleTB.Text + ".txt"); | |
} | |
// Mr_System.Windows.Forms.TextBox, Text: Taurus_System.Windows.Forms.TextBox, Text: Omejia_ | |
// 2015_08_21_Time_To_Win_Pastor_Austin_Ricks_ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
namespace WindowsFormsApplication1 | |
{ | |
static class Program | |
{ | |
/// <summary> | |
/// The main entry point for the application. | |
/// </summary> | |
[STAThread] | |
static void Main() | |
{ | |
Application.EnableVisualStyles(); | |
Application.SetCompatibleTextRenderingDefault(false); | |
Application.Run(new Form1()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment