Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            this.Visibility = Visibility.Hidden;
            new LoginForm().ShowDialog();
            this.Visibility = Visibility.Visible;


            usersList.Users.ItemsSource = RealData.getUsers();
        }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 private void Refresh_OnClick(object sender, RoutedEventArgs e)
 {
     usersList.Users.ItemsSource = RealData.getUsers();
 }