private void btnMLODataFile_Click(object sender, EventArgs e) { CFileOpenDlgThreadApartmentSafe dlg = new CFileOpenDlgThreadApartmentSafe(); dlg.DefaultExt = "ML"; dlg.Filter = "MyLifeOrganized Data File (*.ml)|*.ML"; dlg.StartupLocation = new Point(this.Location.X, this.Location.Y); if (dlg.ShowDialog() == DialogResult.OK) { txtMLODataFile.Text = dlg.FilePath; } }
private void btnLogFile_Click(object sender, EventArgs e) { CFileOpenDlgThreadApartmentSafe dlg = new CFileOpenDlgThreadApartmentSafe(); dlg.DefaultExt = "TXT"; dlg.Filter = "JTools Log File (*.txt)|*.txt"; dlg.StartupLocation = new Point(this.Location.X, this.Location.Y); if (dlg.ShowDialog() == DialogResult.OK) { txtLogFile.Text = dlg.FilePath; } }
private void btnFindMLO_Click(object sender, EventArgs e) { CFileOpenDlgThreadApartmentSafe dlg = new CFileOpenDlgThreadApartmentSafe(); dlg.DefaultExt = "EXE"; dlg.Filter = "Executables (*.exe)|*.exe"; Point ptStartLocation = new Point(this.Location.X, this.Location.Y); dlg.StartupLocation = ptStartLocation; DialogResult res = dlg.ShowDialog(); if (res == DialogResult.OK) { txtMLOExe.Text = dlg.FilePath; } }