コード例 #1
0
        public EditModificationFrm(ProductModificationList modFrm, Modification mod)
        {
            InitializeComponent();
            this.modFrm = modFrm;
            this.mod    = mod;

            this.lblProduct.Text    = mod.Product.Name;
            this.txtAmount.Text     = mod.Amount.ToString();
            this.txtComment.Text    = mod.Comment;
            this.txtUse.Text        = mod.Use;
            this.lblOldModUser.Text = mod.User;
            this.lblNewModUser.Text = Core.Helper.getActualUser();
            this.lblModTime.Text    = mod.Timestamp.ToString("dd.MM.yyyy H:mm:ss");
        }
コード例 #2
0
ファイル: Start.cs プロジェクト: Marbel/JAM_Inventar
        private void showActionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                Product prod = Sess.Get <Product>(this.listViewProducts.SelectedItems[0].Tag);

                ProductModificationList prodModFrm = new ProductModificationList(this, prod);
                prodModFrm.ShowDialog(this);
            }
            catch (Exception)
            {
                MessageBox.Show("There was an Error while loading the Product.");
            }
        }