public LoginForm(ApplicationSettings settings) { _settings = settings; InitializeComponent(); LoadSettings(); if (_settings.RememberMe) { txtPassword.UseSystemPasswordChar = false; txtPassword.Text = PasswordNotNeededString; _infoDirty = false; } }
public StashForm(ApplicationSettings settings, PoESiteClient client) { _settings = settings; _client = client; _stashFetcher = new StashFetcher(_client); _stashFetcher.StashTabReceived += _stashFetcher_StashTabReceived; _stashFetcher.StashReceived += _stashFetcher_StashReceived; _stashFetcher.Begin += _stashFetcher_Begin; _stashFetcher.End += _stashFetcher_End; _stashFetcher.NoStashError += _stashFetcher_NoStashError; _stashFetcher.ServerError += _stashFetcher_ServerError; InitializeComponent(); }