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

            delegateLoadingFinished = FindLoadingFinishedImpl(del.Handle);
        }
Example #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"));
        }
Example #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);
            }
        }
Example #5
0
 static extern IMP class_replaceMethod(IntPtr cls, IntPtr sel, IMP imp, string types);
Example #6
0
 public CourseController(IMP mp)
 {
     _mp = mp;
 }
Example #7
0
 public MealController(IMP mp)
 {
     _mp = mp;
 }