Beispiel #1
0
		private void AddAddin(IWeSayAddin addin)
		{
			ActionItemControl control = new ActionItemControl(addin, false, null);
			control.TabIndex = _addinsList.RowCount;
			control.Launch += OnLaunchAction;

			_addinsList.RowStyles.Add(new RowStyle(SizeType.AutoSize));
			_addinsList.Controls.Add(control);
		}
Beispiel #2
0
		private void AddAddin(IWeSayAddin addin)
		{
			ActionItemControl control = new ActionItemControl(addin,
															  true,
															  WeSayWordsProject.Project.
																	  GetProjectInfoForAddin());
			// GetProjectInfo());
			control.DoShowInWeSay = AddinSet.Singleton.DoShowInWeSay(addin.ID);
			control.TabIndex = _addinsList.RowCount;
			control.Launch += OnLaunchAction;

			_addinsList.RowStyles.Add(new RowStyle(SizeType.AutoSize));
			_addinsList.Controls.Add(control);
		}