public MainWindow() { InitializeComponent(); this.Visibility = Visibility.Hidden; new LoginForm().ShowDialog(); this.Visibility = Visibility.Visible; usersList.Users.ItemsSource = RealData.getUsers(); }
public NewData(DataType dataType) { InitializeComponent(); this.dataType = dataType; if (dataType == DataType.user) { UserForm.Visibility = Visibility.Visible; } if (dataType == DataType.post) { PostForm.Author.ItemsSource = RealData.getUsers(); PostForm.Visibility = Visibility.Visible; } if (dataType == DataType.reply) { RepllyForm.Author.ItemsSource = RealData.getUsers(); RepllyForm.PostID.ItemsSource = RealData.getPosts(); RepllyForm.Visibility = Visibility.Visible; } }
private void Refresh_OnClick(object sender, RoutedEventArgs e) { usersList.Users.ItemsSource = RealData.getUsers(); }