Exemple #1
0
 void linkCommand_Command(object sender, CommandEventArgs e)
 {
     if (e.CommandName == "EditSampler")
     {
         SamplerDataEditor.IsNew = false;
         var samplerToEdit = from sampler in SampleInformation.Samplers
                             where sampler.Id == new Guid((string)e.CommandArgument)
                             select sampler;
         SamplerDataEditor.DataSource = samplerToEdit.ElementAt(0);
         SamplerDataEditor.DataBind();
         SamplerDataEditorContainer.Attributes["class"] = "ShowPopupEditor";
     }
 }
Exemple #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            transferedData = new PageDataTransfer(Request.Path);
            ginProcess     = GINProcessWrapper.GetGINProcess(IsPostBack);

            SampleDataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("GINSamplers", "Sample");
            SamplerDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("GINSamplers", "Sampler");
            SamplerGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("GINSamplers", "Sampler");

            SampleDataEditor.Lookup  = ginProcess.LookupSource;
            SamplerDataEditor.Lookup = ginProcess.LookupSource;
            SamplerGridViewer.Lookup = ginProcess.LookupSource;

            SampleDataEditor.IsNew = false;

            SamplerDataEditor.Ok     += new EventHandler(SamplerDataEditor_Ok);
            SamplerDataEditor.Cancel += new EventHandler(SamplerDataEditor_Cancel);

            SampleDataEditor.Setup();
            SamplerDataEditor.Setup();
        }