Пример #1
0
        public static string LoadStation(string stationFilepath)
        {
            Station station = Station.Load(stationFilepath, false);

            if (station != null)
            {
                Project.ActiveProject = station;
                GraphicControl gc = new GraphicControl();
                gc.RootObject = station;
                DocumentWindow docwindow = new DocumentWindow();
                docwindow.Control = gc;
                docwindow.Caption = System.IO.Path.GetFileName("View");
                UIEnvironment.Windows.Add(docwindow);
                string test = ABB.Robotics.RobotStudio.Controllers.ControllerType.StationVC.ToString();

                Logger.AddMessage(new LogMessage(test, "MyKey"));
            }

            RsTask           task         = station.ActiveTask;
            RsIrc5Controller rscontroller = (RsIrc5Controller)task.Parent;

            return("Loading station: " + stationFilepath);
        }
Пример #2
0
 /// <summary>Finishing the progress bar and refreshing the graphic control after reading WAV file is completed.</summary>
 /// <param name="sender">The control that the action is for</param>
 /// <param name="e">The arguments of the event</param>
 /// <returns></returns>
 void bgw_WorkCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     ProgressBar.Value = MAX_PROGRESS;
     GraphicControl.Refresh();
 }