Exemplo n.º 1
0
        static bool TestProxyPattern()
        {
            Console.WriteLine("TESTING THE PROXY DESIGN PATTERN: ");

            ISubject subject = new ProxySubject();

            subject.Request();

            return(true);
        }
Exemplo n.º 2
0
 private void btnSaveProxy_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ProxySubject ObjProxy = new ProxySubject();
         ObjProxy.Request(txtSampleVal.Text);
     }
     catch (Exception ex)
     {
         //Error Catching
     }
 }