public DeviceController(
            string deviceName,
            string proxy,
            string smsRegistratorName,
            string nickname,
            AppiumDevice appiumDevice,
            string port,
            NumberBase.NumberBase numberBase
            )
        {
            DB = new WhatsappSpammerContext();
            Assembly assembly = Assembly.GetExecutingAssembly();

            DeviceName           = deviceName;
            Proxy                = proxy;
            Nickname             = nickname;
            SmsRegistrator       = (AbstractSmsRegistrator)CreateInstance(smsRegistratorName);
            AppiumDevice         = appiumDevice;
            Port                 = port;
            NumberBase           = numberBase;
            DeviceControllerForm = new DeviceControllerForm(this);
        }
 public void Log(string text)
 {
     DeviceControllerForm.Log(text);
 }