Esempio n. 1
0
		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();
                }
			}
		}
Esempio n. 2
0
		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;
		}