public List <Autodesk.Revit.DB.View> AvailableViewSheetSet(VisibleType visibleType) { if (visibleType == VisibleType.VT_None) { return(null); } List <Autodesk.Revit.DB.View> views = new List <Autodesk.Revit.DB.View>(); foreach (Autodesk.Revit.DB.View view in m_viewSheetSetting.AvailableViews) { if (view.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet && visibleType == VisibleType.VT_ViewOnly) { continue; // filter out sheets. } if (view.ViewType != Autodesk.Revit.DB.ViewType.DrawingSheet && visibleType == VisibleType.VT_SheetOnly) { continue; // filter out views. } views.Add(view); } return(views); }
public Account() { _AccountType = VisibleType.SEP; _IsAcceptEmail = true; _IsAcceptSMS = true; _IsValidateUsbKey = false; }
private VisibleType GetAccountType() { if (_ItsView.IfValidate == 0) { return(VisibleType.None); } VisibleType accountType = VisibleType.SEP; if (_ItsView.IfCRM) { accountType |= VisibleType.CRM; } if (_ItsView.IfHRMIS) { accountType |= VisibleType.HRMis; } if (_ItsView.IfMyCMMI) { accountType |= VisibleType.MyCMMI; } if (_ItsView.IfEShopping) { accountType |= VisibleType.EShopping; } return(accountType); }
private void CurveAnim(float deltaTime) { if (this.animType != ShowAnimType.curveAnim) { return; } this.visibleAnimationTimer += deltaTime; if (this.visibleAnimationTimer >= this.mCurveAnimTime) { this.visibleAnimationTimer = 0f; if (this.visibleType == VisibleType.SHOW) { this.visibleType = VisibleType.NONE; if (this.ShowedEvent != null) { this.ShowedEvent(this); } } else { this.visibleType = VisibleType.NONE; this.Remove(); } } }
private void PositionAnim(float deltaTime) { if (this.animType != ShowAnimType.positionAnim) { return; } this.visibleAnimationTimer += deltaTime; if (this.visibleAnimationTimer < this.visibleAnimationTime) { float t = Mathf.Sin(90f * this.visibleAnimationTimer / this.visibleAnimationTime * Mathf.Deg2Rad); float pos = this.visibleType != VisibleType.SHOW ? Mathf.Lerp(0f, this.showPosMoveLength, t) : Mathf.Lerp(this.showPosMoveLength, 0f, t); this.gameObject.transform.localPosition = new Vector3(pos, 0f, 0f); } else { this.visibleAnimationTimer = 0f; if (this.visibleType == VisibleType.SHOW) { this.visibleType = VisibleType.NONE; this.gameObject.transform.localPosition = Vector3.zero; if (this.ShowedEvent != null) { this.ShowedEvent(this); } } else { this.visibleType = VisibleType.NONE; this.gameObject.transform.localPosition = new Vector3(this.showPosMoveLength, 0f, 0f); this.Remove(); } } }
public void ChangeAccountType(int accountId, VisibleType visibleType) { SqlCommand cmd = new SqlCommand(); cmd.Parameters.Add(_AccountId, SqlDbType.Int).Value = accountId; cmd.Parameters.Add(_AccountType, SqlDbType.Int).Value = visibleType; SqlHelper.ExecuteNonQuery("DeleteAccount", cmd); }
public Account(int id, string loginName, string name) { _Id = id; _LoginName = loginName; _Name = name; _AccountType = VisibleType.SEP; _IsAcceptEmail = true; _IsAcceptSMS = true; _IsValidateUsbKey = false; }
public void RemoveAccountType(int accountId, VisibleType visibleType, Account loginUser) { Account account = DalInstance.AccountDalInstance.GetAccountById(accountId); if (account == null) { throw MessageKeys.AppException(MessageKeys._Account_Not_Exist); } account.AccountType = account.AccountType ^ visibleType; DalInstance.AccountDalInstance.ChangeAccountType(accountId, visibleType); }
public virtual void Hide(DialogState state) { if (this.visibleType == VisibleType.HIDE) { return; } this.OnHide(); PlayStateSE(state); this.mState = state; this.visibleAnimationTimer = 0f; this.visibleType = VisibleType.HIDE; }
public virtual void Show() { if (this.visibleType == VisibleType.SHOW) { return; } this.mAnimator = this.gameObject.GetComponent <Animator>(); if (this.mAnimator != null) { this.animType = ShowAnimType.curveAnim; } this.Initialize(); this.visibleAnimationTimer = 0f; this.visibleType = VisibleType.SHOW; }
private void ScaleAnim(float deltaTime) { if (this.animType != ShowAnimType.scaleAnim) { return; } this.visibleAnimationTimer += deltaTime; float animTime = this.visibleType == VisibleType.SHOW ? 0.3f : 0.2f; if (this.visibleAnimationTimer < animTime) { float f = this.visibleAnimationTimer / animTime; float num = this.visibleType != VisibleType.SHOW ? Mathf.Cos(f) : Mathf.Sin(f); if (this.visibleType == VisibleType.SHOW) { num = Ease.Spring(num); } this.gameObject.transform.localScale = new Vector3(num, num, 1f); } else { this.visibleAnimationTimer = 0f; if (this.visibleType == VisibleType.SHOW) { this.visibleType = VisibleType.NONE; base.gameObject.transform.localScale = this.defaultScale; if (this.ShowedEvent != null) { this.ShowedEvent(this); } } else { this.visibleType = VisibleType.NONE; base.gameObject.transform.localScale = Vector3.zero; this.Remove(); } } }
public void Initialize(bool defaultSelectState = true) { m_ContentContainer.Clear(); if (VisibleType.HasFlag(CollectionType.String)) { var stringTableCollections = LocalizationEditorSettings.GetStringTableCollections(); foreach (var collection in stringTableCollections) { AddCollection(collection, defaultSelectState); } } if (VisibleType.HasFlag(CollectionType.Asset)) { var assetTableCollections = LocalizationEditorSettings.GetAssetTableCollections(); foreach (var collection in assetTableCollections) { AddCollection(collection, defaultSelectState); } } }
/// <summary> /// 用此构造函数构造一个显式定义不显示的菜单 /// </summary> /// <param name="visible">当为false时扫描程程序忽略该菜单</param> public JAuthAttribute(VisibleType visible) { Visible = visible; }
public List<Autodesk.Revit.DB.View> AvailableViewSheetSet(VisibleType visibleType) { if (visibleType == VisibleType.VT_None) return null; List<Autodesk.Revit.DB.View> views = new List<Autodesk.Revit.DB.View>(); foreach (Autodesk.Revit.DB.View view in m_viewSheetSetting.AvailableViews) { if (view.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet && visibleType == VisibleType.VT_ViewOnly) { continue; // filter out sheets. } if (view.ViewType != Autodesk.Revit.DB.ViewType.DrawingSheet && visibleType == VisibleType.VT_SheetOnly) { continue; // filter out views. } views.Add(view); } return views; }
/// <summary> /// Get visible button count /// </summary> /// <param name="tVisibleType"></param> /// <returns></returns> internal int GetVisibleButtonCount(VisibleType tVisibleType) { int visibleItemCount = 0; foreach (NavigateBarButton nvb in navigateBarButtons) { // Gözükmeyecekse pas geç // If not displayed skip button if (!nvb.IsDisplayed) continue; switch (tVisibleType) { case VisibleType.Unvisible: { if (!nvb.Visible) visibleItemCount++; break; } case VisibleType.Visible: { if (nvb.Visible) visibleItemCount++; break; } case VisibleType.All: { visibleItemCount++; break; } } } return visibleItemCount; }
public JAuthAttribute(JAuthType authType, VisibleType visible) { AuthType = authType; Visible = visible; }
/// <summary> /// Initializes a new instance of the GXSettingItemAttribute class. /// </summary> /// <param name="visible">Visibility type of the new instance.</param> /// <param name="storable">If True, the new instance is storable.</param> /// <seealso cref="VisibleType">VisibleType</seealso> /// <seealso cref="Storable">Storable</seealso> public GXSettingItemAttribute(VisibleType visible, bool storable) { m_Visible = visible; m_Storable = storable; }
/// <summary> /// Initializes a new instance of the GXSettingItemAttribute class. /// </summary> /// <param name="visible">Visibility type of the new instance.</param> /// <param name="storable">If True, the new instance is storable.</param> /// <param name="category">Name of the category to which the new instance belongs.</param> /// <param name="editorType">Type of the editor of the new instance.</param> /// <seealso cref="VisibleType">VisibleType</seealso> /// <seealso cref="Storable">Storable</seealso> public GXSettingItemAttribute(VisibleType visible, bool storable, string category, Type editorType) { m_Storable = storable; m_Visible = visible; m_Category = category; m_Editor = editorType; }
public void SetAccountType(int accountId, VisibleType visibleType, Account loginUser) { DalInstance.AccountDalInstance.ChangeAccountType(accountId, visibleType); }
public List <Account> GetAccountByCondition(string nameLike, int?deptId, int?positionId, VisibleType visibleType) { List <Account> result = new List <Account>(); List <Account> list = DalInstance.AccountDalInstance.GetAccountByCondition(nameLike, deptId, positionId); foreach (Account account in list) { if ((account.AccountType & visibleType) == visibleType) { result.Add(account); } } return(result); }