Exemple #1
0
        private void InitializeUI()
        {
            switch (_operator)
            {
            case FileOperator.Export:
                this.Text            = "Export Configuration";
                this.labelTitle.Text = "Following files will be copied to folder " + _path
                                       + ". Please click \"OK\" button to continue.";
                break;

            case FileOperator.Import:
                this.Text            = "Import Configuration";
                this.labelTitle.Text = "Following files will be copied from folder " + _path
                                       + ". Please click \"OK\" button to continue.";
                break;
            }

            this.listBoxFiles.Items.Clear();
            foreach (string f in _files)
            {
                this.listBoxFiles.Items.Add(f);
            }

            _interfaceManager = new GCInterfaceManager(Program.ConfigDB, Program.ConfigMgt.Config.InterfaceFolder);
            _listener         = new ProgressListener(this.labelHide, this.progressBarMain);
            _listener.AttachProgress(_interfaceManager);
        }
Exemple #2
0
 private void InitializeControl()
 {
     _interfaceMgt     = new GCInterfaceManager(Program.ConfigDB, Program.ConfigMgt.Config.InterfaceFolder);
     _progressListener = new ProgressListener(this.labelProcess, this.progressBarProcess);
     _progressListener.AttachProgress(_interfaceMgt);
     panelProcess.Visible = false;
 }
Exemple #3
0
        public FormCopyInterface(GCInterfaceManager interfaceMgt, GCInterface fromInterface)
        {
            InitializeComponent();

            ToInterface    = null;
            _interfaceMgt  = interfaceMgt;
            _fromInterface = fromInterface;

            this.Text         = string.Format(this.Text, _fromInterface.InterfaceName);
            _progressListener = new ProgressListener(this.labelProcess, this.progressBarProcess);
            _progressListener.AttachProgress(_interfaceMgt);
        }