Код: Выделить всё
if (mfrmSetup == null) {
mfrmSetup = new clsSetupForm();
}
mfrmSetup.Text = dicParams[mcstrFormTitle];
mfrmSetup.Visible = true;
clsSetupForm.cs:
Код: Выделить всё
#region Using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
#endregion
namespace BMLGUIService {
public partial class clsSetupForm : Form {
///
/// Class constructor
///
public clsSetupForm() {
InitializeComponent();
}
///
/// Get access function for Cancel button
///
public Button Cancel {
get {
return btnCancel;
}
}
///
/// Get access function for OK button
///
public Button OK {
get {
return btnOK;
}
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... inoperable