Exemplo n.º 1
0
        void NextExample(object parameter)
        {
            var win = new Window3(SelectedPerson);

            win.Show();
            CloseWindowFlag = true;
        }
    private void Button_Click_1(object sender, RoutedEventArgs e)
    {
        Window3 win = new Window3(VM);

        win.Owner = this;
        win.Show();
    }
Exemplo n.º 3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Window Window3 = new Window3();

            Window3.Show();
            //this.Close();
        }
Exemplo n.º 4
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Window Window3 = new Window3();            //open update hosting unit

            Window3.Show();
            this.Close();
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (this.passwordTextBox.Text == "" || this.userTextBox.Text == "")
                {
                    throw new Exception("!הינך חייב להכניס שם משתמש וסיסמה");
                }

                int a = 0;
                this.passworde.User     = this.userTextBox.Text;
                this.passworde.Password = this.passwordTextBox.Text;
                foreach (var item in bl.GetPasswordList())
                {
                    if (item.User == passworde.User && item.Password == passworde.Password)
                    {
                        a = 1;

                        Window Window3 = new Window3();//open update hosting unit
                        Window3.Show();
                        this.Close();
                    }
                }
                if (passworde.Password != "" && passworde.User != "" && a == 0)
                {
                    MessageBox.Show("!משתמש או סיסמה אינם נכונים");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                passworde        = new BE.Passworde();
                this.DataContext = passworde;
            }
        }
Exemplo n.º 6
0
    void Start()
    {
        Application.targetFrameRate = 60;
        Stage.inst.onKeyDown.Add(OnKeyDown);

        _mainView = this.GetComponent <UIPanel>().ui;

        _testWin = new Window3();

        _mainView.GetChild("n2").onClick.Add(() => { _testWin.Show(); });
    }
    void Start()
    {
        Application.targetFrameRate = 60;
        Stage.inst.onKeyDown.Add(OnKeyDown);

        _mainView = this.GetComponent<UIPanel>().ui;

        _testWin = new Window3();

        _mainView.GetChild("n2").onClick.Add(() => { _testWin.Show();  });
    }
Exemplo n.º 8
0
        private void StartListening2()
        {
            try
            {
                if (_SerialPort != null && _SerialPort.IsOpen)
                {
                    _SerialPort.Dispose();
                    _SerialPort.Close();
                    logger.Log(LogLevel.Debug, "SerialPort.Dispose() & SerialPort.Close() are executed on StartListening() method.");
                }

                _SerialPort.PortName = SelectedCommPort.DeviceID;
                _SerialPort.BaudRate = SelectedBaudRate;
                _SerialPort.Parity   = SelectedParity;
                _SerialPort.DataBits = SelectedDataBits;
                _SerialPort.StopBits = SelectedStopBits;
                _SerialPort.Open();
                logger.Log(LogLevel.Debug, "SerialPort.Open() is executed.");
                _SerialPort.DtrEnable = IsDTR;
                _SerialPort.RtsEnable = IsRTS;

                OutputText = "";
                OnPropertyChanged("OutputText");

                EnableDisableSettings = false;
                OnPropertyChanged("EnableDisableSettings");

                logger.Log(LogLevel.Info, "Connected to: " + SelectedCommPort.DeviceID + ", " + SelectedBaudRate.ToString() + " baud, Parity." + SelectedParity.ToString() + ", " + SelectedDataBits.ToString() + ", StopBits." + SelectedStopBits.ToString() + ", RTS=" + IsRTS.ToString() + ", DTR=" + IsDTR.ToString());

                _SerialPort.DataReceived += new SerialDataReceivedEventHandler(DataReceivedEvent);
                logger.Log(LogLevel.Debug, "Ready to receive data...");

                var Window = Application.Current.Windows[0];
                Window.Hide();

                //Window2 Window2 = new Window2();

                //Window2.Show();

                Window3 Window2 = new Window3();

                Window2.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                logger.Log(LogLevel.Error, "EXCEPTION raised: " + ex.ToString());
            }

            WindowTitle = AppTitle + " (" + GetConnectionStatus() + ")";
            OnPropertyChanged("WindowTitle");
        }
Exemplo n.º 9
0
        /// <summary>
        /// 未检测名单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ShowBioNotCheckedList(object sender, DirectEventArgs e)
        {
            //_PAT_ID = e.ExtraParams["pat_id"].ToString();

            Window3.Show();
            Window3.Loader.SuspendScripting();
            //Window3.Loader.Url = "./WebForm1.aspx";
            //Window3.Loader.Url = "./Biochemical_Not_Checked_List.aspx;     // 每月未檢驗的病人統計名單 初版
            //Window3.Loader.Url = "./Biochemical_Not_Checked_List_V2.aspx;  // 每月未檢驗的病人統計名單 二版
            Window3.Loader.Url            = "./Biochemical_Not_Checked_List_V2.aspx";
            Window3.Loader.DisableCaching = true;
            Window3.LoadContent();
        }
Exemplo n.º 10
0
        //*******************///////////////////////////////设置按钮点击事件////////////////////////////////////////////////////

        #region
        private void image5_MouseDown(object sender, MouseButtonEventArgs e)
        {
            //if (Window3.onoff)
            //{
            //    Window3 pp = new Window3();
            //    pp.Show();
            //}

            if (Window3.onoff)
            {
                Window3 pp = new Window3();
                pp.Show();
            }
        }
        public void update(string code)
        {
            try
            {
                //页面没数据
                StoreDeviceManager.DataSource = (DataTable)Session["datatable"];
                StoreDeviceManager.DataBind();
                SroPenation.DataSource = (DataTable)Session["yunweitable"];
                SroPenation.DataBind();
                DataTable da = deviceManager.GetSelectOperation(" id='" + code + "'");
                this.com_upte_lrtype.Value   = da.Rows[0]["col5"].ToString();
                this.com_upte_lrdanwei.Value = da.Rows[0]["col6"].ToString();
                this.txt_upde_lrpeople.Text  = da.Rows[0]["col2"].ToString();

                start1time = da.Rows[0]["col3"].ToString();
                end1time   = da.Rows[0]["col9"].ToString();

                string js = "setTime('" + start1time + "','" + end1time + "');";
                this.ResourceManager1.RegisterAfterClientInitScript(js);
                //string[] lurutiem = (da.Rows[0]["col3"].ToString()).Split(' ');
                //this.date_upde_lrdate.Text = lurutiem[0].ToString();
                //this.time_upde_lrtime.Text = lurutiem[1].ToString();
                this.txt_upde_lrshuoming.Text = da.Rows[0]["col4"].ToString();
                this.txt_upde_shpeople.Text   = da.Rows[0]["col7"].ToString();
                // string[] shtiem = (da.Rows[0]["col9"].ToString()).Split(' ');
                //this.date_upde_shdate.Text = shtiem[0].ToString();
                //this.time_upde_shtime.Text = shtiem[1].ToString();
                this.txt_upde_shyijian.Text = da.Rows[0]["col8"].ToString();
                this.hidder1.Value          = da.Rows[0]["col1"].ToString();
                yuweiId = code;
                DataRow[] dt = dtyw.Select("col0='" + da.Rows[0]["col5"].ToString() + "'");
                ywfs = dt[0]["col1"].ToString();
                DataRow[] dt1 = dtyw.Select("col0='" + da.Rows[0]["col6"].ToString() + "'");
                sqdw = dt1[0]["col1"].ToString();
                sqr  = txt_upde_lrpeople.Text;
                lrsj = start1time;
                lrsm = txt_upde_lrshuoming.Text;
                shr  = txt_upde_shpeople.Text;
                shsj = end1time;
                shyj = txt_upde_shyijian.Text;

                Window3.Show();
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("DeviceOperation.aspx-update", ex.Message + ";" + ex.StackTrace, "update has an exception");
            }
        }
    void Start()
    {
        Application.targetFrameRate = 60;
        GRoot.inst.SetContentScaleFactor(1136, 640);
        Stage.inst.onKeyDown.Add(OnKeyDown);

        UIPackage.AddPackage("UI/RenderTexture");

        _mainView = UIPackage.CreateObject("RenderTexture", "Main").asCom;
        _mainView.SetSize(GRoot.inst.width, GRoot.inst.height);
        _mainView.AddRelation(GRoot.inst, RelationType.Size);
        GRoot.inst.AddChild(_mainView);

        _testWin = new Window3();

        _mainView.GetChild("n2").onClick.Add(() => { _testWin.Show();  });
    }
Exemplo n.º 13
0
    void Start()
    {
        Application.targetFrameRate = 60;
        GRoot.inst.SetContentScaleFactor(1136, 640);
        Stage.inst.onKeyDown.Add(OnKeyDown);

        UIPackage.AddPackage("UI/RenderTexture");

        _mainView = UIPackage.CreateObject("RenderTexture", "Main").asCom;
        _mainView.SetSize(GRoot.inst.width, GRoot.inst.height);
        _mainView.AddRelation(GRoot.inst, RelationType.Size);
        GRoot.inst.AddChild(_mainView);

        _testWin = new Window3();

        _mainView.GetChild("n2").onClick.Add(() => { _testWin.Show(); });
    }
Exemplo n.º 14
0
 protected void Dialysis_help(object sender, DirectEventArgs e)
 {
     if (helpwiz == "true")
     {
         _PAT_IC   = e.ExtraParams["pat_ic"].ToString();
         _PIF_NAME = e.ExtraParams["pif_name"].ToString();
         Window3.Show();
         Window3.Loader.SuspendScripting();
         Window3.Loader.Url            = "Information/Dialysis_help.aspx";
         Window3.Loader.DisableCaching = true;
         Window3.LoadContent();
     }
     else
     {
         ImageCommand ic = new ImageCommand();
         if (ic.CommandName == "DoctorHelp")
         {
             ic.Icon = Icon.BinEmpty;
         }
     }
 }
Exemplo n.º 15
0
        private void DebianInfo(object sender, RoutedEventArgs e)
        {
            Window3 Win3 = new Window3();

            Win3.Show();
        }
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var FormThree = new Window3();

            FormThree.Show();
        }
Exemplo n.º 17
0
        private void buttonBlue_Click(object sender, RoutedEventArgs e)
        {
            Window3 sW = new Window3();

            sW.Show();
        }
Exemplo n.º 18
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            Window3 win3 = new Window3();

            win3.Show();
        }