public static Detectorderosto Dispose()
 {
     if (_instance != null)
     {
         _instance = null;
     }
     return(_instance);
 }
 public static Detectorderosto Instance()
 {
     if (_instance == null)
     {
         _instance = new Detectorderosto();
     }
     return(_instance);
 }
예제 #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var d = new Microsoft.Win32.OpenFileDialog();

            if (d.ShowDialog(this) == true)
            {
                var image_files = d.FileName;
                Detectorderosto.Instance().GetImage(image_files);
            }
        }