コード例 #1
0
        private void CardEditor_NewType_Button_Click(object sender, RoutedEventArgs e)
        {
            TypeEditor typeEditor = new TypeEditor(false, null);

            typeEditor.Left = this.Left;
            typeEditor.Top  = this.Top;
            typeEditor.ShowDialog();
            cardTypes = ReadDatabase.getListOfCardTypes();
            RefreshTypes();
            RefreshAttacks();
        }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     cardEditor = new CardEditor();
     typeEditor = new TypeEditor();
     types      = new Types();
     preview    = new Preview();
     NavigateCardEditor();
     DisplayCardButtons();
     DisplayTypeButtons();
     DeleteOnStartup();
 }