Example #1
0
 public ITreeBranch add_child(string name, ApplicationIcon icon, Command command)
 {
     var new_node = new TreeNode(name)
                        {
                            ImageKey = icon.name_of_the_icon,
                            SelectedImageKey = icon.name_of_the_icon
                        };
     node.Nodes.Add(new_node);
     return new TreeBranch(new_node, command);
 }
Example #2
0
 public void display(ApplicationIcon icon_to_display, string text_to_display)
 {
     shell.region<NotifyIcon>(x =>
                                  {
                                      x.Icon = icon_to_display;
                                      x.Text = text_to_display;
                                      x.ContextMenu = new ContextMenu
                                                          {
                                                              MenuItems =
                                                                  {
                                                                      map_from(file_menu),
                                                                      map_from(window_menu),
                                                                      map_from(help_menu)
                                                                  }
                                                          };
                                  });
 }
 public IApplicationDockedWindow icon(ApplicationIcon icon)
 {
     Icon = icon;
     return this;
 }
Example #4
0
 protected string find_full_path_to(ApplicationIcon icon_to_convert)
 {
     return Path.Combine(icon_to_convert.startup_directory() + @"\icons", icon_to_convert.name_of_the_icon);
 }
Example #5
0
 static public void add(ApplicationIcon icon)
 {
     all_icons.Add(icon);
 }
Example #6
0
 public ITreeBranch add_child(string name, ApplicationIcon icon, Action command)
 {
     return add_child(name, icon, new AnonymousCommand(command));
 }