Exemple #1
0
 public entities_by_id_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
 {
     InitializeComponent();
     m_samlight = p_samlight;
     label_access_by_id.Text = "Iterating through the job loaded and saving the tree structure of entities (name and type) to a *.txt file";
     EDIT_FILE_PATH.Text     = System.Environment.GetFolderPath(System.Environment.SpecialFolder.DesktopDirectory) + "\\Job_Tree.txt";
 }
Exemple #2
0
 public input_output_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
 {
     InitializeComponent();
     m_samlight = p_samlight;
     for (int i = 0; i < 16; i++)
     {
         string s = String.Format("{0}", i);
         COMBO_BIT.Items.Add(s);
     }
     COMBO_BIT.SelectedIndex = 0;
 }
Exemple #3
0
        public pens_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
        {
            InitializeComponent();
            m_samlight = p_samlight;

            for (int i = 1; i < 257; i++)
            {
                string s = String.Format("{0}", i);
                COMBO_PEN.Items.Add(s);
            }
            COMBO_PEN.SelectedIndex = 0;
        }
Exemple #4
0
        public optimize_performance_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
        {
            InitializeComponent();
            m_samlight = p_samlight;

            LABEL_OPTIMIZE_PERFORMANCE.Text = "This example loads already prepared 20 barcode entities with entity names barcode1, barcode2, ..., barcode 20 in SAMLight.\nFor each barcode entity:\n\n\t- The text is changed\n\t- Hatch1 is enabled with 'wavy line without marking jumps'\n\t- Hatch2 is enabled with style 'zigzag'.\n\nIf we were to do it the common way, after every of the 60 CI calls the corresponding entity will get regenerated and the View2D\nof SAMLight will be updated. This needs a lot of time. This example demonstrates how the same goal can be reached by using\n3 CI calls instead of 60. Furthermore every entity will be regenerated only once and the View2D of SAMLight will only be\nupdated after the last entity change is complete. ";
            string current_dir = Directory.GetCurrentDirectory();
            string file_path   = current_dir;

            file_path          = string.Concat(file_path, "\\OptimizePerformanceSample.sjf");
            EDIT_JOB_PATH.Text = file_path;
        }
Exemple #5
0
        public hatch_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
        {
            InitializeComponent();
            m_samlight = p_samlight;

            char pair = 'A';

            for (int i = 0; i < 5; i++)
            {
                string s = String.Format("Pair {0}", pair);
                COMBO_HATCH_PAIRS.Items.Add(s);
                pair++;
            }
            COMBO_HATCH_PAIRS.SelectedIndex = 0;
        }
Exemple #6
0
        public screen_shots_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
        {
            InitializeComponent();
            m_samlight = p_samlight;
            string s;

            s = String.Format("{0}", 160);
            COMBO_SIZE.Items.Add(s);
            s = String.Format("{0}", 320);
            COMBO_SIZE.Items.Add(s);
            s = String.Format("full");
            COMBO_SIZE.Items.Add(s);
            COMBO_SIZE.SelectedIndex = 0;
            EDIT_FILE_NAME.Text      = System.Environment.GetFolderPath(System.Environment.SpecialFolder.DesktopDirectory) + "\\SAMLight_View2D_screenshot160.bmp";

            comboBox_line_size.Items.Add("Normal");
            comboBox_line_size.Items.Add("Thick");

            EDIT_FILE_NAME_DPI.Text          = System.Environment.GetFolderPath(System.Environment.SpecialFolder.DesktopDirectory) + "\\SAMLight_View2D_screenshotAdjDPINormal200.bmp";
            comboBox_line_size.SelectedIndex = 0;
        }
Exemple #7
0
 public samlight_client_csharp()
 {
     InitializeComponent();
     m_samlight = axScSamlightClientCtrl1;
     ConnectToSamlight();
 }
Exemple #8
0
 public settings_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
 {
     InitializeComponent();
     m_samlight = p_samlight;
 }
Exemple #9
0
 public SamLightClass(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl myCtrl)
 {
     axScSamlightClientCtrl1 = myCtrl;
 }
Exemple #10
0
 public load_and_save_frm(AxSAMLIGHT_CLIENT_CTRL_OCXLib.AxScSamlightClientCtrl p_samlight)
 {
     InitializeComponent();
     m_samlight = p_samlight;
 }