public void Init(InitParam param) { Debug.Log("[LutUtil] init param : size : " + param.Size.ToString()); m_param = param; InitComputeShader(); Debug.Log("[LutUtil] init done"); }
public ControllerBase(InitParam initParam) { InitParam = initParam; _listNgonNgu = InitParam.Db.NgonNgu.AsNoTracking().ToList(); var ngonNgu = InitParam.HttpContextAccessor.HttpContext.Session.GetInt32("NgonNgu"); NgonNgu = 1; // Mac dinh la tieng viet if (ngonNgu.HasValue) { if (_listNgonNgu.Any(h => h.Id == ngonNgu)) { NgonNgu = ngonNgu.Value; } else if (_listNgonNgu.Count > 0) { NgonNgu = _listNgonNgu[0].Id; } } else if (_listNgonNgu.Count > 0) { NgonNgu = _listNgonNgu[0].Id; } // Chi co tieng viet va tieng anh if (NgonNgu > 2) { NgonNgu = 1; // Mac dinh la tieng viet; } }
/// <summary> /// 初始化 AACEncoder /// </summary> /// <returns></returns> public KeyValuePair <bool, string> Init() { //释放 Release(); try { InitParam initParam = new InitParam(); IntPtr ret = IsWindows ? Easy_AACEncoder_Init_Win32(initParam) : Easy_AACEncoder_Init_Linux(initParam); if (ret == IntPtr.Zero) { return(new KeyValuePair <bool, string>(false, "AACEncoder 创建失败!")); } else { this.AACEncoderHandle = ret; return(new KeyValuePair <bool, string>(true, "AACEncoder 创建成功!")); } } catch (System.Exception e) { return(new KeyValuePair <bool, string>(false, e.Message)); throw; } }
public ViewModelBase(InitParam initParam) : this() { NavigationService = initParam.NavigationService; DialogService = initParam.DialogService; EventAggregator = initParam.EventAggregator; initParam.CleanUp(); }
public NumberEntity(InitParam initParam) { Debug.Assert(initParam.Numbers.Length == 10, "set texture array whitch represents 0-9 number"); m_initParam = initParam; m_plane = DrawModel.CreateFloor(0.3f, 1.0f, Vector4.Zero); m_text = "".ToArray(); SetPose(Matrix.Identity); }
public override void Initialize() { InitParam initParam = m_initParam = (GameSection.GetEventData() as InitParam); if (m_initParam != null) { GameSection.SetEventData(m_initParam.EventDataForParentInitialization); } base.Initialize(); ForceInvisibleUIButtons(); }
public TinTucsController(InitParam initParam) : base(initParam) { var listLoaiTin = InitParam.Db.LoaiTin.AsNoTracking() .OrderBy(h => h.TenLoai) .Select(h => new LoaiTin { Id = h.Id, TenLoai = h.TenLoai }).ToList(); ListLoaiTin = listLoaiTin; }
public HoatDongsController(InitParam initParam) : base(initParam) { var listHoatDong = InitParam.Db.LoaiHoatDong.AsNoTracking() .OrderBy(h => h.TenLoai) .Select(h => new LoaiHoatDong { Id = h.Id, TenLoai = h.TenLoai }).ToList(); ListHoatDong = listHoatDong; }
//----------------------------------------- // 初期化 //----------------------------------------- #region ===== INITIALIZE ===== public bool Initialize(InitParam _param) { Debug.Assert(_param != null); if (_param == null) { return(false); } AddText(0); return(true); }
//----------------------------------------- // 初期化 //----------------------------------------- #region ===== INITIALIZE ===== /// <summary> /// 初期化メソッド /// </summary> /// <param name="_param"></param> public virtual void Init(InitParam _param) { base.Init(_param); if (_param == null) { return; } if (_param.ButtonSprite != null) { m_buttonImage.sprite = _param.ButtonSprite; } }
public ControllerBase(InitParam initParam) { InitParam = initParam; var listNgonNgu = InitParam.Db.NgonNgu.AsNoTracking() .OrderBy(h => h.TenNgonNgu) .Select(h => new NgonNgu { Id = h.Id, TenNgonNgu = h.TenNgonNgu }).ToList(); ListNgonNgu = listNgonNgu; }
public SDKError Initialize() { InitParam param = new InitParam(); param.brand_name = "云教室"; param.web_domain = "https://zoom.us"; param.language_id = SDK_LANGUAGE_ID.LANGUAGE_Chinese_Simplified; SDKError err = CZoomSDKeDotNetWrap.Instance.Initialize(param); return(err); }
//----------------------------------------- // 初期化 //----------------------------------------- #region ===== INITIALIZE ===== public bool Initialize(InitParam _param) { Debug.Assert(_param != null); if (_param == null) { return(false); } if (!CreateButtons()) { Debug.LogError("{Failed Init Buttons"); return(false); } return(true); }
private void Application_Startup(object sender, StartupEventArgs e) { //init sdk InitParam param = new InitParam { web_domain = "https://zoom.us", enable_log = true }; SDKError err = CZoomSDKeDotNetWrap.Instance.Initialize(param); if (SDKError.SDKERR_SUCCESS == err) { } else//error handle.todo { Console.WriteLine(err); } }
private static string GetConfig(string account_info_path) { InitParam initParam = new InitParam(); string appKeyFromFile = AccountInfo.GetAppKeyFromFile(account_info_path); if (appKeyFromFile == null || appKeyFromFile.Length == 0) { Console.WriteLine("获取appkey失败,是不是忘了在" + account_info_path + "填写appkey了"); return((string)null); } else { string developerKeyFromFile = AccountInfo.GetDeveloperKeyFromFile(account_info_path); if (developerKeyFromFile == null || developerKeyFromFile.Length == 0) { Console.WriteLine("获取developerKey失败,是不是忘在" + account_info_path + "填写developerKey了"); return((string)null); } else { string cloudUrlFromFile = AccountInfo.GetCloudUrlFromFile(account_info_path); if (cloudUrlFromFile == null || cloudUrlFromFile.Length == 0) { Console.WriteLine("获取cloudUrl失败,是不是忘在" + account_info_path + "填写cloudUrl了"); return((string)null); } else { initParam.AddParam(InitParam.PARAM_KEY_APP_KEY.ToLower(), appKeyFromFile); initParam.AddParam(InitParam.PARAM_KEY_DEVELOPER_KEY.ToLower(), developerKeyFromFile); initParam.AddParam(InitParam.PARAM_KEY_CLOUD_URL.ToLower(), cloudUrlFromFile); initParam.AddParam(InitParam.PARAM_KEY_AUTH_PATH.ToLower(), "data"); initParam.AddParam(InitParam.PARAM_KEY_LOG_FILE_COUNT.ToLower(), "5"); initParam.AddParam(InitParam.PARAM_KEY_LOG_FILE_PATH.ToLower(), "log"); initParam.AddParam(InitParam.PARAM_KEY_LOG_FILE_SIZE.ToLower(), "10240"); initParam.AddParam(InitParam.PARAM_KEY_LOG_LEVEL.ToLower(), "5"); Console.WriteLine("HciCloudSys HciInitConfig: " + initParam.GetConfig()); return(initParam.GetConfig()); } } } }
public LichKhamController(InitParam initParam) : base(initParam) { }
public HenKhamBenhsController(InitParam initParam) : base(initParam) { }
public HoiDapYkhoasController(InitParam initParam) : base(initParam) { }
public EventsController(InitParam initParam) : base(initParam) { }
public MainPageViewModel(InitParam initParam) : base(initParam) { TitleBindProp = "Giới Thiệu / Liên Hệ"; }
public void Initialize(InitParam _param) { base.Initialize(_param); TopUICtrl?.Initialize(new TopUIController.InitParam()); BotUICtrl?.Initialize(new BottomUIController.InitParam()); }
public void InitData(InitParam param) { m_param = param; InitComputeShaderStaticData(); InitUI(); }
public DanhMucBacSisController(InitParam initParam) : base(initParam) { }
public DichVusController(InitParam initParam) : base(initParam) { }
public NoiDungTinhChiTietsController(InitParam initParam) : base(initParam) { }
/// <summary> /// Initialize /// </summary> /// <param name="p"></param> internal void Init(InitParam p) { txtPath.Text = p.Path; }
public void InitState(InitParam param) { }
public VideosController(InitParam initParam) : base(initParam) { }
public KhoaPhongsController(InitParam initParam) : base(initParam) { }
private extern static IntPtr Easy_AACEncoder_Init_Linux(InitParam initPar);