コード例 #1
0
        public MemberPicker(IEnumerable <ConfigurationItem> topItems, List <string> itemTypes, bool allowAll, ConfigApiClient configApiClient)
        {
            InitializeComponent();

            _configApiClient = configApiClient;
            _itemTypes       = itemTypes;
            _allowAll        = allowAll;
            _topItems        = topItems;

            foreach (string itemType in itemTypes)
            {
                comboBoxItemType.Items.Add(itemType);
            }

            if (itemTypes.Count == 0)
            {
                comboBoxItemType.Items.Add("ItemType not available, use GUIDs");
            }
            else
            {
                comboBoxItemType.SelectedIndex = 0;

                treeView1.ImageList = Icons.IconList;

                FillTreeView();
            }
        }
コード例 #2
0
 private void OnLogoff(object sender, EventArgs e)
 {
     _configApiClient.Close();
     _configApiClient = null;
     treeView.Nodes.Clear();
     panelMain.Controls.Clear();
     toolStripStatusLabel1.Text = "Logged off";
 }
コード例 #3
0
        public MethodInvokeForm(ConfigurationItem item, ConfigApiClient configApiClient)
        {
            InitializeComponent();

            _configApiClient = configApiClient;
            _item            = item;
            SessionDataId    = "0";

            FillForm();
        }
コード例 #4
0
        private void OnLogon()
        {
            treeView.ImageList = UI.Icons.IconListBlack;

            _configApiClient = new ConfigApiClient();
            _configApiClient.ServerAddress = _serverAddress;
            _configApiClient.Serverport    = _serverPort;
            _configApiClient.ServerType    = _corporate
                                                      ? ConfigApiClient.ServerTypeEnum.Corporate
                                                      : ConfigApiClient.ServerTypeEnum.Arcus;
            _configApiClient.Initialize();
            if (_configApiClient.Connected)
            {
                toolStripStatusLabel1.Text = "Logged on";
            }
            else
            {
                toolStripStatusLabel1.Text = "Error logging on";
            }

            UpdateTreeView();

            //VideoOS.Platform.SDK.Environment.LoadConfiguration(new Uri("http://localhost"));
        }