Esempio n. 1
0
        public Form1(string platformName)
        {
            m_locator = new ShenzhenLocator(platformName);
            InitializeComponent();

            this.label4.Text      = m_locator.GetUIString("LocateShenzhenFolder");
            this.label7.Text      = m_locator.GetUIString("SaveFilesHint");
            m_exeFolderField.Text = m_locator.FindShenzhenDirectory();
        }
Esempio n. 2
0
 private void BrowseButtonClick(object sender, System.EventArgs e)
 {
     using (var dialog = new FolderBrowserDialog())
     {
         dialog.RootFolder   = Environment.SpecialFolder.MyComputer;
         dialog.SelectedPath = m_exeFolderField.Text;
         dialog.Description  = m_locator.GetUIString("LocateShenzhenFolderWithHint");
         var result = dialog.ShowDialog(this);
         if (result == DialogResult.OK)
         {
             m_exeFolderField.Text = dialog.SelectedPath;
         }
     }
 }