Пример #1
0
        public Main()
        {
            InitializeComponent();

            this.resManager = new ComponentResourceManager(this.GetType());
            this.culture    = CultureInfo.CurrentUICulture;

            this.Icon = M3Ueditor.Properties.Resources.m3u_icon;
            dgvTV.DefaultCellStyle.SelectionBackColor = Color.Silver;
            groupList = new List <string>();
            channels  = new SortableBindingList <TVChannel>();
            ButtonMenuEnable();

            tsChangeLang.DropDownItems.Add("Russian", Resources.flag_rus);
            tsChangeLang.DropDownItems.Add("English", Resources.flag_usa);
            CurrentFlag.Image = Resources.flag_rus;
            tsChangeLang.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.tsChangeLang_Clicked);
        }
Пример #2
0
 public Scanner(Button startBtn, Button stopBtn, ProgressBar prBar, Label CurrentIP, Label FoundIP, SortableBindingList <TVChannel> FindChannels)
 {
     start_bt        = startBtn;
     stop_bt         = stopBtn;
     progress_Bar    = prBar;
     CurrentIP_label = CurrentIP;
     FoundIP_label   = FoundIP;
     FindCH          = FindChannels;
     localhost       = Ethernet.getLocalIP();
 }