예제 #1
0
 public FileChooser(CollectorDialog owner)
 {
     Owner      = owner;
     _owner     = owner;
     _treeModel = new TreeViewModel(this, Filename);
     _isDecryptSelectedEnabled = false;
     _isDecryptAllEnabled      = false;
     _startDecryption          = false;
     _externalDestroy          = false;
     InitializeComponent();
 }
예제 #2
0
 public FileChooser(CollectorDialog collectorDialog, string Filename)
 {
     this.Filename            = Filename;
     Owner                    = collectorDialog;
     _owner                   = collectorDialog;
     IsDecryptSelectedEnabled = false;
     IsDecryptAllEnabled      = false;
     _externalDestroy         = false;
     _treeModel               = new TreeViewModel(this, Filename);
     InitializeComponent();
 }
예제 #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Auxiliary.Logger.Init();

            var options = new Options();

            foreach (var arg in e.Args)
            {
                //_log.Info("Input param " + arg);
            }

            AttachConsole(-1);
            var parser = new CommandLine.Parser(with =>
            {
                with.MutuallyExclusive = true;
                with.CaseSensitive     = true;
                with.HelpWriter        = Console.Error;
            });



            if (parser.ParseArguments(e.Args, options))
            {
                options.AfterParse();
                try{
                    var cd = new CollectorDialog(options);
                    cd.Show();
                }
                catch (Exception ex)
                {
                    Auxiliary.Logger._log.Error("Error: " + ex.Message);
                }
            }

            FreeConsole();
        }