public void Configure(ILogLineColumnizerCallback callback, string configDir)
 {
     string configPath = configDir + "\\log4jxmlcolumnizer.dat";
     Log4jXmlColumnizerConfigDlg dlg = new Log4jXmlColumnizerConfigDlg(this.config);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         BinaryFormatter formatter = new BinaryFormatter();
         Stream fs = new FileStream(configPath, FileMode.Create, FileAccess.Write);
         formatter.Serialize(fs, this.config);
         fs.Close();
     }
 }
Пример #2
0
    public void Configure(ILogLineColumnizerCallback callback, string configDir)
    {
      string configPath = configDir + "\\log4jxmlcolumnizer.dat";
      Log4jXmlColumnizerConfigDlg dlg = new Log4jXmlColumnizerConfigDlg(this.config);
      if (dlg.ShowDialog() == DialogResult.OK)
      {
        BinaryFormatter formatter = new BinaryFormatter();
        Stream fs = new FileStream(configPath, FileMode.Create, FileAccess.Write);
        formatter.Serialize(fs, this.config);
        fs.Close();

      }
    }