| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
- using qdr.app.studiou.orders2printpack.Properties;
- namespace qdr.app.studiou.orders2printpack
- {
- public partial class dlgImport : Form
- {
- public string UrlPrefix => tbUrlPrefix.Text;
- public string ShortDescription => tbShortDescription.Text;
- public string Description => tbDescription.Text;
- public DateTime UploadDate => dtUploadDate.Value;
- public string ImportDir => tbImportDir.Text;
- public dlgImport()
- {
- InitializeComponent();
- tbUrlPrefix.Text = AppSettings.Default.ImportTplUrl;
- tbShortDescription.Text = AppSettings.Default.ImportTplShortDesc;
- tbDescription.Text = AppSettings.Default.ImportTplDesc;
- dtUploadDate.Value = DateTime.Now;
- }
- private void butImport_Click(object sender, EventArgs e)
- {
- DialogResult = DialogResult.OK;
- AppSettings.Default.ImportTplUrl =tbUrlPrefix.Text;
- AppSettings.Default.ImportTplShortDesc = tbShortDescription.Text;
- AppSettings.Default.ImportTplDesc = tbDescription.Text;
- AppSettings.Default.Save();
- Close();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- DialogResult = DialogResult.Cancel;
- Close();
- }
- private void butOpenDir_Click(object sender, EventArgs e)
- {
- if (dlgOpenDir.ShowDialog(this)==DialogResult.OK)
- {
- tbImportDir.Text = dlgOpenDir.SelectedPath;
- }
- }
- }
- }
|