예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            string ultimaTela = (string)rowCurrent[col_ultima];

            if (ultimaTela != null)
            {
                Console.WriteLine();
                MyForm mf = (MyForm)Activator.CreateInstance(Type.GetType("Questionario." + ultimaTela, true));
                goToForm(mf);
            }
        }
예제 #2
0
        public void backToForm()
        {
            MyForm backkers = Pilhas.Pop();

            this.lastID     = (int)LastID();
            backkers.lastID = lastID;
            initDB();
            //My.rowCurrent = rowCurrent;

            Dictionary <string, object> row = new Dictionary <string, object>();

            row[col_ultima] = this.Name;

            updateRow(row);

            this.Hide();
            backkers.Show();
        }
예제 #3
0
        public void goToForm(MyForm mf)
        {
            if (this is Encerrado)
            {
                this.Dispose();
            }
            this.lastID = (int)LastID();
            mf.lastID   = lastID;
            initDB();
            //My.rowCurrent = rowCurrent;

            Dictionary <string, object> row = new Dictionary <string, object>();

            if (!this.Name.Equals("Inicio", StringComparison.OrdinalIgnoreCase) ||
                !this.Name.Equals("Encerrado", StringComparison.OrdinalIgnoreCase))
            {
                row[col_ultima] = mf.Name;
                updateRow(row);
            }

            Pilhas.Push(this);
            this.Hide();
            mf.Show();
        }
예제 #4
0
        public void goToForm(MyForm mf)
        {
            if (this is Encerrado)
            {
                this.Dispose();
            }
            this.lastID = (int)LastID();
            mf.lastID = lastID;
            initDB();
            //My.rowCurrent = rowCurrent;

            Dictionary<string,object> row = new Dictionary<string,object>();

            if (!this.Name.Equals("Inicio", StringComparison.OrdinalIgnoreCase)
                || !this.Name.Equals("Encerrado", StringComparison.OrdinalIgnoreCase))
            {
                row[col_ultima] = mf.Name;
                updateRow(row);
            }

            Pilhas.Push(this);
            this.Hide();
            mf.Show();
        }