Ejemplo n.º 1
0
 // プレビューフォームの閉じられるイベントメソッド
 private void ImagePreviewFormClosed(object sender, FormClosedEventArgs e)
 {
     imagePreForm = null;
 }
Ejemplo n.º 2
0
 // 顔の画像プレビューボタン
 private void FacePreviewButton_Click(object sender, EventArgs e)
 {
     if (imagePreForm == null)
     {
         imagePreForm = new ImagePreviewForm();
         if (talkData.IsCache)
             imagePreForm.ChangeImage(talkData.GetFaceImage((TalkData.Face)EFaceComboBox.SelectedValue));
         else
             imagePreForm.ChangeImage(talkData.GetImageFilePath((TalkData.Face)EFaceComboBox.SelectedValue));
         imagePreForm.FormClosed += new FormClosedEventHandler(ImagePreviewFormClosed);
         imagePreForm.Show(this);
     }
     else
     {
         if (talkData.IsCache)
             imagePreForm.ChangeImage(talkData.GetFaceImage((TalkData.Face)EFaceComboBox.SelectedValue));
         else
             imagePreForm.ChangeImage(talkData.GetImageFilePath((TalkData.Face)EFaceComboBox.SelectedValue));
     }
 }