Exemple #1
0
        /// <summary>
        /// Starts a <see cref="GraphHostWindow"/> with the specified <paramref name="Graph"/> in a new, Single-Threaded Apartment (STA) thread.
        /// </summary>
        /// <param name="Graph">The graph that should be displayed.</param>
        public static void StartGraphHostWindow(INetworkGraph Graph)
        {
            Thread t = new Thread(RunGraphHostWindow);

            t.SetApartmentState(ApartmentState.STA);
            t.Start(Graph);
        }
 /// <summary>
 /// Starts a <see cref="GraphHostWindow"/> with the specified <paramref name="Graph"/> in a new, Single-Threaded Apartment (STA) thread.
 /// </summary>
 /// <param name="Graph">The graph that should be displayed.</param>
 public static void StartGraphHostWindow(INetworkGraph Graph)
 {
     Thread t = new Thread(RunGraphHostWindow);
     t.SetApartmentState(ApartmentState.STA);
     t.Start(Graph);
 }