Exemplo n.º 1
0
        public MainWindow()
        {
            initLanguage();
            InitializeComponent();
            mainWindow          = this;
            KeyPreview          = true;
            this.DoubleBuffered = true;
            canvas      = new WFCanvas(plot);
            graph       = new Graph();
            graphVisual = new GraphVisual(canvas, graph);
            graphAlgo   = new GraphAlgo(graph);
            history     = new List <Dictionary <int, Dictionary <int, double> > >();

            subscribe();
            handleAppState();
            if (Properties.Settings.Default.CreateFileAtStartup)
            {
                newFile();
            }
            evalSubtasks();
            // DEBUG_openFile(@"C:\Users\rp-re\OneDrive\Desktop\сова\tsplib\berlin52.tsp");
        }
Exemplo n.º 2
0
 public WFCanvasContext(WFCanvas _ContextProvider)
 {
     ContextProvider = _ContextProvider;
 }