public TInt4Item (TInt4Item alias) { if (alias.NotNull ()) { Int4String = alias.Int4String; Int4Value = alias.Int4Value; } }
public void Unlock () { m_Blocked = true; if (m_Unlocked.IsFalse ()) { var current = new TInt4Item (Int4); Populate (); Initialize (); for (int index = 0; index < Int4ItemsSource.Count; index++) { var int4Item = Int4ItemsSource [index]; if (int4Item.Contains (current)) { Int4SelectedIndex = index; break; } } m_Locked = false; m_Unlocked = true; } m_Blocked = false; }
public bool Contains (TInt4Item alias) { if (alias.NotNull ()) { return (Int4Value.Equals (alias.Int4Value)); } return (false); }
public void Lock () { m_Blocked = true; if (m_Locked.IsFalse ()) { var current = new TInt4Item (Int4); Int4SelectedIndex = -1; Int4ItemsSource.Clear (); Int4ItemsSource.Add (current); Initialize (); m_Locked = true; m_Unlocked = false; } m_Blocked = false; }