本文整理汇总了C#中Machine.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Machine.ShowDialog方法的具体用法?C# Machine.ShowDialog怎么用?C# Machine.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Machine
的用法示例。
在下文中一共展示了Machine.ShowDialog方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: lvProductRequested_MouseDoubleClick
private void lvProductRequested_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (lvProductRequested.Items.Count > 0 && lvProductRequested.SelectedItem != null)
{
ItemRequestedProductList selectedProductitem = (ItemRequestedProductList)lvProductRequested.SelectedItem;
ProductsSet selectedProduct = lrequestedproduct.Where(S => S.Id == selectedProductitem.ProductID).ToList()[0];
Machine productdetails = new Machine(selectedProduct);
productdetails._new = false;
productdetails.ShowDialog();
if (!productdetails.Cancel)
{
_dataDC.SaveChanges();
UCProductList.checkNotifications(selectedProduct);
}
}
}
示例2: MenuItem_MouseDown
private void MenuItem_MouseDown(object sender, RoutedEventArgs e)
{
//provmenu.PlacementTarget = this;
//provmenu.IsOpen = true;
ProductsSet p = new ProductsSet();
p.Enbusca = false.ToString();
p.Enventa = true.ToString();
if (ProvedorID != null && ProvedorID != "")
{
p.Proveedor_ID = ProvedorID;
}
Machine productdetails = new Machine(p);
productdetails._new = true;
productdetails.ShowDialog();
if (productdetails._new && !productdetails.Cancel)
{
lp.Add(p);
_dataDC.ProductsSet.AddObject(p);
_dataDC.SaveChanges();
filter();
checkNotifications(p);
}
}
示例3: ListSoldProducts_MouseDoubleClick
private void ListSoldProducts_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
ItemSoldProductList item = (ListSoldProducts.SelectedItem as ItemSoldProductList);
ProductsSet soldProduct = new ObservableProductSold(_dataDC).First(S => S.Id == item.ProductID);
Machine viewProductDetails = new Machine(soldProduct);
viewProductDetails.ViewOnly = true;
viewProductDetails.ShowDialog();
}
示例4: Editar
private void Editar()
{
try
{
if (_IsfilterMode)
{
if (ProductsSetListView.Items.Count > 0 && ProductsSetListView.SelectedItem != null)
{
String file = ProductsSetListView.SelectedItem.ToString();
ProductsSet p = (ProductsSet)ProductsSetListView.SelectedItem;
Machine productdetails = new Machine(p);
productdetails._new = false;
productdetails.ShowDialog();
if (!productdetails.Cancel)
{
_dataDC.SaveChanges();
checkNotifications(p);
}
}
}
}
catch {
}
}