public TransferBase() { string dir = "..\\..\\..\\config_files\\"; appconfig = Directory.Exists(dir) ? dir + GetType().Name.Substring(0, 7) + ".xml" : ".\\config.xml"; pd = ParamaterData.Load(appconfig); pd.extentions.Clear(); Initialize(); }
private void tiSystemConfig_Click(object sender, EventArgs e) { ConfigForm cf = new ConfigForm(); cf.pd = pd.Clone(); cf.ShowDialog(); if (cf.needSave) { pd = cf.pd; } }
public NewMainForm() { InitializeComponent(); trans = values.transducer; pd = trans.pd; }