/// <summary> /// Writes options to the solution file. /// </summary> public void SaveOptions(Stream Stream) { using (BinaryWriter Writer = new BinaryWriter(Stream)) { string[] CommandLines = ComboList.ToArray(); Writer.Write(CommandLines.Length); for (int CommandLineIdx = 0; CommandLineIdx < CommandLines.Length; CommandLineIdx++) { Writer.Write(CommandLines[CommandLineIdx]); } } }
/// Called by combo control to populate the drop-down list private void ComboListHandler(object Sender, EventArgs Args) { var OleArgs = (OleMenuCmdEventArgs)Args; Marshal.GetNativeVariantForObject(ComboList.ToArray(), OleArgs.OutValue); }