コード例 #1
0
        private void menuNewDriver_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var manager = DriverManager.CreateNew();

            using (XF_DriverNewEdit form = new XF_DriverNewEdit(manager))
            {
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                {
                    int index = gridViewDrivers.TopRowIndex;
                    btnSearch_Click(this, EventArgs.Empty);
                    gridViewDrivers.TopRowIndex = index;
                }
            }
        }