コード例 #1
0
        public MainForm() : base()
        {
            InitializeComponent();
            Alert          = new AlertDelegate(AlertMethod);
            Exit           = new ExitDelegate(ExitMethod);
            FatalExit      = new FatalExitDelegate(FatalExitMethod);
            Log            = new LogDelegate(LogMethod);
            ReportProgress = new ReportProgressDelegate(ReportProgressMethod);
            Info           = new InfoDelegate(InfoMethod);

            logfile = File.OpenWrite(Path.GetDirectoryName(Application.ExecutablePath) + "\\cuetoogg.log.txt");
        }
コード例 #2
0
ファイル: SilentForm.cs プロジェクト: hansschmucker/CueToOgg
        public SilentForm()
            : base()
        {
            InitializeComponent();
            Alert = new AlertDelegate(AlertMethod);
            Exit = new ExitDelegate(ExitMethod);
            FatalExit = new FatalExitDelegate(FatalExitMethod);
            Log = new LogDelegate(LogMethod);
            ReportProgress = new ReportProgressDelegate(ReportProgressMethod);
            Info = new InfoDelegate(InfoMethod);

            logfile=File.OpenWrite(Path.GetDirectoryName(Application.ExecutablePath)+"\\cuetoogg.log.txt");
        }