Example #1
0
        public static RobotOnlineInfoCollect GetInstance()
        {
            if (dataCollect == null)
            {
                dataCollect = new RobotOnlineInfoCollect();
            }

            return(dataCollect);
        }
Example #2
0
        public SelectAGVWin(FrameworkElement Owner, List <RobotOnlineInfo> robotList, List <Tool.P2PConfig.TransFilesInfo> fileList, WorkMode mode, string toDir)
        {
            InitializeComponent();
            This      = this;
            dcContent = RobotOnlineInfoCollect.GetInstance();
            ObservableCollection <RobotOnlineInfo> infocollection = new ObservableCollection <RobotOnlineInfo>(robotList);

            dcContent.Collection        = infocollection;
            RobotOnlineList.DataContext = dcContent;
            RobotOnlineList.ItemsSource = dcContent.Collection.ToList();

            FileList = fileList;
            Mode     = mode;
            ToDir    = toDir;

            this.Owner = Tool.MainWindow.This;
            Left       = 0;
            Top        = 0;
            Width      = Tool.MainWindow.This.Width;
            Height     = Tool.MainWindow.This.Height;
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;
        }