static void Main(string[] args) { //IMP.LinearSearch(); //IMP.BinarySearch(); IMP.BubbleSort(); Console.ReadKey(); }
void SwizzleDelegate(NSObject del) { if (del == null || del is UIWebViewInterface) { return; } delegateLoadingFinished = FindLoadingFinishedImpl(del.Handle); }
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")); }
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); } }
static extern IMP class_replaceMethod(IntPtr cls, IntPtr sel, IMP imp, string types);
public CourseController(IMP mp) { _mp = mp; }
public MealController(IMP mp) { _mp = mp; }