public static GetString ( string setting ) : string | ||
setting | string | |
Résultat | string |
public MainFrame() { InitializeComponent(); m_url_textbox.Text = UserSettings.GetString(CURRENT_REPOSITORY); App.Language = UserSettings.GetString(CURRENT_Language); Loaded += (o, args) => Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => LoadRepository(m_url_textbox.Text))); Loaded += (s, e) => this.GoToChinese(); this.Closed += (s, e) => UserSettings.SetValue(CURRENT_Language, App.Language); }
private void OnSelectRepository(object sender, RoutedEventArgs e) { var dlg = new System.Windows.Forms.FolderBrowserDialog(); dlg.SelectedPath = Path.GetDirectoryName(UserSettings.GetString(CURRENT_REPOSITORY)); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { m_url_textbox.Text = dlg.SelectedPath; LoadRepository(m_url_textbox.Text); } }
public MainFrame() { InitializeComponent(); m_url_textbox.Text = UserSettings.GetString(CURRENT_REPOSITORY); Loaded += (o, args) => Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => LoadRepository(m_url_textbox.Text))); }