示例#1
0
        /// <summary>
        /// Shows the current form with the specified topology.
        /// </summary>
        /// <param name="owner">The window owner.</param>
        /// <param name="topology">The topology.</param>
        public void Show(IWin32Window owner, Topology topology)
        {
            this.Text = string.Format("AS Topology {0}", topology.Date.ToLongDateString());
            this.labelDate.Text = topology.Date.ToLongDateString();
            this.textBox.Text = "Reading the topology from file...";

            // Show the form.
            this.Show();

            // Get the topology contents on a worker thread.
            ThreadPool.QueueUserWorkItem(this.ReadAsync, topology);
        }
示例#2
0
 /// <summary>
 /// Creates a new topology arguments instance.
 /// </summary>
 /// <param name="date">The date.</param>
 /// <param name="topology">The topology.</param>
 public TopologyEventArgs(DateTime date, Topology topology)
 {
     this.date = date;
     this.topology = topology;
 }