Пример #1
0
 public static void Open()
 {
     if (Instance == null)
     {
         var instance = new FishingCalculatorWindow();
         Instance = instance;
         Api.Client.UI.LayoutRootChildren.Add(instance);
     }
     Instance.Window.Open();
 }
Пример #2
0
        protected override void OnUnloaded()
        {
            base.OnUnloaded();
            DataContext = null;
            viewModel   = null;

            if (Instance == this)
            {
                Instance = null;
            }
        }