private void OnUnmounted(MicroSDCard sender, EventArgs e) { if (this.onUnmounted == null) { this.onUnmounted = this.OnUnmounted; } if (Program.CheckAndInvoke(this.Unmounted, this.onUnmounted, sender, e)) { this.Unmounted(sender, e); } }
private void OnMounted(MicroSDCard sender, StorageDevice device) { if (this.onMounted == null) { this.onMounted = this.OnMounted; } if (Program.CheckAndInvoke(this.Mounted, this.onMounted, sender, device)) { this.Mounted(sender, device); } }