コード例 #1
0
        private void tsmiNewAppartment_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            fmApartment form = new fmApartment();

            if (form.ShowDialog() == DialogResult.OK)
            {
                tbgApartments.Items.Insert(tbgApartments.Items.Count - 1, GetApartmentItem(new TileBarItem(), form.ApartmentId));
            }
        }
コード例 #2
0
 private void tsmiEdit_Click(object sender, EventArgs e)
 {
     if (this.ApartmentId > 0)
     {
         fmApartment form = new fmApartment(this.ApartmentId);
         if (form.ShowDialog() == DialogResult.OK)
         {
             GetApartmentItem(tbgApartments.Items[currentItemName] as TileBarItem, form.ApartmentId);
         }
     }
 }