public SubForumWindow(string forumName, string subForumName, string userName, Iclient cl) { InitializeComponent(); this.Title = "Clingr - " + forumName + " - " + subForumName; this.cl = cl; this.forumName = forumName; this.subForumName = subForumName; this.userName = userName; threadsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); threads = cl.getThreads(forumName, subForumName, userName); threads = new List <Tuple <string, DateTime, int> >(); //if(threads == null) .... threads.Add(new Tuple <string, DateTime, int>("Test Thread 1", DateTime.Now, 111)); List <string> threadsStrings = new List <string>(); foreach (Tuple <string, DateTime, int> thread in threads) { threadsStrings.Add(thread.Item2.ToShortDateString() + ": " + thread.Item1); } threadsListView.ItemsSource = threadsStrings; this.ResizeMode = ResizeMode.CanMinimize; }
public SuperAdminLoginWindow(Iclient cl, MainWindow window) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); this.parent = window; this.cl = cl; //this.Visibility = System.Windows.Visibility.Hidden; this.ResizeMode = ResizeMode.CanMinimize; this.usernameTxt.Focus(); }
public NewThreadWindow(string forumName, string subForumName, string userName, Iclient cl) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); this.userName = userName; this.cl = cl; this.forumName = forumName; this.subForumName = subForumName; this.ResizeMode = ResizeMode.CanMinimize; }
public RegisterWindow(string forumName, string userName, string password, Iclient cl) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); this.cl = cl; this.forumName = forumName; this.userName = userName; userNameTxt.Text = userName; passwordTxt.Password = password; this.ResizeMode = ResizeMode.CanMinimize; }
public SendPrivateMessageWindow(string forumName, string userName, Iclient cl) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); contentTxt.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); recepientTxt.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); titleTxt.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.cl = cl; this.forumName = forumName; this.userName = userName; this.ResizeMode = ResizeMode.CanMinimize; }
public ThreadWindow(string forumName, string subForumName, string userName, int threadId, Iclient cl) { InitializeComponent(); this.Title = "Clingr - " + forumName + " - " + subForumName + " - "; this.cl = cl; this.forumName = forumName; this.subForumName = subForumName; this.userName = userName; this.threadId = threadId; postsTV.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); subForumBtn.Content = subForumName; this.ResizeMode = ResizeMode.CanMinimize; }
public MainWindow(Iclient cl) { this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); InitializeComponent(); superAdmin = ""; forumsListView.Background= new SolidColorBrush(Color.FromRgb(83, 83, 83)); app = cl; List<string> forums = app.getForums(); //test: forums.Add("Test Forum 1"); forumsListView.ItemsSource = forums; this.ResizeMode = ResizeMode.CanMinimize; }
public NewForumWindow(Iclient cl) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); availableAdminsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); finalAdminsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.cl = cl; List <string> users = cl.getAllUsers("superAdmin"); availableAdmins = new ObservableCollection <string>(users); finalAdmins = new ObservableCollection <string>(); availableAdminsListView.ItemsSource = availableAdmins; finalAdminsListView.ItemsSource = finalAdmins; this.ResizeMode = ResizeMode.CanMinimize; }
public ForumWindow(Iclient app, string forumName) { InitializeComponent(); subForumsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); this.app = app; this.forumName = forumName; userName = "******"; permission = permission.GUEST; List <string> subForums = app.getSubForums(forumName, userName); subForums.Add("Test Sub Forum 1"); subForumsListView.ItemsSource = subForums; logoutBtn.Visibility = Visibility.Hidden; sendPrivateMessageBtn.Visibility = Visibility.Hidden; addSubForumBtn.Visibility = Visibility.Hidden; this.ResizeMode = ResizeMode.CanMinimize; }
public NewSubForumWindow(string forumName, string userName, Iclient cl) { InitializeComponent(); this.Background = new SolidColorBrush(Color.FromRgb(69, 70, 73)); availableModsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); finalModsListView.Background = new SolidColorBrush(Color.FromRgb(83, 83, 83)); this.cl = cl; this.userName = userName; this.forumName = forumName; List <string> users = cl.getUsersInForum(forumName, userName); availableMods = new ObservableCollection <string>(users); finalMods = new ObservableCollection <string>(); availableModsListView.ItemsSource = availableMods; finalModsListView.ItemsSource = finalMods; this.ResizeMode = ResizeMode.CanMinimize; }