Esempio n. 1
0
        private void FormSkinManager_Load(object sender, EventArgs e)
        {
            FormSkinManager.LoadMe();
            using (var db = new dominoeng3Entities())
            {
                var query = from u in db.img_fundo_tab
                            select u;

                List <FundoTabuleiroComboBox> lista = new List <FundoTabuleiroComboBox>();
                foreach (var result in query)
                {
                    FundoTabuleiroComboBox f = new FundoTabuleiroComboBox();
                    f.Name  = result.nome_fundo;
                    f.Value = result.ID.ToString();
                    lista.Add(f);
                }

                this.PopulateComboBoxFundoTab(lista);

                var query_pecas = from u in db.conj_img_pecas
                                  select u;

                List <SkinPecaComboBox> lista_pecas = new List <SkinPecaComboBox>();
                foreach (var result in query_pecas)
                {
                    SkinPecaComboBox s = new SkinPecaComboBox();
                    s.Name  = result.nome_conjunto;
                    s.Value = result.ID.ToString();
                    lista_pecas.Add(s);
                }

                this.PopulateComboBoxSkinPecas(lista_pecas);
            }
        }
Esempio n. 2
0
 public FormMainScreen(string idPlayer)
 {
     InitializeComponent();
     this.idPlayer = idPlayer;
     NewGameRequestManager.GetInstance(Convert.ToInt32(this.idPlayer));
     aTimer          = new System.Timers.Timer();
     aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
     aTimer.Interval = 1000;
     aTimer.Enabled  = true;
     this.Text       = "Tela Principal - Id: " + idPlayer;
     FormSkinManager.LoadMe();
 }