コード例 #1
0
 public TInt4Item (TInt4Item alias)
 {
   if (alias.NotNull ()) {
     Int4String = alias.Int4String;
     Int4Value = alias.Int4Value;
   }
 }
コード例 #2
0
    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;
    }
コード例 #3
0
    public bool Contains (TInt4Item alias)
    {
      if (alias.NotNull ()) {
        return (Int4Value.Equals (alias.Int4Value));
      }

      return (false);
    }
コード例 #4
0
    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;
    }