Пример #1
0
    private void helpRequested(object sender, ProductWrapperDisplay.HelpClickedArgs e_)
    {
      var type = e_.ParserType;

      var impl = ImplFactory.GetParser(type);

      displayMessage(string.Format("Help for input of {0}", EnumDescriptionAttribute.GetDescription(type)),
        impl.GetHelpString(type), MessageBoxIcon.Information);
    }
Пример #2
0
    private void subscribeToControlEvents(ProductWrapperDisplay disp_, bool do_ = true)
    {
      disp_.DeleteClicked -= deleteClicked;
      disp_.HelpClicked -= helpRequested;

      if (!do_) return;

      disp_.DeleteClicked += deleteClicked;
      disp_.HelpClicked += helpRequested;
    }
Пример #3
0
    private void addWrapper()
    {
      var wrapper = new ProductWrapper();
      var disp = new ProductWrapperDisplay();
      disp.Bind(wrapper);
      m_wrappers.Add(wrapper);
      SI.Controls.LookFeel.ProcessControl(disp);

      flowLayoutPanel1.Controls.Add(disp);

      sortOutPositioning();

      subscribeToControlEvents(disp);
    }