Exemplo n.º 1
0
 static void Main(string[] args)
 {
     //IMP.LinearSearch();
     //IMP.BinarySearch();
     IMP.BubbleSort();
     Console.ReadKey();
 }
Exemplo n.º 2
0
        void SwizzleDelegate(NSObject del)
        {
            if (del == null || del is UIWebViewInterface)
            {
                return;
            }

            delegateLoadingFinished = FindLoadingFinishedImpl(del.Handle);
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            double total, IMP;

            total            = (Convert.ToDouble(txtPrecio.Text) * Convert.ToDouble(txtCantidad.Text));
            txtSubtotal.Text = "$ " + total.ToString("N2");
            IMP = (total * 0.13);
            txtImpuesto.Text = "$ " + IMP.ToString("N2");
            txtTotal.Text    = "$ " + Convert.ToString((total + IMP).ToString("N2"));
        }
Exemplo n.º 4
0
        void ConfigureDelegate()
        {
            // We need to swizzle the delegate property of the UIWebView
            //  so that we can hook the Loaded event even if the user changes the delegate.
            if (webViewSetDelegate == null)
            {
                var uiWebView = new Class(typeof(UIWebView));
                webViewSetDelegate = class_replaceMethod(uiWebView.Handle, Selector.GetHandle("setDelegate:"), SetDelegateOverride, IMP_Types);
            }

            var currentDel = webView.WeakDelegate;

            if (currentDel == null)
            {
                webView.Delegate = this;
            }
            else
            {
                SwizzleDelegate(currentDel);
            }
        }
Exemplo n.º 5
0
 static extern IMP class_replaceMethod(IntPtr cls, IntPtr sel, IMP imp, string types);
Exemplo n.º 6
0
 public CourseController(IMP mp)
 {
     _mp = mp;
 }
Exemplo n.º 7
0
 public MealController(IMP mp)
 {
     _mp = mp;
 }