コード例 #1
0
 public TeamMember(TeamManagerViewModel vm, TreeViewChildrenViewModel parent, string name)
 {
     _commands = new CommandHelper(commandsTeamMember);
     _parent = parent;
     _name = name;
     _vm = vm;
 }
コード例 #2
0
        public TournamentSettingsViewModel(RWLigamodusViewModel parent)
        {
            _buttonCommands = new CommandHelper(buttonCommands);
            _parent = parent;
            _currentSettings = new TournamentSettings();
            serializer = new XmlSerializer(typeof(TournamentSettings));

            //load persistent settings
            if ((_actualSettings = this.loadSettings()) == null)
            {
                _actualSettings = new TournamentSettings();
                _actualSettings.setDefaultVaules(this.Leagues[0], this.WeaponTypes[0]);
            }
            this.setCurrent();
        }
コード例 #3
0
 public RWLigamodusViewModel()
 {
     _menuCommands = new CommandHelper(commandHandler);
     _toolbarCommands = new CommandHelper(commandHandler);
     _teamManagerProcess = new ProcessStartInfo("Teammanager.View.exe");
     try
     {
         _persistance = new PersistanceControl();
         _currentMatch = _persistance.deserializeMatch();
         //add teams to tournamentvm
         _tnmtViewModel = new TournamentViewModel(_currentMatch);
         _tnmtSettViewModel = new TournamentSettingsViewModel(this);
     }
     catch (Exception ex)
     {
         System.Console.WriteLine(ex.Message);
     }
 }
コード例 #4
0
 public TeamMember()
 {
     _commands = new CommandHelper(commandsTeamMember);
 }
コード例 #5
0
ファイル: Team.cs プロジェクト: LennyLeonard/RW-Ligamodus
 public Team()
 {
     _commands = new CommandHelper(commandsTeam);
 }
コード例 #6
0
ファイル: Team.cs プロジェクト: LennyLeonard/RW-Ligamodus
 public Team(TeamManagerViewModel vm, TreeViewChildrenViewModel parent, string name)
     : base(parent, name)
 {
     _commands = new CommandHelper(commandsTeam);
     _vm = vm;
 }