private void mmf_DoubleClick(object sender, MouseButtonEventArgs e) { TimeSpan span; if (sender == lastClickItem) { DateTime now = DateTime.Now; span = now - lastClicked; if (span.Milliseconds < 300) { var child = new ChildWindow(); child.Show(); child.Closed += delegate { }; } else { lastClickItem = null; } } lastClicked = DateTime.Now; lastClickItem = sender; }
public LinkResponsePersonModel(ChildWindow aChildWindow , ProductDomainContext aProductDomainContext , Dictionary<int, DepartmentEntity> aDepartmentEntityDictionary , Dictionary<String, UserEntity> aUserEntityDictionary) { ProductDomainContext = aProductDomainContext; childWidow = aChildWindow; DepartmentEntityDictionary = aDepartmentEntityDictionary; UserEntityDictionary = aUserEntityDictionary; ProjectEntityList = new ObservableCollection<ProjectEntity>(); ProjectLinkEntityList = new ObservableCollection<ProjectEntity>(); ProjectResponsibleEntityList = new ObservableCollection<ProjectResponsibleEntity>(); ProjectResponsibleEntityALLList = new ObservableCollection<ProjectResponsibleEntity>(); OnReflash = new DelegateCommand(OnReflashCommand); OnAddToProject = new DelegateCommand(OnAddToProjectCommand); OnRemoveProject = new DelegateCommand(OnRemoveProjectCommand); OnOk = new DelegateCommand(OnOkCommand); OnCancel = new DelegateCommand(OnCancelCommand); projectSource = new EntityList<ProductManager.Web.Model.project>(ProductDomainContext.projects); projectLoader = new DomainCollectionViewLoader<ProductManager.Web.Model.project>( LoadProjectEntities, LoadOperationProjectCompleted ); projectView = new DomainCollectionView<ProductManager.Web.Model.project>(projectLoader, projectSource); projectResponsibSource = new EntityList<ProductManager.Web.Model.project_responsible>(ProductDomainContext.project_responsibles); projectResponsibLoader = new DomainCollectionViewLoader<ProductManager.Web.Model.project_responsible>( LoadProjectResponseEntities, LoadOperationProjectResponseCompleted ); projectResponsibleView = new DomainCollectionView<ProductManager.Web.Model.project_responsible>(projectResponsibLoader, projectResponsibSource); }
private void addOrder_Click_1(object sender, RoutedEventArgs e) { try { ChildWindow addWin = new ChildWindow(); AddOrdreUC addOrdUC = new AddOrdreUC(); addOrdUC.ParentWin = addWin; addWin.forUC.Children.Add(addOrdUC); addWin.SizeToContent = SizeToContent.WidthAndHeight; addWin.Title = "Add Order"; bool? dialogRes = addWin.ShowDialog(); if (dialogRes.HasValue && dialogRes.Value) { if (orderManager.AddOrder(addOrdUC.CustomerId, addOrdUC.Time, addOrdUC.Cost, addOrdUC.Status, addOrdUC.OrderType)) { MessageBox.Show("Sucsses"); orderCatalogViewModel.ResetCatalog(); this.dgCatalogUC.DataContext = orderCatalogViewModel.Catalog; } } } catch(Exception ex) { MessageBox.Show(ex.Message); } }
public FileTypeWindowViewModel(ChildWindow aChildWindow, FileTypeEntity aFileTypeEntity) { childWindow = aChildWindow; FileTypeEntity = aFileTypeEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public UserEntityViewModule(ChildWindow aChileWindow, UserEntityViewType aUserEntityViewType, UserEntity aUserEntity, ObservableCollection<DepartmentEntity> aDepartmentEntity) { this.UserEntityVIewType = aUserEntityViewType; this.childWindow = aChileWindow; this.UserEntity = aUserEntity; this.DepartmentList = aDepartmentEntity; if(String.IsNullOrEmpty(aUserEntity.UserName)) { Title = "添加用户"; } else { Title = "修改用户 编号:" + aUserEntity.UserID.ToString(); } OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); OnClose = new DelegateCommand(OnCloseCommand); if (aUserEntityViewType == UserEntityViewType.ADD) { IsAdd = true; } else { IsAdd = false; } CompositionInitializer.SatisfyImports(this); }
/// <summary> /// Displays content in a window /// </summary> /// <param name="windowTitle">Title text shown in window</param> /// <param name="windowContents">Contents of the window</param> /// <param name="isModal">Determines wheter the window is modal or not</param> /// <param name="onClosingHandler">Event handler invoked when window is closing, and can be handled to cancel window closure</param> /// <param name="onClosedHandler">Event handler invoked when window is closed</param> public void ShowWindow(string windowTitle, FrameworkElement windowContents, bool isModal = false, EventHandler<CancelEventArgs> onClosingHandler = null, EventHandler onClosedHandler = null) { if (windowContents == null) throw new ArgumentNullException("windowContents"); int hashCode = windowContents.GetHashCode(); ChildWindow childWindow = null; if (!m_ChildWindows.TryGetValue(hashCode, out childWindow)) { // not existing yet childWindow = new ChildWindow() { Title = windowTitle ?? string.Empty, }; if (onClosedHandler != null) childWindow.Closed += onClosedHandler; if (onClosingHandler != null) childWindow.Closing += onClosingHandler; childWindow.CloseCompleted += new EventHandler(childWindow_CloseCompleted); childWindow.Content = windowContents; m_ChildWindows.Add(hashCode, childWindow); if (!isModal) { windowContents.Loaded += (o, e) => { DialogResizeHelper.CenterAndSizeDialog(windowContents, childWindow); }; DialogResizeHelper.CenterAndSizeDialog(windowContents, childWindow); } } childWindow.ShowDialog(isModal); }
public ProjectWindowViewModel(ChildWindow aChildWindow, ProjectWindowType aProductWindowType, ProjectEntity aProjectEntity) { childWindow = aChildWindow; ProjectEntity = aProjectEntity; if (!String.IsNullOrWhiteSpace(ProjectEntity.ManufactureNumber)) { Title = "生产令号:" + ProjectEntity.ManufactureNumber; } else { Title = "添加"; } projectWindowType = aProductWindowType; if (projectWindowType == ProjectWindowType.Modify) { IsModify = true; IsAdd = false; } else if (projectWindowType == ProjectWindowType.ADD) { IsAdd = true; IsModify = true; } else if (projectWindowType == ProjectWindowType.View) { IsAdd = false; IsModify = false; } OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public ProductPartTypeWindowViewModel(ChildWindow aChildWindow, ProductPartTypeEntity aProductPartTypeEntity) { childWindow = aChildWindow; ProductPartTypeEntity = aProductPartTypeEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public ModifyPasswordWindowViewModel(ChildWindow aChileWindow) { this.ChildWindow = aChileWindow; ModifyPasswordEntity = new ModifyPasswordEntity(); OnModifyPassword = new DelegateCommand(OnModifyPasswordCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public DepartmentWindowViewModel(ChildWindow aChildWindow, DepartmentEntity aDepartmentEntity) { childWindow = aChildWindow; DepartmentEntity = aDepartmentEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public QuestionTraceWindowViewModel(ChildWindow aChildWindow, QuestionTraceOperation aQuestionTraceOperation, ObservableCollection<UserEntity> aUserEntityList, ObservableCollection<DepartmentEntity> aDepartmentEntityList, QuestionTraceEntity aQuestionTraceEntity ) { childWindow = aChildWindow; QuestionTraceOperation = aQuestionTraceOperation; DepartmentEntityList = aDepartmentEntityList; UserEntityList = aUserEntityList; QuestionTraceEntity = aQuestionTraceEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); if (aQuestionTraceOperation == QuestionTraceOperation.ADD) { IsAdd = true; IsAnswer = false; Title = "添加问题 " + QuestionTraceEntity.ManufactureNumber; } else if (aQuestionTraceOperation == QuestionTraceOperation.ANSWER) { IsAdd = false; IsAnswer = true; Title = "回答问题 " + QuestionTraceEntity.ManufactureNumber; } else if (aQuestionTraceOperation == QuestionTraceOperation.VIEW) { IsAdd = false; IsAnswer = false; Title = "查看问题 " + QuestionTraceEntity.ManufactureNumber; } else if (aQuestionTraceOperation == QuestionTraceOperation.CLOSE) { IsAdd = false; IsAnswer = false; Title = "关闭问题 " + QuestionTraceEntity.ManufactureNumber; } }
public LinkFileViewModel(ChildWindow aChildWindow, Dictionary<int, FileTypeEntity> aFileTypeDictionary) { documentManagerContext = new Web.DocumentManagerDomainContext(); childWindow = aChildWindow; SelectTaxPayerDocumentEntitis = new ObservableCollection<TaxPayerDocumentEntity>(); TaxPayerEntityList = new ObservableCollection<TaxPayerEntity>(); TaxPayerEntityLinkList = new ObservableCollection<TaxPayerEntity>(); TaxPayerDocumentEntityList = new ObservableCollection<TaxPayerDocumentEntity>(); FileTypeEntityDictionary = aFileTypeDictionary; GroupID = 1; OnOK = new DelegateCommand(OnOKCommand, CanOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); OnReflash = new DelegateCommand(OnReflashCommand); OnAddToTaxPayer = new DelegateCommand(OnAddToTaxPayerCommand); OnRemoveTaxPayer = new DelegateCommand(OnRemoveTaxPayerCommand); taxPayerSource = new EntityList<DocumentManager.Web.Model.taxpayer>(documentManagerContext.taxpayers); taxPayerLoader = new DomainCollectionViewLoader<DocumentManager.Web.Model.taxpayer>( LoadTaxPayerEntities, LoadOperationTaxPayerCompleted ); taxPayerView = new DomainCollectionView<DocumentManager.Web.Model.taxpayer>(taxPayerLoader, taxPayerSource); taxPayerDocumentSource = new EntityList<DocumentManager.Web.Model.taxpayerdocument>(documentManagerContext.taxpayerdocuments); taxPayerDocumentLoader = new DomainCollectionViewLoader<DocumentManager.Web.Model.taxpayerdocument>( LoadTaxPayerDocumentEntities, LoadOperationTaxPayerDocumentCompleted ); taxPayerDocumentView = new DomainCollectionView<DocumentManager.Web.Model.taxpayerdocument>(taxPayerDocumentLoader, taxPayerDocumentSource); }
public ImportProductWindowViewModel(ChildWindow aChildWindow , ProductDomainContext aProductDomainContext , Dictionary<String, ProjectEntity> aProjectEntityDictionary , Dictionary<String, ProductEntity> aProductEntityDictionary , Dictionary<int, ProductTypeEntity> aProductTypeEntityDictionary) { childWindow = aChildWindow; ProductContext = aProductDomainContext; ProductEntityList = new ObservableCollection<ProductEntity>(); ProjectEntityDictionary = aProjectEntityDictionary; ProductEntityDictionary = aProductEntityDictionary; ProductTypeEntityDictionary = aProductTypeEntityDictionary; CurrentProductEntityDicationary = new Dictionary<string, ProductEntity>(); OnImport = new DelegateCommand(OnImportCommand); OnDownloadTemp = new DelegateCommand(OnDownloadTempCommand); OnCancel = new DelegateCommand(OnCancelCommand); OnOK = new DelegateCommand(OnOKCommand); ProductTypeIDDictionary = new Dictionary<string, int>(); foreach (KeyValuePair<int, ProductTypeEntity> keyValuePairProductType in ProductTypeEntityDictionary) { ProductTypeIDDictionary.Add(keyValuePairProductType.Value.ProductTypeName, keyValuePairProductType.Value.ProductTypeID); } }
public UpdateFileWindowViewModel(ChildWindow aChildWindow, ObservableCollection<FileTypeEntity> aFileTypeEntityList, ObservableCollection<ProjectFilesEntity> aProjectFilesEntityList, ProjectFilesEntity aProjectFileEntity) { UserFile = new FileUploader.UserFile(); ProjectFilesEntity = aProjectFileEntity; ProjectFilesEntityList = aProjectFilesEntityList; FileTypeEntityList = aFileTypeEntityList; childWindow = aChildWindow; FileTypes = new List<String>(); App app = Application.Current as App; bool lIsPermis; if (app.UserInfo.UserAction.TryGetValue(2020100, out lIsPermis)) { if (lIsPermis) { FileTypes.Add("合同协议文件"); ProjectFilesEntity.fileType = "合同协议文件"; } } if (app.UserInfo.UserAction.TryGetValue(2020200, out lIsPermis)) { if (lIsPermis) { FileTypes.Add("配置文件"); ProjectFilesEntity.fileType = "配置文件"; } } Title = "上传文件 生产令号:" + ProjectFilesEntity.ManufactureNumber; OnOpenFile = new DelegateCommand(OnOpenFileCommand); OnUpdate = new DelegateCommand(OnUpdateCommand, CanUpdateCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
/// <summary> /// Shows a control in a window. /// </summary> /// <param name="control">Control to show in a window.</param> public static void ShowControlInWindow(UIElement control) { #if SILVERLIGHT // Create window ChildWindow window = new ChildWindow(); // Set as window content window.Content = control; #else // Create window Window window = new Window(); // Create a stack panel StackPanel stackPanel = new StackPanel(); stackPanel.Children.Add(control); // Set as window content window.Content = stackPanel; #endif // Set title window.Title = "Test window"; // Show window window.Show(); }
/// <summary> /// Show popup window whichs is special, non default message /// </summary> /// <param name="childWindow"></param> public static void Show(ChildWindow childWindow) { if (childWindow != null) { _instance = childWindow; _instance.Show(); } }
public DeleteProjectWindowViewModel(ChildWindow aChildWindow, ProjectEntity aProjectEntity) { childWindow = aChildWindow; ProjectEntity = aProjectEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); Title = "删除生产项目:" + aProjectEntity.ProjectName; }
public static void Add(ChildWindow childWindow) { if (!ChildWindowManager._ChildWindows.Contains(childWindow)) { ChildWindowManager._ChildWindows.Add(childWindow); childWindow.Closed += new EventHandler(HandleChildWindowClosedEvent); } }
public SetContractNumberWindowViewModel(ChildWindow aChileWindow, ProjectEntity aProjectEntity) { childWindow = aChileWindow; ProjectEntity = aProjectEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
/// <summary> /// Show popup window whichs is special, has special message /// </summary> /// <param name="childWindow"></param> /// <param name="message"></param> public static void Show(ChildWindow childWindow, MessageItem message) { if (childWindow != null) { _instance = childWindow; _instance.Show(); Messenger.Default.Send<MessageItem>(message); } }
public DeleteImportantPartRejisterWindowViewModel(ChildWindow aChildWindow, ImportantPartRejesterEntity aImportantPartRejesterEntity) { childWindow = aChildWindow; ImportantPartRejesterEntity = aImportantPartRejesterEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); Title = "删除:" + aImportantPartRejesterEntity.ImportantPartName; }
public ImportantPartWindowViewModel(ChildWindow aChildWndow, ImportantPartWindowState aImportantPartWindowState, ImportantPartEntity aImportantPartEntity) { childWindow = aChildWndow; WindowState = aImportantPartWindowState; ImportantPartEntity = aImportantPartEntity; Title = "生产令号:" + aImportantPartEntity.ManufactureNumber; OnOk = new DelegateCommand(OnOkCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public DeleteFileViewWindowViewModel(ChildWindow aChildWindow, ProjectFilesEntity aProjectFileEntity) { childWindow = aChildWindow; ProjectFileEntity = aProjectFileEntity; Title = "已删除文件:" + ProjectFileEntity.FileName; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public ModifyFileWindowViewModel(ChildWindow aChildWindow, ObservableCollection<FileTypeEntity> aFileTypeEntityList, ProjectFilesEntity aProjectFileEntity) { childWindow = aChildWindow; FileTypeEntityList = aFileTypeEntityList; ProjectFilesEntity = aProjectFileEntity; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public ProjectResponsibleWindowViewModel(ChildWindow aChileWindow, ObservableCollection<DepartmentEntity> aDepartmentEntity, ProjectResponsibleEntity aProjectResponsibleEntity) { this.childWindow = aChileWindow; this.ProjectResponsibleEntity = aProjectResponsibleEntity; this.DepartmentList = aDepartmentEntity; Title = "生产令号:" + aProjectResponsibleEntity.ManufactureNumber; OnOK = new DelegateCommand(OnOKCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
private void OKButton_Click(object sender, RoutedEventArgs e) { this.Close(); ChildWindow chol = new ChildWindow(); chol.Height = 2400; chol.Width = 2300; //SL_Project_UI.MainPage mp = new SL_Project_UI.MainPage(); //mp.Visibility = Visibility.Collapsed; chol.Show(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SMT.FileUpLoad;component/MessageChildWindow.xaml", System.UriKind.Relative)); this._this = ((System.Windows.Controls.ChildWindow)(this.FindName("_this"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.MessageTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("MessageTextBlock"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ClientApplication;component/Views/Login/LoginRegistrationWindow.xaml", System.UriKind.Relative)); this.childWindow = ((System.Windows.Controls.ChildWindow)(this.FindName("childWindow"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.loginForm = ((ClientApplication.LoginUI.LoginForm)(this.FindName("loginForm"))); this.registrationForm = ((ClientApplication.LoginUI.RegistrationForm)(this.FindName("registrationForm"))); }
public AddMultiDocumentViewModel(ChildWindow aChildWindow , TaxPayerEntity aTaxPayerEntity , ObservableCollection<FileTypeEntity> aFileTypeList) { childWindow = aChildWindow; taxPayerEntity = aTaxPayerEntity; FileTypeEntityList = aFileTypeList; MutiFileUpdateEntityList = new ObservableCollection<MultiFileUpdateEntity>(); OnUpdate = new DelegateCommand(onUpdate, canUpdate); OnClose = new DelegateCommand(onClose); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Microsoft.Practices.Prism.Interactivity;component/InteractionRequest/Notificatio" + "nChildWindow.xaml", System.UriKind.Relative)); this.notificationWindow = ((System.Windows.Controls.ChildWindow)(this.FindName("notificationWindow"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ERP;component/Views/Login/LoginRegistrationWindow.xaml", System.UriKind.Relative)); this.childWindow = ((System.Windows.Controls.ChildWindow)(this.FindName("childWindow"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.loginForm = ((ERP.LoginUI.LoginForm)(this.FindName("loginForm"))); this.registrationForm = ((ERP.LoginUI.RegistrationForm)(this.FindName("registrationForm"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/Demo/ShowDifferentMap.xaml", System.UriKind.Relative)); this.canvas = ((System.Windows.Controls.Grid)(this.FindName("canvas"))); this.iMSMap1 = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMap1"))); this.tileLayer1 = ((ZDIMS.Map.TileLayer)(this.FindName("tileLayer1"))); this.DFwin = ((System.Windows.Controls.ChildWindow)(this.FindName("DFwin"))); this.iMSMap2 = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMap2"))); this.tileLayerWh = ((ZDIMS.Map.TileLayer)(this.FindName("tileLayerWh"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/Demo/MapCatalog.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.iMSMapCatag = ((ZDIMS.Map.IMSMap)(this.FindName("iMSMapCatag"))); this.vectorMapDoc1 = ((ZDIMS.Map.VectorMapDoc)(this.FindName("vectorMapDoc1"))); this.cwin = ((System.Windows.Controls.ChildWindow)(this.FindName("cwin"))); this.iMSCatalog1 = ((ZDIMSDemo.Controls.IMSCatalog)(this.FindName("iMSCatalog1"))); this.img = ((System.Windows.Controls.Canvas)(this.FindName("img"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightPrint;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.ScrollViewer)(this.FindName("LayoutRoot"))); this.me = ((System.Windows.Controls.MediaElement)(this.FindName("me"))); this.BTprintVideo = ((System.Windows.Controls.Button)(this.FindName("BTprintVideo"))); this.tb1 = ((System.Windows.Controls.TextBlock)(this.FindName("tb1"))); this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1"))); this.BTprintImage = ((System.Windows.Controls.Button)(this.FindName("BTprintImage"))); this.grid1 = ((System.Windows.Controls.Grid)(this.FindName("grid1"))); this.textblock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock1"))); this.BTprintText = ((System.Windows.Controls.Button)(this.FindName("BTprintText"))); this.ChildView = ((System.Windows.Controls.ChildWindow)(this.FindName("ChildView"))); this.ziti = ((System.Windows.Controls.TextBlock)(this.FindName("ziti"))); this.zihao = ((System.Windows.Controls.TextBlock)(this.FindName("zihao"))); this.exit = ((System.Windows.Controls.Button)(this.FindName("exit"))); this.print = ((System.Windows.Controls.Button)(this.FindName("print"))); this.view = ((System.Windows.Controls.Button)(this.FindName("view"))); this.canvasprint = ((System.Windows.Controls.Canvas)(this.FindName("canvasprint"))); this.printarea = ((System.Windows.Controls.Grid)(this.FindName("printarea"))); this.rec1 = ((System.Windows.Shapes.Rectangle)(this.FindName("rec1"))); this.rec2 = ((System.Windows.Shapes.Rectangle)(this.FindName("rec2"))); this.rec3 = ((System.Windows.Shapes.Rectangle)(this.FindName("rec3"))); this.rec4 = ((System.Windows.Shapes.Rectangle)(this.FindName("rec4"))); this.combobox2 = ((System.Windows.Controls.ComboBox)(this.FindName("combobox2"))); this.cbb0 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb0"))); this.cbb1 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb1"))); this.cbb2 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb2"))); this.cbb3 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb3"))); this.cbb4 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb4"))); this.cbb5 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb5"))); this.cbb6 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb6"))); this.cbb7 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbb7"))); this.combobox1 = ((System.Windows.Controls.ComboBox)(this.FindName("combobox1"))); this.cbbi0 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi0"))); this.cbbi1 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi1"))); this.cbbi2 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi2"))); this.cbbi3 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi3"))); this.cbbi4 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi4"))); this.cbbi5 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi5"))); this.cbbi6 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi6"))); this.cbbi7 = ((System.Windows.Controls.ComboBoxItem)(this.FindName("cbbi7"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightChildWindow;component/ChildWindow1.xaml", System.UriKind.Relative)); this.childWindow = ((System.Windows.Controls.ChildWindow)(this.FindName("childWindow"))); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton"))); this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton"))); this.textbox1 = ((System.Windows.Controls.TextBox)(this.FindName("textbox1"))); this.pwbox = ((System.Windows.Controls.PasswordBox)(this.FindName("pwbox"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/gAMS_Sacombank;component/Views/Search/AddScreen.xaml", System.UriKind.Relative)); this.childWindow = ((System.Windows.Controls.ChildWindow)(this.FindName("childWindow"))); this.StoryboardNavigateFrame = ((System.Windows.Media.Animation.Storyboard)(this.FindName("StoryboardNavigateFrame"))); this.StoryboardBackClick = ((System.Windows.Media.Animation.Storyboard)(this.FindName("StoryboardBackClick"))); this.buttonclo = ((Microsoft.Expression.Interactivity.Core.ChangePropertyAction)(this.FindName("buttonclo"))); this.buttonclo1 = ((Microsoft.Expression.Interactivity.Core.ChangePropertyAction)(this.FindName("buttonclo1"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.FrameChi = ((System.Windows.Controls.ContentControl)(this.FindName("FrameChi"))); this.lblTitle = ((System.Windows.Controls.Label)(this.FindName("lblTitle"))); this.ButtonClose = ((System.Windows.Controls.Button)(this.FindName("ButtonClose"))); this.hyperlinkButton1 = ((System.Windows.Controls.HyperlinkButton)(this.FindName("hyperlinkButton1"))); this.hyperlinkButton = ((System.Windows.Controls.HyperlinkButton)(this.FindName("hyperlinkButton"))); this.button = ((System.Windows.Controls.Button)(this.FindName("button"))); }
public void InitializeUI() { //This code may not work in Beta 2. Fixed in final release. _screen.FindControl(_dialogName).ControlAvailable += (object sender, ControlAvailableEventArgs e) => { System.Windows.Controls.ChildWindow childWindow = (ChildWindow)e.Control; childWindow.HasCloseButton = false; childWindow.Closed += (object s1, EventArgs e1) => { if (_entity != null) { ((IEditableObject)_entity.Details).CancelEdit(); } }; }; }