Run() public method

public Run ( ) : int
return int
Exemplo n.º 1
0
 protected void OnAddIcon(object ob, EventArgs args)
 {
     ProjectIconSet icon = new ProjectIconSet ();
     using (EditIconDialog dlg = new EditIconDialog (project, icon)) {
         if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
             iconFactory.Icons.Add (icon);
             customIconList.Refresh ();
             customIconList.Selection = icon.Name;
             project.Modified = true;
         }
     }
 }
Exemplo n.º 2
0
		protected void OnAddIcon (object ob, EventArgs args)
		{
			ProjectIconSet icon = new ProjectIconSet ();
			using (EditIconDialog dlg = new EditIconDialog (project, icon)) {
				if (parent != null)
					dlg.TransientFor = parent.Toplevel as Gtk.Window;
				if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
					iconFactory.Icons.Add (icon);
					customIconList.Refresh ();
					customIconList.Selection = icon.Name;
//					project.Modified = true;
				}
			}
		}
Exemplo n.º 3
0
        protected void OnAddIcon(object ob, EventArgs args)
        {
            ProjectIconSet icon = new ProjectIconSet();

            using (EditIconDialog dlg = new EditIconDialog(project, icon)) {
                if (dlg.Run() == (int)Gtk.ResponseType.Ok)
                {
                    project.IconFactory.Icons.Add(icon);
                    customIconList.Refresh();
                    customIconList.Selection = icon.Name;
                    project.Modified         = true;
                }
            }
        }
Exemplo n.º 4
0
 protected void OnEditIcon(object ob, EventArgs args)
 {
     string name = customIconList.Selection;
     ProjectIconSet icon = iconFactory.GetIcon (name);
     if (icon != null) {
         using (EditIconDialog dlg = new EditIconDialog (project, icon)) {
             if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
                 customIconList.Refresh ();
                 customIconList.Selection = icon.Name;
                 project.Modified = true;
             }
         }
     }
 }
Exemplo n.º 5
0
        protected void OnEditIcon(object ob, EventArgs args)
        {
            string         name = customIconList.Selection;
            ProjectIconSet icon = project.IconFactory.GetIcon(name);

            if (icon != null)
            {
                using (EditIconDialog dlg = new EditIconDialog(project, icon)) {
                    if (dlg.Run() == (int)Gtk.ResponseType.Ok)
                    {
                        customIconList.Refresh();
                        customIconList.Selection = icon.Name;
                        project.Modified         = true;
                    }
                }
            }
        }
Exemplo n.º 6
0
        protected void OnAddIcon(object ob, EventArgs args)
        {
            ProjectIconSet icon = new ProjectIconSet();

            using (EditIconDialog dlg = new EditIconDialog(project, icon)) {
                if (parent != null)
                {
                    dlg.TransientFor = parent.Toplevel as Gtk.Window;
                }
                if (dlg.Run() == (int)Gtk.ResponseType.Ok)
                {
                    project.IconFactory.Icons.Add(icon);
                    customIconList.Refresh();
                    customIconList.Selection = icon.Name;
//					project.Modified = true;
                }
            }
        }