コード例 #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
ファイル: TheNewCommetWindow.cs プロジェクト: shimola/sadna
        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
ファイル: TheNewCommetWindow.cs プロジェクト: amir9979/sadna
 private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         TheNewCommetWindow newWind = new TheNewCommetWindow(myConnection, CurrentState, allPost.ElementAt(listBox1.SelectedIndex));
         newWind.Show();
     }
 }