/// <summary>
 /// Constructor of the LogInputDialog for Editting of LogInputs.
 /// </summary>
 /// <param name="parentForm"> The LogDialog that made this dialog</param>
 /// <param name="loginput"> The LogInput to be edited.</param>
 public LogInputDialog(LogDialog parentForm, LogInput loginput)
 {
     this.parentForm = parentForm;
     this.logInput   = loginput;
     InitializeComponent();
     tb_MatlabName.Enabled = true;
 }
Ejemplo n.º 2
0
        // Load and Closing
        private void PItoMatlabForm_Load(object sender, EventArgs e)
        {
            startDTP.Text = "*-2h";
            endDTP.Text   = "*";

            // Log System Initialization
            logForm = new LogDialog(control, this);

            // Initialize AFViewControllers
            AFNamedCollectionList <AFAttribute>  atts   = new AFNamedCollectionList <AFAttribute>();
            AFNamedCollectionList <AFEventFrame> frames = new AFNamedCollectionList <AFEventFrame>();

            avcAttributes.AFSetObject(atts, null, null, null);
            avcAttributes.ContextMenuStrip = null;
            avcEventAttributes.AFSetObject(atts, null, null, null);
            avcEventFrames.AFSetObject(frames, null, null, null);

            //Initialize Data Preference Dialog
            dataPrefDialog = new DataPreferences(this);


            //Control AfTreeView1.ContextMenuSTrip
            afmenu = afTreeViewElements.ContextMenuStrip as AFMenu;
            if (afmenu != null)
            {
                // Event raised when the menu control is opening.
                afmenu.Opening += new CancelEventHandler(afmenu_Opening);
            }

            //Connect the Database Picker to the System Picker
            afDatabasePicker1.SystemPicker = afServerPicker;

            //Initialize Connection
            initializeAfServerPicker();

            Status("Loaded from the AF System " + _curServer);
        }
Ejemplo n.º 3
0
        // Load and Closing
        private void PItoMatlabForm_Load(object sender, EventArgs e)
        {
            startDTP.Text = "*-2h";
            endDTP.Text = "*";

            // Log System Initialization
            logForm = new LogDialog(control,this);

            // Initialize AFViewControllers
            AFNamedCollectionList<AFAttribute> atts = new AFNamedCollectionList<AFAttribute>();
            AFNamedCollectionList<AFEventFrame> frames = new AFNamedCollectionList<AFEventFrame>();
            avcAttributes.AFSetObject(atts, null, null, null);
            avcAttributes.ContextMenuStrip = null;
            avcEventAttributes.AFSetObject(atts, null, null, null);
            avcEventFrames.AFSetObject(frames, null, null, null);

            //Initialize Data Preference Dialog
            dataPrefDialog = new DataPreferences(this);

            //Control AfTreeView1.ContextMenuSTrip
            afmenu = afTreeViewElements.ContextMenuStrip as AFMenu;
            if (afmenu != null)
            {
                // Event raised when the menu control is opening.
                afmenu.Opening += new CancelEventHandler(afmenu_Opening);
            }

            //Connect the Database Picker to the System Picker
            afDatabasePicker1.SystemPicker = afServerPicker;

            //Initialize Connection
            initializeAfServerPicker();

            Status("Loaded from the AF System " + _curServer);
        }