private void PlanningRoute() { //TDSClient.Forms.frmRouteActivityRouting frm = new Forms.frmRouteActivityRouting(null); //frm.Owner = Application.Current.MainWindow; //frm.Show(); TDSClient.Forms.frmRouteList frm = new Forms.frmRouteList(); frm.Owner = Application.Current.MainWindow; frm.Show(); }
private void cmdRoute_Click(object sender, RoutedEventArgs e) { frmRouteList frm = new frmRouteList(); frm.IsSelectVisible = true; frm.Owner = this; //frm.WindowStartupLocation = WindowStartupLocation.Manual; //frm.Left = 20; //ParentObject.Left; //frm.Top = Application.Current.MainWindow.ActualHeight - frm.Height - 50; //Point pt1 = new Point(); //Point pt = cmdRoute.PointToScreen(pt1); frm.EndDrawPolygonEvent += new NotifyEndDrawPolygonEvent(frmRouteList_EndDrawPolygonEvent); frm.Show(); //string PolygonOwner = String.Empty; //if (optPrivateRoute.IsChecked == true) PolygonOwner = SelectedFormation.Identification; //frmRouteList frm = new frmRouteList(PolygonOwner); //frm.CountryId = SelectedFormation.CountryId; // OperOrder.CountryId; //frm.CountryColorSide = SelectedFormation.CountryColorSide; // OperOrder.ColorSide; //frm.RouteType = enumRouteType.Ground_Route; //frm.RouteNameStartShow = txtRoute.Text; //frm.Owner = this; //frm.WindowStartupLocation = WindowStartupLocation.Manual; //frm.Left = 20; //ParentObject.Left; //frm.Top = Application.Current.MainWindow.ActualHeight - frm.Height - 50; //Point pt1 = new Point(); //Point pt = cmdRoute.PointToScreen(pt1); //frm.EndDrawPolygonEvent += new NotifyEndDrawPolygonEvent(frmRouteList_EndDrawPolygonEvent); //frm.Show(); }