public override void InvokeAction(object sender, EventArgs e) { foreach (Form form in MainWindow.MdiChildren) { GridControlBase grid = GetGrid(form); if (grid != null) { GridModel model = grid.Model; if (model.IsUntitled) { SaveFileAs sfa = new SaveFileAs(); sfa.MainWindow = MainWindow; sfa.InvokeAction(sender, e); } else model.SaveBinary(); } } }
public override void InvokeAction(object sender, EventArgs e) { GridControlBase grid = ActiveGrid; if (grid != null) { GridModel model = grid.Model; if (model.IsUntitled) { SaveFileAs sfa = new SaveFileAs(); sfa.MainWindow = MainWindow; sfa.InvokeAction(sender, e); } else model.SaveBinary(); } grid.Model.EnableGridListControlInComboBox = false; }