Exemplo n.º 1
0
 public ExportXML(String location, Game game)
 {
     this.xmlDocLocation = location;
     this.game = game;
     this.configuration = Program.getConfiguration();
     writeXml();
 }
/*********************************** END OF VARIABLE DEFINITIONS ***********************************************************************/





        public Form_Configuration(Form_Main parent)
        {
            InitializeComponent();
            this.parent_form = parent;
            configuration = Program.getConfiguration();
            
            
            // Default: Team 1 is down
            team1_up = false;


            
        }
Exemplo n.º 3
0
        /*********************************** END OF VARIABLE DEFINITIONS ***********************************************************************/


      
        public SetupAssistant()
        {
            InitializeComponent();

            configuration = Program.getConfiguration();
            capture_stream = new CaptureStream();
            capture = Program.Capture;


            // Default: Team 1 is down
            team1_up = false;

            textBox_savelocation.Text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\" + textBox_gamename.Text;
        }
Exemplo n.º 4
0
        static void Main()
        {
            configuration = new Configuration();
            //capture = new Capture();


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            //Application.Run(new SetupAssistant());
            SetupAssistant initialform = new SetupAssistant();
            initialform.StartPosition = FormStartPosition.Manual;
            initialform.DesktopLocation = new Point(0, 0);
            Application.Run(initialform);
        }
Exemplo n.º 5
0
        /************************************* END OF VARIABLE DEFINITIONS ********************************************************/





        public Form_Main(XmlOutput xmlDoc)
        {
            InitializeComponent();

            // Load default configuration
            configuration = Program.getConfiguration();
            applyConfiguration(configuration);


            newgame = false;


            this.game = new Game(configuration.Teama, configuration.Teamb);


            // add the first set
            this.game.Sets.Add(new Set(1));

            capture_stream = new CaptureStream();
            capture = Program.Capture;
           
            list_timestamps = new List<long>();
            imageList_screenshots = new ImageList();
            imageList_screenshots.ImageSize = new Size(84, 68);

            codec = Emgu.CV.CvInvoke.CV_FOURCC('P', 'I', 'M', '1');

            this.StartPosition = FormStartPosition.Manual;
            this.DesktopLocation = new Point(0, 0);

            this.xmlDoc = xmlDoc;

            xmlDoc.setGame(this.game);
        }
Exemplo n.º 6
0
        private void applyConfiguration(Configuration config)
        {
            if (config.TeamAup)
            {
                textBox_teamupname.Text = config.Teama.Name;
                textBox_teamdownname.Text = config.Teamb.Name;
                radioButton_playerupleft.Text = config.Teama.Player1.Name;
                radioButton_playerupright.Text = config.Teama.Player2.Name;
                radioButton_playerdownleft.Text = config.Teamb.Player1.Name;
                radioButton_playerdownright.Text = config.Teamb.Player2.Name;
            }
            else
            {
                textBox_teamupname.Text = config.Teamb.Name;
                textBox_teamdownname.Text = config.Teama.Name;
                radioButton_playerupleft.Text = config.Teamb.Player1.Name;
                radioButton_playerupright.Text = config.Teamb.Player2.Name;
                radioButton_playerdownleft.Text = config.Teama.Player1.Name;
                radioButton_playerdownright.Text = config.Teama.Player2.Name;
            }

        }
Exemplo n.º 7
0
 public XmlOutput()
 {
     this.configuration = Program.getConfiguration();
 }