Пример #1
0
        private void browse_Click(object sender, System.EventArgs e)
        {
            if (openFile.ShowDialog(this) == DialogResult.OK)
            {
                PathElipsis pe = new PathElipsis(openFile.FileName);

                uoClient.Text = pe.GetPath();

                IsValidClientAndDataDir();
            }
        }
Пример #2
0
        private void browse_Click(object sender, System.EventArgs e)
        {
            if (openFile.ShowDialog(this) == DialogResult.OK)
            {
                PathElipsis pe = new PathElipsis(openFile.FileName);

                uoClient.Text = pe.GetPath();

                dataDir.Text = m_DataDir = Path.GetDirectoryName(uoClient.Text);

                Config.SetAppSetting("UODataDir", dataDir.Text);
                Config.SetAppSetting("UOClient", uoClient.Text);

                IsValidClientAndDataDir();
            }
        }