Exemplo n.º 1
0
        private void CmdAreaAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ModuleEditorView form = new ModuleEditorView();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                this.ListObjects();
            }
        }
Exemplo n.º 2
0
        private void EditObject()
        {
            if (grdAreasView.SelectedRowsCount <= 0)
            {
                MessageBox.Show("No layout area has been selected from list.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            try
            {
                int[]  selRows = grdAreasView.GetSelectedRows();
                Module section = grdAreasView.GetRow(selRows[0]) as Module;

                ModuleEditorView form = new ModuleEditorView(section);
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    this.ListObjects();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }