Exemple #1
0
        public Frm_CycleCreation()
        {
            InitializeComponent();

            oCycle        = null;
            oCanConfig    = null;
            oAssociations = null;
            oDataFile     = null;

            oSignalLibCollection = new CS_BuiltInSignalLibCollection();
            if (File.Exists(CANStreamTools.CsDataPath + "\\BuiltInSignals.xml"))
            {
                oSignalLibCollection.LoadLibrariesList(CANStreamTools.CsDataPath + "\\BuiltInSignals.xml");
            }
        }
        public Frm_CycleDataAssociation()
        {
            InitializeComponent();

            oAssociations = new CycleDataAssociation();
            oCanConfig    = null;
            oDataFile     = null;

            oSigLibCollection = new CS_BuiltInSignalLibCollection();

            string SigLibCollectionFile = CANStreamTools.CsDataPath + "\\BuiltInSignals.xml";

            if (File.Exists(SigLibCollectionFile))
            {
                oSigLibCollection.LoadLibrariesList(SigLibCollectionFile);
            }

            GridEdition    = false;
            ConfigModified = false;
        }
        public Frm_BuiltInSignal(MainForm FrmMain)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();


            //Library collection init
            oBSLibCollection = new CS_BuiltInSignalLibCollection();

            if (File.Exists(CANStreamTools.CsDataPath + "\\BuiltInSignals.xml"))
            {
                if (oBSLibCollection.LoadLibrariesList(CANStreamTools.CsDataPath + "\\\\BuiltInSignals.xml"))
                {
                    foreach (CS_BuiltInSignalLibrary oLib in oBSLibCollection.Libraries)
                    {
                        AddLibrary(oLib);
                    }
                }
            }

            oActiveLibrary = null;
            oActiveSignal  = null;

            oClipBoardItem = null;
            bCutOption     = false;

            FrmParent = FrmMain;
            bFrmMain_ReloadLibraries = false;

            Cmb_SigType.Items.Clear();
            string[] SigTypes = Enum.GetNames(typeof(CS_BuiltInSignalType));

            foreach (string sSigTyp in SigTypes)
            {
                Cmb_SigType.Items.Add(sSigTyp);
            }
        }