Beispiel #1
0
 public static UrhoSettings inst()
 {
     if (inst_ == null) {
         inst_ = new UrhoSettings();
         inst_.AutoSave = false; //default as false
     }
     return inst_;
 }
Beispiel #2
0
 public static UrhoSettings inst()
 {
     if (inst_ == null)
     {
         inst_          = new UrhoSettings();
         inst_.AutoSave = false; //default as false
     }
     return(inst_);
 }
Beispiel #3
0
        // Create the OnPropertyChanged method to raise the event
        public virtual void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;

            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
            if (UrhoSettings.inst().AutoSave)
            {
                Save();
            }
        }