Esempio n. 1
0
        public ViewRunners()
        {
            InitializeComponent();
            radioJunior.IsChecked = true;
            theRunners            = RunnersDatabase.Instance;

            if (!File.Exists("runners.dat"))
            {
                //theRunners.populate();//used for testing
            }
            else
            {
                IFormatter nformatter = new BinaryFormatter();
                Stream     nstream    = new FileStream("runners.dat", FileMode.Open, FileAccess.Read, FileShare.Read);
                theRunners = (RunnersDatabase)nformatter.Deserialize(nstream);
                nstream.Close();
            }
        }
Esempio n. 2
0
 public AdminWindow()
 {
     InitializeComponent();
     theRunners = RunnersDatabase.Instance;
 }