Exemplo n.º 1
0
        public NewServer()
        {
            InitializeComponent();

            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            // 设置全屏
            //WindowState = WindowState.Maximized;
            // 窗口固定大小
            ResizeMode = ResizeMode.NoResize;
            Title      = "产线投屏系统";
            instance   = this;
            var ell = Lib.Http.GetchnList();

            foreach (JObject E2 in ell.content)
            {
                comboBox10.Items.Add(E2["data"]["5df2fff7051d095a7e45f70e"]);
                contectList.Add(E2["data"]["5df2fff7051d095a7e45f70e"].ToString(), E2["id"].ToString());
            }
            comboBox.IsEnabled = false;
            button2.IsEnabled  = false;
            //for(int i = 0; i < 20; i++)
            //{
            //    Projects.Add(new Project(i.ToString()+"-"+i.ToString(), "1-1.JPG"));
            //}
        }
Exemplo n.º 2
0
 private void button3_Click(object sender, RoutedEventArgs e)
 {
     NewServer.NewServer s = new NewServer.NewServer();
     s.Show();
     this.Close();
 }