Beispiel #1
0
        // ReSharper disable once UnusedMember.Global
        public void OpenUrl()
        {
            var url = Interaction.InputBox("Url", "Open Url",
                                           "https://archive.org/download/Windows7WildlifeSampleVideo/Wildlife_512kb.mp4");

            if (!string.IsNullOrEmpty(url))
            {
                OpenUrl(url);
            }
        }
Beispiel #2
0
        private void GroupAdd_Click(object sender, EventArgs e)
        {
            String groupInput = VBasic.InputBox("Название группы должно полностью соответствовать названию в расписании", "Добавление группы...", "", MousePosition.X - 320, MousePosition.Y - 50);

            if (groupInput != "")
            {
                CPG_GPanel.Controls.Add(new Label()
                {
                    Text = groupInput
                });
                CPG_GPanel.Controls[CPG_GPanel.Controls.Count - 1].Click += (e1, e2) => CPG_GPanel.Controls.Remove(e1 as Control);
            }
        }
Beispiel #3
0
        public void list1DoubleClick(object sender, EventArgs e)
        {
            string newName = VB.InputBox("Name");

            if ((!newName.Equals("")) & (!newName.Equals(" ")))
            {
                int j = Dungeon.Length;
                j++;
                Array.Resize(ref Dungeon, j);
                Dungeon[j - 1].name       = newName;
                Dungeon[j - 1].Encounters = new Location.Dungeon.Encounter[0];
                listBox1.Items.Add(Dungeon[j - 1].name);
            }
            else
            {
                MessageBox.Show("error");
            }
        }