public void Set_View()
        {
            try
            {
                rukou  = int.Parse(MainWindow.Point_ini.IniReadValue(Key, "rukou"));
                chukou = int.Parse(MainWindow.Point_ini.IniReadValue(Key, "chukou"));



                tooltoplabel.Width  = 50;
                tooltoplabel.Height = 50;
                tooltoplabel.Margin = new Thickness(0, 0, 0, 0);

                ArrayList all_warn_list = new ArrayList();

                foreach (DataList.Data_Struct data_struct in MainWindow.Real_Data_List)
                {
                    if (data_struct.位置 >= rukou && data_struct.位置 <= chukou)
                    {
                        all_warn_list.Add(data_struct);
                    }
                }
                view.Set_WarnInfo(all_warn_list);
            }
            catch { }
        }
Exemplo n.º 2
0
        void Tick(object sender, EventArgs e)
        {
            // 时钟事件
            try
            {
                rukou  = int.Parse(MainWindow.Point_ini.IniReadValue(Key, "rukou"));
                chukou = int.Parse(MainWindow.Point_ini.IniReadValue(Key, "chukou"));

                ArrayList all_warn_list = new ArrayList();

                foreach (DataList.Data_Struct data_struct in MainWindow.Real_Data_List)
                {
                    if (data_struct.位置 >= rukou && data_struct.位置 <= chukou)
                    {
                        all_warn_list.Add(data_struct);
                    }
                }
                view.Set_WarnInfo(all_warn_list);
            }
            catch { }
        }