Пример #1
0
        private void listBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <PostInfo>    AllComments     = myConnection.WatchAllComments(CurrentState.currentPostInfo);
            TheNewCommetWindow NewCommetWindow = new TheNewCommetWindow(myConnection, this.CurrentState, AllComments.ElementAt(listBox3.SelectedIndex));

            NewCommetWindow.Show();
        }
Пример #2
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <PostInfo>    allPost = myConnection.WatchAllComments(ChoosenPost);
            TheNewCommetWindow newWind = new TheNewCommetWindow(myConnection, CurrentState, allPost.ElementAt(listBox1.SelectedIndex));

            newWind.Show();
        }
Пример #3
0
 private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         TheNewCommetWindow newWind = new TheNewCommetWindow(myConnection, CurrentState, allPost.ElementAt(listBox1.SelectedIndex));
         newWind.Show();
     }
 }