//Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion

        #region Overrided initializer
        public override void Initialize()
        {
            base.Initialize();
            _ModelClient = new ModelClient(_TSCloud);
            _Model       = _ModelClient.Get(_TargetModelId);
            Assert.IsTrue(_Model.IsValid());
            Assert.IsTrue(_TSCloud.CurrentUser.IsValid());
        }
        private void btnDownload_Click(object sender, EventArgs e)
        {
            int ModelId = (Int32.Parse(tbId.Text));

            dlgDownloadModel.FileName = tbFilename.Text;

            if (dlgDownloadModel.ShowDialog() == DialogResult.OK)
            {
                Model file = ModelClient.Get(ModelId);
                DownloadThread = new Thread(new ThreadStart(Download));
                DownloadThread.Start();
            }
        }
Beispiel #3
0
        private void showItem(object sender)
        {
            if (lvFileList.SelectedItems.Count == 1)
            {
                ListView lv        = sender as ListView;
                int      SelectRow = lv.SelectedItems[0].Index;

                Model model = ModelClient.Get(Int32.Parse(lv.SelectedItems[0].Text));

                frmModelView ModelView = new frmModelView(ModelClient, model);
                ModelView.FormSendEvent += new frmModelView.UpdateList(updateFileList);
                ModelView.Show();
            }
        }