public void userDtoChanged(ChangedType changedType) { if (changedType == ChangedType.HPMP || changedType == ChangedType.EXP || changedType == ChangedType.LEVEL || changedType == ChangedType.All) { SetHeadInfo(GameData.UserDto); } }
public void Edit(ChangedType changeType, object item) { switch (changeType) { case ChangedType.LastName: LastName = item.ToString(); break; case ChangedType.CountryOfBirth: CountryOfBirth = item.ToString(); break; case ChangedType.FirstName: FirstName = item.ToString(); break; case ChangedType.StudentNumber: StudentNumber = Convert.ToInt32(item); break; case ChangedType.Sex: Sex = item.ToString(); break; case ChangedType.YearOfBirth: YearOfBirth = Convert.ToInt32(item); break; } }
public void userDtoChanged(ChangedType changedType) { if (changedType == ChangedType.ATTACK || changedType == ChangedType.EXP || changedType == ChangedType.LEVEL || changedType == ChangedType.DEF || changedType == ChangedType.ARMOUR || changedType == ChangedType.CRIT || changedType == ChangedType.EXEMPTCRIT || changedType == ChangedType.SPEED || changedType == ChangedType.MONEY || changedType == ChangedType.All) { SetHeadInfo(GameData.UserDto); } }
public void Edit(int StudentNumber, ChangedType changeType, object newItem) { Students get = SearchByNumber(StudentNumber); get?.Edit(changeType, newItem); Console.Clear(); Console.BackgroundColor = ConsoleColor.Green; Console.WriteLine("\n***********\tOPERATION SUCCESS\t***********\n"); Console.ResetColor(); }
/// <summary> /// /// </summary> /// <param name="cp"></param> private void OnCollectionChanged(ChangedType changedType, CommuniPort cp) { if (this.CollectionChanged != null) { CollectionChangedEventHandler temp = this.CollectionChanged; CollectionChangedEventArgs e = new CollectionChangedEventArgs( //ChangedType.Add, changedType, cp); temp(this, e); } }
public static void ChangeDB(ChangedType type, Device device) { if (_changedOp.Count > 0) { var lastOp = _changedOp[_changedOp.Count - 1]; if (type == lastOp.type && device == lastOp.device) { return; } } _changedOp.Add(new ChangedOp(type, device)); }
private void ApplyTheme(ChangedType type) { if (type == ChangedType.Night && NightLightWatcher.NightLightStatus == NightLightStatus.Enable) { Registry.SetValue(ThemeKeyPath, "SystemUsesLightTheme", (int)Setting.Night.System, RegistryValueKind.DWord); Registry.SetValue(ThemeKeyPath, "AppsUseLightTheme", (int)Setting.Night.App, RegistryValueKind.DWord); } else if (type == ChangedType.Day && NightLightWatcher.NightLightStatus == NightLightStatus.Disable) { Registry.SetValue(ThemeKeyPath, "SystemUsesLightTheme", (int)Setting.Day.System, RegistryValueKind.DWord); Registry.SetValue(ThemeKeyPath, "AppsUseLightTheme", (int)Setting.Day.App, RegistryValueKind.DWord); } }
static void editmenu() { Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Press 9 to Go Back ! \n"); Console.ResetColor(); Console.WriteLine("\n Enter Student Number : "); int StudentNumber = Convert.ToInt32(Console.ReadLine()); if (StudentNumber == 9) { Console.Clear(); return; } ask: Console.Clear(); Console.WriteLine("_________________________________\n"); Console.WriteLine("\n Choose the field to Edit " + StudentNumber + "\n\n 0- Student Number \n" + "1- First Name of Student\n " + " 2-Last Name of Student\n" + " 3- Sex\n" + " 4- Country of Birth\n" + " 5- Date of Birth\n"); Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Press 9 to Go Back \n"); Console.ResetColor(); Console.WriteLine("______________________________\n"); int field = Convert.ToInt32(System.Console.ReadLine()); ChangedType Type = (ChangedType)field; if (field == 9) { Console.Clear(); return; } if (field < 0 || field > 6) { Console.BackgroundColor = ConsoleColor.DarkRed; Console.WriteLine("\n ********************* Invalid Input . \t ***************\n"); Console.ResetColor(); goto ask; } if (field != 6) { Console.WriteLine("\nEnter the new value: "); object item = Console.ReadLine(); listStudents.Edit(StudentNumber, Type, item); } else { Console.WriteLine("Invalid Number \n \n "); } }
public void userDtoChanged(ChangedType changedType) { if (changedType == ChangedType.LEVEL) { if (SkillDto == null || SkillDto.id < 0) { return; } if (GameData.UserDto.level >= SkillDto.nextLevel) { button.SetActive(true); } } }
/// <summary> /// /// </summary> /// <param name="obj"></param> public CollectionChangedEventArgs(ChangedType changedType, object obj) { _changedType = changedType; _obj = obj; }
public UpdatedConfigurationMessage(ChangedType type) { Id = Guid.NewGuid(); Date = DateTime.Now; Changed = type; }
public void CallStatusUpdate(Object sender, ChangedType changeType) { if (StatusUpdate != null) StatusUpdate(sender, new StatusChangedArgs { ChangedData = changeType }); }
private static void SendMessage(ChangedType type) { Messenger.Default.Send <UpdatedConfigurationMessage>(new UpdatedConfigurationMessage(type)); }
private void RefreshDisplay(ChangedType type) { if ((type & ChangedType.Profile) == ChangedType.Profile) { m_playerStatus.Display(); } if ((type & ChangedType.ForceTask) == ChangedType.ForceTask) { m_forceTasks.Display(); } if ((type & ChangedType.HuangjinTreasure) == ChangedType.HuangjinTreasure) { m_huangjinTreansure.Display(); } if ((type & ChangedType.ForceProfile) == ChangedType.ForceProfile) { m_forceProfile.Display(); } if ((type & ChangedType.ForceExchange) == ChangedType.ForceExchange) { m_forceExchange.Display(); } if ((type & ChangedType.Collect) == ChangedType.Collect) { m_collect.Display(); } if ((type & ChangedType.Fuben) == ChangedType.Fuben) { m_fuben.Display(); } if ((type & ChangedType.Mission) == ChangedType.Mission) { m_mission.Display(); } if ((type & ChangedType.ForceBoss) == ChangedType.ForceBoss) { m_forceBoss.Display(); } if ((type & ChangedType.SignIn) == ChangedType.SignIn) { m_signin.Display(); } if ((type & ChangedType.Daoju) == ChangedType.Daoju) { m_daoju.Display(); } if ((type & ChangedType.MoneyMonitor) == ChangedType.MoneyMonitor) { m_money.Display(); } if ((type & ChangedType.CardSale) == ChangedType.CardSale) { m_cardSale.Display(); } if ((type & ChangedType.Activity) == ChangedType.Activity) { m_activity.Display(); } }
public ChangedEventArgs(ChangedType type) { change = type; }
public ValueChangedEventArgs(ChangedType ChangeType, double Value) { this.ChangeType = ChangeType; this.Value = Value; }
private void RefreshDisplay(ChangedType type) { if ((type & ChangedType.Profile) == ChangedType.Profile) { //m_playerStatus.Display(); } if ((type & ChangedType.ForceTask) == ChangedType.ForceTask) { //m_forceTasks.Display(); } }
public ChangedOp(ChangedType t, Device d) { type = t; device = d; }
/// <summary> /// /// </summary> /// <param name="obj"></param> public CollectionChangedEventArgs(ChangedType changedType, object obj) { _changedType = changedType; _obj = obj; }
/// <summary> /// /// </summary> /// <param name="cp"></param> private void OnCollectionChanged( ChangedType changedType, CommuniPort cp) { if (this.CollectionChanged != null) { CollectionChangedEventHandler temp = this.CollectionChanged; CollectionChangedEventArgs e = new CollectionChangedEventArgs( //ChangedType.Add, changedType, cp); temp(this, e); } }