Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Belt and suspenders

Belt and suspenders

Scheduled Pinned Locked Moved The Weird and The Wonderful
htmlcom
3 Posts 3 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jorgen Andersson
    wrote on last edited by
    #1
    private string \_CustomName = "Contact the developer";
    public string CustomName
    {
      get
      {
        return \_CustomName;
      }
      set
      {
        if (!\_CustomName.IsNull())
        {
          if (!\_CustomName.Equals(value))
          {
            \_CustomName = value;
            OnPropertyChanged("CustomName");
          }
        }
        else
          if (\_CustomName != value)
          {
            \_CustomName = value;
            OnPropertyChanged("CustomName");
          }
      }
    }
    

    Not sure I want to contact the developer. :doh:

    Wrong is evil and must be defeated. - Jeff Ello

    R B 2 Replies Last reply
    0
    • J Jorgen Andersson
      private string \_CustomName = "Contact the developer";
      public string CustomName
      {
        get
        {
          return \_CustomName;
        }
        set
        {
          if (!\_CustomName.IsNull())
          {
            if (!\_CustomName.Equals(value))
            {
              \_CustomName = value;
              OnPropertyChanged("CustomName");
            }
          }
          else
            if (\_CustomName != value)
            {
              \_CustomName = value;
              OnPropertyChanged("CustomName");
            }
        }
      }
      

      Not sure I want to contact the developer. :doh:

      Wrong is evil and must be defeated. - Jeff Ello

      R Offline
      R Offline
      RickZeeland
      wrote on last edited by
      #2

      It's custom-ary :-\

      1 Reply Last reply
      0
      • J Jorgen Andersson
        private string \_CustomName = "Contact the developer";
        public string CustomName
        {
          get
          {
            return \_CustomName;
          }
          set
          {
            if (!\_CustomName.IsNull())
            {
              if (!\_CustomName.Equals(value))
              {
                \_CustomName = value;
                OnPropertyChanged("CustomName");
              }
            }
            else
              if (\_CustomName != value)
              {
                \_CustomName = value;
                OnPropertyChanged("CustomName");
              }
          }
        }
        

        Not sure I want to contact the developer. :doh:

        Wrong is evil and must be defeated. - Jeff Ello

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        ... and he forgot the StringEqualityComparison parameter in the Equals function...

        Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups