Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     this.form = this;
     SetStatusLabelDelegate = new SetStatusLabelCallback(SetStatusLabel);
     SetButtonDelegate      = new SetButtonCallback(SetButton);
     OpenNextFormDelegate   = new OpenNextFormCallback(OpenNextForm);
 }
Ejemplo n.º 2
0
        public Form2(String filesString, Form1 form1, Connection conn)
        {
            InitializeComponent();
            this.form  = this;
            this.form1 = form1;
            this.conn  = conn;
            Console.WriteLine(filesString);
            UpdateFilesListDelegate = new UpdateFilesListCallback(UpdateFilesList);
            OpenNextFormDelegate    = new OpenNextFormCallback(OpenNextForm);

            this.filesList.Items.Clear();
            foreach (String s in filesString.Split('#'))
            {
                this.filesList.Items.Add(s);
            }
            this.filesList.SetSelected(0, true);
        }