Beispiel #1
0
        /// <summary>
        /// Initialize form and components
        /// </summary>
        public frmMain()
        {
            InitializeComponent();

            Option opt = new Option();
            txtBasePath.Text = opt.getValue("basePath"); //Properties.Settings.Default.basePath;
            txtProjectName.Text = opt.getValue("defaultProjectName"); //Properties.Settings.Default.defaultProjectName;

            FillTemplatesCombo();
        }
Beispiel #2
0
 /// <summary>
 /// Browse for the output folder
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnBrowse_Click(object sender, EventArgs e)
 {
     try
     {
         FolderBrowserDialog folder = new FolderBrowserDialog();
         DialogResult result = folder.ShowDialog();
         if (result == DialogResult.OK)
         {
             Option opt = new Option();
             if (opt.setValue("basePath", folder.SelectedPath + "\\"))
             {
                 txtBasePath.Text = folder.SelectedPath + "\\";
             }
         }
         folder.Dispose();
         folder = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "WinStruct", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }