예제 #1
0
        public GraphForm(Hub h)
        {
            InitializeComponent();
            hub = h;
            max_value_num = 50;
            dot_size = 4;
            lei = new List<EventInfo>();

            foreach (int eid in hub.EventNums())
            {
                if (eid == 0)
                    continue;

                lei.Add(hub.GetEventInfo(eid));
            }

            foreach (EventInfo ei in lei)
            {
                comboBox1.Items.Add(new NumberedString(ei.name, ei.eid));
            }
            comboBox1.SelectedIndex = 0;

            this.GraphBox.Paint += new System.Windows.Forms.PaintEventHandler(this.GraphBox_Paint);

            timer = new Timer();
            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval = 500; // in miliseconds
            timer.Start();
        }
예제 #2
0
        public ModifyRisk(Hub hh)
        {
            InitializeComponent();

            h = hh;

            foreach (int eid in h.EventNums())
            {
                if (eid == 0)
                    continue;

                EventInfo ei = h.GetEventInfo(eid);
                comboBox1.Items.Add(new NumberedString(ei.name, ei.eid));
            }

            comboBox1.SelectedIndex = 0;
        }
예제 #3
0
        public SolveEventForm(Hub h)
        {
            Hub = h;

            InitializeComponent();

            lei = new List<EventInfo>();

            foreach (int eid in Hub.EventNums())
            {
                if (eid == 0)
                    continue;

                lei.Add(Hub.GetEventInfo(eid));
            }

            foreach(EventInfo ei in lei)
            {
                comboBox1.Items.Add(new NumberedString(ei.name, ei.eid));
            }
            comboBox1.SelectedIndex = 0;
        }