private void Add(object sender, EventArgs e)
        {
            imagePreview.Visible = false;
            frmPlace FrmPlace = new frmPlace(this);

            FrmPlace.Show();
        }
Exemple #2
0
        private void AddPlace(object sender, EventArgs e)
        {
            frmPlace Item = new frmPlace(this);

            Item.FormClosed += Company_FormClosed;
            Item.Show(this);
        }
Exemple #3
0
        private void nowyToolStripMenuItem4_Click(object sender, EventArgs e)
        {
            if (!RuntimeSettings.CurrentUser.IsAuthorized())
            {
                return;
            }
            frmPlace FrmPlace = new frmPlace(this);

            FrmPlace.Show(this);
        }
        private void View(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(dgItems.Rows[dgItems.CurrentCell.RowIndex].Cells[0].Value);

            Place Place = new Place();

            Place = Keeper.Items.Where(u => u.PlaceId == id).FirstOrDefault();
            frmPlace FrmPlace = new frmPlace(Place, this);

            FrmPlace.Show();
        }
Exemple #5
0
        private void EditPlace(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(cmbPlace.GetSelectedValue <Place>());

            Place item = new Place();

            item = Places.Items.Where(u => u.PlaceId == id).FirstOrDefault();
            frmPlace ItemForm = new frmPlace(item, this);

            ItemForm.FormClosed += Company_FormClosed;
            ItemForm.Show();
        }