public UC_SearchKeywordByItem(DevExpress.Xpf.Core.WaitIndicator c) { InitializeComponent(); waitIndicator = c; wsProxy.GetItemKeywordsCompleted += new EventHandler <ServiceReference1.GetItemKeywordsCompletedEventArgs>(wsProxy_GetItemKeywordsCompleted); InitControlAndData(); }
public UC_Index(DevExpress.Xpf.Core.WaitIndicator c) { InitializeComponent(); waitIndicator = c; wsProxy.GetAllCampaignRptOnlineCompleted += new EventHandler <ServiceReference1.GetAllCampaignRptOnlineCompletedEventArgs>(wsProxy_GetAllCampaignRptOnlineCompleted); //Loaded += new RoutedEventHandler(UC_Index_Loaded);//改方法会在切换tab时再次执行,影响效率 InitControlAndData(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightQLThuebao;component/LoginPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.txtusername = ((DevExpress.Xpf.Editors.TextEdit)(this.FindName("txtusername"))); this.txtpassword = ((DevExpress.Xpf.Editors.PasswordBoxEdit)(this.FindName("txtpassword"))); this.Login = ((System.Windows.Controls.TextBlock)(this.FindName("Login"))); this.cmdLogin = ((System.Windows.Controls.Button)(this.FindName("cmdLogin"))); this.prg = ((DevExpress.Xpf.Core.WaitIndicator)(this.FindName("prg"))); }