This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using LibUsbDotNet; | |
using LibUsbDotNet.Main; | |
namespace UsbHostExample | |
{ | |
class Program | |
{ | |
public static UsbDevice MyUsbDevice; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class NavRoute<T : BaseNavigationViewModel> { | |
abstract val destination: NavigationDestination | |
@Composable | |
open fun Content(viewModel: T) = Unit | |
@Composable | |
abstract fun viewModel(): T |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Android.App; | |
using Android.Content; | |
using Android.Graphics; | |
using Android.OS; | |
using Android.Support.V4.App; | |
using Android.Support.V4.Content; | |
using Android.Util; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomPageChangeListener : Java.Lang.Object, ViewPager.IOnPageChangeListener | |
{ | |
ViewPagerWithCustomSwipe _vp; | |
public CustomPageChangeListener(ViewPagerWithCustomSwipe vp) | |
{ | |
_vp = vp; | |
} | |
public void OnPageScrollStateChanged(int state) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Text.Method; | |
using System; | |
using Android.Widget; | |
using Android.Text; | |
using Android.Views; | |
using Android.Text.Style; | |
using Android.Graphics; | |
using System.Collections.Generic; | |
using Android.App; | |
using Java.Lang; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Content; | |
using Android.Database; | |
using Android.OS; | |
using Android.Provider; | |
using Android.Text; | |
using Java.IO; | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1) Вынести функцию Transfer в класс Account и переименовать | |
//2) Сделать проверку на достаточное кол-во средств у отправляющего аккаунта | |
//3) Прикрутить уведомления пользователям о переводе средств | |
public class Account | |
{ | |
public double Balance { get; set; } | |
public bool TryTransferTo(Account toAccount, double amount) | |
{ |