Ejemplo n.º 1
0
 public void Save()
 {
     originalView.CopyFrom(view);
     view.Modified = false;
     parent.SaveViews();
     UpdateButtonStatus();
 }
        internal void NewView(ChartView source)
        {
            string name;

            do
            {
                NewProfile dlg = new NewProfile();
                if (dlg.Run() == (int)Gtk.ResponseType.Cancel)
                {
                    return;
                }
                name = dlg.ViewName;
                dlg.Destroy();
            } while (name == string.Empty);

            if (name == null)
            {
                return;
            }

            ChartView v = new ChartView();

            v.CopyFrom(source);
            v.Name = name;
            views.Add(v);
            SaveViews();

            TreeIter it = store.AppendValues(iterViews, name, v);

            treeCounters.Selection.SelectIter(it);
        }
Ejemplo n.º 3
0
        public void SetView(ChartView v)
        {
            originalView = v;
            view         = new ChartView();

            if (v.EditedView != null)
            {
                view = v.EditedView;
            }
            else
            {
                view.CopyFrom(v);
                v.EditedView = view;
            }
            FillSelectedSeries();
            UpdateCharts();
            UpdateButtonStatus();
        }
		internal void NewView (ChartView source)
		{
			string name;
			do {
				NewProfile dlg = new NewProfile ();
				if (dlg.Run () == (int) Gtk.ResponseType.Cancel)
					return;
				name = dlg.ViewName;
				dlg.Destroy ();
			} while (name == string.Empty);
			
			if (name == null)
				return;
			
			ChartView v = new ChartView ();
			v.CopyFrom (source);
			v.Name = name;
			views.Add (v);
			SaveViews ();
			
			TreeIter it = store.AppendValues (iterViews, name, v);
			treeCounters.Selection.SelectIter (it);
		}