public MainWindow() { Down.Push(""); EveryInput = new Dictionary <Paragraph, string>(); InitializeComponent(); emotes = new Emotes(); image_test.Width = 0; Timer = new DispatcherTimer(); Timer.Interval = TimeSpan.FromMilliseconds(200); Timer.Tick += new EventHandler(UpdateText_Tick); //Timer.Start(); userList = new UserList(); Text_UserList.Document.PageWidth = 1000; isolatedStorage = IsolatedStorageFile.GetUserStoreForAssembly(); if (isolatedStorage.FileExists(isoFile)) { RememberMe.IsChecked = true; using (StreamReader sr = new StreamReader(new IsolatedStorageFileStream(isoFile, FileMode.Open, isolatedStorage))) { text_user.Text = sr.ReadLine(); text_chan.Text = sr.ReadLine().Replace("#", ""); text_pass.Password = sr.ReadLine(); } } LoadDefaults(); }
public MainWindow() { InitializeComponent(); EmptyUserList = new UserList(); Down.Push(""); EveryInput = new Dictionary<Paragraph, string>(); EmoteList = new Emotes(); image_test.Width = 0; Image_test = image_test; Timer = new DispatcherTimer(); Timer.Interval = TimeSpan.FromMilliseconds(200); Timer.Tick += new EventHandler(UpdateText_Tick); //Timer.Start(); userList = new UserList(); Text_UserList.Document.PageWidth = 1000; isolatedStorage = IsolatedStorageFile.GetUserStoreForAssembly(); Tabs = new List<TabWindow>(); if (isolatedStorage.FileExists(isoFile)) { RememberMe.IsChecked = true; using (StreamReader sr = new StreamReader(new IsolatedStorageFileStream(isoFile, FileMode.Open, isolatedStorage))) { text_user.Text = sr.ReadLine(); text_chan.Text = sr.ReadLine().Replace("#", ""); text_pass.Password = sr.ReadLine(); } } LoadDefaults(); }