public static Boolean Validate(MainForm mf) { Boolean res = true; DrawDBName = "Sql"; // JH = "tt"; if (DrawDBName.Equals("")) { MessageBox.Show("请选择绘图数据库"); res = false; } else if (string.IsNullOrEmpty(JH)) { MessageBox.Show("请选择绘图井号"); res = false; } else if (_jdStrLst.Count < 1) { MessageBox.Show("请设计绘图井段"); res = false; } FrameDesign.set_MainForm_jdStrList_dele = mf.set_jdStrList; FrameDesign.set_MainForm_jdStrList_dele(_jdStrLst); //2560-2590 2660-2690 return(res); }
public static Boolean Validate(SuiZuanForm mf) { Boolean res = true; DrawDBName = "Sql"; // JH = "tt"; if (DrawDBName.Equals("")) { MessageBox.Show("请选择绘图数据库"); res = false; } else if (string.IsNullOrEmpty(JH)) { MessageBox.Show("请选择绘图井号"); res = false; } else if (_jdStrLst.Count < 1) { MessageBox.Show("请设计绘图井段"); res = false; } return(res); }