示例#1
0
        public Form1()
        {
            InitializeComponent();

            this.Height = 700;
            this.Width  = 1106;
            Vulkaniums Vulk_data = new Vulkaniums();

            col_vulk = Vulk_data.col_vulkans;
            Vulk_data.coord_vulkans();
            vulkan_markers = new one_vulkan[col_vulk];
            vulkans_name   = Vulk_data.vulkans_name(1);
            vulkans_koord  = Vulk_data.coord_vulkans();
            Vulk_data.group_priznak();
            Vulk_data.priz_group_mass(1);
            for (int i = 0; i < col_vulk; i++)
            {
                // MessageBox.Show(vulkans_koord[i, 1].ToString() + "|||" + vulkans_koord[i, 0].ToString());
                int[]      location_vulk = inProg(vulkans_koord[i, 1], vulkans_koord[i, 0]);
                one_vulkan vul           = new one_vulkan(vulkans_name[i], location_vulk[0], location_vulk[1]);
                vulkan_markers[i] = vul;
                this.panel1.Controls.Add(vulkan_markers[i]);
                vul.Location = vulkan_markers[i].locat;
            }
            V_CHB = new Vulk_chackbox(vulkan_markers, vulkans_name, col_vulk);
            P_CHB = new priznak_checkbox(0, true);
            this.panel2.Controls.Add(V_CHB);
        }
示例#2
0
        public raspozn_job()
        {
            InitializeComponent();
            Vulkaniums newdata = new Vulkaniums();

            string[] vulk_name = newdata.vulkans_name(1);
            comboBox1.Items.AddRange(vulk_name);
            this.comboBox1.SelectedIndex = 0;
            this.comboBox2.SelectedIndex = 0;
            this.panel1.Controls.Add(table_v);
            this.Height = 550;
        }
示例#3
0
        public Database()
        {
            InitializeComponent();

            this.Height = 615;

            Vulkaniums newdata = new Vulkaniums();

            string[] vulk_name = newdata.vulkans_name(1);
            comboBox1.Items.AddRange(vulk_name);
            this.comboBox1.SelectedIndex = 0;
        }
示例#4
0
        public vulkans_table()
        {
            InitializeComponent();
            Vulkaniums newdata = new Vulkaniums();

            string[] vulk_name = newdata.vulkans_name(1);

            for (int i = 0; i < newdata.col_vulkans; i++)
            {
                dataGridView1.RowCount++;
                dataGridView1.Rows[i].Cells[0].Value = i + 1;
                dataGridView1.Rows[i].Cells[1].Value = vulk_name[i];
            }
        }