Ejemplo n.º 1
0
 /// <summary>
 /// シングルトン: 自身のインスタンスを返す
 /// </summary>
 /// <returns></returns>
 public static ImageFileOpenDialog GetInstance()
 {
     if (_self == null)
     {
         _self = new ImageFileOpenDialog();
     }
     return(_self);
 }
Ejemplo n.º 2
0
        private void OpenImage()
        {
            string filePath = ImageFileOpenDialog.GetInstance().Show();

            if (filePath != "")
            {
                DisplayInfo(filePath);
            }
        }