Exemple #1
0
        private void groupBox3_Enter_1(object sender, EventArgs e)
        {
            grapic          = new GrapicWindowForm(DefaultGraphSettings.GetSettings("Accelerometer"));
            grapic.TopLevel = false;
            groupBox3.Controls.Add(grapic);
            grapic.FormBorderStyle = FormBorderStyle.None;
            grapic.Dock            = DockStyle.Fill;

            grapic.Show();
        }
Exemple #2
0
        public void OpenGraph(string name)
        {
            if (DefaultGraphSettings.GetSettings(name) == null)
            {
                return;
            }

            GrapicWindowForm graph = new GrapicWindowForm(DefaultGraphSettings.GetSettings(name));

            Active_GraphWindows.Add(name, graph);

            Active_GraphWindows[name].FormClosed += Graph_FormClosed;
            Active_GraphWindows[name].Show();
        }
Exemple #3
0
        public void OpenGraph(string name)
        {
            if (DefaultGraphSettings.GetSettings(name) == null)
            {
                return;
            }

            GrapicWindowForm graph = new GrapicWindowForm(DefaultGraphSettings.GetSettings(name)); //生成窗体结构

            Active_GraphWindows.Add(name, graph);                                                  //添加数据

            graph.TopLevel = false;
            groupBox3.Controls.Add(graph);
            graph.FormBorderStyle = FormBorderStyle.None;
            graph.Dock            = DockStyle.Fill;
            graph.Show();
        }
Exemple #4
0
        public void OpenGraph(string name)
        {
            if (DefaultGraphSettings.GetSettings(name) == null)
            {
                return;
            }

            GrapicWindowForm graph = new GrapicWindowForm(DefaultGraphSettings.GetSettings(name));

            Active_GraphWindows.Add(name, graph);

            //Active_GraphWindows[name].FormClosed += Graph_FormClosed;
            //  Active_GraphWindows[name].Show();
            //grapic = new GrapicWindowForm(DefaultGraphSettings.GetSettings("Accelerometer"));
            graph.TopLevel = false;
            groupBox3.Controls.Add(graph);

            graph.FormBorderStyle = FormBorderStyle.None;
            graph.Dock            = DockStyle.Fill;
            graph.Show();
        }
Exemple #5
0
        private void Graph_FormClosed(object sender, FormClosedEventArgs e)
        {
            GrapicWindowForm graph = sender as GrapicWindowForm;

            Active_GraphWindows.Remove(graph.ID);
        }