コード例 #1
0
ファイル: MainView.cs プロジェクト: kouweizhong/vrs
 private void CloseStatisticsView(int feedId, StatisticsView statisticsView)
 {
     statisticsView.CloseClicked -= StatisticsView_CloseClicked;
     statisticsView.Close();
     statisticsView.Dispose();
     _StatisticsViews.Remove(feedId);
 }
コード例 #2
0
 private void StatisticsView_CloseClicked(object sender, EventArgs e)
 {
     if (_StatisticsView != null)
     {
         _StatisticsView.CloseClicked -= StatisticsView_CloseClicked;
         _StatisticsView.Close();
         _StatisticsView.Dispose();
         _StatisticsView = null;
     }
 }