public CadastroTimeView(TimesListView owner)
        {
            InitializeComponent();

            this._owner       = owner;
            this.FormClosing += new FormClosingEventHandler(this.OwnerFormPerformRefresh);
        }
Esempio n. 2
0
        public EditarTimeView(TimesListView owner, string timeID)
        {
            InitializeComponent();

            this._owner = owner;

            DB.Times.Load();

            int ID;

            int.TryParse(timeID, out ID);

            var time = _time = DB.Times.Find(ID);

            NomeComplexoTextBox.Text = time.NomeCompleto;
            NomeTextBox.Text         = time.Nome;
            SiglaTextBox.Text        = time.Sigla;

            this.FormClosing += new FormClosingEventHandler(this.OwnerFormPerformRefresh);
        }
Esempio n. 3
0
        private void TimesButton_Click(object sender, EventArgs e)
        {
            var timesListView = new TimesListView();

            timesListView.Show();
        }