public ConsoleWindow(Config config) { this.Config = config; this.ProcessLogs = new ObservableCollection<string>(); this.InitializeComponent(); this.OnPropertyChanged(); }
protected Login(string userName, string password, DirectoryInfo profileRootDirectoryInfo,Config config) { this.UserName = userName; this.Password = password; this.Config = config; this.ProfileRootDirectoryInfo = profileRootDirectoryInfo; }
public LoginWindow(Config config) { this.Config = config; if (!string.IsNullOrEmpty(this.Config.GetConfigString("loginWindowBackground")) && File.Exists(this.Config.GetConfigString("loginWindowBackground"))) { var imageFile = new FileInfo(this.Config.GetConfigString("loginWindowBackground")); this.BackgroundImageSource = imageFile.FullName; } else { this.BackgroundImageSource = @"pack://application:,,,/TerminologyLauncher.GUI;component/Resources/login_bg.jpg"; } this.InitializeComponent(); this.OnPropertyChanged(); }
public OfflineLogin(string userName, DirectoryInfo profileRootDirectoryInfo, Config config) : base(userName, string.Empty, profileRootDirectoryInfo, config) { this.PlayerId = EncodeUtils.CalculateStringMd5(userName); }
public MainWindow(Config config) { this.InitializeComponent(); this.OnPropertyChanged(); }