Ejemplo n.º 1
0
 private void control_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         this.cmb_Server.ItemsSource = dC_Service.GetDCServers();
         this.cmb_Crane.ItemsSource  = dC_Service.GetCranes().DefaultView;
     }
     catch (Exception)
     {
     }
 }
Ejemplo n.º 2
0
        public u_Device(DC_DEVICE device)
        {
            Device = device;
            DC_Service dC_Service = new DC_Service();

            try
            {
                Cranes = dC_Service.GetCranes();
            }
            catch (Exception)
            {
            }
            InitializeComponent();
        }
Ejemplo n.º 3
0
        public w_Device(DC_SERVER server)
        {
            Device.SERVER_ID = server.ID;
            DC_Service dC_Service = new DC_Service();

            try
            {
                DataTable dt  = dC_Service.GetCranes();
                DataRow   row = dt.NewRow();
                row["CRA_NAME"] = "不是天车选这个";
                dt.Rows.InsertAt(row, 0);
                Cranes = dt;
            }
            catch (Exception)
            {
            }
            InitializeComponent();
        }
Ejemplo n.º 4
0
        public w_Device(DC_DEVICE device)
        {
            IsModify = true;
            Device   = device;
            DC_Service dC_Service = new DC_Service();

            try
            {
                DataTable dt  = dC_Service.GetCranes();
                DataRow   row = dt.NewRow();
                row["CRA_NAME"] = "不是天车选这个";
                dt.Rows.InsertAt(row, 0);
                Cranes = dt;
            }
            catch (Exception)
            {
            }
            InitializeComponent();
        }