Example #1
0
        private void Analysis_btn_Click(object sender, EventArgs e)
        {
            panel_analysis.Location = new Point(0, panel_main_tapbar.Location.Y + panel_main_tapbar.Height);
            panel_analysis.Size = new Size(this.Width, this.Height - panel_main_tapbar.Height - panel_main_top.Height);

            panel_analysis.Visible = true;
            panel_content.Visible = false;
            //flowLayoutPanel_home.Visible = false;
            panel_scenario.Visible = false;
            btnAddImages.Visible = false;
            btn_update.Visible = false;

            Dots_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_dot));
            Partition_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_part_off));
            Graph_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_graph_off));
            Route_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_route_off));
            Survey_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_survey_off));

            Analysis_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._01_analysis_on));

            Scenario_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._01_scenario_off));
            Content_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._01_contents_off));

            string front = panel_analysis.Controls[0].Name;

            //원래 열려있던 창 다시 열기
            //현재 해당 창이 다시 열리긴 하는데 초기화 되어버려서 보던 자료가 뜨지 않음.
            if (front.CompareTo("Dots") == 0 || front.CompareTo("Partition") == 0 ||
                front.CompareTo("Route") == 0 || front.CompareTo("Survey") == 0)
            {
                panel_analysis.Controls[0].Show();
            }   
            else
            {
                Dots dots = new Dots(total_data, pData.GetProjectName(), sData);
                dots.TopLevel = false;
                dots.AutoScroll = true;
                this.panel_analysis_forms.Controls.Add(dots);
                dots.FormBorderStyle = FormBorderStyle.None;
                dots.Dock = DockStyle.Fill;
                dots.Location = new Point(0, 0);
                dots.Show();
                dots.BringToFront();
            }
        }
Example #2
0
        private void Dots_btn_Click(object sender, EventArgs e)
        {
            Dots dots = new Dots(total_data, pData.GetProjectName(), sData);
            dots.TopLevel = false;
            dots.AutoScroll = true;
            this.panel_analysis_forms.Controls.Add(dots);
            dots.FormBorderStyle = FormBorderStyle.None;
            dots.Location = new Point(0, 0);
            dots.Dock = DockStyle.Fill;
            dots.Show();
            dots.BringToFront();

            //버튼 이미지 변경
            Dots_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_dot));
            Partition_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_part_off));
            Graph_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_graph_off));
            Route_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_route_off));
            Survey_btn.BackgroundImage = ((System.Drawing.Image)(Properties.Resources._8_1_survey_off));
        }