internal void DropClickMenuIfActive() { if (clickMenu != null) { if (MainGrid.Children.Contains(clickMenu)) { MainGrid.Children.Remove(clickMenu); } clickMenu = null; } }
public override void ResetModified() { base.Dirty = false; if (_xHolder != null) { IChangeControl icc = _xHolder.Loader as IChangeControl; if (icc != null) { icc.ResetModified(); } } }
private void GenerateChangeControl <T, IIC>(DataGridCellInfo cell) where T : struct, IComparable, IFormattable, IConvertible, IComparable <T>, IEquatable <T> where IIC : IInventoryColumnEnum { var row = cell.InventoryRow(); if (row == null) { return; } var qcc = new ChangeControl <T, IIC>(row); clickMenu = qcc; MainGrid.Children.Add(qcc); }