예제 #1
0
        private void cboDevice_DropDown(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "loading...";

            try
            {
                cboDevice.Items.Clear();
                InklevelHost host = new InklevelHost(textServer.Text, 8080);
                cboDevice.Items.AddRange(host.GetPrinters());
            }
            catch (Exception err)
            {
                toolStripStatusLabel1.Text = err.Message;
            }
        }
예제 #2
0
        private void cboDevice_DropDown(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "loading...";

            try
            {
                cboDevice.Items.Clear();
                InklevelHost host = new InklevelHost(textServer.Text, 8080);
                cboDevice.Items.AddRange(host.GetPrinters());
            }
            catch (Exception err)
            {
                toolStripStatusLabel1.Text = err.Message;
            }
        }