Exemplo n.º 1
0
        public static void DeleteFromCurrentTable(List <string> vals)
        {
            if (vals.Count == 0)
            {
                return;
            }
            //Broker.table = currentTable;
            DeleteWindow dw = new DeleteWindow();

            dw.StartPosition = FormStartPosition.CenterParent;
            dw.ShowDialog();
            try
            {
                if (Broker.f)
                {
                    CurrentTable.Prepare();
                    CurrentTable.Delete(vals);
                    Broker.f = false;
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message);
            }
        }