Ejemplo n.º 1
0
 public static LazyInstance GetInstance()
 {
     if (__instance == null)
     {
         __instance = new LazyInstance();
     }
     return(__instance);
 }
 private void BtIncrease_Click(object sender, RoutedEventArgs e)
 {
     LazyInstance.GetInstance().IncCount();
     count           = LazyInstance.GetInstance().GetCount();
     lbCount.Content = "Current count : " + count;
 }
 public CountWindown()
 {
     InitializeComponent();
     count           = LazyInstance.GetInstance().GetCount();
     lbCount.Content = "Current count : " + count;
 }