예제 #1
0
        private void GetNotify(object sender, TileItemEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            bool cariContain = e.Item.Text2.Contains("cari");

            if (cariContain)
            {
                var result = db.Features.SingleOrDefault(b => b.name == e.Item.Text2);
                result.company_id = 3;
                frmCari cariForm = new frmCari();
                cariForm.ShowDialog();
            }
            bool stokContain = e.Item.Text2.Contains("stok");

            if (stokContain)
            {
                var result = db.Features.SingleOrDefault(b => b.name == e.Item.Text2);
                result.company_id = 3;

                frmStock stokForm = new frmStock();
                stokForm.ShowDialog();
            }
            db.SaveChanges();
            this.Cursor = Cursors.Default;
        }
예제 #2
0
        private void tileAddItem_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            frmStock formStock = new frmStock();

            formStock.ShowDialog();
            this.Cursor = Cursors.Default;
        }