private void select() { string[] scol = trans.Colors; ControlUtilites.SelectCombo(colors, scol); string[] scor = trans.Coordinates; ControlUtilites.SelectCombo(coord, scor); selectExt(); }
void select() { List <string> al = data.Aliases; ControlUtilites.SelectCombo(this, al); List <string> m = data.Measures; ControlUtilites.SelectCombo(ba, m); }
void fill() { List <string> al = data.AllAliases; ControlUtilites.FillCombo(this, al); List <string> m = data.AllMeasures; ControlUtilites.FillCombo(ba, m); }
private void fill() { Double a = 0; ICollection <string> al = trans.GetAliases(a); ControlUtilites.FillCombo(coord, al); ICollection <string> mea = trans.GetAllMeasurementsType(a); ControlUtilites.FillCombo(colors, mea); }
private void Cancel(object sender, RunWorkerCompletedEventArgs e) { Exception ex = exglo; exglo = null; if (ex != null) { ControlUtilites.ShowError(null, ex, Common.Engineering.Localization.Utils.ControlUtilites.Resources); } if (cancelProcess != null) { cancelProcess(); } }
void accept() { try { List <string> al = ControlUtilites.GetSelected(inb); List <string> mea = ControlUtilites.GetSelected(ba); data.Set(mea, al); p.ForceRefresh(); } catch (Exception e) { e.ShowError(10); WindowsExtensions.ControlExtensions.ShowMessageBoxModal(e.Message); } }
private void accept() { try { string[] coo = ControlUtilites.GetSelectedStringArray(coord); string[] cc = ControlUtilites.GetSelectedStringArray(colors); string[, ,] ext = new string[extColors.GetLength(0), extColors.GetLength(1), 3]; for (int i = 0; i < ext.GetLength(0); i++) { for (int j = 0; j < ext.GetLength(1); j++) { for (int k = 0; k < 3; k++) { object o = extColors[i, j, k].SelectedItem; if (o != null) { ext[i, j, k] = o + ""; } } } } bool zero = true; foreach (string s in ext) { if (s != null) { zero = false; break; } } if (zero) { ext = null; } trans.Set(ext, coo, cc, (int)numericUpDownL.Value, (int)numericUpDownT.Value); panelImage.Refresh(); } catch (Exception e) { e.ShowError(10); } }
private void selectExt() { string[, ,] se = trans.ExternalColors; if (se == null) { return; } for (int i = 0; i < se.GetLength(0); i++) { for (int j = 0; j < se.GetLength(1); j++) { for (int k = 0; k < se.GetLength(2); k++) { string s = se[i, j, k]; ComboBox b = extColors[i, j, k]; if (s != null) { ControlUtilites.SelectCombo(b, s); } } } } }