Ejemplo n.º 1
0
 public ucSINnersBasic(ucSINnersUserControl parent)
 {
     if (parent != null)
     {
         SINnersBasicConstructor(parent);
     }
 }
Ejemplo n.º 2
0
        private void SINnersBasicConstructor(ucSINnersUserControl parent)
        {
            _inConstructor = true;
            InitializeComponent();


            this.TagValueArchetype.DataSource = ContactControl.ContactArchetypes;
            this.Name = "SINnersBasic";
            this.bGroupSearch.Enabled = false;
            this.AutoSize             = true;
            myUC      = parent;
            myUC.MyCE = parent.MyCE;
            if (myUC.MyCE?.MySINnerFile?.Id != null)
            {
                this.tbID.Text = myUC.MyCE?.MySINnerFile?.Id?.ToString();
            }
            string tip =
                "Assigning this SINner a new Id enables you to save multiple versions of this chummer on SINnersHub." +
                Environment.NewLine;

            tip += "";
            this.bGenerateNewId.SetToolTip(tip);
            CheckSINnerStatus().ContinueWith(a =>
            {
                if (!a.Result)
                {
                    Log.Error("somehow I couldn't check the onlinestatus of " +
                              myUC.MyCE.MySINnerFile.Id);
                }
            });
            foreach (var cb in gpTags.Controls)
            {
                if ((cb is Control cont))
                {
                    cont.Click += OnGroupBoxTagsClick;
                }
                if ((cb is CheckBox cccb))
                {
                    cccb.CheckedChanged    += OnGroupBoxTagsClick;
                    cccb.CheckStateChanged += OnGroupBoxTagsClick;
                }

                if ((cb is ComboBox ccb))
                {
                    ccb.TextChanged += OnGroupBoxTagsClick;
                }
                if ((cb is TextBox ctb))
                {
                    ctb.TextChanged += OnGroupBoxTagsClick;
                }
            }

            _inConstructor = false;
        }
Ejemplo n.º 3
0
        private void SINnersAdvancedConstructor(ucSINnersUserControl parent)
        {
            InitializeComponent();
            this.Name     = "SINnersAdvanced";
            this.AutoSize = true;
            this.cbSINnerUrl.SelectedIndex = 0;
            MySINnersUsercontrol           = parent;

            //TreeNode root = null;
            //MySINnersUsercontrol.MyCE.PopulateTree(ref root, null, null);
            //MyTagTreeView.Nodes.Add(root);
        }
Ejemplo n.º 4
0
 public ucSINnersAdvanced(ucSINnersUserControl parent)
 {
     SINnersAdvancedConstructor(parent);
 }