//下一步 private void simpleButton3_Click(object sender, EventArgs e) { if (tbxGDBPath.Text.Trim() == "" || cbxFeatureDS.Text.Trim() == "") { MessageBox.Show("请输入完整信息!", "提示"); return; } //将选择的数据集加到全局变量类中 foreach (IFeatureDataset eachFeatureDS in GlobalTopoVaribate.GFeatureDSList) { if (cbxFeatureDS.Text == eachFeatureDS.Name) { GlobalTopoVaribate.GFeatureDS = eachFeatureDS; break; } } //隐藏当前窗体,实例化下一窗体 GlobalTopoVaribate.GFrmLocation = this.Location; FrmTopo2 frmTopo2 = new FrmTopo2(); frmTopo2.Location = GlobalTopoVaribate.GFrmLocation; this.Hide(); frmTopo2.Show(); }
/// <summary> /// 初始化所有静态变量的方法 /// </summary> public static void ClearAllVaribate() { //删除窗体 GFrmTopo1 = null; GFrmTopo2 = null; GFrmTopo3 = null; GFrmTopo4 = null; //删除各静态变量 GDBPath = null; GFeatureDSList = new List <IFeatureDataset>(); GFeatureDS = null; GAllFeatureClassList = new List <IFeatureClass>(); GTopoFeatureClassList = new List <IFeatureClass>(); GTopoName = null; List <string> GRuleRow = new List <string>(); DataTable GRuleDT = new DataTable(); }