예제 #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();
                }
			}
		}
예제 #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;
		}