private void Form2_Load(object sender, System.EventArgs e) { //Get the ArcGIS install location string sInstall = ESRI.ArcGIS.RuntimeManager.ActiveRuntime.Path; //Load the ESRI.ServerStyle file into the SymbologyControl axSymbologyControl1.LoadStyleFile(sInstall + "\\Styles\\ESRI.ServerStyle"); }
private void cmbStyleFiles_SelectedIndexChanged(object sender, EventArgs e) { axSymbologyControl1.Clear(); if (cmbStyleFiles.SelectedItem.ToString().Contains("ServerStyle")) { axSymbologyControl1.LoadStyleFile(cmbStyleFiles.SelectedItem.ToString()); } else { axSymbologyControl1.LoadDesktopStyleFile(cmbStyleFiles.SelectedItem.ToString()); } axSymbologyControl1.StyleClass = m_SymbolObject.StyleClass; }