private void bbiNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         MenuOrderWiz frm = new MenuOrderWiz(-1);
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
             return;
         LoadData();
         NU.LogMessage("New Menu Order Added ...", this, Utilities.Types.MessageType.Success, Utilities.Types.MessagePopupType.Alert);
     }
     catch (Exception ex)
     {
         NU.LogMessage(ex.Message, this, Utilities.Types.MessageType.Error, Utilities.Types.MessagePopupType.Message, ex);
     }
 }
        private void repositoryItemButtonEditEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                XPDataTableObject row = gridViewMain.GetRow(gridViewMain.FocusedRowHandle) as XPDataTableObject;
                int ID = (int)row.GetMemberValue("MenuOrderId");

                MenuOrderWiz frm = new MenuOrderWiz(ID);
                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
                    return;
                LoadData();
                NU.LogMessage("Menu Order Changed ...", this, Utilities.Types.MessageType.Success, Utilities.Types.MessagePopupType.Alert);
            }
            catch (Exception ex)
            {
                NU.LogMessage(ex.Message, this, Utilities.Types.MessageType.Error, Utilities.Types.MessagePopupType.Message, ex);
            }
        }