示例#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 tileCari_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            frmCari cariForm = new frmCari();

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