コード例 #1
0
        private void Add_Default_V4DataCollection_Click(object sender, RoutedEventArgs e)
        {
            V4DataCollection item = new V4DataCollection("random V4DC", 9d);

            item.InitRandom(5, 4, 4, 0, 9);
            V4MC.Add(item);
        }
コード例 #2
0
 private void Item_DefaultColl_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var rand = new Random();
         V4DataCollection coll = new V4DataCollection("def_col", 12.3);
         coll.InitRandom(4, (float)2.0, (float)2.0, 1.0, 1.0);
         MainColl.Add(coll);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Item_DefaultColl_Click \n" + ex.Message);
     }
 }
コード例 #3
0
        public void Adding()
        {
            Random           rnd       = new Random();
            string           info      = Name;
            double           meas_info = MInfo;
            V4DataCollection data      = new V4DataCollection(info, meas_info);

            data.InitRandom(count, MinValue, MaxValue, (double)MinValue, (double)MaxValue);
            MainColl.Add(data);
        }
コード例 #4
0
 private void Add_Element_from_File_Click(object sender, RoutedEventArgs e)
 {
     Microsoft.Win32.OpenFileDialog dialog = new Microsoft.Win32.OpenFileDialog();
     if (dialog.ShowDialog() == true)
     {
         try
         {
             V4DataOnGrid DataOnGrid_Item = new V4DataOnGrid("Item from the file", 2, dialog.FileName);
             V4Item.Add(DataOnGrid_Item);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }