public static void Show(FrameworkElement Owner, List <RobotOnlineInfo> robotList, List <Tool.P2PConfig.TransFilesInfo> fileList, WorkMode mode, string toDir) { SelectAGVWin wid = new SelectAGVWin(Owner, robotList, fileList, mode, toDir); wid.ShowDialog(); return; }
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; }
public static void Show(this FrameworkElement Owner, List <RobotOnlineInfo> robotList, List <Tool.P2PConfig.TransFilesInfo> fileList, WorkMode mode, string toDir) { SelectAGVWin.Show(Owner, robotList, fileList, mode, toDir); }