Ejemplo n.º 1
0
		public QueryWindow()
		{
			InitializeComponent();
			Double width  = SystemParameters.FullPrimaryScreenWidth;
            Double height = SystemParameters.FullPrimaryScreenHeight;
			this.Top = (height - this.Height) / 2+50;
            this.Left = (width - this.Width) / 2+50;
			ds = writereadExcel.ReadFromFile(); 
			dgQuerySearchResult.HorizontalContentAlignment = HorizontalAlignment.Left;
			positions[0] = txt_CostQuery; positions[1] = txt_BalanceQuery; positions[2]= txtTelephone ;
			conditions[0] = cmb_ConditionCost; conditions[1]= cmb_ConditionBalance/*, cmb_ConditionTimeDelivery*/;
			//MainWindow.dataSet.Tables[0];
		}
Ejemplo n.º 2
0
		private void BtnConnectShowData_Click(object sender, RoutedEventArgs e)
		{
			dataGrid_ItemsDataSet.Visibility = Visibility.Visible;
			dataGrid_Time_Delivery_Left.Visibility = Visibility.Hidden;
			dataSet = writereadExcel.ReadFromFile(); 
			dataGrid_ItemsDataSet.ItemsSource = dataSet.Tables[0].DefaultView;
			ColumnsProperty(dataSet.Tables[0]);
			btnNewItem.Visibility = Visibility.Visible; btnQueryWindow.Visibility = Visibility.Visible; btnRemoveItem.Visibility = Visibility.Visible;
			btnSaveChange.Visibility = Visibility.Visible;
			btnTimeDeliveryLeft.Visibility = Visibility.Visible; txt_TimeDeliveryLeft.Visibility = Visibility.Visible;
			btn_ChoiseByID.Visibility = Visibility.Visible; txt_ChoiseByID.Visibility = Visibility.Visible;
			btn_ShowBalance.Visibility = Visibility.Visible;
		}