상속: System.Windows.Forms.Form
예제 #1
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);
        }
예제 #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);
        }