private void select()
 {
     string[] scol = trans.Colors;
     ControlUtilites.SelectCombo(colors, scol);
     string[] scor = trans.Coordinates;
     ControlUtilites.SelectCombo(coord, scor);
     selectExt();
 }
示例#2
0
        void select()
        {
            List <string> al = data.Aliases;

            ControlUtilites.SelectCombo(this, al);
            List <string> m = data.Measures;

            ControlUtilites.SelectCombo(ba, m);
        }
示例#3
0
        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);
        }
示例#5
0
 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();
     }
 }
示例#6
0
 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);
                 }
             }
         }
     }
 }