public static FrmModel Create(List<IDataTable> tables) { if (tables == null || tables.Count < 1) throw new ArgumentNullException("tables"); FrmModel frm = new FrmModel(); frm.Tables = tables; return frm; }
private void 模型管理MToolStripMenuItem_Click(Object sender, EventArgs e) { var tables = Engine.Tables; if (tables == null || tables.Count < 1) { return; } FrmModel.Create(tables).Show(); }
public static FrmModel Create(List <IDataTable> tables) { if (tables == null || tables.Count < 1) { throw new ArgumentNullException("tables"); } FrmModel frm = new FrmModel(); frm.Tables = tables; return(frm); }