Exemplo n.º 1
0
        public static void Instance(Action callback)
        {
            BuyResourcesWindow NewForm = new BuyResourcesWindow();

            NewForm.callback = callback;
            SessionCore.Instance.Windows.Show(NewForm);
        }
Exemplo n.º 2
0
        private void CommandBinding_BuyResources(object sender, ExecutedRoutedEventArgs e)
        {
            if (!menuBuyResources.IsEnabled)
            {
                return;
            }

            BuyResourcesWindow.Instance(null);
        }
 public static void Instance(Action callback) {
     BuyResourcesWindow NewForm = new BuyResourcesWindow();
     NewForm.callback = callback;
     SessionCore.Instance.Windows.Show(NewForm);
 }