Ejemplo n.º 1
0
        public void goToFormEncerrar(string entMsg, string motivoMsg)
        {
            Encerrado mf = new Encerrado();

            mf.Label2.Text = entMsg;
            mf.Label3.Text = motivoMsg;
            mf.lastID      = (int)LastID();
            //My.rowCurrent = rowCurrent;

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

            row[col_ultima] = this.Name;

            updateRow(row);
            Pilhas.Push(this);
            this.Hide();
            mf.Show();
        }
Ejemplo n.º 2
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();
        }