Beispiel #1
0
        private void IServerDirButton_Click(object sender, RoutedEventArgs e)
        {
            string path = MetroWindow.SelectFolder(Properties.Settings.Default.serverPath);

            if (path == null)
            {
                return;
            }

            IServerDirBox.Text = path;
            IServerDirBox.Focus();
        }
Beispiel #2
0
 // Opens folder select dialog when clicking certain buttons
 private void DirButton_Click(object sender, RoutedEventArgs e)
 {
     if (Equals(sender, ISteamDirButton))
     {
         string path = SelectFolder(Properties.Options.Default.steamCMDPath);
         if (path != null)
         {
             ISteamDirBox.Text = path;
             ISteamDirBox.Focus();
         }
     }
     else if (Equals(sender, IServerDirButton))
     {
         string path = SelectFolder(Properties.Options.Default.serverPath);
         if (path != null)
         {
             IServerDirBox.Text = path;
             IServerDirBox.Focus();
         }
     }
 }