public void SelectCartTov(int IdCartTov) { System.Windows.Application.Current.Dispatcher.Invoke(new Action(delegate() { ListPriceWin MapTov_Top = ControlWin.LinkMainWindow("ListPriceWin"); Window WinOblako = new MapTov(); if (MainWindow.OnOffInvalid == 1) { MapTov_Top.RowPayment.Height = new GridLength(500, GridUnitType.Pixel); MapTov_Top.StackTake.VerticalAlignment = VerticalAlignment.Bottom; } else { MapTov_Top.RowPayment.Height = new GridLength(2, GridUnitType.Pixel); MapTov_Top.StackTake.VerticalAlignment = VerticalAlignment.Center; } WinOblako.Owner = MapTov_Top; int TopScreen = (Convert.ToUInt16(MainWindow.ScreenHeight) > 1700 && MainWindow.OnOffInvalid == 1) ? Convert.ToUInt16(MainWindow.ScreenHeight) - Convert.ToUInt16(WinOblako.Height) : (Convert.ToUInt16(MainWindow.ScreenHeight) >= 1000) ? 200 : 0; // Convert.ToUInt16(MainWindow.ScreenHeight) - Convert.ToUInt16(WinOblako.Height) WinOblako.Top = MapTov_Top.Top + TopScreen; //WinOblako.Left = ConectoWorkSpace_InW.ScrollViewerd.Width - (WinOblakoVerh_Info.Width * 2); //ConectoWorkSpace_InW.Left + MessageLeft; WinOblako.ShowActivated = false; WinOblako.Show(); })); //MapTov WinTake = new MapTov(); //WinTake.Owner = this; //WinTake.Show(); }
private void Card_Loyal_Click(object sender, RoutedEventArgs e) { ListPriceWin WinPayment = new ListPriceWin(); WinPayment.Owner = this; WinPayment.Show(); }
private void Button_Ni_Click(object sender, MouseButtonEventArgs e) { ListPriceWin WinPayment = new ListPriceWin(); WinPayment.Owner = this; WinPayment.Show(); }
private void Ghage_Oder_Click(object sender, RoutedEventArgs e) { ListPriceWin WinTake = new ListPriceWin(); WinTake.Owner = this; WinTake.Show(); }
private void Card_Loyal_Click(object sender, MouseButtonEventArgs e) { MainWindow.Card_Loyal = 1; ListPriceWin WinPayment = new ListPriceWin(); WinPayment.Owner = this; WinPayment.Show(); }