private void CmdOkClick(object sender, EventArgs e) { if (tbPath.Text == null) { MessageBox.Show(SymbologyFormsMessageStrings.JoinDialog_SelectExcelFile); return; } string local = (string)cbLocalField.SelectedItem; if (string.IsNullOrEmpty(local)) { MessageBox.Show(SymbologyFormsMessageStrings.JoinDialog_SelectLocalField); return; } string foreign = (string)cbForeignField.SelectedItem; if (string.IsNullOrEmpty(foreign)) { MessageBox.Show(SymbologyFormsMessageStrings.JoinDialog_SelectForeignField); return; } if (string.IsNullOrEmpty(tbSave.Text)) { MessageBox.Show(SymbologyFormsMessageStrings.JoinDialog_SelectOutputFile); return; } IFeatureSet temp = _featureSet.Join(tbPath.Text, local, foreign); temp.SaveAs(tbSave.Text, true); }
private void cmdOk_Click(object sender, EventArgs e) { if (tbPath.Text == null) { MessageBox.Show("Select an excel file first."); return; } string local = (string)cbLocalField.SelectedItem; if (string.IsNullOrEmpty(local)) { MessageBox.Show("Choose a local field to join on first."); return; } string foreign = (string)cbForeignField.SelectedItem; if (string.IsNullOrEmpty(foreign)) { MessageBox.Show("Choose a foreign field to join on first."); return; } if (string.IsNullOrEmpty(tbSave.Text)) { MessageBox.Show("Select an output file first."); return; } IFeatureSet temp = _featureSet.Join(tbPath.Text, local, foreign); temp.SaveAs(tbSave.Text, true); }