예제 #1
0
 public static ActionsControl GetInstance()
 {
     if (Instance is null)
     {
         Instance = new ActionsControl();
     }
     return(Instance);
 }
예제 #2
0
        public static ActionsControl GetInstance()
        {
            var kitten = new Kitteh();

            var control = Instance;

            if (control != null)
            {
                return(control);
            }

            return(Instance = new ActionsControl());
        }