예제 #1
0
 public void CloseProblemForm(FPSItem fpsItem)
 {
     if (ProblemFormDic.ContainsKey(fpsItem) && !ProblemFormDic[fpsItem].IsDisposed)
     {
         ProblemFormDic[fpsItem].Close();
     }
 }
예제 #2
0
 public void CreatePorblemForm(FPSItem fpsItem)
 {
     if (!ProblemFormDic.ContainsKey(fpsItem) || ProblemFormDic[fpsItem].IsDisposed)
     {
         ProblemFormDic[fpsItem] = new ProblemForm(fpsItem);
         ProblemFormDic[fpsItem].Show();
     }
     else
     {
         ProblemFormDic[fpsItem].Focus();
     }
 }