private void DropDownColumnBody(GridMemoBox box) { try { //DataRowView record = GetCurrentGridRow(); object record = GetCurrentRowObject(); if (record == null) { return; } //string key = Types.NZ(record.Row[0], null); //if (key == null) //{ // return; //} //object val= Types.NZ(record.Row[1], null); //if (val == null) //{ // return; //} Type type = record.GetType(); if (type == typeof(PersistItem)) { PersistItem pi = (PersistItem)record; if (pi.body.GetType() == typeof(byte[])) { var item = BinarySerializer.Deserialize <IQueueItem>((byte[])pi.body); box.Text = item.ToJson(); } else if (pi.body.GetType() == typeof(IQueueItem)) { box.Text = ((IQueueItem)pi.body).ToJson(); } } else if (type == typeof(IQueueItem)) { box.Text = ((IQueueItem)record).ToJson(); } } catch (Exception ex) { MsgBox.ShowError(ex.Message, "Cache Management"); } }
private void DropDownColumnUp(GridMemoBox box) { }