Exemplo n.º 1
0
        //
        //详细信息
        //
        private void btn_Consumable_Info_Click(object sender, RoutedEventArgs e)
        {
            frm_Consumable f = new frm_Consumable();

            f.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            f.Show();
        }
Exemplo n.º 2
0
        //
        //双击弹出物料详细信息
        //
        private void dgv_ConsumableInfoList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            try
            {
                if (dgv_ConsumableInfoList.SelectedItem != null)
                {
                    Maticsoft.Model.ConsumableInfo _consum = (Maticsoft.Model.ConsumableInfo)dgv_ConsumableInfoList.SelectedItem;

                    frm_Consumable f = new frm_Consumable(_consum);
                    f.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                    f.Show();
                }
            }
            catch { }
        }