Exemplo n.º 1
0
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            pictureBox2.Visible = !pictureBox2.Visible;
            AppImageListPanel panel = this.Parent as AppImageListPanel;

            if (panel != null)
            {
                panel.Check();
            }
        }
Exemplo n.º 2
0
        private void GetAppList(int type = 1)
        {
            AppImageListPanel panel = type == 1 ? appImageListPanel1 : appImageListPanel2;
            List <ImageApp>   apps  = API.GetAppList(type);

            panel.Clear();
            foreach (ImageApp i in apps)
            {
                panel.Add(i);
            }
        }
Exemplo n.º 3
0
 public Devices(IOSDevice device, AppImageListPanel iosAppImageListPanel, string uid, string username)
 {
     InitializeComponent();
     this.uid                  = uid;
     this.username             = username;
     platform                  = Platform.IOS;
     this.iosDevice            = device;
     this.iosAppImageListPanel = iosAppImageListPanel;
     this.label1.Text          = device.Name;
     label2.Text               = "手机连接成功,请安装应用";
     IOSDeviceManger.GetShareInstance().OnInstallAppComplete += Devices_OnInstallAppComplete1;
     player = new System.Media.SoundPlayer(Config.GetShareInstance().GetValue("Wav"));
 }
Exemplo n.º 4
0
 public Devices(AndoridDevice device, AppImageListPanel andoridAppImageListPanel, string uid, string username)
 {
     InitializeComponent();
     this.uid                      = uid;
     this.username                 = username;
     platform                      = Platform.Android;
     this.andoridDevice            = device;
     this.andoridAppImageListPanel = andoridAppImageListPanel;
     this.label1.Text              = device.DeivceId;
     AndoridDeviceManger.GetShareInstance().OnInstallAppComplete += Devices_OnInstallAppComplete;
     player = new System.Media.SoundPlayer(Config.GetShareInstance().GetValue("Wav"));
     if (device.Status == AndoridDeviceStatus.OnLine)
     {
         label2.Text = "手机连接成功,请安装应用";
     }
     else
     {
         label2.Text = "手机连接成功,但没有安装权限,请授权";
     }
 }