예제 #1
0
        public MainPage()
        {
            InitializeComponent();
            //按钮控制
            _ButtomControl = new ButtomAdmin() {  CBottom= CBottom };

            _Instanse = this;
            //因为拖动,处理样式
            drapDropListBox.BorderBrush = new SolidColorBrush();
            fromListBox.BorderBrush = new SolidColorBrush();
            fromListBox.Background = new SolidColorBrush();
            lbitem.Background = new SolidColorBrush();
            fromListBox.MouseLeave += (sender, e) => { fromListBox.SelectedIndex = -1; };

            _WDBH = "";
            if (HtmlPage.Document.QueryString.Count > 0)
                _WDBH = HtmlPage.Document.QueryString["wdbh"];
            if (string.IsNullOrEmpty(_WDBH))
            {
                ShowMsg("无法获取参数!");
                return;
            }

            //加载业务数据
            LoadYWList();
            LoadWdDataList();
            LoadPageWin();
        }
예제 #2
0
        public PageWinButtomAdmin()
        {
            InitializeComponent();

            _WDBH = "";
            if (HtmlPage.Document.QueryString.Count > 0)
                _WDBH = HtmlPage.Document.QueryString["wdbh"];
            if (string.IsNullOrEmpty(_WDBH))
            {
                ShowMsg("无法获取参数!");
                return;
            }

            _ButtomControl = new ButtomAdmin() { CBottom = CBottom };
        }