public Parser(string[] arr)
 {
     _provider = new WorkerWithFileSystem();
     ValidationArr(arr);
     ProcessingInput(arr);
     _provider.AddResource(arr[(int)Dates.Path]);
 }
예제 #2
0
        protected void OnAddResource(object ob, EventArgs args)
        {
            FileChooserDialog dialog =
                new FileChooserDialog("Open File", null, FileChooserAction.Open,
                                      Gtk.Stock.Cancel, Gtk.ResponseType.Cancel,
                                      Gtk.Stock.Open, Gtk.ResponseType.Ok);
            int response = dialog.Run();

            if (response == (int)Gtk.ResponseType.Ok)
            {
                ResourceInfo rinfo = resourceProvider.AddResource(dialog.Filename);
                AppendResource(resourceProvider.GetResourceStream(rinfo.Name), rinfo.Name);
                resourceNameEntry.Text = rinfo.Name;
            }
            dialog.Destroy();
        }