示例#1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     ILog log = LogManager.GetLogger(typeof(App));
     try
     {
         CultureInfo ci = new CultureInfo(Thread.CurrentThread.CurrentCulture.Name);
         ci.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
         Thread.CurrentThread.CurrentCulture = ci;
         MainWindow mainWindow = new MainWindow();
         mainWindow.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Network not connected!");
         log.ErrorFormat("Application Start up Error  {0}", ex);
     }
 }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Main_Window = ((FlexInterfaceManager.MainWindow)(target));
     return;
     case 2:
     this.LoadingAdorner = ((AdornedControl.AdornedControl)(target));
     return;
     case 3:
     this.gridMain = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.lbCustomer = ((System.Windows.Controls.TreeView)(target));
     return;
     case 5:
     this.spFund = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 6:
     this.cbSelectFundType = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.gbFund = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 8:
     this.spFundByRange = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 9:
     this.cbFundFrom = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.cbFundTo = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 11:
     this.gridFund = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.cbFundAll = ((System.Windows.Controls.CheckBox)(target));
     
     #line 86 "..\..\..\MainWindow.xaml"
     this.cbFundAll.Checked += new System.Windows.RoutedEventHandler(this.cbFundAll_Checked);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\MainWindow.xaml"
     this.cbFundAll.Unchecked += new System.Windows.RoutedEventHandler(this.cbFundAll_Unchecked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.dpFromTradeDay = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 14:
     this.dpToTradeDay = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 15:
     this.cbDepositType = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 16:
     this.QueryFundBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 17:
     this.gbUser = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 18:
     this.DepositSearchBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 19:
     this.statusTxt = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 20:
     this.popupProgressMessage = ((FlexInterfaceManager.Model.NonTopmostPopup)(target));
     return;
     case 21:
     this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 22:
     this.textBlockProgressMessage = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.PopupLogin = ((FlexInterfaceManager.Model.NonTopmostPopup)(target));
     return;
     case 24:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.tbLoginName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 26:
     this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.pwb = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 28:
     this.button1 = ((System.Windows.Controls.Button)(target));
     return;
     case 29:
     this.button2 = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }